From e18c4ece64ddf4fea5b4c8ee80e62c940e0fbf0c Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Sun, 25 Oct 2020 20:06:34 +0000 Subject: [PATCH] Generated from 1c5114071d69cc6b1358e0d5ef907f99654d57cb --- .../arm-iothub/src/iotHubClientContext.ts | 2 +- .../src/models/certificatesMappers.ts | 3 - sdk/iothub/arm-iothub/src/models/index.ts | 67 ++++-------- .../src/models/iotHubResourceMappers.ts | 3 - sdk/iothub/arm-iothub/src/models/mappers.ts | 103 ++++-------------- .../privateEndpointConnectionsMappers.ts | 3 - 6 files changed, 46 insertions(+), 135 deletions(-) diff --git a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts index 738b6ce032e1..70cd9444cf3a 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts @@ -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"; diff --git a/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts b/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts index dc7bfc670f6d..e6d7ca990213 100644 --- a/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts @@ -15,7 +15,6 @@ export { CertificateVerificationDescription, CertificateWithNonceDescription, CloudToDeviceProperties, - EncryptionPropertiesDescription, EnrichmentProperties, ErrorDetails, EventHubConsumerGroupInfo, @@ -25,10 +24,8 @@ export { IotHubDescription, IotHubLocationDescription, IotHubProperties, - IotHubPropertiesDeviceStreams, IotHubSkuInfo, IpFilterRule, - KeyVaultKeyProperties, MessagingEndpointProperties, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/iothub/arm-iothub/src/models/index.ts b/sdk/iothub/arm-iothub/src/models/index.ts index f17e276b9695..1d1091080e83 100644 --- a/sdk/iothub/arm-iothub/src/models/index.ts +++ b/sdk/iothub/arm-iothub/src/models/index.ts @@ -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; /** @@ -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. */ @@ -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.** @@ -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; /** @@ -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; } /** @@ -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; } /** @@ -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. diff --git a/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts b/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts index c23ba0c05f1c..92a9788ce55c 100644 --- a/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts @@ -14,7 +14,6 @@ export { CertificateWithNonceDescription, CloudError, CloudToDeviceProperties, - EncryptionPropertiesDescription, EndpointHealthData, EndpointHealthDataListResult, EnrichmentProperties, @@ -34,7 +33,6 @@ export { IotHubLocationDescription, IotHubNameAvailabilityInfo, IotHubProperties, - IotHubPropertiesDeviceStreams, IotHubQuotaMetricInfo, IotHubQuotaMetricInfoListResult, IotHubSkuDescription, @@ -43,7 +41,6 @@ export { IpFilterRule, JobResponse, JobResponseListResult, - KeyVaultKeyProperties, MatchedRoute, MessagingEndpointProperties, OperationInputs, diff --git a/sdk/iothub/arm-iothub/src/models/mappers.ts b/sdk/iothub/arm-iothub/src/models/mappers.ts index c31f5a915071..c88826050dc4 100644 --- a/sdk/iothub/arm-iothub/src/models/mappers.ts +++ b/sdk/iothub/arm-iothub/src/models/mappers.ts @@ -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: { @@ -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", @@ -2630,6 +2551,18 @@ export const ExportDevicesRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + includeConfigurations: { + serializedName: "includeConfigurations", + type: { + name: "Boolean" + } + }, + configurationsBlobName: { + serializedName: "configurationsBlobName", + type: { + name: "String" + } } } } @@ -2672,6 +2605,18 @@ export const ImportDevicesRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + includeConfigurations: { + serializedName: "includeConfigurations", + type: { + name: "Boolean" + } + }, + configurationsBlobName: { + serializedName: "configurationsBlobName", + type: { + name: "String" + } } } } diff --git a/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts b/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts index 7827700fb006..ae3bdccf89d6 100644 --- a/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts @@ -13,7 +13,6 @@ export { CertificatePropertiesWithNonce, CertificateWithNonceDescription, CloudToDeviceProperties, - EncryptionPropertiesDescription, EnrichmentProperties, ErrorDetails, EventHubConsumerGroupInfo, @@ -23,10 +22,8 @@ export { IotHubDescription, IotHubLocationDescription, IotHubProperties, - IotHubPropertiesDeviceStreams, IotHubSkuInfo, IpFilterRule, - KeyVaultKeyProperties, MessagingEndpointProperties, PrivateEndpoint, PrivateEndpointConnection,