From 82295c918ee791ef561c537e13066dc88d599d53 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 Sep 2021 09:20:41 +0000 Subject: [PATCH] CodeGen from PR 16113 in Azure/azure-rest-api-specs Merge 709c19c1a51b807fc96d5b09ced99aa6af8b2daf into a62f0a79c6abf6e876ca9816e13f206850dd7822 --- sdk/iothub/arm-iothub/README.md | 9 +- sdk/iothub/arm-iothub/package.json | 2 +- sdk/iothub/arm-iothub/rollup.config.js | 10 +- sdk/iothub/arm-iothub/src/iotHubClient.ts | 14 +- .../arm-iothub/src/iotHubClientContext.ts | 21 +- sdk/iothub/arm-iothub/src/models/index.ts | 1094 +++++++------ .../arm-iothub/src/models/iotHubMappers.ts | 5 +- sdk/iothub/arm-iothub/src/models/mappers.ts | 86 +- .../src/models/operationsMappers.ts | 7 +- .../arm-iothub/src/models/parameters.ts | 7 +- .../arm-iothub/src/operations/certificates.ts | 298 ++-- .../arm-iothub/src/operations/iotHub.ts | 42 +- .../src/operations/iotHubResource.ts | 1359 ++++++----------- .../arm-iothub/src/operations/operations.ts | 58 +- .../operations/privateEndpointConnections.ts | 171 +-- .../privateLinkResourcesOperations.ts | 90 +- .../src/operations/resourceProviderCommon.ts | 35 +- 17 files changed, 1353 insertions(+), 1955 deletions(-) diff --git a/sdk/iothub/arm-iothub/README.md b/sdk/iothub/arm-iothub/README.md index 2ca2ced02341..342c769ef2bd 100644 --- a/sdk/iothub/arm-iothub/README.md +++ b/sdk/iothub/arm-iothub/README.md @@ -1,11 +1,11 @@ ## Azure IotHubClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for IotHubClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for IotHubClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-iothub @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new IotHubClient(creds, subscriptionId); - client.operations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmIothub.IotHubClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/iothub/arm-iothub/package.json b/sdk/iothub/arm-iothub/package.json index a0fce779c597..7a89dfd8a621 100644 --- a/sdk/iothub/arm-iothub/package.json +++ b/sdk/iothub/arm-iothub/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/iothub/arm-iothub", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/iothub/arm-iothub", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/iothub/arm-iothub/rollup.config.js b/sdk/iothub/arm-iothub/rollup.config.js index 23da7f53f189..148271feabca 100644 --- a/sdk/iothub/arm-iothub/rollup.config.js +++ b/sdk/iothub/arm-iothub/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/iotHubClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-iothub.js", format: "umd", @@ -25,7 +28,10 @@ const config = { * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, - plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()] + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] }; export default config; diff --git a/sdk/iothub/arm-iothub/src/iotHubClient.ts b/sdk/iothub/arm-iothub/src/iotHubClient.ts index cab2738b2ec9..4df13a40e0ac 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClient.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClient.ts @@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { IotHubClientContext } from "./iotHubClientContext"; + class IotHubClient extends IotHubClientContext { // Operation groups operations: operations.Operations; @@ -35,11 +36,7 @@ class IotHubClient extends IotHubClientContext { * @param subscriptionId The subscription identifier. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.IotHubClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.iotHubResource = new operations.IotHubResource(this); @@ -53,5 +50,10 @@ class IotHubClient extends IotHubClientContext { // Operation Specifications -export { IotHubClient, IotHubClientContext, Models as IotHubModels, Mappers as IotHubMappers }; +export { + IotHubClient, + IotHubClientContext, + Models as IotHubModels, + Mappers as IotHubMappers +}; export * from "./operations"; diff --git a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts index f9aa52369431..1e0d3312bb1b 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-iothub"; const packageVersion = "5.1.1"; @@ -31,16 +31,12 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient { * @param subscriptionId The subscription identifier. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.IotHubClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -53,8 +49,8 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = "2021-03-31"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-07-01'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -64,10 +60,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient { if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/iothub/arm-iothub/src/models/index.ts b/sdk/iothub/arm-iothub/src/models/index.ts index 5404171a2105..76da9a063c2a 100644 --- a/sdk/iothub/arm-iothub/src/models/index.ts +++ b/sdk/iothub/arm-iothub/src/models/index.ts @@ -42,9 +42,8 @@ export interface CertificateProperties { readonly thumbprint?: string; /** * Determines whether certificate has been verified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isVerified?: boolean; + isVerified?: boolean; /** * The certificate's create date and time. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -106,6 +105,11 @@ export interface CertificateBodyDescription { * base-64 representation of the X509 leaf certificate .cer file or just .pem file content. */ certificate?: string; + /** + * True indicates that the certificate will be created in verified state and proof of possession + * will not be required. + */ + isVerified?: boolean; } /** @@ -818,6 +822,28 @@ export interface IotHubProperties { * The shared access policies you can use to secure a connection to the IoT hub. */ authorizationPolicies?: SharedAccessSignatureAuthorizationRule[]; + /** + * If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication. + */ + disableLocalAuth?: boolean; + /** + * If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be + * used for authentication. + */ + disableDeviceSAS?: boolean; + /** + * If true, all module scoped SAS keys cannot be used for authentication. + */ + disableModuleSAS?: boolean; + /** + * If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured + * via allowedFqdnList. + */ + restrictOutboundNetworkAccess?: boolean; + /** + * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub. + */ + allowedFqdnList?: string[]; /** * Whether requests from Public Network are allowed. Possible values include: 'Enabled', * 'Disabled' @@ -1860,8 +1886,7 @@ export interface EndpointHealthDataListResult extends Array * The list of shared access policies with a next link. * @extends Array */ -export interface SharedAccessSignatureAuthorizationRuleListResult - extends Array { +export interface SharedAccessSignatureAuthorizationRuleListResult extends Array { /** * The next link. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1880,22 +1905,7 @@ export interface SharedAccessSignatureAuthorizationRuleListResult * @readonly * @enum {string} */ -export type AccessRights = - | "RegistryRead" - | "RegistryWrite" - | "ServiceConnect" - | "DeviceConnect" - | "RegistryRead, RegistryWrite" - | "RegistryRead, ServiceConnect" - | "RegistryRead, DeviceConnect" - | "RegistryWrite, ServiceConnect" - | "RegistryWrite, DeviceConnect" - | "ServiceConnect, DeviceConnect" - | "RegistryRead, RegistryWrite, ServiceConnect" - | "RegistryRead, RegistryWrite, DeviceConnect" - | "RegistryRead, ServiceConnect, DeviceConnect" - | "RegistryWrite, ServiceConnect, DeviceConnect" - | "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"; +export type AccessRights = 'RegistryRead' | 'RegistryWrite' | 'ServiceConnect' | 'DeviceConnect' | 'RegistryRead, RegistryWrite' | 'RegistryRead, ServiceConnect' | 'RegistryRead, DeviceConnect' | 'RegistryWrite, ServiceConnect' | 'RegistryWrite, DeviceConnect' | 'ServiceConnect, DeviceConnect' | 'RegistryRead, RegistryWrite, ServiceConnect' | 'RegistryRead, RegistryWrite, DeviceConnect' | 'RegistryRead, ServiceConnect, DeviceConnect' | 'RegistryWrite, ServiceConnect, DeviceConnect' | 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'; /** * Defines values for PublicNetworkAccess. @@ -1903,7 +1913,7 @@ export type AccessRights = * @readonly * @enum {string} */ -export type PublicNetworkAccess = "Enabled" | "Disabled"; +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; /** * Defines values for IpFilterActionType. @@ -1911,7 +1921,7 @@ export type PublicNetworkAccess = "Enabled" | "Disabled"; * @readonly * @enum {string} */ -export type IpFilterActionType = "Accept" | "Reject"; +export type IpFilterActionType = 'Accept' | 'Reject'; /** * Defines values for DefaultAction. @@ -1919,7 +1929,7 @@ export type IpFilterActionType = "Accept" | "Reject"; * @readonly * @enum {string} */ -export type DefaultAction = "Deny" | "Allow"; +export type DefaultAction = 'Deny' | 'Allow'; /** * Defines values for NetworkRuleIPAction. @@ -1927,7 +1937,7 @@ export type DefaultAction = "Deny" | "Allow"; * @readonly * @enum {string} */ -export type NetworkRuleIPAction = "Allow"; +export type NetworkRuleIPAction = 'Allow'; /** * Defines values for PrivateLinkServiceConnectionStatus. @@ -1935,11 +1945,7 @@ export type NetworkRuleIPAction = "Allow"; * @readonly * @enum {string} */ -export type PrivateLinkServiceConnectionStatus = - | "Pending" - | "Approved" - | "Rejected" - | "Disconnected"; +export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; /** * Defines values for AuthenticationType. @@ -1947,7 +1953,7 @@ export type PrivateLinkServiceConnectionStatus = * @readonly * @enum {string} */ -export type AuthenticationType = "keyBased" | "identityBased"; +export type AuthenticationType = 'keyBased' | 'identityBased'; /** * Defines values for RoutingSource. @@ -1956,13 +1962,7 @@ export type AuthenticationType = "keyBased" | "identityBased"; * @readonly * @enum {string} */ -export type RoutingSource = - | "Invalid" - | "DeviceMessages" - | "TwinChangeEvents" - | "DeviceLifecycleEvents" - | "DeviceJobLifecycleEvents" - | "DeviceConnectionStateEvents"; +export type RoutingSource = 'Invalid' | 'DeviceMessages' | 'TwinChangeEvents' | 'DeviceLifecycleEvents' | 'DeviceJobLifecycleEvents' | 'DeviceConnectionStateEvents'; /** * Defines values for Capabilities. @@ -1970,7 +1970,7 @@ export type RoutingSource = * @readonly * @enum {string} */ -export type Capabilities = "None" | "DeviceManagement"; +export type Capabilities = 'None' | 'DeviceManagement'; /** * Defines values for IotHubReplicaRoleType. @@ -1978,7 +1978,7 @@ export type Capabilities = "None" | "DeviceManagement"; * @readonly * @enum {string} */ -export type IotHubReplicaRoleType = "primary" | "secondary"; +export type IotHubReplicaRoleType = 'primary' | 'secondary'; /** * Defines values for IotHubSku. @@ -1986,7 +1986,7 @@ export type IotHubReplicaRoleType = "primary" | "secondary"; * @readonly * @enum {string} */ -export type IotHubSku = "F1" | "S1" | "S2" | "S3" | "B1" | "B2" | "B3"; +export type IotHubSku = 'F1' | 'S1' | 'S2' | 'S3' | 'B1' | 'B2' | 'B3'; /** * Defines values for IotHubSkuTier. @@ -1994,7 +1994,7 @@ export type IotHubSku = "F1" | "S1" | "S2" | "S3" | "B1" | "B2" | "B3"; * @readonly * @enum {string} */ -export type IotHubSkuTier = "Free" | "Standard" | "Basic"; +export type IotHubSkuTier = 'Free' | 'Standard' | 'Basic'; /** * Defines values for ResourceIdentityType. @@ -2003,11 +2003,7 @@ export type IotHubSkuTier = "Free" | "Standard" | "Basic"; * @readonly * @enum {string} */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** * Defines values for EndpointHealthStatus. @@ -2015,7 +2011,7 @@ export type ResourceIdentityType = * @readonly * @enum {string} */ -export type EndpointHealthStatus = "unknown" | "healthy" | "degraded" | "unhealthy" | "dead"; +export type EndpointHealthStatus = 'unknown' | 'healthy' | 'degraded' | 'unhealthy' | 'dead'; /** * Defines values for JobType. @@ -2025,17 +2021,7 @@ export type EndpointHealthStatus = "unknown" | "healthy" | "degraded" | "unhealt * @readonly * @enum {string} */ -export type JobType = - | "unknown" - | "export" - | "import" - | "backup" - | "readDeviceProperties" - | "writeDeviceProperties" - | "updateDeviceConfiguration" - | "rebootDevice" - | "factoryResetDevice" - | "firmwareUpdate"; +export type JobType = 'unknown' | 'export' | 'import' | 'backup' | 'readDeviceProperties' | 'writeDeviceProperties' | 'updateDeviceConfiguration' | 'rebootDevice' | 'factoryResetDevice' | 'firmwareUpdate'; /** * Defines values for JobStatus. @@ -2043,7 +2029,7 @@ export type JobType = * @readonly * @enum {string} */ -export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "failed" | "cancelled"; +export type JobStatus = 'unknown' | 'enqueued' | 'running' | 'completed' | 'failed' | 'cancelled'; /** * Defines values for IotHubScaleType. @@ -2051,7 +2037,7 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail * @readonly * @enum {string} */ -export type IotHubScaleType = "Automatic" | "Manual" | "None"; +export type IotHubScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for IotHubNameUnavailabilityReason. @@ -2059,7 +2045,7 @@ export type IotHubScaleType = "Automatic" | "Manual" | "None"; * @readonly * @enum {string} */ -export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists"; +export type IotHubNameUnavailabilityReason = 'Invalid' | 'AlreadyExists'; /** * Defines values for TestResultStatus. @@ -2067,7 +2053,7 @@ export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists"; * @readonly * @enum {string} */ -export type TestResultStatus = "undefined" | "false" | "true"; +export type TestResultStatus = 'undefined' | 'false' | 'true'; /** * Defines values for RouteErrorSeverity. @@ -2075,7 +2061,7 @@ export type TestResultStatus = "undefined" | "false" | "true"; * @readonly * @enum {string} */ -export type RouteErrorSeverity = "error" | "warning"; +export type RouteErrorSeverity = 'error' | 'warning'; /** * Defines values for Encoding. @@ -2083,7 +2069,7 @@ export type RouteErrorSeverity = "error" | "warning"; * @readonly * @enum {string} */ -export type Encoding = "Avro" | "AvroDeflate" | "JSON"; +export type Encoding = 'Avro' | 'AvroDeflate' | 'JSON'; /** * Contains response data for the list operation. @@ -2093,16 +2079,16 @@ export type OperationsListResponse = OperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2113,16 +2099,16 @@ export type OperationsListNextResponse = OperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2133,16 +2119,16 @@ export type IotHubResourceGetResponse = IotHubDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescription; + }; }; /** @@ -2153,16 +2139,16 @@ export type IotHubResourceCreateOrUpdateResponse = IotHubDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescription; + }; }; /** @@ -2173,16 +2159,16 @@ export type IotHubResourceUpdateResponse = IotHubDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescription; + }; }; /** @@ -2198,16 +2184,16 @@ export type IotHubResourceDeleteMethodResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2218,16 +2204,16 @@ export type IotHubResourceListBySubscriptionResponse = IotHubDescriptionListResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescriptionListResult; + }; }; /** @@ -2238,16 +2224,16 @@ export type IotHubResourceListByResourceGroupResponse = IotHubDescriptionListRes * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescriptionListResult; + }; }; /** @@ -2258,16 +2244,16 @@ export type IotHubResourceGetStatsResponse = RegistryStatistics & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryStatistics; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RegistryStatistics; + }; }; /** @@ -2278,16 +2264,16 @@ export type IotHubResourceGetValidSkusResponse = IotHubSkuDescriptionListResult * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubSkuDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubSkuDescriptionListResult; + }; }; /** @@ -2298,16 +2284,16 @@ export type IotHubResourceListEventHubConsumerGroupsResponse = EventHubConsumerG * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventHubConsumerGroupsListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventHubConsumerGroupsListResult; + }; }; /** @@ -2318,16 +2304,16 @@ export type IotHubResourceGetEventHubConsumerGroupResponse = EventHubConsumerGro * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventHubConsumerGroupInfo; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventHubConsumerGroupInfo; + }; }; /** @@ -2338,16 +2324,16 @@ export type IotHubResourceCreateEventHubConsumerGroupResponse = EventHubConsumer * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventHubConsumerGroupInfo; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventHubConsumerGroupInfo; + }; }; /** @@ -2358,16 +2344,16 @@ export type IotHubResourceListJobsResponse = JobResponseListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobResponseListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobResponseListResult; + }; }; /** @@ -2378,16 +2364,16 @@ export type IotHubResourceGetJobResponse = JobResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobResponse; + }; }; /** @@ -2398,16 +2384,16 @@ export type IotHubResourceGetQuotaMetricsResponse = IotHubQuotaMetricInfoListRes * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubQuotaMetricInfoListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubQuotaMetricInfoListResult; + }; }; /** @@ -2418,16 +2404,16 @@ export type IotHubResourceGetEndpointHealthResponse = EndpointHealthDataListResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EndpointHealthDataListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EndpointHealthDataListResult; + }; }; /** @@ -2438,16 +2424,16 @@ export type IotHubResourceCheckNameAvailabilityResponse = IotHubNameAvailability * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubNameAvailabilityInfo; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubNameAvailabilityInfo; + }; }; /** @@ -2458,16 +2444,16 @@ export type IotHubResourceTestAllRoutesResponse = TestAllRoutesResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TestAllRoutesResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestAllRoutesResult; + }; }; /** @@ -2478,16 +2464,16 @@ export type IotHubResourceTestRouteResponse = TestRouteResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TestRouteResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestRouteResult; + }; }; /** @@ -2498,16 +2484,16 @@ export type IotHubResourceListKeysResponse = SharedAccessSignatureAuthorizationR * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SharedAccessSignatureAuthorizationRuleListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SharedAccessSignatureAuthorizationRuleListResult; + }; }; /** @@ -2518,16 +2504,16 @@ export type IotHubResourceGetKeysForKeyNameResponse = SharedAccessSignatureAutho * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SharedAccessSignatureAuthorizationRule; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SharedAccessSignatureAuthorizationRule; + }; }; /** @@ -2538,16 +2524,16 @@ export type IotHubResourceExportDevicesResponse = JobResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobResponse; + }; }; /** @@ -2558,16 +2544,16 @@ export type IotHubResourceImportDevicesResponse = JobResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobResponse; + }; }; /** @@ -2578,16 +2564,16 @@ export type IotHubResourceBeginCreateOrUpdateResponse = IotHubDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescription; + }; }; /** @@ -2598,16 +2584,16 @@ export type IotHubResourceBeginUpdateResponse = IotHubDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescription; + }; }; /** @@ -2623,16 +2609,16 @@ export type IotHubResourceBeginDeleteMethodResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2643,16 +2629,16 @@ export type IotHubResourceListBySubscriptionNextResponse = IotHubDescriptionList * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescriptionListResult; + }; }; /** @@ -2663,16 +2649,16 @@ export type IotHubResourceListByResourceGroupNextResponse = IotHubDescriptionLis * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubDescriptionListResult; + }; }; /** @@ -2683,16 +2669,16 @@ export type IotHubResourceGetValidSkusNextResponse = IotHubSkuDescriptionListRes * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubSkuDescriptionListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubSkuDescriptionListResult; + }; }; /** @@ -2703,16 +2689,16 @@ export type IotHubResourceListEventHubConsumerGroupsNextResponse = EventHubConsu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventHubConsumerGroupsListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventHubConsumerGroupsListResult; + }; }; /** @@ -2723,16 +2709,16 @@ export type IotHubResourceListJobsNextResponse = JobResponseListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobResponseListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobResponseListResult; + }; }; /** @@ -2743,16 +2729,16 @@ export type IotHubResourceGetQuotaMetricsNextResponse = IotHubQuotaMetricInfoLis * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotHubQuotaMetricInfoListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotHubQuotaMetricInfoListResult; + }; }; /** @@ -2763,16 +2749,16 @@ export type IotHubResourceGetEndpointHealthNextResponse = EndpointHealthDataList * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EndpointHealthDataListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EndpointHealthDataListResult; + }; }; /** @@ -2783,16 +2769,16 @@ export type IotHubResourceListKeysNextResponse = SharedAccessSignatureAuthorizat * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SharedAccessSignatureAuthorizationRuleListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SharedAccessSignatureAuthorizationRuleListResult; + }; }; /** @@ -2803,16 +2789,16 @@ export type ResourceProviderCommonGetSubscriptionQuotaResponse = UserSubscriptio * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: UserSubscriptionQuotaListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UserSubscriptionQuotaListResult; + }; }; /** @@ -2823,16 +2809,16 @@ export type CertificatesListByIotHubResponse = CertificateListDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateListDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateListDescription; + }; }; /** @@ -2843,16 +2829,16 @@ export type CertificatesGetResponse = CertificateDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateDescription; + }; }; /** @@ -2863,16 +2849,16 @@ export type CertificatesCreateOrUpdateResponse = CertificateDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateDescription; + }; }; /** @@ -2883,16 +2869,16 @@ export type CertificatesGenerateVerificationCodeResponse = CertificateWithNonceD * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateWithNonceDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateWithNonceDescription; + }; }; /** @@ -2903,16 +2889,16 @@ export type CertificatesVerifyResponse = CertificateDescription & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateDescription; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateDescription; + }; }; /** @@ -2923,16 +2909,16 @@ export type PrivateLinkResourcesListResponse = PrivateLinkResources & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResources; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResources; + }; }; /** @@ -2943,16 +2929,16 @@ export type PrivateLinkResourcesGetResponse = GroupIdInformation & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: GroupIdInformation; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupIdInformation; + }; }; /** @@ -2963,16 +2949,16 @@ export type PrivateEndpointConnectionsListResponse = Array */ - listByIotHub( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByIotHub(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - listByIotHub( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + listByIotHub(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - listByIotHub( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByIotHub( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByIotHub(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByIotHub(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class Certificates { options }, listByIotHubOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class Certificates { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, resourceName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - certificateName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, resourceName: string, certificateName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -111,20 +82,8 @@ export class Certificates { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, resourceName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class Certificates { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -146,24 +104,14 @@ export class Certificates { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options?: Models.CertificatesCreateOrUpdateOptionalParams - ): Promise; + createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options?: Models.CertificatesCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - certificateName: string, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -171,22 +119,8 @@ export class Certificates { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options: Models.CertificatesCreateOrUpdateOptionalParams, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - resourceGroupName: string, - resourceName: string, - certificateName: string, - options?: - | Models.CertificatesCreateOrUpdateOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options: Models.CertificatesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options?: Models.CertificatesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -195,8 +129,7 @@ export class Certificates { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -209,13 +142,7 @@ export class Certificates { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -223,13 +150,7 @@ export class Certificates { * @param ifMatch ETag of the Certificate. * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -238,22 +159,8 @@ export class Certificates { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -263,8 +170,7 @@ export class Certificates { options }, deleteMethodOperationSpec, - callback - ); + callback); } /** @@ -278,13 +184,7 @@ export class Certificates { * @param [options] The optional parameters * @returns Promise */ - generateVerificationCode( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: msRest.RequestOptionsBase - ): Promise; + generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -292,13 +192,7 @@ export class Certificates { * @param ifMatch ETag of the Certificate. * @param callback The callback */ - generateVerificationCode( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - callback: msRest.ServiceCallback - ): void; + generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -307,24 +201,8 @@ export class Certificates { * @param options The optional parameters * @param callback The callback */ - generateVerificationCode( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - generateVerificationCode( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -334,8 +212,7 @@ export class Certificates { options }, generateVerificationCodeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -349,13 +226,7 @@ export class Certificates { * @param [options] The optional parameters * @returns Promise */ - verify( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: Models.CertificatesVerifyOptionalParams - ): Promise; + verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: Models.CertificatesVerifyOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -363,13 +234,7 @@ export class Certificates { * @param ifMatch ETag of the Certificate. * @param callback The callback */ - verify( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - callback: msRest.ServiceCallback - ): void; + verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -378,24 +243,8 @@ export class Certificates { * @param options The optional parameters * @param callback The callback */ - verify( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options: Models.CertificatesVerifyOptionalParams, - callback: msRest.ServiceCallback - ): void; - verify( - resourceGroupName: string, - resourceName: string, - certificateName: string, - ifMatch: string, - options?: - | Models.CertificatesVerifyOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: Models.CertificatesVerifyOptionalParams, callback: msRest.ServiceCallback): void; + verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: Models.CertificatesVerifyOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -405,8 +254,7 @@ export class Certificates { options }, verifyOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -414,11 +262,18 @@ export class Certificates { const serializer = new msRest.Serializer(Mappers); const listByIotHubOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CertificateListDescription @@ -432,16 +287,19 @@ const listByIotHubOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.certificateName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CertificateDescription @@ -455,19 +313,26 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.certificateName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.ifMatch0, Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], requestBody: { parameterPath: { - properties: ["options", "properties"] + properties: [ + "options", + "properties" + ] }, mapper: { ...Mappers.CertificateDescription, @@ -490,16 +355,20 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.certificateName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, @@ -512,16 +381,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const generateVerificationCodeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.certificateName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CertificateWithNonceDescription @@ -535,19 +408,26 @@ const generateVerificationCodeOperationSpec: msRest.OperationSpec = { const verifyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.certificateName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], requestBody: { parameterPath: { - certificate: ["options", "certificate"] + certificate: [ + "options", + "certificate" + ] }, mapper: { ...Mappers.CertificateVerificationDescription, diff --git a/sdk/iothub/arm-iothub/src/operations/iotHub.ts b/sdk/iothub/arm-iothub/src/operations/iotHub.ts index 4613127cff36..0f0f2d75ce7c 100644 --- a/sdk/iothub/arm-iothub/src/operations/iotHub.ts +++ b/sdk/iothub/arm-iothub/src/operations/iotHub.ts @@ -35,18 +35,9 @@ export class IotHub { * @param [options] The optional parameters * @returns Promise */ - manualFailover( - iotHubName: string, - resourceGroupName: string, - failoverRegion: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginManualFailover( - iotHubName, - resourceGroupName, - failoverRegion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + manualFailover(iotHubName: string, resourceGroupName: string, failoverRegion: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginManualFailover(iotHubName,resourceGroupName,failoverRegion,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -59,12 +50,7 @@ export class IotHub { * @param [options] The optional parameters * @returns Promise */ - beginManualFailover( - iotHubName: string, - resourceGroupName: string, - failoverRegion: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginManualFailover(iotHubName: string, resourceGroupName: string, failoverRegion: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { iotHubName, @@ -73,8 +59,7 @@ export class IotHub { options }, beginManualFailoverOperationSpec, - options - ); + options); } } @@ -82,11 +67,18 @@ export class IotHub { const serializer = new msRest.Serializer(Mappers); const beginManualFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover", - urlParameters: [Parameters.iotHubName, Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover", + urlParameters: [ + Parameters.iotHubName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: { failoverRegion: "failoverRegion" diff --git a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts index d6348e15e785..8067f51cefdf 100644 --- a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts +++ b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts @@ -34,39 +34,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -74,8 +56,7 @@ export class IotHubResource { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,20 +72,9 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - iotHubDescription: Models.IotHubDescription, - options?: Models.IotHubResourceCreateOrUpdateOptionalParams - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - resourceName, - iotHubDescription, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.IotHubResourceCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, resourceName: string, iotHubDescription: Models.IotHubDescription, options?: Models.IotHubResourceCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,resourceName,iotHubDescription,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -115,14 +85,9 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - resourceName: string, - options?: Models.IotHubResourceUpdateOptionalParams - ): Promise { - return this.beginUpdate(resourceGroupName, resourceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, resourceName: string, options?: Models.IotHubResourceUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -133,14 +98,9 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, resourceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -149,9 +109,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listBySubscription( - options?: msRest.RequestOptionsBase - ): Promise; + listBySubscription(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -160,23 +118,14 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - listBySubscription( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBySubscription( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listBySubscriptionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -186,43 +135,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -233,39 +165,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getStats( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getStats(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - getStats( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + getStats(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - getStats( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getStats( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getStats(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStats(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -273,8 +187,7 @@ export class IotHubResource { options }, getStatsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -285,41 +198,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getValidSkus( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getValidSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - getValidSkus( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + getValidSkus(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - getValidSkus( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getValidSkus( - resourceGroupName: string, - resourceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getValidSkus(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getValidSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -327,8 +220,7 @@ export class IotHubResource { options }, getValidSkusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -342,24 +234,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listEventHubConsumerGroups( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint. * @param callback The callback */ - listEventHubConsumerGroups( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - callback: msRest.ServiceCallback - ): void; + listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -367,22 +249,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - listEventHubConsumerGroups( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listEventHubConsumerGroups( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -391,8 +259,7 @@ export class IotHubResource { options }, listEventHubConsumerGroupsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -406,13 +273,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options?: msRest.RequestOptionsBase - ): Promise; + getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -420,13 +281,7 @@ export class IotHubResource { * @param name The name of the consumer group to retrieve. * @param callback The callback */ - getEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - callback: msRest.ServiceCallback - ): void; + getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -435,22 +290,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - getEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -460,8 +301,7 @@ export class IotHubResource { options }, getEventHubConsumerGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -475,14 +315,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - createEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - properties: Models.EventHubConsumerGroupName, - options?: msRest.RequestOptionsBase - ): Promise; + createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -491,14 +324,7 @@ export class IotHubResource { * @param properties * @param callback The callback */ - createEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - properties: Models.EventHubConsumerGroupName, - callback: msRest.ServiceCallback - ): void; + createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -508,24 +334,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - createEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - properties: Models.EventHubConsumerGroupName, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - properties: Models.EventHubConsumerGroupName, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -536,8 +346,7 @@ export class IotHubResource { options }, createEventHubConsumerGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -550,13 +359,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - deleteEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -564,13 +367,7 @@ export class IotHubResource { * @param name The name of the consumer group to delete. * @param callback The callback */ - deleteEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - callback: msRest.ServiceCallback - ): void; + deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -579,22 +376,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - deleteEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteEventHubConsumerGroup( - resourceGroupName: string, - resourceName: string, - eventHubEndpointName: string, - name: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -604,8 +387,7 @@ export class IotHubResource { options }, deleteEventHubConsumerGroupOperationSpec, - callback - ); + callback); } /** @@ -618,39 +400,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listJobs( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listJobs(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - listJobs( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + listJobs(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - listJobs( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listJobs( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listJobs(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listJobs(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -658,8 +422,7 @@ export class IotHubResource { options }, listJobsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -673,24 +436,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getJob( - resourceGroupName: string, - resourceName: string, - jobId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getJob(resourceGroupName: string, resourceName: string, jobId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. * @param callback The callback */ - getJob( - resourceGroupName: string, - resourceName: string, - jobId: string, - callback: msRest.ServiceCallback - ): void; + getJob(resourceGroupName: string, resourceName: string, jobId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -698,20 +451,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - getJob( - resourceGroupName: string, - resourceName: string, - jobId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getJob( - resourceGroupName: string, - resourceName: string, - jobId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getJob(resourceGroupName: string, resourceName: string, jobId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getJob(resourceGroupName: string, resourceName: string, jobId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -720,8 +461,7 @@ export class IotHubResource { options }, getJobOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -732,41 +472,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getQuotaMetrics( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getQuotaMetrics(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - getQuotaMetrics( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + getQuotaMetrics(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - getQuotaMetrics( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getQuotaMetrics( - resourceGroupName: string, - resourceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getQuotaMetrics(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getQuotaMetrics(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -774,8 +494,7 @@ export class IotHubResource { options }, getQuotaMetricsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -786,41 +505,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getEndpointHealth( - resourceGroupName: string, - iotHubName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getEndpointHealth(resourceGroupName: string, iotHubName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName * @param iotHubName * @param callback The callback */ - getEndpointHealth( - resourceGroupName: string, - iotHubName: string, - callback: msRest.ServiceCallback - ): void; + getEndpointHealth(resourceGroupName: string, iotHubName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName * @param iotHubName * @param options The optional parameters * @param callback The callback */ - getEndpointHealth( - resourceGroupName: string, - iotHubName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getEndpointHealth( - resourceGroupName: string, - iotHubName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getEndpointHealth(resourceGroupName: string, iotHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEndpointHealth(resourceGroupName: string, iotHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -828,8 +527,7 @@ export class IotHubResource { options }, getEndpointHealthOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -839,41 +537,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - checkNameAvailability( - name: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkNameAvailability(name: string, options?: msRest.RequestOptionsBase): Promise; /** * @param name The name of the IoT hub to check. * @param callback The callback */ - checkNameAvailability( - name: string, - callback: msRest.ServiceCallback - ): void; + checkNameAvailability(name: string, callback: msRest.ServiceCallback): void; /** * @param name The name of the IoT hub to check. * @param options The optional parameters * @param callback The callback */ - checkNameAvailability( - name: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkNameAvailability( - name: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkNameAvailability(name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { name, options }, checkNameAvailabilityOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -885,24 +568,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - testAllRoutes( - input: Models.TestAllRoutesInput, - iotHubName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + testAllRoutes(input: Models.TestAllRoutesInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param input Input for testing all routes * @param iotHubName IotHub to be tested * @param resourceGroupName resource group which Iot Hub belongs to * @param callback The callback */ - testAllRoutes( - input: Models.TestAllRoutesInput, - iotHubName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + testAllRoutes(input: Models.TestAllRoutesInput, iotHubName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param input Input for testing all routes * @param iotHubName IotHub to be tested @@ -910,20 +583,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - testAllRoutes( - input: Models.TestAllRoutesInput, - iotHubName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - testAllRoutes( - input: Models.TestAllRoutesInput, - iotHubName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + testAllRoutes(input: Models.TestAllRoutesInput, iotHubName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + testAllRoutes(input: Models.TestAllRoutesInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { input, @@ -932,8 +593,7 @@ export class IotHubResource { options }, testAllRoutesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -945,24 +605,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - testRoute( - input: Models.TestRouteInput, - iotHubName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + testRoute(input: Models.TestRouteInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param input Route that needs to be tested * @param iotHubName IotHub to be tested * @param resourceGroupName resource group which Iot Hub belongs to * @param callback The callback */ - testRoute( - input: Models.TestRouteInput, - iotHubName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + testRoute(input: Models.TestRouteInput, iotHubName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param input Route that needs to be tested * @param iotHubName IotHub to be tested @@ -970,20 +620,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - testRoute( - input: Models.TestRouteInput, - iotHubName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - testRoute( - input: Models.TestRouteInput, - iotHubName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + testRoute(input: Models.TestRouteInput, iotHubName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + testRoute(input: Models.TestRouteInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { input, @@ -992,8 +630,7 @@ export class IotHubResource { options }, testRouteOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1006,41 +643,21 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listKeys( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listKeys(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - listKeys( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + listKeys(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - listKeys( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listKeys( - resourceGroupName: string, - resourceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listKeys(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1048,8 +665,7 @@ export class IotHubResource { options }, listKeysOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1063,24 +679,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getKeysForKeyName( - resourceGroupName: string, - resourceName: string, - keyName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. * @param callback The callback */ - getKeysForKeyName( - resourceGroupName: string, - resourceName: string, - keyName: string, - callback: msRest.ServiceCallback - ): void; + getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1088,22 +694,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - getKeysForKeyName( - resourceGroupName: string, - resourceName: string, - keyName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getKeysForKeyName( - resourceGroupName: string, - resourceName: string, - keyName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1112,8 +704,7 @@ export class IotHubResource { options }, getKeysForKeyNameOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1129,24 +720,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - exportDevices( - resourceGroupName: string, - resourceName: string, - exportDevicesParameters: Models.ExportDevicesRequest, - options?: msRest.RequestOptionsBase - ): Promise; + exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: Models.ExportDevicesRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. * @param callback The callback */ - exportDevices( - resourceGroupName: string, - resourceName: string, - exportDevicesParameters: Models.ExportDevicesRequest, - callback: msRest.ServiceCallback - ): void; + exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: Models.ExportDevicesRequest, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1154,20 +735,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - exportDevices( - resourceGroupName: string, - resourceName: string, - exportDevicesParameters: Models.ExportDevicesRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportDevices( - resourceGroupName: string, - resourceName: string, - exportDevicesParameters: Models.ExportDevicesRequest, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: Models.ExportDevicesRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: Models.ExportDevicesRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1176,8 +745,7 @@ export class IotHubResource { options }, exportDevicesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1193,24 +761,14 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - importDevices( - resourceGroupName: string, - resourceName: string, - importDevicesParameters: Models.ImportDevicesRequest, - options?: msRest.RequestOptionsBase - ): Promise; + importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: Models.ImportDevicesRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. * @param callback The callback */ - importDevices( - resourceGroupName: string, - resourceName: string, - importDevicesParameters: Models.ImportDevicesRequest, - callback: msRest.ServiceCallback - ): void; + importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: Models.ImportDevicesRequest, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1218,20 +776,8 @@ export class IotHubResource { * @param options The optional parameters * @param callback The callback */ - importDevices( - resourceGroupName: string, - resourceName: string, - importDevicesParameters: Models.ImportDevicesRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - importDevices( - resourceGroupName: string, - resourceName: string, - importDevicesParameters: Models.ImportDevicesRequest, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: Models.ImportDevicesRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: Models.ImportDevicesRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1240,8 +786,7 @@ export class IotHubResource { options }, importDevicesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1257,12 +802,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - resourceName: string, - iotHubDescription: Models.IotHubDescription, - options?: Models.IotHubResourceBeginCreateOrUpdateOptionalParams - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, resourceName: string, iotHubDescription: Models.IotHubDescription, options?: Models.IotHubResourceBeginCreateOrUpdateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1271,8 +811,7 @@ export class IotHubResource { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -1283,11 +822,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - resourceName: string, - options?: Models.IotHubResourceBeginUpdateOptionalParams - ): Promise { + beginUpdate(resourceGroupName: string, resourceName: string, options?: Models.IotHubResourceBeginUpdateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1295,8 +830,7 @@ export class IotHubResource { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -1307,11 +841,7 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1319,8 +849,7 @@ export class IotHubResource { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -1330,43 +859,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBySubscriptionNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listBySubscriptionNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1376,43 +888,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1422,43 +917,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getValidSkusNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + getValidSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - getValidSkusNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + getValidSkusNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - getValidSkusNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getValidSkusNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getValidSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getValidSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, getValidSkusNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1470,43 +948,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listEventHubConsumerGroupsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listEventHubConsumerGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listEventHubConsumerGroupsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listEventHubConsumerGroupsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listEventHubConsumerGroupsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listEventHubConsumerGroupsNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listEventHubConsumerGroupsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listEventHubConsumerGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listEventHubConsumerGroupsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1518,41 +979,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listJobsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listJobsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listJobsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listJobsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listJobsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listJobsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1562,43 +1008,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getQuotaMetricsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + getQuotaMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - getQuotaMetricsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + getQuotaMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - getQuotaMetricsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getQuotaMetricsNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getQuotaMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getQuotaMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, getQuotaMetricsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1608,43 +1037,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - getEndpointHealthNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + getEndpointHealthNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - getEndpointHealthNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + getEndpointHealthNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - getEndpointHealthNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getEndpointHealthNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getEndpointHealthNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEndpointHealthNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, getEndpointHealthNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1656,43 +1068,26 @@ export class IotHubResource { * @param [options] The optional parameters * @returns Promise */ - listKeysNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listKeysNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listKeysNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listKeysNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listKeysNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listKeysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listKeysNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -1700,11 +1095,18 @@ export class IotHubResource { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescription @@ -1719,9 +1121,15 @@ const getOperationSpec: msRest.OperationSpec = { const listBySubscriptionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescriptionListResult @@ -1735,11 +1143,17 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescriptionListResult @@ -1753,11 +1167,18 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const getStatsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RegistryStatistics @@ -1771,11 +1192,18 @@ const getStatsOperationSpec: msRest.OperationSpec = { const getValidSkusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubSkuDescriptionListResult @@ -1789,16 +1217,19 @@ const getValidSkusOperationSpec: msRest.OperationSpec = { const listEventHubConsumerGroupsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.eventHubEndpointName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.EventHubConsumerGroupsListResult @@ -1812,8 +1243,7 @@ const listEventHubConsumerGroupsOperationSpec: msRest.OperationSpec = { const getEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1821,8 +1251,12 @@ const getEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { Parameters.eventHubEndpointName, Parameters.name ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.EventHubConsumerGroupInfo @@ -1836,8 +1270,7 @@ const getEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { const createEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1845,8 +1278,12 @@ const createEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { Parameters.eventHubEndpointName, Parameters.name ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: { properties: "properties" @@ -1869,8 +1306,7 @@ const createEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { const deleteEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1878,8 +1314,12 @@ const deleteEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { Parameters.eventHubEndpointName, Parameters.name ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, default: { @@ -1891,11 +1331,18 @@ const deleteEventHubConsumerGroupOperationSpec: msRest.OperationSpec = { const listJobsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResponseListResult @@ -1909,16 +1356,19 @@ const listJobsOperationSpec: msRest.OperationSpec = { const getJobOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.jobId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResponse @@ -1932,11 +1382,18 @@ const getJobOperationSpec: msRest.OperationSpec = { const getQuotaMetricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubQuotaMetricInfoListResult @@ -1950,11 +1407,18 @@ const getQuotaMetricsOperationSpec: msRest.OperationSpec = { const getEndpointHealthOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routingEndpointsHealth", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.iotHubName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routingEndpointsHealth", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.iotHubName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.EndpointHealthDataListResult @@ -1969,9 +1433,15 @@ const getEndpointHealthOperationSpec: msRest.OperationSpec = { const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: { name: "name" @@ -1994,11 +1464,18 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { const testAllRoutesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall", - urlParameters: [Parameters.iotHubName, Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall", + urlParameters: [ + Parameters.iotHubName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "input", mapper: { @@ -2019,11 +1496,18 @@ const testAllRoutesOperationSpec: msRest.OperationSpec = { const testRouteOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew", - urlParameters: [Parameters.iotHubName, Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew", + urlParameters: [ + Parameters.iotHubName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "input", mapper: { @@ -2044,11 +1528,18 @@ const testRouteOperationSpec: msRest.OperationSpec = { const listKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult @@ -2062,16 +1553,19 @@ const listKeysOperationSpec: msRest.OperationSpec = { const getKeysForKeyNameOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.keyName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedAccessSignatureAuthorizationRule @@ -2085,11 +1579,18 @@ const getKeysForKeyNameOperationSpec: msRest.OperationSpec = { const exportDevicesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "exportDevicesParameters", mapper: { @@ -2110,11 +1611,18 @@ const exportDevicesOperationSpec: msRest.OperationSpec = { const importDevicesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "importDevicesParameters", mapper: { @@ -2135,11 +1643,19 @@ const importDevicesOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.ifMatch0, Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], requestBody: { parameterPath: "iotHubDescription", mapper: { @@ -2163,14 +1679,24 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: { - tags: ["options", "tags"] + tags: [ + "options", + "tags" + ] }, mapper: { ...Mappers.TagsResource, @@ -2190,11 +1716,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescription @@ -2217,9 +1750,15 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescriptionListResult @@ -2235,9 +1774,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubDescriptionListResult @@ -2253,9 +1798,15 @@ const getValidSkusNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubSkuDescriptionListResult @@ -2271,9 +1822,15 @@ const listEventHubConsumerGroupsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.EventHubConsumerGroupsListResult @@ -2289,9 +1846,15 @@ const listJobsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResponseListResult @@ -2307,9 +1870,15 @@ const getQuotaMetricsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.IotHubQuotaMetricInfoListResult @@ -2325,9 +1894,15 @@ const getEndpointHealthNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.EndpointHealthDataListResult @@ -2343,9 +1918,15 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult diff --git a/sdk/iothub/arm-iothub/src/operations/operations.ts b/sdk/iothub/arm-iothub/src/operations/operations.ts index 7c0b4e591e08..b8ae9766132e 100644 --- a/sdk/iothub/arm-iothub/src/operations/operations.ts +++ b/sdk/iothub/arm-iothub/src/operations/operations.ts @@ -39,21 +39,14 @@ export class Operations { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -62,41 +55,26 @@ export class Operations { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -105,8 +83,12 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Devices/operations", - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationListResult @@ -122,9 +104,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationListResult diff --git a/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts b/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts index cf32dedde72e..f334cfcd50ec 100644 --- a/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts +++ b/sdk/iothub/arm-iothub/src/operations/privateEndpointConnections.ts @@ -34,41 +34,21 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - list( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - resourceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -76,8 +56,7 @@ export class PrivateEndpointConnections { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -89,24 +68,14 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -114,20 +83,8 @@ export class PrivateEndpointConnections { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -136,8 +93,7 @@ export class PrivateEndpointConnections { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -150,22 +106,9 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - properties: Models.PrivateEndpointConnectionProperties, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - resourceName, - privateEndpointConnectionName, - properties, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.PrivateEndpointConnectionsUpdateResponse - >; + update(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnectionProperties, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,resourceName,privateEndpointConnectionName,properties,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -177,20 +120,9 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - resourceName, - privateEndpointConnectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.PrivateEndpointConnectionsDeleteMethodResponse - >; + deleteMethod(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -203,13 +135,7 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - properties: Models.PrivateEndpointConnectionProperties, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnectionProperties, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -219,8 +145,7 @@ export class PrivateEndpointConnections { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -232,12 +157,7 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - resourceName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -246,8 +166,7 @@ export class PrivateEndpointConnections { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -255,11 +174,18 @@ export class PrivateEndpointConnections { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: { @@ -284,16 +210,19 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection @@ -307,16 +236,19 @@ const getOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: { properties: "properties" @@ -342,16 +274,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection diff --git a/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts b/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts index f51e56d506bd..ada51e543e33 100644 --- a/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts +++ b/sdk/iothub/arm-iothub/src/operations/privateLinkResourcesOperations.ts @@ -33,39 +33,21 @@ export class PrivateLinkResourcesOperations { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param callback The callback */ - list( - resourceGroupName: string, - resourceName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - resourceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - resourceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class PrivateLinkResourcesOperations { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class PrivateLinkResourcesOperations { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - resourceName: string, - groupId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, resourceName: string, groupId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - groupId: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, resourceName: string, groupId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -111,20 +82,8 @@ export class PrivateLinkResourcesOperations { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - resourceName: string, - groupId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - resourceName: string, - groupId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, resourceName: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class PrivateLinkResourcesOperations { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -142,11 +100,18 @@ export class PrivateLinkResourcesOperations { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResources @@ -160,16 +125,19 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources/{groupId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources/{groupId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, Parameters.groupId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GroupIdInformation diff --git a/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts b/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts index 7b50f3344c58..b6630c9fe15d 100644 --- a/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts +++ b/sdk/iothub/arm-iothub/src/operations/resourceProviderCommon.ts @@ -31,36 +31,23 @@ export class ResourceProviderCommon { * @param [options] The optional parameters * @returns Promise */ - getSubscriptionQuota( - options?: msRest.RequestOptionsBase - ): Promise; + getSubscriptionQuota(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - getSubscriptionQuota( - callback: msRest.ServiceCallback - ): void; + getSubscriptionQuota(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - getSubscriptionQuota( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSubscriptionQuota( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSubscriptionQuota(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSubscriptionQuota(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getSubscriptionQuotaOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -69,9 +56,15 @@ const serializer = new msRest.Serializer(Mappers); const getSubscriptionQuotaOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/usages", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UserSubscriptionQuotaListResult