diff --git a/sdk/iothub/arm-iothub/README.md b/sdk/iothub/arm-iothub/README.md index 2b1111bb8182..e288c707c33c 100644 --- a/sdk/iothub/arm-iothub/README.md +++ b/sdk/iothub/arm-iothub/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-iothub ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { IotHubClient, IotHubModels, IotHubMappers } from "@azure/arm-iothub"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { IotHubClient } = require("@azure/arm-iothub"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/iothub/arm-iothub/rollup.config.js b/sdk/iothub/arm-iothub/rollup.config.js index c38caace5654..148271feabca 100644 --- a/sdk/iothub/arm-iothub/rollup.config.js +++ b/sdk/iothub/arm-iothub/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/iothub/arm-iothub/src/iotHubClient.ts b/sdk/iothub/arm-iothub/src/iotHubClient.ts index 4d85c1a6c854..5a1614c70621 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClient.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts index 738b6ce032e1..e5770dbaffa0 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -44,7 +43,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2020-07-10-preview'; + this.apiVersion = '2020-08-31'; 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..a77e41d71d33 100644 --- a/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/certificatesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,7 +15,6 @@ export { CertificateVerificationDescription, CertificateWithNonceDescription, CloudToDeviceProperties, - EncryptionPropertiesDescription, EnrichmentProperties, ErrorDetails, EventHubConsumerGroupInfo, @@ -25,11 +24,11 @@ export { IotHubDescription, IotHubLocationDescription, IotHubProperties, - IotHubPropertiesDeviceStreams, IotHubSkuInfo, IpFilterRule, - KeyVaultKeyProperties, MessagingEndpointProperties, + NetworkRuleSetIpRule, + NetworkRuleSetProperties, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionProperties, diff --git a/sdk/iothub/arm-iothub/src/models/index.ts b/sdk/iothub/arm-iothub/src/models/index.ts index f17e276b9695..2a4120f80873 100644 --- a/sdk/iothub/arm-iothub/src/models/index.ts +++ b/sdk/iothub/arm-iothub/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -229,6 +229,43 @@ export interface IpFilterRule { ipMask: string; } +/** + * IP Rule to be applied as part of Network Rule Set + */ +export interface NetworkRuleSetIpRule { + /** + * Name of the IP filter rule. + */ + filterName: string; + /** + * IP Filter Action. Possible values include: 'Allow'. Default value: 'Allow'. + */ + action?: NetworkRuleIPAction; + /** + * A string that contains the IP address range in CIDR notation for the rule. + */ + ipMask: string; +} + +/** + * Network Rule Set Properties of IotHub + */ +export interface NetworkRuleSetProperties { + /** + * Default Action for Network Rule Set. Possible values include: 'Deny', 'Allow'. Default value: + * 'Deny'. + */ + defaultAction?: DefaultAction; + /** + * If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub + */ + applyToBuiltInEventHubEndpoint: boolean; + /** + * List of IP Rules + */ + ipRules: NetworkRuleSetIpRule[]; +} + /** * The private endpoint property of a private endpoint connection */ @@ -551,7 +588,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 +763,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. */ @@ -794,6 +797,7 @@ export interface IotHubProperties { * The IP filter rules. */ ipFilterRules?: IpFilterRule[]; + networkRuleSets?: NetworkRuleSetProperties; /** * Specifies the minimum TLS version to support for this hub. Can be set to "1.2" to have clients * that use a TLS version below 1.2 to be rejected. @@ -845,19 +849,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 +1413,7 @@ export interface RoutingTwin { export interface TestAllRoutesInput { /** * Routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', - * 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents', 'DigitalTwinChangeEvents' + * 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents' */ routingSource?: RoutingSource; /** @@ -1560,6 +1556,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 +1592,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; } /** @@ -1811,6 +1824,22 @@ export type PublicNetworkAccess = 'Enabled' | 'Disabled'; */ export type IpFilterActionType = 'Accept' | 'Reject'; +/** + * Defines values for DefaultAction. + * Possible values include: 'Deny', 'Allow' + * @readonly + * @enum {string} + */ +export type DefaultAction = 'Deny' | 'Allow'; + +/** + * Defines values for NetworkRuleIPAction. + * Possible values include: 'Allow' + * @readonly + * @enum {string} + */ +export type NetworkRuleIPAction = 'Allow'; + /** * Defines values for PrivateLinkServiceConnectionStatus. * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' @@ -1830,11 +1859,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/iotHubMappers.ts b/sdk/iothub/arm-iothub/src/models/iotHubMappers.ts index 7714701e2033..65f15ad87e82 100644 --- a/sdk/iothub/arm-iothub/src/models/iotHubMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/iotHubMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts b/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts index c23ba0c05f1c..b108546fe160 100644 --- a/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -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,9 +41,10 @@ export { IpFilterRule, JobResponse, JobResponseListResult, - KeyVaultKeyProperties, MatchedRoute, MessagingEndpointProperties, + NetworkRuleSetIpRule, + NetworkRuleSetProperties, OperationInputs, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/iothub/arm-iothub/src/models/mappers.ts b/sdk/iothub/arm-iothub/src/models/mappers.ts index c31f5a915071..6a5ae1f7ed5d 100644 --- a/sdk/iothub/arm-iothub/src/models/mappers.ts +++ b/sdk/iothub/arm-iothub/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -368,6 +368,74 @@ export const IpFilterRule: msRest.CompositeMapper = { } }; +export const NetworkRuleSetIpRule: msRest.CompositeMapper = { + serializedName: "NetworkRuleSetIpRule", + type: { + name: "Composite", + className: "NetworkRuleSetIpRule", + modelProperties: { + filterName: { + required: true, + serializedName: "filterName", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + defaultValue: 'Allow', + type: { + name: "String" + } + }, + ipMask: { + required: true, + serializedName: "ipMask", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkRuleSetProperties: msRest.CompositeMapper = { + serializedName: "NetworkRuleSetProperties", + type: { + name: "Composite", + className: "NetworkRuleSetProperties", + modelProperties: { + defaultAction: { + serializedName: "defaultAction", + defaultValue: 'Deny', + type: { + name: "String" + } + }, + applyToBuiltInEventHubEndpoint: { + required: true, + serializedName: "applyToBuiltInEventHubEndpoint", + type: { + name: "Boolean" + } + }, + ipRules: { + required: true, + serializedName: "ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkRuleSetIpRule" + } + } + } + } + } + } +}; + export const PrivateEndpoint: msRest.CompositeMapper = { serializedName: "PrivateEndpoint", type: { @@ -1199,71 +1267,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: { @@ -1322,6 +1325,13 @@ export const IotHubProperties: msRest.CompositeMapper = { } } }, + networkRuleSets: { + serializedName: "networkRuleSets", + type: { + name: "Composite", + className: "NetworkRuleSetProperties" + } + }, minTlsVersion: { serializedName: "minTlsVersion", type: { @@ -1423,26 +1433,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 +2626,18 @@ export const ExportDevicesRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + includeConfigurations: { + serializedName: "includeConfigurations", + type: { + name: "Boolean" + } + }, + configurationsBlobName: { + serializedName: "configurationsBlobName", + type: { + name: "String" + } } } } @@ -2672,6 +2680,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/operationsMappers.ts b/sdk/iothub/arm-iothub/src/models/operationsMappers.ts index 5d69c8a954f1..b050cda5b1fc 100644 --- a/sdk/iothub/arm-iothub/src/models/operationsMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/iothub/arm-iothub/src/models/parameters.ts b/sdk/iothub/arm-iothub/src/models/parameters.ts index d6af8b8b325d..bf980b5229d1 100644 --- a/sdk/iothub/arm-iothub/src/models/parameters.ts +++ b/sdk/iothub/arm-iothub/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts b/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts index 7827700fb006..64e5ce1288a0 100644 --- a/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/privateEndpointConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { CertificatePropertiesWithNonce, CertificateWithNonceDescription, CloudToDeviceProperties, - EncryptionPropertiesDescription, EnrichmentProperties, ErrorDetails, EventHubConsumerGroupInfo, @@ -23,11 +22,11 @@ export { IotHubDescription, IotHubLocationDescription, IotHubProperties, - IotHubPropertiesDeviceStreams, IotHubSkuInfo, IpFilterRule, - KeyVaultKeyProperties, MessagingEndpointProperties, + NetworkRuleSetIpRule, + NetworkRuleSetProperties, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionProperties, diff --git a/sdk/iothub/arm-iothub/src/models/privateLinkResourcesOperationsMappers.ts b/sdk/iothub/arm-iothub/src/models/privateLinkResourcesOperationsMappers.ts index 31b1880fa611..97770ac159b2 100644 --- a/sdk/iothub/arm-iothub/src/models/privateLinkResourcesOperationsMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/privateLinkResourcesOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/iothub/arm-iothub/src/models/resourceProviderCommonMappers.ts b/sdk/iothub/arm-iothub/src/models/resourceProviderCommonMappers.ts index 232343c4f750..ba9ba8659584 100644 --- a/sdk/iothub/arm-iothub/src/models/resourceProviderCommonMappers.ts +++ b/sdk/iothub/arm-iothub/src/models/resourceProviderCommonMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/iothub/arm-iothub/src/operations/certificates.ts b/sdk/iothub/arm-iothub/src/operations/certificates.ts index 6bce1e641031..8ea621758896 100644 --- a/sdk/iothub/arm-iothub/src/operations/certificates.ts +++ b/sdk/iothub/arm-iothub/src/operations/certificates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/operations/index.ts b/sdk/iothub/arm-iothub/src/operations/index.ts index 5219b2ebc987..3b1febaa937b 100644 --- a/sdk/iothub/arm-iothub/src/operations/index.ts +++ b/sdk/iothub/arm-iothub/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/operations/iotHub.ts b/sdk/iothub/arm-iothub/src/operations/iotHub.ts index efa557569c3a..0f0f2d75ce7c 100644 --- a/sdk/iothub/arm-iothub/src/operations/iotHub.ts +++ b/sdk/iothub/arm-iothub/src/operations/iotHub.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts index f7f4d226fb59..802c50bc9bf9 100644 --- a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts +++ b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -1749,6 +1748,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1770,6 +1772,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1791,6 +1796,9 @@ const getValidSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1812,6 +1820,9 @@ const listEventHubConsumerGroupsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1833,6 +1844,9 @@ const listJobsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1854,6 +1868,9 @@ const getQuotaMetricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1875,6 +1892,9 @@ const getEndpointHealthNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1896,6 +1916,9 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/iothub/arm-iothub/src/operations/operations.ts b/sdk/iothub/arm-iothub/src/operations/operations.ts index 1c9480e71f7b..b8ae9766132e 100644 --- a/sdk/iothub/arm-iothub/src/operations/operations.ts +++ b/sdk/iothub/arm-iothub/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts b/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts index 65fe4595b6a7..f334cfcd50ec 100644 --- a/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts +++ b/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts b/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts index 3063510eb6d8..ada51e543e33 100644 --- a/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts +++ b/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts b/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts index 40d9058c47cd..b6630c9fe15d 100644 --- a/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts +++ b/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is