From 2c0de88d45345a230fef0cedefa4a8247ab55d43 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 9 Jul 2021 02:41:42 +0000 Subject: [PATCH] CodeGen from PR 15131 in Azure/azure-rest-api-specs Azure resource 2021 7 (#15131) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * readme.python config Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- sdk/resources/arm-resources/README.md | 11 +- sdk/resources/arm-resources/package.json | 2 +- sdk/resources/arm-resources/rollup.config.js | 10 +- .../arm-resources/src/models/index.ts | 2406 +++++++++-------- .../arm-resources/src/models/mappers.ts | 260 +- .../arm-resources/src/models/parameters.ts | 45 +- .../src/models/providersMappers.ts | 8 +- .../src/operations/deploymentOperations.ts | 656 ++--- .../src/operations/deployments.ts | 1943 +++++-------- .../src/operations/operations.ts | 58 +- .../src/operations/providerResourceTypes.ts | 41 +- .../arm-resources/src/operations/providers.ts | 389 ++- .../src/operations/resourceGroups.ts | 289 +- .../arm-resources/src/operations/resources.ts | 723 ++--- .../src/operations/tagsOperations.ts | 339 +-- .../src/resourceManagementClient.ts | 9 +- .../src/resourceManagementClientContext.ts | 23 +- 17 files changed, 3299 insertions(+), 3913 deletions(-) diff --git a/sdk/resources/arm-resources/README.md b/sdk/resources/arm-resources/README.md index 54cbc3054cc7..34ade0d08c55 100644 --- a/sdk/resources/arm-resources/README.md +++ b/sdk/resources/arm-resources/README.md @@ -1,11 +1,11 @@ ## Azure ResourceManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for ResourceManagementClient. ### 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-resources @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 ResourceManagementClient(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.ArmResources.ResourceManagementClient(creds, subscriptionId); client.operations.list().then((result) => { @@ -106,4 +103,4 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/.\sdk\resources\arm-resources\/README.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resources/arm-resources/README.png) diff --git a/sdk/resources/arm-resources/package.json b/sdk/resources/arm-resources/package.json index 65ef4026fa64..64d0180a29d7 100644 --- a/sdk/resources/arm-resources/package.json +++ b/sdk/resources/arm-resources/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/main/sdk/resources/arm-resources", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/resources/arm-resources", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/resources/arm-resources/rollup.config.js b/sdk/resources/arm-resources/rollup.config.js index cca39c93fd80..9498ddb7ee8e 100644 --- a/sdk/resources/arm-resources/rollup.config.js +++ b/sdk/resources/arm-resources/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/resourceManagementClient.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-resources.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/resources/arm-resources/src/models/index.ts b/sdk/resources/arm-resources/src/models/index.ts index 4c1f784cbc3c..d4bcf12d7043 100644 --- a/sdk/resources/arm-resources/src/models/index.ts +++ b/sdk/resources/arm-resources/src/models/index.ts @@ -531,6 +531,11 @@ export interface Provider { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceTypes?: ProviderResourceType[]; + /** + * The provider authorization consent state. Possible values include: 'NotSpecified', 'Required', + * 'NotRequired', 'Consented' + */ + providerAuthorizationConsentState?: ProviderAuthorizationConsentState; } /** @@ -1466,6 +1471,112 @@ export interface TagsResource extends BaseResource { properties: Tags; } +/** + * Role definition permissions. + */ +export interface Permission { + /** + * Allowed actions. + */ + actions?: string[]; + /** + * Denied actions. + */ + notActions?: string[]; + /** + * Allowed Data actions. + */ + dataActions?: string[]; + /** + * Denied Data actions. + */ + notDataActions?: string[]; +} + +/** + * Role definition properties. + */ +export interface RoleDefinition { + /** + * The role definition ID. + */ + id?: string; + /** + * The role definition name. + */ + name?: string; + /** + * If this is a service role. + */ + isServiceRole?: boolean; + /** + * Role definition permissions. + */ + permissions?: Permission[]; + /** + * Role definition assignable scopes. + */ + scopes?: string[]; +} + +/** + * The provider permission + */ +export interface ProviderPermission { + /** + * The application id. + */ + applicationId?: string; + /** + * Role definition properties. + */ + roleDefinition?: RoleDefinition; + /** + * Role definition properties. + */ + managedByRoleDefinition?: RoleDefinition; + /** + * The provider authorization consent state. Possible values include: 'NotSpecified', 'Required', + * 'NotRequired', 'Consented' + */ + providerAuthorizationConsentState?: ProviderAuthorizationConsentState; +} + +/** + * List of provider permissions. + */ +export interface ProviderPermissionListResult { + /** + * An array of provider permissions. + */ + value?: ProviderPermission[]; + /** + * The URL to use for getting the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * The provider consent. + */ +export interface ProviderConsentDefinition { + /** + * A value indicating whether authorization is consented or not. + */ + consentToAuthorization?: boolean; +} + +/** + * The provider registration definition. + */ +export interface ProviderRegistrationRequest { + /** + * The provider consent. + */ + thirdPartyProviderConsent?: ProviderConsentDefinition; +} + /** * Optional Parameters. */ @@ -1499,8 +1610,7 @@ export interface DeploymentsListAtTenantScopeOptionalParams extends msRest.Reque /** * Optional Parameters. */ -export interface DeploymentsListAtManagementGroupScopeOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentsListAtManagementGroupScopeOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. For example, you can use $filter=provisioningState eq * '{state}'. @@ -1515,8 +1625,7 @@ export interface DeploymentsListAtManagementGroupScopeOptionalParams /** * Optional Parameters. */ -export interface DeploymentsListAtSubscriptionScopeOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentsListAtSubscriptionScopeOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. For example, you can use $filter=provisioningState eq * '{state}'. @@ -1576,8 +1685,7 @@ export interface DeploymentsListAtTenantScopeNextOptionalParams extends msRest.R /** * Optional Parameters. */ -export interface DeploymentsListAtManagementGroupScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentsListAtManagementGroupScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. For example, you can use $filter=provisioningState eq * '{state}'. @@ -1592,8 +1700,7 @@ export interface DeploymentsListAtManagementGroupScopeNextOptionalParams /** * Optional Parameters. */ -export interface DeploymentsListAtSubscriptionScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentsListAtSubscriptionScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. For example, you can use $filter=provisioningState eq * '{state}'. @@ -1608,8 +1715,7 @@ export interface DeploymentsListAtSubscriptionScopeNextOptionalParams /** * Optional Parameters. */ -export interface DeploymentsListByResourceGroupNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. For example, you can use $filter=provisioningState eq * '{state}'. @@ -1621,6 +1727,16 @@ export interface DeploymentsListByResourceGroupNextOptionalParams top?: number; } +/** + * Optional Parameters. + */ +export interface ProvidersRegisterOptionalParams extends msRest.RequestOptionsBase { + /** + * The third party consent for S2S. + */ + properties?: ProviderRegistrationRequest; +} + /** * Optional Parameters. */ @@ -1850,6 +1966,17 @@ export interface ResourcesListNextOptionalParams extends msRest.RequestOptionsBa top?: number; } +/** + * Optional Parameters. + */ +export interface ResourceGroupsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource types you want to force delete. Currently, only the following is supported: + * forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + */ + forceDeletionTypes?: string; +} + /** * Optional Parameters. */ @@ -1866,6 +1993,17 @@ export interface ResourceGroupsListOptionalParams extends msRest.RequestOptionsB top?: number; } +/** + * Optional Parameters. + */ +export interface ResourceGroupsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource types you want to force delete. Currently, only the following is supported: + * forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + */ + forceDeletionTypes?: string; +} + /** * Optional Parameters. */ @@ -1895,8 +2033,7 @@ export interface DeploymentOperationsListAtScopeOptionalParams extends msRest.Re /** * Optional Parameters. */ -export interface DeploymentOperationsListAtTenantScopeOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtTenantScopeOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1906,8 +2043,7 @@ export interface DeploymentOperationsListAtTenantScopeOptionalParams /** * Optional Parameters. */ -export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1917,8 +2053,7 @@ export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams /** * Optional Parameters. */ -export interface DeploymentOperationsListAtSubscriptionScopeOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtSubscriptionScopeOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1938,8 +2073,7 @@ export interface DeploymentOperationsListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface DeploymentOperationsListAtScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1949,8 +2083,7 @@ export interface DeploymentOperationsListAtScopeNextOptionalParams /** * Optional Parameters. */ -export interface DeploymentOperationsListAtTenantScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtTenantScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1960,8 +2093,7 @@ export interface DeploymentOperationsListAtTenantScopeNextOptionalParams /** * Optional Parameters. */ -export interface DeploymentOperationsListAtManagementGroupScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtManagementGroupScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -1971,8 +2103,7 @@ export interface DeploymentOperationsListAtManagementGroupScopeNextOptionalParam /** * Optional Parameters. */ -export interface DeploymentOperationsListAtSubscriptionScopeNextOptionalParams - extends msRest.RequestOptionsBase { +export interface DeploymentOperationsListAtSubscriptionScopeNextOptionalParams extends msRest.RequestOptionsBase { /** * The number of results to return. */ @@ -2149,7 +2280,7 @@ export interface DeploymentOperationsListResult extends Array */ - getAtScope( - scope: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtScope(scope: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param callback The callback */ - getAtScope( - scope: string, - deploymentName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAtScope(scope: string, deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. @@ -58,20 +48,8 @@ export class DeploymentOperations { * @param options The optional parameters * @param callback The callback */ - getAtScope( - scope: string, - deploymentName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtScope( - scope: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtScope(scope: string, deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtScope(scope: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -80,8 +58,7 @@ export class DeploymentOperations { options }, getAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,41 +68,21 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtScope( - scope: string, - deploymentName: string, - options?: Models.DeploymentOperationsListAtScopeOptionalParams - ): Promise; + listAtScope(scope: string, deploymentName: string, options?: Models.DeploymentOperationsListAtScopeOptionalParams): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param callback The callback */ - listAtScope( - scope: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + listAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - listAtScope( - scope: string, - deploymentName: string, - options: Models.DeploymentOperationsListAtScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtScope( - scope: string, - deploymentName: string, - options?: - | Models.DeploymentOperationsListAtScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtScope(scope: string, deploymentName: string, options: Models.DeploymentOperationsListAtScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtScope(scope: string, deploymentName: string, options?: Models.DeploymentOperationsListAtScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -133,8 +90,7 @@ export class DeploymentOperations { options }, listAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -144,39 +100,21 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - getAtTenantScope( - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtTenantScope(deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param callback The callback */ - getAtTenantScope( - deploymentName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAtTenantScope(deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param options The optional parameters * @param callback The callback */ - getAtTenantScope( - deploymentName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtTenantScope( - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtTenantScope(deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtTenantScope(deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, @@ -184,8 +122,7 @@ export class DeploymentOperations { options }, getAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -194,43 +131,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScope( - deploymentName: string, - options?: Models.DeploymentOperationsListAtTenantScopeOptionalParams - ): Promise; + listAtTenantScope(deploymentName: string, options?: Models.DeploymentOperationsListAtTenantScopeOptionalParams): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - listAtTenantScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + listAtTenantScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - listAtTenantScope( - deploymentName: string, - options: Models.DeploymentOperationsListAtTenantScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScope( - deploymentName: string, - options?: - | Models.DeploymentOperationsListAtTenantScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScope(deploymentName: string, options: Models.DeploymentOperationsListAtTenantScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScope(deploymentName: string, options?: Models.DeploymentOperationsListAtTenantScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, listAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -241,24 +161,14 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param callback The callback */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. @@ -266,20 +176,8 @@ export class DeploymentOperations { * @param options The optional parameters * @param callback The callback */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -288,8 +186,7 @@ export class DeploymentOperations { options }, getAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -299,41 +196,21 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams - ): Promise; + listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param callback The callback */ - listAtManagementGroupScope( - groupId: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + listAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - listAtManagementGroupScope( - groupId: string, - deploymentName: string, - options: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: - | Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtManagementGroupScope(groupId: string, deploymentName: string, options: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -341,8 +218,7 @@ export class DeploymentOperations { options }, listAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -352,39 +228,21 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - getAtSubscriptionScope( - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtSubscriptionScope(deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param callback The callback */ - getAtSubscriptionScope( - deploymentName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAtSubscriptionScope(deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param options The optional parameters * @param callback The callback */ - getAtSubscriptionScope( - deploymentName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtSubscriptionScope( - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtSubscriptionScope(deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtSubscriptionScope(deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, @@ -392,8 +250,7 @@ export class DeploymentOperations { options }, getAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -402,43 +259,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtSubscriptionScope( - deploymentName: string, - options?: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams - ): Promise; + listAtSubscriptionScope(deploymentName: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - listAtSubscriptionScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + listAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - listAtSubscriptionScope( - deploymentName: string, - options: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtSubscriptionScope( - deploymentName: string, - options?: - | Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtSubscriptionScope(deploymentName: string, options: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtSubscriptionScope(deploymentName: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, listAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -449,24 +289,14 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @param callback The callback */ - get( - resourceGroupName: string, - deploymentName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. @@ -474,20 +304,8 @@ export class DeploymentOperations { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - deploymentName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - deploymentName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -496,8 +314,7 @@ export class DeploymentOperations { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -507,41 +324,21 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - deploymentName: string, - options?: Models.DeploymentOperationsListOptionalParams - ): Promise; + list(resourceGroupName: string, deploymentName: string, options?: Models.DeploymentOperationsListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param callback The callback */ - list( - resourceGroupName: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - deploymentName: string, - options: Models.DeploymentOperationsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - deploymentName: string, - options?: - | Models.DeploymentOperationsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, deploymentName: string, options: Models.DeploymentOperationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, deploymentName: string, options?: Models.DeploymentOperationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -549,8 +346,7 @@ export class DeploymentOperations { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -559,43 +355,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtScopeNext( - nextPageLink: string, - options?: Models.DeploymentOperationsListAtScopeNextOptionalParams - ): Promise; + listAtScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtScopeNext(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 */ - listAtScopeNext( - nextPageLink: string, - options: Models.DeploymentOperationsListAtScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentOperationsListAtScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtScopeNext(nextPageLink: string, options: Models.DeploymentOperationsListAtScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -604,43 +383,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScopeNext( - nextPageLink: string, - options?: Models.DeploymentOperationsListAtTenantScopeNextOptionalParams - ): Promise; + listAtTenantScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtTenantScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtTenantScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtTenantScopeNext(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 */ - listAtTenantScopeNext( - nextPageLink: string, - options: Models.DeploymentOperationsListAtTenantScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentOperationsListAtTenantScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScopeNext(nextPageLink: string, options: Models.DeploymentOperationsListAtTenantScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtTenantScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtTenantScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -649,43 +411,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtManagementGroupScopeNext( - nextPageLink: string, - options?: Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams - ): Promise; + listAtManagementGroupScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtManagementGroupScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtManagementGroupScopeNext(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 */ - listAtManagementGroupScopeNext( - nextPageLink: string, - options: Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtManagementGroupScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtManagementGroupScopeNext(nextPageLink: string, options: Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtManagementGroupScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -694,43 +439,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listAtSubscriptionScopeNext( - nextPageLink: string, - options?: Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams - ): Promise; + listAtSubscriptionScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtSubscriptionScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtSubscriptionScopeNext(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 */ - listAtSubscriptionScopeNext( - nextPageLink: string, - options: Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtSubscriptionScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtSubscriptionScopeNext(nextPageLink: string, options: Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtSubscriptionScopeNext(nextPageLink: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtSubscriptionScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -739,43 +467,26 @@ export class DeploymentOperations { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.DeploymentOperationsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.DeploymentOperationsListNextOptionalParams): 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: Models.DeploymentOperationsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.DeploymentOperationsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.DeploymentOperationsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DeploymentOperationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -783,11 +494,18 @@ export class DeploymentOperations { const serializer = new msRest.Serializer(Mappers); const getAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", - urlParameters: [Parameters.scope, Parameters.deploymentName, Parameters.operationId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + urlParameters: [ + Parameters.scope, + Parameters.deploymentName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperation @@ -802,9 +520,17 @@ const getAtScopeOperationSpec: msRest.OperationSpec = { const listAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -819,9 +545,16 @@ const listAtScopeOperationSpec: msRest.OperationSpec = { const getAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", - urlParameters: [Parameters.deploymentName, Parameters.operationId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperation @@ -836,9 +569,16 @@ const getAtTenantScopeOperationSpec: msRest.OperationSpec = { const listAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Resources/deployments/{deploymentName}/operations", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -852,11 +592,18 @@ const listAtTenantScopeOperationSpec: msRest.OperationSpec = { const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", - urlParameters: [Parameters.groupId, Parameters.deploymentName, Parameters.operationId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperation @@ -870,11 +617,18 @@ const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -888,11 +642,18 @@ const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const getAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", - urlParameters: [Parameters.deploymentName, Parameters.operationId, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + urlParameters: [ + Parameters.deploymentName, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperation @@ -906,11 +667,18 @@ const getAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const listAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -924,16 +692,19 @@ const listAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.operationId, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperation @@ -947,15 +718,19 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -971,9 +746,16 @@ const listAtScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -989,9 +771,16 @@ const listAtTenantScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -1007,9 +796,16 @@ const listAtManagementGroupScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -1025,9 +821,16 @@ const listAtSubscriptionScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult @@ -1043,9 +846,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentOperationsListResult diff --git a/sdk/resources/arm-resources/src/operations/deployments.ts b/sdk/resources/arm-resources/src/operations/deployments.ts index 10d9f37bfa15..f58bb0defd13 100644 --- a/sdk/resources/arm-resources/src/operations/deployments.ts +++ b/sdk/resources/arm-resources/src/operations/deployments.ts @@ -40,14 +40,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - deleteAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteAtScope(scope, deploymentName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAtScope(scope,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -57,39 +52,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - checkExistenceAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistenceAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param callback The callback */ - checkExistenceAtScope( - scope: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + checkExistenceAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - checkExistenceAtScope( - scope: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistenceAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistenceAtScope(scope: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -97,8 +74,7 @@ export class Deployments { options }, checkExistenceAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -110,20 +86,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateAtScope( - scope: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdateAtScope( - scope, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsCreateOrUpdateAtScopeResponse - >; + createOrUpdateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateAtScope(scope,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -133,39 +98,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - getAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param callback The callback */ - getAtScope( - scope: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + getAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - getAtScope( - scope: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtScope(scope: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -173,8 +120,7 @@ export class Deployments { options }, getAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -188,39 +134,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - cancelAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + cancelAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param callback The callback */ - cancelAtScope( - scope: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + cancelAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - cancelAtScope( - scope: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - cancelAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cancelAtScope(scope: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -228,8 +156,7 @@ export class Deployments { options }, cancelAtScopeOperationSpec, - callback - ); + callback); } /** @@ -241,15 +168,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - validateAtScope( - scope: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidateAtScope(scope, deploymentName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidateAtScope(scope,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -259,39 +180,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - exportTemplateAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportTemplateAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param callback The callback */ - exportTemplateAtScope( - scope: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + exportTemplateAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - exportTemplateAtScope( - scope: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportTemplateAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportTemplateAtScope(scope: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplateAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -299,8 +202,7 @@ export class Deployments { options }, exportTemplateAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -309,10 +211,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtScope( - scope: string, - options?: Models.DeploymentsListAtScopeOptionalParams - ): Promise; + listAtScope(scope: string, options?: Models.DeploymentsListAtScopeOptionalParams): Promise; /** * @param scope The resource scope. * @param callback The callback @@ -323,26 +222,15 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - listAtScope( - scope: string, - options: Models.DeploymentsListAtScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtScope( - scope: string, - options?: - | Models.DeploymentsListAtScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtScope(scope: string, options: Models.DeploymentsListAtScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtScope(scope: string, options?: Models.DeploymentsListAtScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, options }, listAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -358,13 +246,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - deleteAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteAtTenantScope(deploymentName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAtTenantScope(deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -373,41 +257,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - checkExistenceAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistenceAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - checkExistenceAtTenantScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + checkExistenceAtTenantScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - checkExistenceAtTenantScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistenceAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistenceAtTenantScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, checkExistenceAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -418,18 +287,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdateAtTenantScope( - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsCreateOrUpdateAtTenantScopeResponse - >; + createOrUpdateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateAtTenantScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -438,41 +298,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - getAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - getAtTenantScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + getAtTenantScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - getAtTenantScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtTenantScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, getAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -485,10 +330,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - cancelAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + cancelAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback @@ -499,24 +341,15 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - cancelAtTenantScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - cancelAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cancelAtTenantScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, cancelAtTenantScopeOperationSpec, - callback - ); + callback); } /** @@ -527,14 +360,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - validateAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidateAtTenantScope(deploymentName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + validateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidateAtTenantScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -545,14 +373,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - whatIfAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginWhatIfAtTenantScope(deploymentName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + whatIfAtTenantScope(deploymentName: string, parameters: Models.ScopedDeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { + return this.beginWhatIfAtTenantScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -561,41 +384,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - exportTemplateAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportTemplateAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - exportTemplateAtTenantScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + exportTemplateAtTenantScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - exportTemplateAtTenantScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportTemplateAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportTemplateAtTenantScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplateAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, exportTemplateAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -603,9 +411,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScope( - options?: Models.DeploymentsListAtTenantScopeOptionalParams - ): Promise; + listAtTenantScope(options?: Models.DeploymentsListAtTenantScopeOptionalParams): Promise; /** * @param callback The callback */ @@ -614,23 +420,14 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - listAtTenantScope( - options: Models.DeploymentsListAtTenantScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScope( - options?: - | Models.DeploymentsListAtTenantScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScope(options: Models.DeploymentsListAtTenantScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScope(options?: Models.DeploymentsListAtTenantScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -647,16 +444,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - deleteAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteAtManagementGroupScope( - groupId, - deploymentName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAtManagementGroupScope(groupId,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -666,39 +456,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - checkExistenceAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param callback The callback */ - checkExistenceAtManagementGroupScope( - groupId: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - checkExistenceAtManagementGroupScope( - groupId: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistenceAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -706,8 +478,7 @@ export class Deployments { options }, checkExistenceAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -719,20 +490,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdateAtManagementGroupScope( - groupId, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsCreateOrUpdateAtManagementGroupScopeResponse - >; + createOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateAtManagementGroupScope(groupId,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -742,39 +502,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param callback The callback */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -782,8 +524,7 @@ export class Deployments { options }, getAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -797,39 +538,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - cancelAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param callback The callback */ - cancelAtManagementGroupScope( - groupId: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + cancelAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - cancelAtManagementGroupScope( - groupId: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - cancelAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -837,8 +560,7 @@ export class Deployments { options }, cancelAtManagementGroupScopeOperationSpec, - callback - ); + callback); } /** @@ -850,20 +572,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - validateAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidateAtManagementGroupScope( - groupId, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsValidateAtManagementGroupScopeResponse - >; + validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidateAtManagementGroupScope(groupId,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -875,20 +586,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - whatIfAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginWhatIfAtManagementGroupScope( - groupId, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsWhatIfAtManagementGroupScopeResponse - >; + whatIfAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { + return this.beginWhatIfAtManagementGroupScope(groupId,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -898,39 +598,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - exportTemplateAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param callback The callback */ - exportTemplateAtManagementGroupScope( - groupId: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - exportTemplateAtManagementGroupScope( - groupId: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportTemplateAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, @@ -938,8 +620,7 @@ export class Deployments { options }, exportTemplateAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -948,43 +629,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtManagementGroupScope( - groupId: string, - options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams - ): Promise; + listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams): Promise; /** * @param groupId The management group ID. * @param callback The callback */ - listAtManagementGroupScope( - groupId: string, - callback: msRest.ServiceCallback - ): void; + listAtManagementGroupScope(groupId: string, callback: msRest.ServiceCallback): void; /** * @param groupId The management group ID. * @param options The optional parameters * @param callback The callback */ - listAtManagementGroupScope( - groupId: string, - options: Models.DeploymentsListAtManagementGroupScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtManagementGroupScope( - groupId: string, - options?: - | Models.DeploymentsListAtManagementGroupScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtManagementGroupScope(groupId: string, options: Models.DeploymentsListAtManagementGroupScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupId, options }, listAtManagementGroupScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1000,13 +664,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - deleteAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteAtSubscriptionScope(deploymentName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAtSubscriptionScope(deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1015,41 +675,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - checkExistenceAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistenceAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - checkExistenceAtSubscriptionScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + checkExistenceAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - checkExistenceAtSubscriptionScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistenceAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistenceAtSubscriptionScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, checkExistenceAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1060,18 +705,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateAtSubscriptionScope( - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdateAtSubscriptionScope( - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsCreateOrUpdateAtSubscriptionScopeResponse - >; + createOrUpdateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateAtSubscriptionScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1080,41 +716,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - getAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - getAtSubscriptionScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + getAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - getAtSubscriptionScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtSubscriptionScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, getAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1127,10 +748,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - cancelAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + cancelAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback @@ -1141,24 +759,15 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - cancelAtSubscriptionScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - cancelAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cancelAtSubscriptionScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, cancelAtSubscriptionScopeOperationSpec, - callback - ); + callback); } /** @@ -1169,18 +778,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - validateAtSubscriptionScope( - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidateAtSubscriptionScope( - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsValidateAtSubscriptionScopeResponse - >; + validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidateAtSubscriptionScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1191,18 +791,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - whatIfAtSubscriptionScope( - deploymentName: string, - parameters: Models.DeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginWhatIfAtSubscriptionScope( - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsWhatIfAtSubscriptionScopeResponse - >; + whatIfAtSubscriptionScope(deploymentName: string, parameters: Models.DeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { + return this.beginWhatIfAtSubscriptionScope(deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1211,41 +802,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - exportTemplateAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportTemplateAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param deploymentName The name of the deployment. * @param callback The callback */ - exportTemplateAtSubscriptionScope( - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + exportTemplateAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - exportTemplateAtSubscriptionScope( - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportTemplateAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportTemplateAtSubscriptionScope(deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplateAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { deploymentName, options }, exportTemplateAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1253,9 +829,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtSubscriptionScope( - options?: Models.DeploymentsListAtSubscriptionScopeOptionalParams - ): Promise; + listAtSubscriptionScope(options?: Models.DeploymentsListAtSubscriptionScopeOptionalParams): Promise; /** * @param callback The callback */ @@ -1264,23 +838,14 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - listAtSubscriptionScope( - options: Models.DeploymentsListAtSubscriptionScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtSubscriptionScope( - options?: - | Models.DeploymentsListAtSubscriptionScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtSubscriptionScope(options: Models.DeploymentsListAtSubscriptionScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtSubscriptionScope(options?: Models.DeploymentsListAtSubscriptionScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAtSubscriptionScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1299,14 +864,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, deploymentName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1317,22 +877,14 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - checkExistence( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistence(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group with the deployment to check. The name * is case insensitive. * @param deploymentName The name of the deployment. * @param callback The callback */ - checkExistence( - resourceGroupName: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + checkExistence(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group with the deployment to check. The name * is case insensitive. @@ -1340,18 +892,8 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - checkExistence( - resourceGroupName: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistence( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistence(resourceGroupName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistence(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1359,8 +901,7 @@ export class Deployments { options }, checkExistenceOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1373,20 +914,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1396,39 +926,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param callback The callback */ - get( - resourceGroupName: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1436,8 +948,7 @@ export class Deployments { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1451,39 +962,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - cancel( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + cancel(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param callback The callback */ - cancel( - resourceGroupName: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + cancel(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - cancel( - resourceGroupName: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - cancel( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cancel(resourceGroupName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancel(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1491,8 +984,7 @@ export class Deployments { options }, cancelOperationSpec, - callback - ); + callback); } /** @@ -1505,20 +997,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - validate( - resourceGroupName: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidate( - resourceGroupName, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsValidateResponse - >; + validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidate(resourceGroupName,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1531,20 +1012,9 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - whatIf( - resourceGroupName: string, - deploymentName: string, - parameters: Models.DeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginWhatIf( - resourceGroupName, - deploymentName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DeploymentsWhatIfResponse - >; + whatIf(resourceGroupName: string, deploymentName: string, parameters: Models.DeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { + return this.beginWhatIf(resourceGroupName,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1554,39 +1024,21 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - exportTemplate( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportTemplate(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param callback The callback */ - exportTemplate( - resourceGroupName: string, - deploymentName: string, - callback: msRest.ServiceCallback - ): void; + exportTemplate(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ - exportTemplate( - resourceGroupName: string, - deploymentName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportTemplate( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportTemplate(resourceGroupName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplate(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1594,8 +1046,7 @@ export class Deployments { options }, exportTemplateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1605,45 +1056,28 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: Models.DeploymentsListByResourceGroupOptionalParams - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: Models.DeploymentsListByResourceGroupOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group with the deployments to get. The name is * case insensitive. * @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 with the deployments to get. The name is * case insensitive. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: Models.DeploymentsListByResourceGroupOptionalParams, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: - | Models.DeploymentsListByResourceGroupOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.DeploymentsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.DeploymentsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1652,41 +1086,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - calculateTemplateHash( - template: any, - options?: msRest.RequestOptionsBase - ): Promise; + calculateTemplateHash(template: any, options?: msRest.RequestOptionsBase): Promise; /** * @param template The template provided to calculate hash. * @param callback The callback */ - calculateTemplateHash( - template: any, - callback: msRest.ServiceCallback - ): void; + calculateTemplateHash(template: any, callback: msRest.ServiceCallback): void; /** * @param template The template provided to calculate hash. * @param options The optional parameters * @param callback The callback */ - calculateTemplateHash( - template: any, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - calculateTemplateHash( - template: any, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + calculateTemplateHash(template: any, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + calculateTemplateHash(template: any, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { template, options }, calculateTemplateHashOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1703,11 +1122,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginDeleteAtScope( - scope: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { scope, @@ -1715,8 +1130,7 @@ export class Deployments { options }, beginDeleteAtScopeOperationSpec, - options - ); + options); } /** @@ -1728,12 +1142,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdateAtScope( - scope: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { scope, @@ -1742,8 +1151,7 @@ export class Deployments { options }, beginCreateOrUpdateAtScopeOperationSpec, - options - ); + options); } /** @@ -1755,12 +1163,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginValidateAtScope( - scope: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { scope, @@ -1769,8 +1172,7 @@ export class Deployments { options }, beginValidateAtScopeOperationSpec, - options - ); + options); } /** @@ -1786,18 +1188,14 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginDeleteAtTenantScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteAtTenantScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, options }, beginDeleteAtTenantScopeOperationSpec, - options - ); + options); } /** @@ -1808,11 +1206,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdateAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -1820,8 +1214,7 @@ export class Deployments { options }, beginCreateOrUpdateAtTenantScopeOperationSpec, - options - ); + options); } /** @@ -1832,11 +1225,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginValidateAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -1844,8 +1233,7 @@ export class Deployments { options }, beginValidateAtTenantScopeOperationSpec, - options - ); + options); } /** @@ -1856,11 +1244,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginWhatIfAtTenantScope( - deploymentName: string, - parameters: Models.ScopedDeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { + beginWhatIfAtTenantScope(deploymentName: string, parameters: Models.ScopedDeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -1868,8 +1252,7 @@ export class Deployments { options }, beginWhatIfAtTenantScopeOperationSpec, - options - ); + options); } /** @@ -1886,11 +1269,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginDeleteAtManagementGroupScope( - groupId: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { groupId, @@ -1898,8 +1277,7 @@ export class Deployments { options }, beginDeleteAtManagementGroupScopeOperationSpec, - options - ); + options); } /** @@ -1911,12 +1289,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdateAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { groupId, @@ -1925,8 +1298,7 @@ export class Deployments { options }, beginCreateOrUpdateAtManagementGroupScopeOperationSpec, - options - ); + options); } /** @@ -1938,12 +1310,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginValidateAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { groupId, @@ -1952,8 +1319,7 @@ export class Deployments { options }, beginValidateAtManagementGroupScopeOperationSpec, - options - ); + options); } /** @@ -1965,12 +1331,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginWhatIfAtManagementGroupScope( - groupId: string, - deploymentName: string, - parameters: Models.ScopedDeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { + beginWhatIfAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { groupId, @@ -1979,8 +1340,7 @@ export class Deployments { options }, beginWhatIfAtManagementGroupScopeOperationSpec, - options - ); + options); } /** @@ -1996,18 +1356,14 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginDeleteAtSubscriptionScope( - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, options }, beginDeleteAtSubscriptionScopeOperationSpec, - options - ); + options); } /** @@ -2018,11 +1374,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdateAtSubscriptionScope( - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -2030,8 +1382,7 @@ export class Deployments { options }, beginCreateOrUpdateAtSubscriptionScopeOperationSpec, - options - ); + options); } /** @@ -2042,11 +1393,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginValidateAtSubscriptionScope( - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -2054,8 +1401,7 @@ export class Deployments { options }, beginValidateAtSubscriptionScopeOperationSpec, - options - ); + options); } /** @@ -2066,11 +1412,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginWhatIfAtSubscriptionScope( - deploymentName: string, - parameters: Models.DeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { + beginWhatIfAtSubscriptionScope(deploymentName: string, parameters: Models.DeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { deploymentName, @@ -2078,8 +1420,7 @@ export class Deployments { options }, beginWhatIfAtSubscriptionScopeOperationSpec, - options - ); + options); } /** @@ -2098,11 +1439,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - deploymentName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2110,8 +1447,7 @@ export class Deployments { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -2124,12 +1460,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2138,8 +1469,7 @@ export class Deployments { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -2152,12 +1482,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginValidate( - resourceGroupName: string, - deploymentName: string, - parameters: Models.Deployment, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2166,8 +1491,7 @@ export class Deployments { options }, beginValidateOperationSpec, - options - ); + options); } /** @@ -2180,12 +1504,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - beginWhatIf( - resourceGroupName: string, - deploymentName: string, - parameters: Models.DeploymentWhatIf, - options?: msRest.RequestOptionsBase - ): Promise { + beginWhatIf(resourceGroupName: string, deploymentName: string, parameters: Models.DeploymentWhatIf, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2194,8 +1513,7 @@ export class Deployments { options }, beginWhatIfOperationSpec, - options - ); + options); } /** @@ -2204,43 +1522,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtScopeNext( - nextPageLink: string, - options?: Models.DeploymentsListAtScopeNextOptionalParams - ): Promise; + listAtScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtScopeNext(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 */ - listAtScopeNext( - nextPageLink: string, - options: Models.DeploymentsListAtScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentsListAtScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtScopeNext(nextPageLink: string, options: Models.DeploymentsListAtScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -2249,43 +1550,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScopeNext( - nextPageLink: string, - options?: Models.DeploymentsListAtTenantScopeNextOptionalParams - ): Promise; + listAtTenantScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtTenantScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtTenantScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtTenantScopeNext(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 */ - listAtTenantScopeNext( - nextPageLink: string, - options: Models.DeploymentsListAtTenantScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentsListAtTenantScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScopeNext(nextPageLink: string, options: Models.DeploymentsListAtTenantScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtTenantScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtTenantScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -2294,43 +1578,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtManagementGroupScopeNext( - nextPageLink: string, - options?: Models.DeploymentsListAtManagementGroupScopeNextOptionalParams - ): Promise; + listAtManagementGroupScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtManagementGroupScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtManagementGroupScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtManagementGroupScopeNext(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 */ - listAtManagementGroupScopeNext( - nextPageLink: string, - options: Models.DeploymentsListAtManagementGroupScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtManagementGroupScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentsListAtManagementGroupScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtManagementGroupScopeNext(nextPageLink: string, options: Models.DeploymentsListAtManagementGroupScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtManagementGroupScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtManagementGroupScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -2339,43 +1606,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listAtSubscriptionScopeNext( - nextPageLink: string, - options?: Models.DeploymentsListAtSubscriptionScopeNextOptionalParams - ): Promise; + listAtSubscriptionScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtSubscriptionScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtSubscriptionScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtSubscriptionScopeNext(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 */ - listAtSubscriptionScopeNext( - nextPageLink: string, - options: Models.DeploymentsListAtSubscriptionScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtSubscriptionScopeNext( - nextPageLink: string, - options?: - | Models.DeploymentsListAtSubscriptionScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtSubscriptionScopeNext(nextPageLink: string, options: Models.DeploymentsListAtSubscriptionScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtSubscriptionScopeNext(nextPageLink: string, options?: Models.DeploymentsListAtSubscriptionScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtSubscriptionScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -2384,43 +1634,26 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: Models.DeploymentsListByResourceGroupNextOptionalParams - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.DeploymentsListByResourceGroupNextOptionalParams): 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: Models.DeploymentsListByResourceGroupNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: - | Models.DeploymentsListByResourceGroupNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.DeploymentsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.DeploymentsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -2429,9 +1662,16 @@ const serializer = new msRest.Serializer(Mappers); const checkExistenceAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -2445,9 +1685,16 @@ const checkExistenceAtScopeOperationSpec: msRest.OperationSpec = { const getAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExtended @@ -2462,9 +1709,16 @@ const getAtScopeOperationSpec: msRest.OperationSpec = { const cancelAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -2477,9 +1731,16 @@ const cancelAtScopeOperationSpec: msRest.OperationSpec = { const exportTemplateAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExportResult @@ -2494,9 +1755,17 @@ const exportTemplateAtScopeOperationSpec: msRest.OperationSpec = { const listAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{scope}/providers/Microsoft.Resources/deployments/", - urlParameters: [Parameters.scope], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -2511,9 +1780,15 @@ const listAtScopeOperationSpec: msRest.OperationSpec = { const checkExistenceAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -2527,9 +1802,15 @@ const checkExistenceAtTenantScopeOperationSpec: msRest.OperationSpec = { const getAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExtended @@ -2544,9 +1825,15 @@ const getAtTenantScopeOperationSpec: msRest.OperationSpec = { const cancelAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Resources/deployments/{deploymentName}/cancel", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -2559,9 +1846,15 @@ const cancelAtTenantScopeOperationSpec: msRest.OperationSpec = { const exportTemplateAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExportResult @@ -2576,8 +1869,14 @@ const exportTemplateAtTenantScopeOperationSpec: msRest.OperationSpec = { const listAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Resources/deployments/", - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -2591,11 +1890,17 @@ const listAtTenantScopeOperationSpec: msRest.OperationSpec = { const checkExistenceAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -2608,11 +1913,17 @@ const checkExistenceAtManagementGroupScopeOperationSpec: msRest.OperationSpec = const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExtended @@ -2626,11 +1937,17 @@ const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const cancelAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -2642,11 +1959,17 @@ const cancelAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const exportTemplateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExportResult @@ -2660,11 +1983,18 @@ const exportTemplateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/", - urlParameters: [Parameters.groupId], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/", + urlParameters: [ + Parameters.groupId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -2679,9 +2009,16 @@ const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const checkExistenceAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -2695,9 +2032,16 @@ const checkExistenceAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const getAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExtended @@ -2711,11 +2055,17 @@ const getAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const cancelAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -2727,11 +2077,17 @@ const cancelAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const exportTemplateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExportResult @@ -2746,9 +2102,17 @@ const exportTemplateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const listAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -2762,15 +2126,18 @@ const listAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const checkExistenceOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -2783,15 +2150,18 @@ const checkExistenceOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExtended @@ -2805,15 +2175,18 @@ const getOperationSpec: msRest.OperationSpec = { const cancelOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -2825,15 +2198,18 @@ const cancelOperationSpec: msRest.OperationSpec = { const exportTemplateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentExportResult @@ -2847,11 +2223,19 @@ const exportTemplateOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/", + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -2866,8 +2250,12 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const calculateTemplateHashOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Resources/calculateTemplateHash", - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "template", mapper: { @@ -2892,9 +2280,16 @@ const calculateTemplateHashOperationSpec: msRest.OperationSpec = { const beginDeleteAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2908,9 +2303,16 @@ const beginDeleteAtScopeOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -2935,9 +2337,16 @@ const beginCreateOrUpdateAtScopeOperationSpec: msRest.OperationSpec = { const beginValidateAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", - urlParameters: [Parameters.scope, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -2963,9 +2372,15 @@ const beginValidateAtScopeOperationSpec: msRest.OperationSpec = { const beginDeleteAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2979,9 +2394,15 @@ const beginDeleteAtTenantScopeOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3006,9 +2427,15 @@ const beginCreateOrUpdateAtTenantScopeOperationSpec: msRest.OperationSpec = { const beginValidateAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Resources/deployments/{deploymentName}/validate", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3034,9 +2461,15 @@ const beginValidateAtTenantScopeOperationSpec: msRest.OperationSpec = { const beginWhatIfAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", - urlParameters: [Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3062,11 +2495,17 @@ const beginWhatIfAtTenantScopeOperationSpec: msRest.OperationSpec = { const beginDeleteAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -3079,11 +2518,17 @@ const beginDeleteAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3107,11 +2552,17 @@ const beginCreateOrUpdateAtManagementGroupScopeOperationSpec: msRest.OperationSp const beginValidateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3136,11 +2587,17 @@ const beginValidateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const beginWhatIfAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", - urlParameters: [Parameters.groupId, Parameters.deploymentName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3167,9 +2624,16 @@ const beginWhatIfAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { const beginDeleteAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -3183,9 +2647,16 @@ const beginDeleteAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3209,11 +2680,17 @@ const beginCreateOrUpdateAtSubscriptionScopeOperationSpec: msRest.OperationSpec const beginValidateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3238,11 +2715,17 @@ const beginValidateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const beginWhatIfAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", - urlParameters: [Parameters.deploymentName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + urlParameters: [ + Parameters.deploymentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3268,15 +2751,18 @@ const beginWhatIfAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -3289,15 +2775,18 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3321,15 +2810,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginValidateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3354,15 +2846,18 @@ const beginValidateOperationSpec: msRest.OperationSpec = { const beginWhatIfOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.deploymentName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -3390,9 +2885,17 @@ const listAtScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -3408,9 +2911,17 @@ const listAtTenantScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -3426,9 +2937,17 @@ const listAtManagementGroupScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -3444,9 +2963,17 @@ const listAtSubscriptionScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult @@ -3462,9 +2989,17 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DeploymentListResult diff --git a/sdk/resources/arm-resources/src/operations/operations.ts b/sdk/resources/arm-resources/src/operations/operations.ts index d059d5ad2c40..ddbd82277168 100644 --- a/sdk/resources/arm-resources/src/operations/operations.ts +++ b/sdk/resources/arm-resources/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.Resources/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/resources/arm-resources/src/operations/providerResourceTypes.ts b/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts index f1c3dede0f22..b2df4d7b90be 100644 --- a/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts +++ b/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts @@ -31,43 +31,26 @@ export class ProviderResourceTypes { * @param [options] The optional parameters * @returns Promise */ - list( - resourceProviderNamespace: string, - options?: Models.ProviderResourceTypesListOptionalParams - ): Promise; + list(resourceProviderNamespace: string, options?: Models.ProviderResourceTypesListOptionalParams): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider. * @param callback The callback */ - list( - resourceProviderNamespace: string, - callback: msRest.ServiceCallback - ): void; + list(resourceProviderNamespace: string, callback: msRest.ServiceCallback): void; /** * @param resourceProviderNamespace The namespace of the resource provider. * @param options The optional parameters * @param callback The callback */ - list( - resourceProviderNamespace: string, - options: Models.ProviderResourceTypesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - resourceProviderNamespace: string, - options?: - | Models.ProviderResourceTypesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceProviderNamespace: string, options: Models.ProviderResourceTypesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceProviderNamespace: string, options?: Models.ProviderResourceTypesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -76,9 +59,17 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes", - urlParameters: [Parameters.resourceProviderNamespace, Parameters.subscriptionId], - queryParameters: [Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProviderResourceTypeListResult diff --git a/sdk/resources/arm-resources/src/operations/providers.ts b/sdk/resources/arm-resources/src/operations/providers.ts index 757b841829b6..bf5c8b49c948 100644 --- a/sdk/resources/arm-resources/src/operations/providers.ts +++ b/sdk/resources/arm-resources/src/operations/providers.ts @@ -31,41 +31,26 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - unregister( - resourceProviderNamespace: string, - options?: msRest.RequestOptionsBase - ): Promise; + unregister(resourceProviderNamespace: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider to unregister. * @param callback The callback */ - unregister( - resourceProviderNamespace: string, - callback: msRest.ServiceCallback - ): void; + unregister(resourceProviderNamespace: string, callback: msRest.ServiceCallback): void; /** * @param resourceProviderNamespace The namespace of the resource provider to unregister. * @param options The optional parameters * @param callback The callback */ - unregister( - resourceProviderNamespace: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - unregister( - resourceProviderNamespace: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + unregister(resourceProviderNamespace: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + unregister(resourceProviderNamespace: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, unregisterOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -75,39 +60,21 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - registerAtManagementGroupScope( - resourceProviderNamespace: string, - groupId: string, - options?: msRest.RequestOptionsBase - ): Promise; + registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider to register. * @param groupId The management group ID. * @param callback The callback */ - registerAtManagementGroupScope( - resourceProviderNamespace: string, - groupId: string, - callback: msRest.ServiceCallback - ): void; + registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, callback: msRest.ServiceCallback): void; /** * @param resourceProviderNamespace The namespace of the resource provider to register. * @param groupId The management group ID. * @param options The optional parameters * @param callback The callback */ - registerAtManagementGroupScope( - resourceProviderNamespace: string, - groupId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - registerAtManagementGroupScope( - resourceProviderNamespace: string, - groupId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, @@ -115,8 +82,35 @@ export class Providers { options }, registerAtManagementGroupScopeOperationSpec, - callback - ); + callback); + } + + /** + * Get the provider permissions. + * @param resourceProviderNamespace The namespace of the resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + providerPermissions(resourceProviderNamespace: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceProviderNamespace The namespace of the resource provider. + * @param callback The callback + */ + providerPermissions(resourceProviderNamespace: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceProviderNamespace The namespace of the resource provider. + * @param options The optional parameters + * @param callback The callback + */ + providerPermissions(resourceProviderNamespace: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + providerPermissions(resourceProviderNamespace: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceProviderNamespace, + options + }, + providerPermissionsOperationSpec, + callback) as Promise; } /** @@ -125,41 +119,26 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - register( - resourceProviderNamespace: string, - options?: msRest.RequestOptionsBase - ): Promise; + register(resourceProviderNamespace: string, options?: Models.ProvidersRegisterOptionalParams): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider to register. * @param callback The callback */ - register( - resourceProviderNamespace: string, - callback: msRest.ServiceCallback - ): void; + register(resourceProviderNamespace: string, callback: msRest.ServiceCallback): void; /** * @param resourceProviderNamespace The namespace of the resource provider to register. * @param options The optional parameters * @param callback The callback */ - register( - resourceProviderNamespace: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - register( - resourceProviderNamespace: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + register(resourceProviderNamespace: string, options: Models.ProvidersRegisterOptionalParams, callback: msRest.ServiceCallback): void; + register(resourceProviderNamespace: string, options?: Models.ProvidersRegisterOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, registerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -176,23 +155,14 @@ export class Providers { * @param options The optional parameters * @param callback The callback */ - list( - options: Models.ProvidersListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.ProvidersListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: Models.ProvidersListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ProvidersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -200,9 +170,7 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScope( - options?: Models.ProvidersListAtTenantScopeOptionalParams - ): Promise; + listAtTenantScope(options?: Models.ProvidersListAtTenantScopeOptionalParams): Promise; /** * @param callback The callback */ @@ -211,23 +179,14 @@ export class Providers { * @param options The optional parameters * @param callback The callback */ - listAtTenantScope( - options: Models.ProvidersListAtTenantScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScope( - options?: - | Models.ProvidersListAtTenantScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScope(options: Models.ProvidersListAtTenantScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScope(options?: Models.ProvidersListAtTenantScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -236,10 +195,7 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - get( - resourceProviderNamespace: string, - options?: Models.ProvidersGetOptionalParams - ): Promise; + get(resourceProviderNamespace: string, options?: Models.ProvidersGetOptionalParams): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider. * @param callback The callback @@ -250,24 +206,15 @@ export class Providers { * @param options The optional parameters * @param callback The callback */ - get( - resourceProviderNamespace: string, - options: Models.ProvidersGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceProviderNamespace: string, - options?: Models.ProvidersGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceProviderNamespace: string, options: Models.ProvidersGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceProviderNamespace: string, options?: Models.ProvidersGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -276,43 +223,26 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - getAtTenantScope( - resourceProviderNamespace: string, - options?: Models.ProvidersGetAtTenantScopeOptionalParams - ): Promise; + getAtTenantScope(resourceProviderNamespace: string, options?: Models.ProvidersGetAtTenantScopeOptionalParams): Promise; /** * @param resourceProviderNamespace The namespace of the resource provider. * @param callback The callback */ - getAtTenantScope( - resourceProviderNamespace: string, - callback: msRest.ServiceCallback - ): void; + getAtTenantScope(resourceProviderNamespace: string, callback: msRest.ServiceCallback): void; /** * @param resourceProviderNamespace The namespace of the resource provider. * @param options The optional parameters * @param callback The callback */ - getAtTenantScope( - resourceProviderNamespace: string, - options: Models.ProvidersGetAtTenantScopeOptionalParams, - callback: msRest.ServiceCallback - ): void; - getAtTenantScope( - resourceProviderNamespace: string, - options?: - | Models.ProvidersGetAtTenantScopeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtTenantScope(resourceProviderNamespace: string, options: Models.ProvidersGetAtTenantScopeOptionalParams, callback: msRest.ServiceCallback): void; + getAtTenantScope(resourceProviderNamespace: string, options?: Models.ProvidersGetAtTenantScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, getAtTenantScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -321,10 +251,7 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.ProvidersListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.ProvidersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -335,26 +262,15 @@ export class Providers { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.ProvidersListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ProvidersListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.ProvidersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProvidersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -363,43 +279,26 @@ export class Providers { * @param [options] The optional parameters * @returns Promise */ - listAtTenantScopeNext( - nextPageLink: string, - options?: Models.ProvidersListAtTenantScopeNextOptionalParams - ): Promise; + listAtTenantScopeNext(nextPageLink: string, options?: Models.ProvidersListAtTenantScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAtTenantScopeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAtTenantScopeNext(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 */ - listAtTenantScopeNext( - nextPageLink: string, - options: Models.ProvidersListAtTenantScopeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAtTenantScopeNext( - nextPageLink: string, - options?: - | Models.ProvidersListAtTenantScopeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAtTenantScopeNext(nextPageLink: string, options: Models.ProvidersListAtTenantScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listAtTenantScopeNext(nextPageLink: string, options?: Models.ProvidersListAtTenantScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAtTenantScopeNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -408,9 +307,16 @@ const serializer = new msRest.Serializer(Mappers); const unregisterOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister", - urlParameters: [Parameters.resourceProviderNamespace, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Provider @@ -424,11 +330,17 @@ const unregisterOperationSpec: msRest.OperationSpec = { const registerAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register", - urlParameters: [Parameters.resourceProviderNamespace, Parameters.groupId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register", + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.groupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, default: { @@ -438,12 +350,50 @@ const registerAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { serializer }; +const providerPermissionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions", + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderPermissionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const registerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register", - urlParameters: [Parameters.resourceProviderNamespace, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "properties" + ], + mapper: Mappers.ProviderRegistrationRequest + }, responses: { 200: { bodyMapper: Mappers.Provider @@ -458,9 +408,17 @@ const registerOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.top, Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProviderListResult @@ -475,8 +433,14 @@ const listOperationSpec: msRest.OperationSpec = { const listAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers", - queryParameters: [Parameters.top, Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.top, + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProviderListResult @@ -491,9 +455,17 @@ const listAtTenantScopeOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}", - urlParameters: [Parameters.resourceProviderNamespace, Parameters.subscriptionId], - queryParameters: [Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceProviderNamespace, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Provider @@ -508,9 +480,16 @@ const getOperationSpec: msRest.OperationSpec = { const getAtTenantScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/{resourceProviderNamespace}", - urlParameters: [Parameters.resourceProviderNamespace], - queryParameters: [Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceProviderNamespace + ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Provider @@ -526,9 +505,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProviderListResult @@ -544,9 +531,17 @@ const listAtTenantScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.top, Parameters.expand, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.top, + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProviderListResult diff --git a/sdk/resources/arm-resources/src/operations/resourceGroups.ts b/sdk/resources/arm-resources/src/operations/resourceGroups.ts index 3f85612e27e3..620135f80d1c 100644 --- a/sdk/resources/arm-resources/src/operations/resourceGroups.ts +++ b/sdk/resources/arm-resources/src/operations/resourceGroups.ts @@ -32,10 +32,7 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - checkExistence( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistence(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group to check. The name is case insensitive. * @param callback The callback @@ -46,24 +43,15 @@ export class ResourceGroups { * @param options The optional parameters * @param callback The callback */ - checkExistence( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistence( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistence(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistence(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, checkExistenceOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -75,11 +63,7 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - parameters: Models.ResourceGroup, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(resourceGroupName: string, parameters: Models.ResourceGroup, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group to create or update. Can include * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters @@ -87,11 +71,7 @@ export class ResourceGroups { * @param parameters Parameters supplied to the create or update a resource group. * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - parameters: Models.ResourceGroup, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(resourceGroupName: string, parameters: Models.ResourceGroup, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group to create or update. Can include * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters @@ -100,18 +80,8 @@ export class ResourceGroups { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - parameters: Models.ResourceGroup, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - resourceGroupName: string, - parameters: Models.ResourceGroup, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(resourceGroupName: string, parameters: Models.ResourceGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, parameters: Models.ResourceGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,8 +89,7 @@ export class ResourceGroups { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -131,13 +100,9 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, options?: Models.ResourceGroupsDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -146,10 +111,7 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group to get. The name is case insensitive. * @param callback The callback @@ -160,24 +122,15 @@ export class ResourceGroups { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -190,39 +143,21 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - parameters: Models.ResourceGroupPatchable, - options?: msRest.RequestOptionsBase - ): Promise; + update(resourceGroupName: string, parameters: Models.ResourceGroupPatchable, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group to update. The name is case insensitive. * @param parameters Parameters supplied to update a resource group. * @param callback The callback */ - update( - resourceGroupName: string, - parameters: Models.ResourceGroupPatchable, - callback: msRest.ServiceCallback - ): void; + update(resourceGroupName: string, parameters: Models.ResourceGroupPatchable, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group to update. The name is case insensitive. * @param parameters Parameters supplied to update a resource group. * @param options The optional parameters * @param callback The callback */ - update( - resourceGroupName: string, - parameters: Models.ResourceGroupPatchable, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - resourceGroupName: string, - parameters: Models.ResourceGroupPatchable, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(resourceGroupName: string, parameters: Models.ResourceGroupPatchable, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, parameters: Models.ResourceGroupPatchable, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -230,8 +165,7 @@ export class ResourceGroups { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -241,14 +175,9 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - exportTemplate( - resourceGroupName: string, - parameters: Models.ExportTemplateRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginExportTemplate(resourceGroupName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginExportTemplate(resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -256,9 +185,7 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - list( - options?: Models.ResourceGroupsListOptionalParams - ): Promise; + list(options?: Models.ResourceGroupsListOptionalParams): Promise; /** * @param callback The callback */ @@ -267,23 +194,14 @@ export class ResourceGroups { * @param options The optional parameters * @param callback The callback */ - list( - options: Models.ResourceGroupsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.ResourceGroupsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: Models.ResourceGroupsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ResourceGroupsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -294,18 +212,14 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, options?: Models.ResourceGroupsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -315,11 +229,7 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - beginExportTemplate( - resourceGroupName: string, - parameters: Models.ExportTemplateRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginExportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -327,8 +237,7 @@ export class ResourceGroups { options }, beginExportTemplateOperationSpec, - options - ); + options); } /** @@ -337,43 +246,26 @@ export class ResourceGroups { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.ResourceGroupsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.ResourceGroupsListNextOptionalParams): 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: Models.ResourceGroupsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ResourceGroupsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.ResourceGroupsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ResourceGroupsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -382,9 +274,16 @@ const serializer = new msRest.Serializer(Mappers); const checkExistenceOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -398,9 +297,16 @@ const checkExistenceOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -425,9 +331,16 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceGroup @@ -442,9 +355,16 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -466,9 +386,17 @@ const updateOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourcegroups", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceGroupListResult @@ -483,9 +411,17 @@ const listOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.forceDeletionTypes, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -499,9 +435,16 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginExportTemplateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName1 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -525,9 +468,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceGroupListResult diff --git a/sdk/resources/arm-resources/src/operations/resources.ts b/sdk/resources/arm-resources/src/operations/resources.ts index 5433d06caac8..47270e3f0325 100644 --- a/sdk/resources/arm-resources/src/operations/resources.ts +++ b/sdk/resources/arm-resources/src/operations/resources.ts @@ -32,90 +32,63 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: Models.ResourcesListByResourceGroupOptionalParams - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: Models.ResourcesListByResourceGroupOptionalParams): Promise; /** * @param resourceGroupName The resource group with the resources to get. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The resource group with the resources to get. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: Models.ResourcesListByResourceGroupOptionalParams, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: - | Models.ResourcesListByResourceGroupOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.ResourcesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.ResourcesListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** - * The resources to move must be in the same source resource group. The target resource group may - * be in a different subscription. When moving resources, both the source group and the target - * group are locked for the duration of the operation. Write and delete operations are blocked on - * the groups until the move completes. + * The resources to be moved must be in the same source resource group in the source subscription + * being used. The target resource group may be in a different subscription. When moving resources, + * both the source group and the target group are locked for the duration of the operation. Write + * and delete operations are blocked on the groups until the move completes. * @summary Moves resources from one resource group to another resource group. - * @param sourceResourceGroupName The name of the resource group containing the resources to move. + * @param sourceResourceGroupName The name of the resource group from the source subscription + * containing the resources to be moved. * @param parameters Parameters for moving resources. * @param [options] The optional parameters * @returns Promise */ - moveResources( - sourceResourceGroupName: string, - parameters: Models.ResourcesMoveInfo, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMoveResources(sourceResourceGroupName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + moveResources(sourceResourceGroupName: string, parameters: Models.ResourcesMoveInfo, options?: msRest.RequestOptionsBase): Promise { + return this.beginMoveResources(sourceResourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** * This operation checks whether the specified resources can be moved to the target. The resources - * to move must be in the same source resource group. The target resource group may be in a - * different subscription. If validation succeeds, it returns HTTP response code 204 (no content). - * If validation fails, it returns HTTP response code 409 (Conflict) with an error message. - * Retrieve the URL in the Location header value to check the result of the long-running operation. + * to be moved must be in the same source resource group in the source subscription being used. The + * target resource group may be in a different subscription. If validation succeeds, it returns + * HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 + * (Conflict) with an error message. Retrieve the URL in the Location header value to check the + * result of the long-running operation. * @summary Validates whether resources can be moved from one resource group to another resource * group. - * @param sourceResourceGroupName The name of the resource group containing the resources to - * validate for move. + * @param sourceResourceGroupName The name of the resource group from the source subscription + * containing the resources to be validated for move. * @param parameters Parameters for moving resources. * @param [options] The optional parameters * @returns Promise */ - validateMoveResources( - sourceResourceGroupName: string, - parameters: Models.ResourcesMoveInfo, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginValidateMoveResources( - sourceResourceGroupName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + validateMoveResources(sourceResourceGroupName: string, parameters: Models.ResourcesMoveInfo, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidateMoveResources(sourceResourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -132,23 +105,14 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - list( - options: Models.ResourcesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.ResourcesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: Models.ResourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -163,15 +127,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - checkExistence( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistence(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group containing the resource to check. The * name is case insensitive. @@ -182,15 +138,7 @@ export class Resources { * @param apiVersion The API version to use for the operation. * @param callback The callback */ - checkExistence( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - callback: msRest.ServiceCallback - ): void; + checkExistence(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group containing the resource to check. The * name is case insensitive. @@ -202,26 +150,8 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - checkExistence( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistence( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistence(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistence(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -233,8 +163,7 @@ export class Resources { options }, checkExistenceOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -249,24 +178,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - resourceProviderNamespace, - parentResourcePath, - resourceType, - resourceName, - apiVersion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceProviderNamespace,parentResourcePath,resourceType,resourceName,apiVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -282,28 +196,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - resourceProviderNamespace, - parentResourcePath, - resourceType, - resourceName, - apiVersion, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.ResourcesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,resourceProviderNamespace,parentResourcePath,resourceType,resourceName,apiVersion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -319,26 +214,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - resourceProviderNamespace, - parentResourcePath, - resourceType, - resourceName, - apiVersion, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise; + update(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,resourceProviderNamespace,parentResourcePath,resourceType,resourceName,apiVersion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -353,15 +231,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group containing the resource to get. The name * is case insensitive. @@ -372,15 +242,7 @@ export class Resources { * @param apiVersion The API version to use for the operation. * @param callback The callback */ - get( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group containing the resource to get. The name * is case insensitive. @@ -392,26 +254,8 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -423,8 +267,7 @@ export class Resources { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -436,11 +279,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - checkExistenceById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise; + checkExistenceById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceId The fully qualified ID of the resource, including the resource name and * resource type. Use the format, @@ -448,11 +287,7 @@ export class Resources { * @param apiVersion The API version to use for the operation. * @param callback The callback */ - checkExistenceById( - resourceId: string, - apiVersion: string, - callback: msRest.ServiceCallback - ): void; + checkExistenceById(resourceId: string, apiVersion: string, callback: msRest.ServiceCallback): void; /** * @param resourceId The fully qualified ID of the resource, including the resource name and * resource type. Use the format, @@ -461,18 +296,8 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - checkExistenceById( - resourceId: string, - apiVersion: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkExistenceById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkExistenceById(resourceId: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceId, @@ -480,8 +305,7 @@ export class Resources { options }, checkExistenceByIdOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -493,14 +317,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - deleteById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteById(resourceId, apiVersion, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteById(resourceId,apiVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -513,20 +332,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateById( - resourceId: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdateById( - resourceId, - apiVersion, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.ResourcesCreateOrUpdateByIdResponse - >; + createOrUpdateById(resourceId: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateById(resourceId,apiVersion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -539,15 +347,9 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - updateById( - resourceId: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateById(resourceId, apiVersion, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + updateById(resourceId: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateById(resourceId,apiVersion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -559,11 +361,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - getById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise; + getById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceId The fully qualified ID of the resource, including the resource name and * resource type. Use the format, @@ -571,11 +369,7 @@ export class Resources { * @param apiVersion The API version to use for the operation. * @param callback The callback */ - getById( - resourceId: string, - apiVersion: string, - callback: msRest.ServiceCallback - ): void; + getById(resourceId: string, apiVersion: string, callback: msRest.ServiceCallback): void; /** * @param resourceId The fully qualified ID of the resource, including the resource name and * resource type. Use the format, @@ -584,18 +378,8 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - getById( - resourceId: string, - apiVersion: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getById(resourceId: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceId, @@ -603,26 +387,22 @@ export class Resources { options }, getByIdOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** - * The resources to move must be in the same source resource group. The target resource group may - * be in a different subscription. When moving resources, both the source group and the target - * group are locked for the duration of the operation. Write and delete operations are blocked on - * the groups until the move completes. + * The resources to be moved must be in the same source resource group in the source subscription + * being used. The target resource group may be in a different subscription. When moving resources, + * both the source group and the target group are locked for the duration of the operation. Write + * and delete operations are blocked on the groups until the move completes. * @summary Moves resources from one resource group to another resource group. - * @param sourceResourceGroupName The name of the resource group containing the resources to move. + * @param sourceResourceGroupName The name of the resource group from the source subscription + * containing the resources to be moved. * @param parameters Parameters for moving resources. * @param [options] The optional parameters * @returns Promise */ - beginMoveResources( - sourceResourceGroupName: string, - parameters: Models.ResourcesMoveInfo, - options?: msRest.RequestOptionsBase - ): Promise { + beginMoveResources(sourceResourceGroupName: string, parameters: Models.ResourcesMoveInfo, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { sourceResourceGroupName, @@ -630,29 +410,25 @@ export class Resources { options }, beginMoveResourcesOperationSpec, - options - ); + options); } /** * This operation checks whether the specified resources can be moved to the target. The resources - * to move must be in the same source resource group. The target resource group may be in a - * different subscription. If validation succeeds, it returns HTTP response code 204 (no content). - * If validation fails, it returns HTTP response code 409 (Conflict) with an error message. - * Retrieve the URL in the Location header value to check the result of the long-running operation. + * to be moved must be in the same source resource group in the source subscription being used. The + * target resource group may be in a different subscription. If validation succeeds, it returns + * HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 + * (Conflict) with an error message. Retrieve the URL in the Location header value to check the + * result of the long-running operation. * @summary Validates whether resources can be moved from one resource group to another resource * group. - * @param sourceResourceGroupName The name of the resource group containing the resources to - * validate for move. + * @param sourceResourceGroupName The name of the resource group from the source subscription + * containing the resources to be validated for move. * @param parameters Parameters for moving resources. * @param [options] The optional parameters * @returns Promise */ - beginValidateMoveResources( - sourceResourceGroupName: string, - parameters: Models.ResourcesMoveInfo, - options?: msRest.RequestOptionsBase - ): Promise { + beginValidateMoveResources(sourceResourceGroupName: string, parameters: Models.ResourcesMoveInfo, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { sourceResourceGroupName, @@ -660,8 +436,7 @@ export class Resources { options }, beginValidateMoveResourcesOperationSpec, - options - ); + options); } /** @@ -676,15 +451,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -696,8 +463,7 @@ export class Resources { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -713,16 +479,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -735,8 +492,7 @@ export class Resources { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -752,16 +508,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - resourceProviderNamespace: string, - parentResourcePath: string, - resourceType: string, - resourceName: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -774,8 +521,7 @@ export class Resources { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -787,11 +533,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteById( - resourceId: string, - apiVersion: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteById(resourceId: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceId, @@ -799,8 +541,7 @@ export class Resources { options }, beginDeleteByIdOperationSpec, - options - ); + options); } /** @@ -813,12 +554,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdateById( - resourceId: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdateById(resourceId: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceId, @@ -827,8 +563,7 @@ export class Resources { options }, beginCreateOrUpdateByIdOperationSpec, - options - ); + options); } /** @@ -841,12 +576,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateById( - resourceId: string, - apiVersion: string, - parameters: Models.GenericResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateById(resourceId: string, apiVersion: string, parameters: Models.GenericResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceId, @@ -855,8 +585,7 @@ export class Resources { options }, beginUpdateByIdOperationSpec, - options - ); + options); } /** @@ -865,43 +594,26 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: Models.ResourcesListByResourceGroupNextOptionalParams - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ResourcesListByResourceGroupNextOptionalParams): 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: Models.ResourcesListByResourceGroupNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: - | Models.ResourcesListByResourceGroupNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.ResourcesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ResourcesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -910,10 +622,7 @@ export class Resources { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.ResourcesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.ResourcesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -924,26 +633,15 @@ export class Resources { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.ResourcesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ResourcesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.ResourcesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ResourcesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -952,9 +650,19 @@ const serializer = new msRest.Serializer(Mappers); const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.filter, Parameters.expand, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceGroupName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.expand, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceListResult @@ -969,9 +677,18 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resources", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.filter, Parameters.expand, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.expand, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceListResult @@ -985,18 +702,21 @@ const listOperationSpec: msRest.OperationSpec = { const checkExistenceOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, Parameters.resourceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -1009,18 +729,21 @@ const checkExistenceOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, Parameters.resourceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GenericResource @@ -1035,9 +758,15 @@ const getOperationSpec: msRest.OperationSpec = { const checkExistenceByIdOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "{resourceId}", - urlParameters: [Parameters.resourceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, 404: {}, @@ -1051,9 +780,15 @@ const checkExistenceByIdOperationSpec: msRest.OperationSpec = { const getByIdOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{resourceId}", - urlParameters: [Parameters.resourceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GenericResource @@ -1068,9 +803,16 @@ const getByIdOperationSpec: msRest.OperationSpec = { const beginMoveResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources", - urlParameters: [Parameters.sourceResourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.sourceResourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1090,11 +832,17 @@ const beginMoveResourcesOperationSpec: msRest.OperationSpec = { const beginValidateMoveResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources", - urlParameters: [Parameters.sourceResourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources", + urlParameters: [ + Parameters.sourceResourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1114,18 +862,21 @@ const beginValidateMoveResourcesOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, Parameters.resourceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1139,18 +890,21 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, Parameters.resourceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1175,18 +929,21 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, Parameters.resourceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1209,9 +966,15 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteByIdOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "{resourceId}", - urlParameters: [Parameters.resourceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1226,9 +989,15 @@ const beginDeleteByIdOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateByIdOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "{resourceId}", - urlParameters: [Parameters.resourceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1254,9 +1023,15 @@ const beginCreateOrUpdateByIdOperationSpec: msRest.OperationSpec = { const beginUpdateByIdOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "{resourceId}", - urlParameters: [Parameters.resourceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1280,9 +1055,18 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.expand, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.expand, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceListResult @@ -1298,9 +1082,18 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.filter, Parameters.expand, Parameters.top, Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.expand, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceListResult diff --git a/sdk/resources/arm-resources/src/operations/tagsOperations.ts b/sdk/resources/arm-resources/src/operations/tagsOperations.ts index de5d8e5d3bc2..dcdc9e81a008 100644 --- a/sdk/resources/arm-resources/src/operations/tagsOperations.ts +++ b/sdk/resources/arm-resources/src/operations/tagsOperations.ts @@ -35,11 +35,7 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - deleteValue( - tagName: string, - tagValue: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteValue(tagName: string, tagValue: string, options?: msRest.RequestOptionsBase): Promise; /** * @param tagName The name of the tag. * @param tagValue The value of the tag to delete. @@ -52,18 +48,8 @@ export class TagsOperations { * @param options The optional parameters * @param callback The callback */ - deleteValue( - tagName: string, - tagValue: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteValue( - tagName: string, - tagValue: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteValue(tagName: string, tagValue: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteValue(tagName: string, tagValue: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { tagName, @@ -71,8 +57,7 @@ export class TagsOperations { options }, deleteValueOperationSpec, - callback - ); + callback); } /** @@ -84,39 +69,21 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateValue( - tagName: string, - tagValue: string, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdateValue(tagName: string, tagValue: string, options?: msRest.RequestOptionsBase): Promise; /** * @param tagName The name of the tag. * @param tagValue The value of the tag to create. * @param callback The callback */ - createOrUpdateValue( - tagName: string, - tagValue: string, - callback: msRest.ServiceCallback - ): void; + createOrUpdateValue(tagName: string, tagValue: string, callback: msRest.ServiceCallback): void; /** * @param tagName The name of the tag. * @param tagValue The value of the tag to create. * @param options The optional parameters * @param callback The callback */ - createOrUpdateValue( - tagName: string, - tagValue: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdateValue( - tagName: string, - tagValue: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdateValue(tagName: string, tagValue: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateValue(tagName: string, tagValue: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { tagName, @@ -124,8 +91,7 @@ export class TagsOperations { options }, createOrUpdateValueOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -138,10 +104,7 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - tagName: string, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(tagName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param tagName The name of the tag to create. * @param callback The callback @@ -152,24 +115,15 @@ export class TagsOperations { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - tagName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - tagName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(tagName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(tagName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { tagName, options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -192,24 +146,15 @@ export class TagsOperations { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - tagName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - tagName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(tagName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(tagName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { tagName, options }, deleteMethodOperationSpec, - callback - ); + callback); } /** @@ -230,21 +175,14 @@ export class TagsOperations { * @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; } /** @@ -256,39 +194,21 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - createOrUpdateAtScope( - scope: string, - parameters: Models.TagsResource, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param parameters * @param callback The callback */ - createOrUpdateAtScope( - scope: string, - parameters: Models.TagsResource, - callback: msRest.ServiceCallback - ): void; + createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param parameters * @param options The optional parameters * @param callback The callback */ - createOrUpdateAtScope( - scope: string, - parameters: Models.TagsResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdateAtScope( - scope: string, - parameters: Models.TagsResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -296,8 +216,7 @@ export class TagsOperations { options }, createOrUpdateAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -312,39 +231,21 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - updateAtScope( - scope: string, - parameters: Models.TagsPatchResource, - options?: msRest.RequestOptionsBase - ): Promise; + updateAtScope(scope: string, parameters: Models.TagsPatchResource, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param parameters * @param callback The callback */ - updateAtScope( - scope: string, - parameters: Models.TagsPatchResource, - callback: msRest.ServiceCallback - ): void; + updateAtScope(scope: string, parameters: Models.TagsPatchResource, callback: msRest.ServiceCallback): void; /** * @param scope The resource scope. * @param parameters * @param options The optional parameters * @param callback The callback */ - updateAtScope( - scope: string, - parameters: Models.TagsPatchResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - updateAtScope( - scope: string, - parameters: Models.TagsPatchResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updateAtScope(scope: string, parameters: Models.TagsPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateAtScope(scope: string, parameters: Models.TagsPatchResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -352,8 +253,7 @@ export class TagsOperations { options }, updateAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -362,10 +262,7 @@ export class TagsOperations { * @param [options] The optional parameters * @returns Promise */ - getAtScope( - scope: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAtScope(scope: string, options?: msRest.RequestOptionsBase): Promise; /** * @param scope The resource scope. * @param callback The callback @@ -376,24 +273,15 @@ export class TagsOperations { * @param options The optional parameters * @param callback The callback */ - getAtScope( - scope: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAtScope( - scope: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAtScope(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtScope(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, options }, getAtScopeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -413,24 +301,15 @@ export class TagsOperations { * @param options The optional parameters * @param callback The callback */ - deleteAtScope( - scope: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteAtScope( - scope: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteAtScope(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteAtScope(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, options }, deleteAtScopeOperationSpec, - callback - ); + callback); } /** @@ -443,10 +322,7 @@ export class TagsOperations { * @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 @@ -457,24 +333,15 @@ export class TagsOperations { * @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; } } @@ -483,9 +350,17 @@ const serializer = new msRest.Serializer(Mappers); const deleteValueOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", - urlParameters: [Parameters.tagName, Parameters.tagValue, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.tagName, + Parameters.tagValue, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, @@ -499,9 +374,17 @@ const deleteValueOperationSpec: msRest.OperationSpec = { const createOrUpdateValueOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", - urlParameters: [Parameters.tagName, Parameters.tagValue, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.tagName, + Parameters.tagValue, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TagValue @@ -519,9 +402,16 @@ const createOrUpdateValueOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/tagNames/{tagName}", - urlParameters: [Parameters.tagName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.tagName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TagDetails @@ -539,9 +429,16 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/tagNames/{tagName}", - urlParameters: [Parameters.tagName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.tagName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, @@ -555,9 +452,15 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/tagNames", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TagsListResult @@ -572,9 +475,15 @@ const listOperationSpec: msRest.OperationSpec = { const createOrUpdateAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "{scope}/providers/Microsoft.Resources/tags/default", - urlParameters: [Parameters.scope], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -596,9 +505,15 @@ const createOrUpdateAtScopeOperationSpec: msRest.OperationSpec = { const updateAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "{scope}/providers/Microsoft.Resources/tags/default", - urlParameters: [Parameters.scope], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -620,9 +535,15 @@ const updateAtScopeOperationSpec: msRest.OperationSpec = { const getAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{scope}/providers/Microsoft.Resources/tags/default", - urlParameters: [Parameters.scope], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TagsResource @@ -637,9 +558,15 @@ const getAtScopeOperationSpec: msRest.OperationSpec = { const deleteAtScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "{scope}/providers/Microsoft.Resources/tags/default", - urlParameters: [Parameters.scope], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, default: { @@ -653,9 +580,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.TagsListResult diff --git a/sdk/resources/arm-resources/src/resourceManagementClient.ts b/sdk/resources/arm-resources/src/resourceManagementClient.ts index b6c4cccb8ac4..4bdf92bd1556 100644 --- a/sdk/resources/arm-resources/src/resourceManagementClient.ts +++ b/sdk/resources/arm-resources/src/resourceManagementClient.ts @@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { ResourceManagementClientContext } from "./resourceManagementClientContext"; + class ResourceManagementClient extends ResourceManagementClientContext { // Operation groups operations: operations.Operations; @@ -33,14 +34,10 @@ class ResourceManagementClient extends ResourceManagementClientContext { * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.ResourceManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.deployments = new operations.Deployments(this); diff --git a/sdk/resources/arm-resources/src/resourceManagementClientContext.ts b/sdk/resources/arm-resources/src/resourceManagementClientContext.ts index fcb83eee4cb9..0aa50b350d29 100644 --- a/sdk/resources/arm-resources/src/resourceManagementClientContext.ts +++ b/sdk/resources/arm-resources/src/resourceManagementClientContext.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-resources"; const packageVersion = "4.2.0"; @@ -28,19 +28,15 @@ export class ResourceManagementClientContext extends msRestAzure.AzureServiceCli * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.ResourceManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { 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 ResourceManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); - this.apiVersion = "2021-01-01"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-04-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 ResourceManagementClientContext extends msRestAzure.AzureServiceCli 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; } }