Skip to content

Commit

Permalink
Generated from d6285b0b59f346654bc6ba548597039cd3090e64
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 16, 2020
1 parent 1152ea0 commit 3b9b668
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 135 deletions.
2 changes: 1 addition & 1 deletion sdk/iothub/arm-iothub/src/iotHubClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2020-07-10-preview';
this.apiVersion = '2020-08-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
3 changes: 0 additions & 3 deletions sdk/iothub/arm-iothub/src/models/certificatesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export {
CertificateVerificationDescription,
CertificateWithNonceDescription,
CloudToDeviceProperties,
EncryptionPropertiesDescription,
EnrichmentProperties,
ErrorDetails,
EventHubConsumerGroupInfo,
Expand All @@ -25,10 +24,8 @@ export {
IotHubDescription,
IotHubLocationDescription,
IotHubProperties,
IotHubPropertiesDeviceStreams,
IotHubSkuInfo,
IpFilterRule,
KeyVaultKeyProperties,
MessagingEndpointProperties,
PrivateEndpoint,
PrivateEndpointConnection,
Expand Down
67 changes: 21 additions & 46 deletions sdk/iothub/arm-iothub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export interface RouteProperties {
/**
* The source that the routing rule is to be applied to, such as DeviceMessages. Possible values
* include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents', 'DigitalTwinChangeEvents'
* 'DeviceJobLifecycleEvents'
*/
source: RoutingSource;
/**
Expand Down Expand Up @@ -726,40 +726,6 @@ export interface CloudToDeviceProperties {
feedback?: FeedbackProperties;
}

/**
* The device streams properties of iothub.
*/
export interface IotHubPropertiesDeviceStreams {
/**
* List of Device Streams Endpoints.
*/
streamingEndpoints?: string[];
}

/**
* The properties of the KeyVault key.
*/
export interface KeyVaultKeyProperties {
/**
* The identifier of the key.
*/
keyIdentifier?: string;
}

/**
* The encryption properties for the IoT hub.
*/
export interface EncryptionPropertiesDescription {
/**
* The source of the key.
*/
keySource?: string;
/**
* The properties of the KeyVault key.
*/
keyVaultProperties?: KeyVaultKeyProperties[];
}

/**
* Public representation of one of the locations where a resource is provisioned.
*/
Expand Down Expand Up @@ -845,19 +811,11 @@ export interface IotHubProperties {
* IoT hub comments.
*/
comments?: string;
/**
* The device streams properties of iothub.
*/
deviceStreams?: IotHubPropertiesDeviceStreams;
/**
* The capabilities and features enabled for the IoT hub. Possible values include: 'None',
* 'DeviceManagement'
*/
features?: Capabilities;
/**
* The encryption properties for the IoT hub.
*/
encryption?: EncryptionPropertiesDescription;
/**
* Primary and secondary location for iot hub
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1417,7 +1375,7 @@ export interface RoutingTwin {
export interface TestAllRoutesInput {
/**
* Routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents',
* 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents', 'DigitalTwinChangeEvents'
* 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'
*/
routingSource?: RoutingSource;
/**
Expand Down Expand Up @@ -1560,6 +1518,15 @@ export interface ExportDevicesRequest {
* values include: 'keyBased', 'identityBased'
*/
authenticationType?: AuthenticationType;
/**
* The value indicating whether configurations should be exported.
*/
includeConfigurations?: boolean;
/**
* The name of the blob that will be created in the provided output blob container. This blob
* will contain the exported configurations for the Iot Hub.
*/
configurationsBlobName?: string;
}

/**
Expand Down Expand Up @@ -1587,6 +1554,14 @@ export interface ImportDevicesRequest {
* values include: 'keyBased', 'identityBased'
*/
authenticationType?: AuthenticationType;
/**
* The value indicating whether configurations should be imported.
*/
includeConfigurations?: boolean;
/**
* The blob name to be used when importing configurations from the provided input blob container.
*/
configurationsBlobName?: string;
}

/**
Expand Down Expand Up @@ -1830,11 +1805,11 @@ export type AuthenticationType = 'keyBased' | 'identityBased';
/**
* Defines values for RoutingSource.
* Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents',
* 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents', 'DigitalTwinChangeEvents'
* 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'
* @readonly
* @enum {string}
*/
export type RoutingSource = 'Invalid' | 'DeviceMessages' | 'TwinChangeEvents' | 'DeviceLifecycleEvents' | 'DeviceJobLifecycleEvents' | 'DigitalTwinChangeEvents';
export type RoutingSource = 'Invalid' | 'DeviceMessages' | 'TwinChangeEvents' | 'DeviceLifecycleEvents' | 'DeviceJobLifecycleEvents';

/**
* Defines values for Capabilities.
Expand Down
3 changes: 0 additions & 3 deletions sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export {
CertificateWithNonceDescription,
CloudError,
CloudToDeviceProperties,
EncryptionPropertiesDescription,
EndpointHealthData,
EndpointHealthDataListResult,
EnrichmentProperties,
Expand All @@ -34,7 +33,6 @@ export {
IotHubLocationDescription,
IotHubNameAvailabilityInfo,
IotHubProperties,
IotHubPropertiesDeviceStreams,
IotHubQuotaMetricInfo,
IotHubQuotaMetricInfoListResult,
IotHubSkuDescription,
Expand All @@ -43,7 +41,6 @@ export {
IpFilterRule,
JobResponse,
JobResponseListResult,
KeyVaultKeyProperties,
MatchedRoute,
MessagingEndpointProperties,
OperationInputs,
Expand Down
103 changes: 24 additions & 79 deletions sdk/iothub/arm-iothub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1199,71 +1199,6 @@ export const CloudToDeviceProperties: msRest.CompositeMapper = {
}
};

export const IotHubPropertiesDeviceStreams: msRest.CompositeMapper = {
serializedName: "IotHubProperties_deviceStreams",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams",
modelProperties: {
streamingEndpoints: {
serializedName: "streamingEndpoints",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const KeyVaultKeyProperties: msRest.CompositeMapper = {
serializedName: "KeyVaultKeyProperties",
type: {
name: "Composite",
className: "KeyVaultKeyProperties",
modelProperties: {
keyIdentifier: {
serializedName: "keyIdentifier",
type: {
name: "String"
}
}
}
}
};

export const EncryptionPropertiesDescription: msRest.CompositeMapper = {
serializedName: "EncryptionPropertiesDescription",
type: {
name: "Composite",
className: "EncryptionPropertiesDescription",
modelProperties: {
keySource: {
serializedName: "keySource",
type: {
name: "String"
}
},
keyVaultProperties: {
serializedName: "keyVaultProperties",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "KeyVaultKeyProperties"
}
}
}
}
}
}
};

export const IotHubLocationDescription: msRest.CompositeMapper = {
serializedName: "IotHubLocationDescription",
type: {
Expand Down Expand Up @@ -1423,26 +1358,12 @@ export const IotHubProperties: msRest.CompositeMapper = {
name: "String"
}
},
deviceStreams: {
serializedName: "deviceStreams",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams"
}
},
features: {
serializedName: "features",
type: {
name: "String"
}
},
encryption: {
serializedName: "encryption",
type: {
name: "Composite",
className: "EncryptionPropertiesDescription"
}
},
locations: {
readOnly: true,
serializedName: "locations",
Expand Down Expand Up @@ -2630,6 +2551,18 @@ export const ExportDevicesRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
},
includeConfigurations: {
serializedName: "includeConfigurations",
type: {
name: "Boolean"
}
},
configurationsBlobName: {
serializedName: "configurationsBlobName",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -2672,6 +2605,18 @@ export const ImportDevicesRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
},
includeConfigurations: {
serializedName: "includeConfigurations",
type: {
name: "Boolean"
}
},
configurationsBlobName: {
serializedName: "configurationsBlobName",
type: {
name: "String"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export {
CertificatePropertiesWithNonce,
CertificateWithNonceDescription,
CloudToDeviceProperties,
EncryptionPropertiesDescription,
EnrichmentProperties,
ErrorDetails,
EventHubConsumerGroupInfo,
Expand All @@ -23,10 +22,8 @@ export {
IotHubDescription,
IotHubLocationDescription,
IotHubProperties,
IotHubPropertiesDeviceStreams,
IotHubSkuInfo,
IpFilterRule,
KeyVaultKeyProperties,
MessagingEndpointProperties,
PrivateEndpoint,
PrivateEndpointConnection,
Expand Down

0 comments on commit 3b9b668

Please sign in to comment.