diff --git a/lib/services/computeManagement2/lib/computeManagementClient.d.ts b/lib/services/computeManagement2/lib/computeManagementClient.d.ts index 4894e75f99..a93e1c359c 100644 --- a/lib/services/computeManagement2/lib/computeManagementClient.d.ts +++ b/lib/services/computeManagement2/lib/computeManagementClient.d.ts @@ -23,6 +23,10 @@ export default class ComputeManagementClient extends AzureServiceClient { * * @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * + * @param {string} resourceGroupName - The name of the resource group. + * + * @param {string} diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. + * * @param {string} [baseUri] - The base URI of the service. * * @param {object} [options] - The parameter options @@ -41,12 +45,16 @@ export default class ComputeManagementClient extends AzureServiceClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, resourceGroupName: string, diskName: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; subscriptionId: string; + resourceGroupName: string; + + diskName: string; + acceptLanguage: string; longRunningOperationRetryTimeout: number; diff --git a/lib/services/computeManagement2/lib/computeManagementClient.js b/lib/services/computeManagement2/lib/computeManagementClient.js index 15a0e2a7d3..fb58d4444a 100644 --- a/lib/services/computeManagement2/lib/computeManagementClient.js +++ b/lib/services/computeManagement2/lib/computeManagementClient.js @@ -28,6 +28,8 @@ class ComputeManagementClient extends ServiceClient { * Create a ComputeManagementClient. * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} resourceGroupName - The name of the resource group. + * @param {string} diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline @@ -38,13 +40,19 @@ class ComputeManagementClient extends ServiceClient { * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ - constructor(credentials, subscriptionId, baseUri, options) { + constructor(credentials, subscriptionId, resourceGroupName, diskName, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId === null || subscriptionId === undefined) { throw new Error('\'subscriptionId\' cannot be null.'); } + if (resourceGroupName === null || resourceGroupName === undefined) { + throw new Error('\'resourceGroupName\' cannot be null.'); + } + if (diskName === null || diskName === undefined) { + throw new Error('\'diskName\' cannot be null.'); + } if (!options) options = {}; @@ -59,6 +67,8 @@ class ComputeManagementClient extends ServiceClient { } this.credentials = credentials; this.subscriptionId = subscriptionId; + this.resourceGroupName = resourceGroupName; + this.diskName = diskName; let packageInfo = this.getPackageJsonInfo(__dirname); this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); diff --git a/lib/services/computeManagement2/lib/models/containerService.js b/lib/services/computeManagement2/lib/models/containerService.js index e033d40316..27b8184e93 100644 --- a/lib/services/computeManagement2/lib/models/containerService.js +++ b/lib/services/computeManagement2/lib/models/containerService.js @@ -20,9 +20,8 @@ const models = require('./index'); class ContainerService extends models['Resource'] { /** * Create a ContainerService. - * @member {string} [provisioningState] the current deployment or - * provisioning state, which only appears in the response. - * @member {object} [orchestratorProfile] Properties of the orchestrator. + * @member {string} [provisioningState] + * @member {object} [orchestratorProfile] * @member {string} [orchestratorProfile.orchestratorType] The orchestrator * to use to manage container service cluster resources. Valid values are * Swarm, DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', @@ -61,8 +60,7 @@ class ContainerService extends models['Resource'] { * container service VM diagnostic agent. * @member {boolean} [diagnosticsProfile.vmDiagnostics.enabled] Whether the * VM diagnostic agent is provisioned on the VM. - * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] The URI of - * the storage account where diagnostics are stored. + * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] */ constructor() { super(); diff --git a/lib/services/computeManagement2/lib/models/containerServiceDiagnosticsProfile.js b/lib/services/computeManagement2/lib/models/containerServiceDiagnosticsProfile.js index 97ca03d8ab..8c2bc86c72 100644 --- a/lib/services/computeManagement2/lib/models/containerServiceDiagnosticsProfile.js +++ b/lib/services/computeManagement2/lib/models/containerServiceDiagnosticsProfile.js @@ -22,8 +22,7 @@ class ContainerServiceDiagnosticsProfile { * diagnostic agent. * @member {boolean} [vmDiagnostics.enabled] Whether the VM diagnostic agent * is provisioned on the VM. - * @member {string} [vmDiagnostics.storageUri] The URI of the storage account - * where diagnostics are stored. + * @member {string} [vmDiagnostics.storageUri] */ constructor() { } diff --git a/lib/services/computeManagement2/lib/models/containerServiceListResult.js b/lib/services/computeManagement2/lib/models/containerServiceListResult.js index 48a64b5f13..e5263c88d4 100644 --- a/lib/services/computeManagement2/lib/models/containerServiceListResult.js +++ b/lib/services/computeManagement2/lib/models/containerServiceListResult.js @@ -16,8 +16,7 @@ class ContainerServiceListResult extends Array { /** * Create a ContainerServiceListResult. - * @member {string} [nextLink] The URL to get the next set of container - * service results. + * @member {string} [nextLink] */ constructor() { super(); diff --git a/lib/services/computeManagement2/lib/models/containerServiceVMDiagnostics.js b/lib/services/computeManagement2/lib/models/containerServiceVMDiagnostics.js index 9c10887571..e3c3ede086 100644 --- a/lib/services/computeManagement2/lib/models/containerServiceVMDiagnostics.js +++ b/lib/services/computeManagement2/lib/models/containerServiceVMDiagnostics.js @@ -19,8 +19,7 @@ class ContainerServiceVMDiagnostics { * Create a ContainerServiceVMDiagnostics. * @member {boolean} enabled Whether the VM diagnostic agent is provisioned * on the VM. - * @member {string} [storageUri] The URI of the storage account where - * diagnostics are stored. + * @member {string} [storageUri] */ constructor() { } diff --git a/lib/services/computeManagement2/lib/models/index.d.ts b/lib/services/computeManagement2/lib/models/index.d.ts index 31c3af46db..c2ddc1c590 100644 --- a/lib/services/computeManagement2/lib/models/index.d.ts +++ b/lib/services/computeManagement2/lib/models/index.d.ts @@ -3146,7 +3146,7 @@ export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings { * Describes a virtual machine scale set network profile's network * configurations. * - * @member {string} name The network configuration name. + * @member {uuid} name The network configuration name. * @member {boolean} [primary] Specifies the primary network interface in case * the virtual machine has more than 1 network interface. * @member {boolean} [enableAcceleratedNetworking] Specifies whether the @@ -6002,8 +6002,7 @@ export interface ContainerServiceLinuxProfile { * * @member {boolean} enabled Whether the VM diagnostic agent is provisioned on * the VM. - * @member {string} [storageUri] The URI of the storage account where - * diagnostics are stored. + * @member {string} [storageUri] */ export interface ContainerServiceVMDiagnostics { enabled: boolean; @@ -6018,8 +6017,7 @@ export interface ContainerServiceVMDiagnostics { * diagnostic agent. * @member {boolean} [vmDiagnostics.enabled] Whether the VM diagnostic agent is * provisioned on the VM. - * @member {string} [vmDiagnostics.storageUri] The URI of the storage account - * where diagnostics are stored. + * @member {string} [vmDiagnostics.storageUri] */ export interface ContainerServiceDiagnosticsProfile { vmDiagnostics: ContainerServiceVMDiagnostics; @@ -6031,9 +6029,8 @@ export interface ContainerServiceDiagnosticsProfile { * @constructor * Container service. * - * @member {string} [provisioningState] the current deployment or provisioning - * state, which only appears in the response. - * @member {object} [orchestratorProfile] Properties of the orchestrator. + * @member {string} [provisioningState] + * @member {object} [orchestratorProfile] * @member {string} [orchestratorProfile.orchestratorType] The orchestrator to * use to manage container service cluster resources. Valid values are Swarm, * DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom', @@ -6071,8 +6068,7 @@ export interface ContainerServiceDiagnosticsProfile { * container service VM diagnostic agent. * @member {boolean} [diagnosticsProfile.vmDiagnostics.enabled] Whether the VM * diagnostic agent is provisioned on the VM. - * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] The URI of - * the storage account where diagnostics are stored. + * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] */ export interface ContainerService extends Resource { readonly provisioningState?: string; @@ -6299,8 +6295,7 @@ export interface SnapshotList extends Array { * @constructor * The response from the List Container Services operation. * - * @member {string} [nextLink] The URL to get the next set of container service - * results. + * @member {string} [nextLink] */ export interface ContainerServiceListResult extends Array { nextLink?: string; diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetNetworkConfiguration.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetNetworkConfiguration.js index 2bd1cfb512..c4308e5597 100644 --- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetNetworkConfiguration.js +++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetNetworkConfiguration.js @@ -21,7 +21,7 @@ const models = require('./index'); class VirtualMachineScaleSetNetworkConfiguration extends models['SubResource'] { /** * Create a VirtualMachineScaleSetNetworkConfiguration. - * @member {string} name The network configuration name. + * @member {uuid} name The network configuration name. * @member {boolean} [primary] Specifies the primary network interface in * case the virtual machine has more than 1 network interface. * @member {boolean} [enableAcceleratedNetworking] Specifies whether the diff --git a/lib/services/computeManagement2/lib/operations/availabilitySets.js b/lib/services/computeManagement2/lib/operations/availabilitySets.js index 292da5c63a..ad67786013 100644 --- a/lib/services/computeManagement2/lib/operations/availabilitySets.js +++ b/lib/services/computeManagement2/lib/operations/availabilitySets.js @@ -74,7 +74,7 @@ function _createOrUpdate(resourceGroupName, availabilitySetName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -257,7 +257,7 @@ function _update(resourceGroupName, availabilitySetName, parameters, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -418,7 +418,7 @@ function _deleteMethod(resourceGroupName, availabilitySetName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -561,7 +561,7 @@ function _get(resourceGroupName, availabilitySetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -703,7 +703,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -844,7 +844,7 @@ function _listAvailableSizes(resourceGroupName, availabilitySetName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/containerServices.js b/lib/services/computeManagement2/lib/operations/containerServices.js index 43c1c227e0..52aba7a56a 100644 --- a/lib/services/computeManagement2/lib/operations/containerServices.js +++ b/lib/services/computeManagement2/lib/operations/containerServices.js @@ -165,8 +165,7 @@ function _list(options, callback) { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -676,8 +675,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -1445,8 +1443,7 @@ class ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -1549,8 +1546,7 @@ class ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -1965,8 +1961,7 @@ class ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -2069,8 +2064,7 @@ class ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid diff --git a/lib/services/computeManagement2/lib/operations/disks.js b/lib/services/computeManagement2/lib/operations/disks.js index aeb9e01a49..fb0d704ec4 100644 --- a/lib/services/computeManagement2/lib/operations/disks.js +++ b/lib/services/computeManagement2/lib/operations/disks.js @@ -18,13 +18,6 @@ const WebResource = msRest.WebResource; /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -123,7 +116,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _createOrUpdate(resourceGroupName, diskName, disk, options, callback) { +function _createOrUpdate(disk, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -136,7 +129,7 @@ function _createOrUpdate(resourceGroupName, diskName, disk, options, callback) { } // Send request - this.beginCreateOrUpdate(resourceGroupName, diskName, disk, options, (err, parsedResult, httpRequest, response) => { + this.beginCreateOrUpdate(disk, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -179,13 +172,6 @@ function _createOrUpdate(resourceGroupName, diskName, disk, options, callback) { /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -253,7 +239,7 @@ function _createOrUpdate(resourceGroupName, diskName, disk, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _update(resourceGroupName, diskName, disk, options, callback) { +function _update(disk, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -266,7 +252,7 @@ function _update(resourceGroupName, diskName, disk, options, callback) { } // Send request - this.beginUpdate(resourceGroupName, diskName, disk, options, (err, parsedResult, httpRequest, response) => { + this.beginUpdate(disk, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -308,13 +294,6 @@ function _update(resourceGroupName, diskName, disk, options, callback) { /** * Gets information about a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -333,7 +312,7 @@ function _update(resourceGroupName, diskName, disk, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, diskName, options, callback) { +function _get(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -349,11 +328,11 @@ function _get(resourceGroupName, diskName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -366,8 +345,8 @@ function _get(resourceGroupName, diskName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -455,13 +434,6 @@ function _get(resourceGroupName, diskName, options, callback) { /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -481,7 +453,7 @@ function _get(resourceGroupName, diskName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(resourceGroupName, diskName, options, callback) { +function _deleteMethod(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -494,7 +466,7 @@ function _deleteMethod(resourceGroupName, diskName, options, callback) { } // Send request - this.beginDeleteMethod(resourceGroupName, diskName, options, (err, parsedResult, httpRequest, response) => { + this.beginDeleteMethod(options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -536,8 +508,6 @@ function _deleteMethod(resourceGroupName, diskName, options, callback) { /** * Lists all the disks under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -556,7 +526,7 @@ function _deleteMethod(resourceGroupName, diskName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroup(resourceGroupName, options, callback) { +function _listByResourceGroup(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -572,8 +542,8 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -586,7 +556,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -805,13 +775,6 @@ function _list(options, callback) { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -839,7 +802,7 @@ function _list(options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _grantAccess(resourceGroupName, diskName, grantAccessData, options, callback) { +function _grantAccess(grantAccessData, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -852,7 +815,7 @@ function _grantAccess(resourceGroupName, diskName, grantAccessData, options, cal } // Send request - this.beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, (err, parsedResult, httpRequest, response) => { + this.beginGrantAccess(grantAccessData, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -895,13 +858,6 @@ function _grantAccess(resourceGroupName, diskName, grantAccessData, options, cal /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -921,7 +877,7 @@ function _grantAccess(resourceGroupName, diskName, grantAccessData, options, cal * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _revokeAccess(resourceGroupName, diskName, options, callback) { +function _revokeAccess(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -934,7 +890,7 @@ function _revokeAccess(resourceGroupName, diskName, options, callback) { } // Send request - this.beginRevokeAccess(resourceGroupName, diskName, options, (err, parsedResult, httpRequest, response) => { + this.beginRevokeAccess(options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -976,13 +932,6 @@ function _revokeAccess(resourceGroupName, diskName, options, callback) { /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -1081,7 +1030,7 @@ function _revokeAccess(resourceGroupName, diskName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginCreateOrUpdate(resourceGroupName, diskName, disk, options, callback) { +function _beginCreateOrUpdate(disk, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1097,11 +1046,11 @@ function _beginCreateOrUpdate(resourceGroupName, diskName, disk, options, callba if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (disk === null || disk === undefined) { throw new Error('disk cannot be null or undefined.'); @@ -1117,8 +1066,8 @@ function _beginCreateOrUpdate(resourceGroupName, diskName, disk, options, callba let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -1236,13 +1185,6 @@ function _beginCreateOrUpdate(resourceGroupName, diskName, disk, options, callba /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -1310,7 +1252,7 @@ function _beginCreateOrUpdate(resourceGroupName, diskName, disk, options, callba * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginUpdate(resourceGroupName, diskName, disk, options, callback) { +function _beginUpdate(disk, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1326,11 +1268,11 @@ function _beginUpdate(resourceGroupName, diskName, disk, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (disk === null || disk === undefined) { throw new Error('disk cannot be null or undefined.'); @@ -1346,8 +1288,8 @@ function _beginUpdate(resourceGroupName, diskName, disk, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -1465,13 +1407,6 @@ function _beginUpdate(resourceGroupName, diskName, disk, options, callback) { /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1491,7 +1426,7 @@ function _beginUpdate(resourceGroupName, diskName, disk, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginDeleteMethod(resourceGroupName, diskName, options, callback) { +function _beginDeleteMethod(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1507,11 +1442,11 @@ function _beginDeleteMethod(resourceGroupName, diskName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -1524,8 +1459,8 @@ function _beginDeleteMethod(resourceGroupName, diskName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -1612,13 +1547,6 @@ function _beginDeleteMethod(resourceGroupName, diskName, options, callback) { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -1646,7 +1574,7 @@ function _beginDeleteMethod(resourceGroupName, diskName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, callback) { +function _beginGrantAccess(grantAccessData, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1662,11 +1590,11 @@ function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (grantAccessData === null || grantAccessData === undefined) { throw new Error('grantAccessData cannot be null or undefined.'); @@ -1682,8 +1610,8 @@ function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -1784,13 +1712,6 @@ function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1810,7 +1731,7 @@ function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginRevokeAccess(resourceGroupName, diskName, options, callback) { +function _beginRevokeAccess(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1826,11 +1747,11 @@ function _beginRevokeAccess(resourceGroupName, diskName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (diskName === null || diskName === undefined || typeof diskName.valueOf() !== 'string') { - throw new Error('diskName cannot be null or undefined and it must be of type string.'); + if (this.client.diskName === null || this.client.diskName === undefined || typeof this.client.diskName.valueOf() !== 'string') { + throw new Error('this.client.diskName cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -1843,8 +1764,8 @@ function _beginRevokeAccess(resourceGroupName, diskName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(diskName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{diskName}', encodeURIComponent(this.client.diskName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -2210,13 +2131,6 @@ class Disks { /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -2308,11 +2222,11 @@ class Disks { * * @reject {Error} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName, diskName, disk, options) { + createOrUpdateWithHttpOperationResponse(disk, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._createOrUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._createOrUpdate(disk, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2325,13 +2239,6 @@ class Disks { /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -2439,7 +2346,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName, diskName, disk, options, optionalCallback) { + createOrUpdate(disk, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2448,27 +2355,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._createOrUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._createOrUpdate(disk, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._createOrUpdate(resourceGroupName, diskName, disk, options, optionalCallback); + return self._createOrUpdate(disk, options, optionalCallback); } } /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -2529,11 +2429,11 @@ class Disks { * * @reject {Error} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName, diskName, disk, options) { + updateWithHttpOperationResponse(disk, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._update(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._update(disk, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2546,13 +2446,6 @@ class Disks { /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -2629,7 +2522,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName, diskName, disk, options, optionalCallback) { + update(disk, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2638,27 +2531,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._update(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._update(disk, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._update(resourceGroupName, diskName, disk, options, optionalCallback); + return self._update(disk, options, optionalCallback); } } /** * Gets information about a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2670,11 +2556,11 @@ class Disks { * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, diskName, options) { + getWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, diskName, options, (err, result, request, response) => { + self._get(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2687,13 +2573,6 @@ class Disks { /** * Gets information about a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2721,7 +2600,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, diskName, options, optionalCallback) { + get(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2730,27 +2609,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, diskName, options, (err, result, request, response) => { + self._get(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, diskName, options, optionalCallback); + return self._get(options, optionalCallback); } } /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2762,11 +2634,11 @@ class Disks { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, diskName, options) { + deleteMethodWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, diskName, options, (err, result, request, response) => { + self._deleteMethod(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2779,13 +2651,6 @@ class Disks { /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2814,7 +2679,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, diskName, options, optionalCallback) { + deleteMethod(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2823,22 +2688,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, diskName, options, (err, result, request, response) => { + self._deleteMethod(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, diskName, options, optionalCallback); + return self._deleteMethod(options, optionalCallback); } } /** * Lists all the disks under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2850,11 +2713,11 @@ class Disks { * * @reject {Error} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { + listByResourceGroupWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2867,8 +2730,6 @@ class Disks { /** * Lists all the disks under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2896,7 +2757,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName, options, optionalCallback) { + listByResourceGroup(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2905,14 +2766,14 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByResourceGroup(resourceGroupName, options, optionalCallback); + return self._listByResourceGroup(options, optionalCallback); } } @@ -2997,13 +2858,6 @@ class Disks { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -3024,11 +2878,11 @@ class Disks { * * @reject {Error} - The error object. */ - grantAccessWithHttpOperationResponse(resourceGroupName, diskName, grantAccessData, options) { + grantAccessWithHttpOperationResponse(grantAccessData, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._grantAccess(resourceGroupName, diskName, grantAccessData, options, (err, result, request, response) => { + self._grantAccess(grantAccessData, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3041,13 +2895,6 @@ class Disks { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -3084,7 +2931,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - grantAccess(resourceGroupName, diskName, grantAccessData, options, optionalCallback) { + grantAccess(grantAccessData, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3093,27 +2940,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._grantAccess(resourceGroupName, diskName, grantAccessData, options, (err, result, request, response) => { + self._grantAccess(grantAccessData, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._grantAccess(resourceGroupName, diskName, grantAccessData, options, optionalCallback); + return self._grantAccess(grantAccessData, options, optionalCallback); } } /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3125,11 +2965,11 @@ class Disks { * * @reject {Error} - The error object. */ - revokeAccessWithHttpOperationResponse(resourceGroupName, diskName, options) { + revokeAccessWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._revokeAccess(resourceGroupName, diskName, options, (err, result, request, response) => { + self._revokeAccess(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3142,13 +2982,6 @@ class Disks { /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3177,7 +3010,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - revokeAccess(resourceGroupName, diskName, options, optionalCallback) { + revokeAccess(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3186,27 +3019,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._revokeAccess(resourceGroupName, diskName, options, (err, result, request, response) => { + self._revokeAccess(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._revokeAccess(resourceGroupName, diskName, options, optionalCallback); + return self._revokeAccess(options, optionalCallback); } } /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -3298,11 +3124,11 @@ class Disks { * * @reject {Error} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName, diskName, disk, options) { + beginCreateOrUpdateWithHttpOperationResponse(disk, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginCreateOrUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._beginCreateOrUpdate(disk, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3315,13 +3141,6 @@ class Disks { /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -3429,7 +3248,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName, diskName, disk, options, optionalCallback) { + beginCreateOrUpdate(disk, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3438,27 +3257,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginCreateOrUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._beginCreateOrUpdate(disk, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginCreateOrUpdate(resourceGroupName, diskName, disk, options, optionalCallback); + return self._beginCreateOrUpdate(disk, options, optionalCallback); } } /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -3519,11 +3331,11 @@ class Disks { * * @reject {Error} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName, diskName, disk, options) { + beginUpdateWithHttpOperationResponse(disk, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._beginUpdate(disk, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3536,13 +3348,6 @@ class Disks { /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -3619,7 +3424,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName, diskName, disk, options, optionalCallback) { + beginUpdate(disk, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3628,27 +3433,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginUpdate(resourceGroupName, diskName, disk, options, (err, result, request, response) => { + self._beginUpdate(disk, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginUpdate(resourceGroupName, diskName, disk, options, optionalCallback); + return self._beginUpdate(disk, options, optionalCallback); } } /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3660,11 +3458,11 @@ class Disks { * * @reject {Error} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName, diskName, options) { + beginDeleteMethodWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, diskName, options, (err, result, request, response) => { + self._beginDeleteMethod(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3677,13 +3475,6 @@ class Disks { /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3712,7 +3503,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName, diskName, options, optionalCallback) { + beginDeleteMethod(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3721,27 +3512,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, diskName, options, (err, result, request, response) => { + self._beginDeleteMethod(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginDeleteMethod(resourceGroupName, diskName, options, optionalCallback); + return self._beginDeleteMethod(options, optionalCallback); } } /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -3762,11 +3546,11 @@ class Disks { * * @reject {Error} - The error object. */ - beginGrantAccessWithHttpOperationResponse(resourceGroupName, diskName, grantAccessData, options) { + beginGrantAccessWithHttpOperationResponse(grantAccessData, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, (err, result, request, response) => { + self._beginGrantAccess(grantAccessData, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3779,13 +3563,6 @@ class Disks { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -3822,7 +3599,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, optionalCallback) { + beginGrantAccess(grantAccessData, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3831,27 +3608,20 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, (err, result, request, response) => { + self._beginGrantAccess(grantAccessData, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginGrantAccess(resourceGroupName, diskName, grantAccessData, options, optionalCallback); + return self._beginGrantAccess(grantAccessData, options, optionalCallback); } } /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3863,11 +3633,11 @@ class Disks { * * @reject {Error} - The error object. */ - beginRevokeAccessWithHttpOperationResponse(resourceGroupName, diskName, options) { + beginRevokeAccessWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginRevokeAccess(resourceGroupName, diskName, options, (err, result, request, response) => { + self._beginRevokeAccess(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3880,13 +3650,6 @@ class Disks { /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3915,7 +3678,7 @@ class Disks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginRevokeAccess(resourceGroupName, diskName, options, optionalCallback) { + beginRevokeAccess(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3924,14 +3687,14 @@ class Disks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginRevokeAccess(resourceGroupName, diskName, options, (err, result, request, response) => { + self._beginRevokeAccess(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginRevokeAccess(resourceGroupName, diskName, options, optionalCallback); + return self._beginRevokeAccess(options, optionalCallback); } } diff --git a/lib/services/computeManagement2/lib/operations/images.js b/lib/services/computeManagement2/lib/operations/images.js index 27ee1a0181..0add74c17c 100644 --- a/lib/services/computeManagement2/lib/operations/images.js +++ b/lib/services/computeManagement2/lib/operations/images.js @@ -412,7 +412,7 @@ function _get(resourceGroupName, imageName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -559,7 +559,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -696,7 +696,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -894,7 +894,7 @@ function _beginCreateOrUpdate(resourceGroupName, imageName, parameters, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1132,7 +1132,7 @@ function _beginUpdate(resourceGroupName, imageName, parameters, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1310,7 +1310,7 @@ function _beginDeleteMethod(resourceGroupName, imageName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/index.d.ts b/lib/services/computeManagement2/lib/operations/index.d.ts index a5d1a7e7b9..bf2e66fc2e 100644 --- a/lib/services/computeManagement2/lib/operations/index.d.ts +++ b/lib/services/computeManagement2/lib/operations/index.d.ts @@ -18074,13 +18074,6 @@ export interface Disks { /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -18172,18 +18165,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, diskName: string, disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -18291,21 +18277,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(disk: models.Disk, callback: ServiceCallback): void; + createOrUpdate(disk: models.Disk, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -18366,18 +18345,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -18454,21 +18426,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, callback: ServiceCallback): void; - update(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(disk: models.DiskUpdate, callback: ServiceCallback): void; + update(disk: models.DiskUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18480,18 +18445,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18519,21 +18477,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, diskName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, diskName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(callback: ServiceCallback): void; + get(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18545,18 +18496,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18585,16 +18529,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, diskName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, diskName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(callback: ServiceCallback): void; + deleteMethod(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the disks under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18606,13 +18548,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the disks under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18640,9 +18580,9 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByResourceGroup(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(callback: ServiceCallback): void; + listByResourceGroup(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -18699,13 +18639,6 @@ export interface Disks { /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -18726,18 +18659,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - grantAccessWithHttpOperationResponse(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + grantAccessWithHttpOperationResponse(grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -18774,21 +18700,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - grantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - grantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; - grantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + grantAccess(grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + grantAccess(grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; + grantAccess(grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18800,18 +18719,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - revokeAccessWithHttpOperationResponse(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + revokeAccessWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -18840,21 +18752,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - revokeAccess(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - revokeAccess(resourceGroupName: string, diskName: string, callback: ServiceCallback): void; - revokeAccess(resourceGroupName: string, diskName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + revokeAccess(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + revokeAccess(callback: ServiceCallback): void; + revokeAccess(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -18946,18 +18851,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, diskName: string, disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Put disk * operation. * @@ -19065,21 +18963,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: models.Disk, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(disk: models.Disk, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(disk: models.Disk, callback: ServiceCallback): void; + beginCreateOrUpdate(disk: models.Disk, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -19140,18 +19031,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates (patches) a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} disk Disk object supplied in the body of the Patch disk * operation. * @@ -19228,21 +19112,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, diskName: string, disk: models.DiskUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginUpdate(disk: models.DiskUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(disk: models.DiskUpdate, callback: ServiceCallback): void; + beginUpdate(disk: models.DiskUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -19254,18 +19131,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -19294,21 +19164,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, diskName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, diskName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(callback: ServiceCallback): void; + beginDeleteMethod(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -19329,18 +19192,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - beginGrantAccessWithHttpOperationResponse(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGrantAccessWithHttpOperationResponse(grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Grants access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} grantAccessData Access data object supplied in the body of * the get disk access operation. * @@ -19377,21 +19233,14 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; - beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginGrantAccess(grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGrantAccess(grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; + beginGrantAccess(grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -19403,18 +19252,11 @@ export interface Disks { * * @reject {Error|ServiceError} - The error object. */ - beginRevokeAccessWithHttpOperationResponse(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginRevokeAccessWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Revokes access to a disk. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} diskName The name of the managed disk that is being created. - * The name can't be changed after the disk is created. Supported characters - * for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 - * characters. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -19443,9 +19285,9 @@ export interface Disks { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginRevokeAccess(resourceGroupName: string, diskName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginRevokeAccess(resourceGroupName: string, diskName: string, callback: ServiceCallback): void; - beginRevokeAccess(resourceGroupName: string, diskName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginRevokeAccess(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginRevokeAccess(callback: ServiceCallback): void; + beginRevokeAccess(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -19574,8 +19416,6 @@ export interface Snapshots { /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -19671,13 +19511,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -19789,16 +19627,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(snapshotName: string, snapshot: models.Snapshot, callback: ServiceCallback): void; + createOrUpdate(snapshotName: string, snapshot: models.Snapshot, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -19864,13 +19700,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -19952,16 +19786,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, callback: ServiceCallback): void; - update(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(snapshotName: string, snapshot: models.SnapshotUpdate, callback: ServiceCallback): void; + update(snapshotName: string, snapshot: models.SnapshotUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -19978,13 +19810,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20017,16 +19847,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, snapshotName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(snapshotName: string, callback: ServiceCallback): void; + get(snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20043,13 +19871,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20083,16 +19909,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, snapshotName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(snapshotName: string, callback: ServiceCallback): void; + deleteMethod(snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists snapshots under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -20104,13 +19928,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists snapshots under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -20138,9 +19960,9 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByResourceGroup(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(callback: ServiceCallback): void; + listByResourceGroup(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -20197,8 +20019,6 @@ export interface Snapshots { /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20224,13 +20044,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - grantAccessWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + grantAccessWithHttpOperationResponse(snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20272,16 +20090,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - grantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - grantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; - grantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + grantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + grantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; + grantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20298,13 +20114,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - revokeAccessWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + revokeAccessWithHttpOperationResponse(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20338,16 +20152,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - revokeAccess(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - revokeAccess(resourceGroupName: string, snapshotName: string, callback: ServiceCallback): void; - revokeAccess(resourceGroupName: string, snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + revokeAccess(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + revokeAccess(snapshotName: string, callback: ServiceCallback): void; + revokeAccess(snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20443,13 +20255,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20561,16 +20371,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.Snapshot, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(snapshotName: string, snapshot: models.Snapshot, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(snapshotName: string, snapshot: models.Snapshot, callback: ServiceCallback): void; + beginCreateOrUpdate(snapshotName: string, snapshot: models.Snapshot, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20636,13 +20444,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20724,16 +20530,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: models.SnapshotUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginUpdate(snapshotName: string, snapshot: models.SnapshotUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(snapshotName: string, snapshot: models.SnapshotUpdate, callback: ServiceCallback): void; + beginUpdate(snapshotName: string, snapshot: models.SnapshotUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20750,13 +20554,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20790,16 +20592,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, snapshotName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(snapshotName: string, callback: ServiceCallback): void; + beginDeleteMethod(snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20825,13 +20625,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - beginGrantAccessWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGrantAccessWithHttpOperationResponse(snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20873,16 +20671,14 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; - beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginGrantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGrantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, callback: ServiceCallback): void; + beginGrantAccess(snapshotName: string, grantAccessData: models.GrantAccessData, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20899,13 +20695,11 @@ export interface Snapshots { * * @reject {Error|ServiceError} - The error object. */ - beginRevokeAccessWithHttpOperationResponse(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginRevokeAccessWithHttpOperationResponse(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -20939,9 +20733,9 @@ export interface Snapshots { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginRevokeAccess(resourceGroupName: string, snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginRevokeAccess(resourceGroupName: string, snapshotName: string, callback: ServiceCallback): void; - beginRevokeAccess(resourceGroupName: string, snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginRevokeAccess(snapshotName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginRevokeAccess(snapshotName: string, callback: ServiceCallback): void; + beginRevokeAccess(snapshotName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -21141,8 +20935,7 @@ export interface ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -21233,8 +21026,7 @@ export interface ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -21553,8 +21345,7 @@ export interface ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid @@ -21645,8 +21436,7 @@ export interface ContainerServices { * @param {object} parameters Parameters supplied to the Create or Update a * Container Service operation. * - * @param {object} [parameters.orchestratorProfile] Properties of the - * orchestrator. + * @param {object} [parameters.orchestratorProfile] * * @param {string} parameters.orchestratorProfile.orchestratorType The * orchestrator to use to manage container service cluster resources. Valid diff --git a/lib/services/computeManagement2/lib/operations/logAnalytics.js b/lib/services/computeManagement2/lib/operations/logAnalytics.js index 8fa32eb27b..7d68dde979 100644 --- a/lib/services/computeManagement2/lib/operations/logAnalytics.js +++ b/lib/services/computeManagement2/lib/operations/logAnalytics.js @@ -273,7 +273,7 @@ function _beginExportRequestRateByInterval(parameters, location, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (parameters === null || parameters === undefined) { @@ -455,7 +455,7 @@ function _beginExportThrottledRequests(parameters, location, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/operations.js b/lib/services/computeManagement2/lib/operations/operations.js index bdb52b2e71..9f4dcf00e4 100644 --- a/lib/services/computeManagement2/lib/operations/operations.js +++ b/lib/services/computeManagement2/lib/operations/operations.js @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/snapshots.js b/lib/services/computeManagement2/lib/operations/snapshots.js index 0bc6378ffd..6d12475f7f 100644 --- a/lib/services/computeManagement2/lib/operations/snapshots.js +++ b/lib/services/computeManagement2/lib/operations/snapshots.js @@ -18,8 +18,6 @@ const WebResource = msRest.WebResource; /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -122,7 +120,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _createOrUpdate(resourceGroupName, snapshotName, snapshot, options, callback) { +function _createOrUpdate(snapshotName, snapshot, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -135,7 +133,7 @@ function _createOrUpdate(resourceGroupName, snapshotName, snapshot, options, cal } // Send request - this.beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, (err, parsedResult, httpRequest, response) => { + this.beginCreateOrUpdate(snapshotName, snapshot, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -178,8 +176,6 @@ function _createOrUpdate(resourceGroupName, snapshotName, snapshot, options, cal /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -252,7 +248,7 @@ function _createOrUpdate(resourceGroupName, snapshotName, snapshot, options, cal * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _update(resourceGroupName, snapshotName, snapshot, options, callback) { +function _update(snapshotName, snapshot, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -265,7 +261,7 @@ function _update(resourceGroupName, snapshotName, snapshot, options, callback) { } // Send request - this.beginUpdate(resourceGroupName, snapshotName, snapshot, options, (err, parsedResult, httpRequest, response) => { + this.beginUpdate(snapshotName, snapshot, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -307,8 +303,6 @@ function _update(resourceGroupName, snapshotName, snapshot, options, callback) { /** * Gets information about a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -332,7 +326,7 @@ function _update(resourceGroupName, snapshotName, snapshot, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, snapshotName, options, callback) { +function _get(snapshotName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -348,8 +342,8 @@ function _get(resourceGroupName, snapshotName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -365,7 +359,7 @@ function _get(resourceGroupName, snapshotName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -454,8 +448,6 @@ function _get(resourceGroupName, snapshotName, options, callback) { /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -480,7 +472,7 @@ function _get(resourceGroupName, snapshotName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(resourceGroupName, snapshotName, options, callback) { +function _deleteMethod(snapshotName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -493,7 +485,7 @@ function _deleteMethod(resourceGroupName, snapshotName, options, callback) { } // Send request - this.beginDeleteMethod(resourceGroupName, snapshotName, options, (err, parsedResult, httpRequest, response) => { + this.beginDeleteMethod(snapshotName, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -535,8 +527,6 @@ function _deleteMethod(resourceGroupName, snapshotName, options, callback) { /** * Lists snapshots under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -555,7 +545,7 @@ function _deleteMethod(resourceGroupName, snapshotName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroup(resourceGroupName, options, callback) { +function _listByResourceGroup(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -571,8 +561,8 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -585,7 +575,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -804,8 +794,6 @@ function _list(options, callback) { /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -838,7 +826,7 @@ function _list(options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _grantAccess(resourceGroupName, snapshotName, grantAccessData, options, callback) { +function _grantAccess(snapshotName, grantAccessData, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -851,7 +839,7 @@ function _grantAccess(resourceGroupName, snapshotName, grantAccessData, options, } // Send request - this.beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, (err, parsedResult, httpRequest, response) => { + this.beginGrantAccess(snapshotName, grantAccessData, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -894,8 +882,6 @@ function _grantAccess(resourceGroupName, snapshotName, grantAccessData, options, /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -920,7 +906,7 @@ function _grantAccess(resourceGroupName, snapshotName, grantAccessData, options, * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _revokeAccess(resourceGroupName, snapshotName, options, callback) { +function _revokeAccess(snapshotName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -933,7 +919,7 @@ function _revokeAccess(resourceGroupName, snapshotName, options, callback) { } // Send request - this.beginRevokeAccess(resourceGroupName, snapshotName, options, (err, parsedResult, httpRequest, response) => { + this.beginRevokeAccess(snapshotName, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -975,8 +961,6 @@ function _revokeAccess(resourceGroupName, snapshotName, options, callback) { /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -1079,7 +1063,7 @@ function _revokeAccess(resourceGroupName, snapshotName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, callback) { +function _beginCreateOrUpdate(snapshotName, snapshot, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1095,8 +1079,8 @@ function _beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -1115,7 +1099,7 @@ function _beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1234,8 +1218,6 @@ function _beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -1308,7 +1290,7 @@ function _beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginUpdate(resourceGroupName, snapshotName, snapshot, options, callback) { +function _beginUpdate(snapshotName, snapshot, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1324,8 +1306,8 @@ function _beginUpdate(resourceGroupName, snapshotName, snapshot, options, callba if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -1344,7 +1326,7 @@ function _beginUpdate(resourceGroupName, snapshotName, snapshot, options, callba let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1463,8 +1445,6 @@ function _beginUpdate(resourceGroupName, snapshotName, snapshot, options, callba /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -1489,7 +1469,7 @@ function _beginUpdate(resourceGroupName, snapshotName, snapshot, options, callba * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginDeleteMethod(resourceGroupName, snapshotName, options, callback) { +function _beginDeleteMethod(snapshotName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1505,8 +1485,8 @@ function _beginDeleteMethod(resourceGroupName, snapshotName, options, callback) if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -1522,7 +1502,7 @@ function _beginDeleteMethod(resourceGroupName, snapshotName, options, callback) let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1610,8 +1590,6 @@ function _beginDeleteMethod(resourceGroupName, snapshotName, options, callback) /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -1644,7 +1622,7 @@ function _beginDeleteMethod(resourceGroupName, snapshotName, options, callback) * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, callback) { +function _beginGrantAccess(snapshotName, grantAccessData, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1660,8 +1638,8 @@ function _beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, opt if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -1680,7 +1658,7 @@ function _beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, opt let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1782,8 +1760,6 @@ function _beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, opt /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -1808,7 +1784,7 @@ function _beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, opt * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginRevokeAccess(resourceGroupName, snapshotName, options, callback) { +function _beginRevokeAccess(snapshotName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1824,8 +1800,8 @@ function _beginRevokeAccess(resourceGroupName, snapshotName, options, callback) if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); } if (snapshotName === null || snapshotName === undefined || typeof snapshotName.valueOf() !== 'string') { throw new Error('snapshotName cannot be null or undefined and it must be of type string.'); @@ -1841,7 +1817,7 @@ function _beginRevokeAccess(resourceGroupName, snapshotName, options, callback) let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); requestUrl = requestUrl.replace('{snapshotName}', encodeURIComponent(snapshotName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -2208,8 +2184,6 @@ class Snapshots { /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2305,11 +2279,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName, snapshotName, snapshot, options) { + createOrUpdateWithHttpOperationResponse(snapshotName, snapshot, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._createOrUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._createOrUpdate(snapshotName, snapshot, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2322,8 +2296,6 @@ class Snapshots { /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2435,7 +2407,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback) { + createOrUpdate(snapshotName, snapshot, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2444,22 +2416,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._createOrUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._createOrUpdate(snapshotName, snapshot, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._createOrUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback); + return self._createOrUpdate(snapshotName, snapshot, options, optionalCallback); } } /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2525,11 +2495,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName, snapshotName, snapshot, options) { + updateWithHttpOperationResponse(snapshotName, snapshot, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._update(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._update(snapshotName, snapshot, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2542,8 +2512,6 @@ class Snapshots { /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2625,7 +2593,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName, snapshotName, snapshot, options, optionalCallback) { + update(snapshotName, snapshot, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2634,22 +2602,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._update(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._update(snapshotName, snapshot, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._update(resourceGroupName, snapshotName, snapshot, options, optionalCallback); + return self._update(snapshotName, snapshot, options, optionalCallback); } } /** * Gets information about a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2666,11 +2632,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, snapshotName, options) { + getWithHttpOperationResponse(snapshotName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._get(snapshotName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2683,8 +2649,6 @@ class Snapshots { /** * Gets information about a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2717,7 +2681,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, snapshotName, options, optionalCallback) { + get(snapshotName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2726,22 +2690,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._get(snapshotName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, snapshotName, options, optionalCallback); + return self._get(snapshotName, options, optionalCallback); } } /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2758,11 +2720,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, snapshotName, options) { + deleteMethodWithHttpOperationResponse(snapshotName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._deleteMethod(snapshotName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2775,8 +2737,6 @@ class Snapshots { /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -2810,7 +2770,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, snapshotName, options, optionalCallback) { + deleteMethod(snapshotName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2819,22 +2779,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._deleteMethod(snapshotName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, snapshotName, options, optionalCallback); + return self._deleteMethod(snapshotName, options, optionalCallback); } } /** * Lists snapshots under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2846,11 +2804,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { + listByResourceGroupWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2863,8 +2821,6 @@ class Snapshots { /** * Lists snapshots under a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2892,7 +2848,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName, options, optionalCallback) { + listByResourceGroup(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2901,14 +2857,14 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByResourceGroup(resourceGroupName, options, optionalCallback); + return self._listByResourceGroup(options, optionalCallback); } } @@ -2993,8 +2949,6 @@ class Snapshots { /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3020,11 +2974,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - grantAccessWithHttpOperationResponse(resourceGroupName, snapshotName, grantAccessData, options) { + grantAccessWithHttpOperationResponse(snapshotName, grantAccessData, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._grantAccess(resourceGroupName, snapshotName, grantAccessData, options, (err, result, request, response) => { + self._grantAccess(snapshotName, grantAccessData, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3037,8 +2991,6 @@ class Snapshots { /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3080,7 +3032,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - grantAccess(resourceGroupName, snapshotName, grantAccessData, options, optionalCallback) { + grantAccess(snapshotName, grantAccessData, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3089,22 +3041,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._grantAccess(resourceGroupName, snapshotName, grantAccessData, options, (err, result, request, response) => { + self._grantAccess(snapshotName, grantAccessData, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._grantAccess(resourceGroupName, snapshotName, grantAccessData, options, optionalCallback); + return self._grantAccess(snapshotName, grantAccessData, options, optionalCallback); } } /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3121,11 +3071,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - revokeAccessWithHttpOperationResponse(resourceGroupName, snapshotName, options) { + revokeAccessWithHttpOperationResponse(snapshotName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._revokeAccess(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._revokeAccess(snapshotName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3138,8 +3088,6 @@ class Snapshots { /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3173,7 +3121,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - revokeAccess(resourceGroupName, snapshotName, options, optionalCallback) { + revokeAccess(snapshotName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3182,22 +3130,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._revokeAccess(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._revokeAccess(snapshotName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._revokeAccess(resourceGroupName, snapshotName, options, optionalCallback); + return self._revokeAccess(snapshotName, options, optionalCallback); } } /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3293,11 +3239,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName, snapshotName, snapshot, options) { + beginCreateOrUpdateWithHttpOperationResponse(snapshotName, snapshot, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._beginCreateOrUpdate(snapshotName, snapshot, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3310,8 +3256,6 @@ class Snapshots { /** * Creates or updates a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3423,7 +3367,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback) { + beginCreateOrUpdate(snapshotName, snapshot, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3432,22 +3376,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._beginCreateOrUpdate(snapshotName, snapshot, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginCreateOrUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback); + return self._beginCreateOrUpdate(snapshotName, snapshot, options, optionalCallback); } } /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3513,11 +3455,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName, snapshotName, snapshot, options) { + beginUpdateWithHttpOperationResponse(snapshotName, snapshot, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._beginUpdate(snapshotName, snapshot, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3530,8 +3472,6 @@ class Snapshots { /** * Updates (patches) a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3613,7 +3553,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback) { + beginUpdate(snapshotName, snapshot, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3622,22 +3562,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginUpdate(resourceGroupName, snapshotName, snapshot, options, (err, result, request, response) => { + self._beginUpdate(snapshotName, snapshot, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginUpdate(resourceGroupName, snapshotName, snapshot, options, optionalCallback); + return self._beginUpdate(snapshotName, snapshot, options, optionalCallback); } } /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3654,11 +3592,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName, snapshotName, options) { + beginDeleteMethodWithHttpOperationResponse(snapshotName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._beginDeleteMethod(snapshotName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3671,8 +3609,6 @@ class Snapshots { /** * Deletes a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3706,7 +3642,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName, snapshotName, options, optionalCallback) { + beginDeleteMethod(snapshotName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3715,22 +3651,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._beginDeleteMethod(snapshotName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginDeleteMethod(resourceGroupName, snapshotName, options, optionalCallback); + return self._beginDeleteMethod(snapshotName, options, optionalCallback); } } /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3756,11 +3690,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - beginGrantAccessWithHttpOperationResponse(resourceGroupName, snapshotName, grantAccessData, options) { + beginGrantAccessWithHttpOperationResponse(snapshotName, grantAccessData, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, (err, result, request, response) => { + self._beginGrantAccess(snapshotName, grantAccessData, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3773,8 +3707,6 @@ class Snapshots { /** * Grants access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3816,7 +3748,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, optionalCallback) { + beginGrantAccess(snapshotName, grantAccessData, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3825,22 +3757,20 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, (err, result, request, response) => { + self._beginGrantAccess(snapshotName, grantAccessData, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginGrantAccess(resourceGroupName, snapshotName, grantAccessData, options, optionalCallback); + return self._beginGrantAccess(snapshotName, grantAccessData, options, optionalCallback); } } /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3857,11 +3787,11 @@ class Snapshots { * * @reject {Error} - The error object. */ - beginRevokeAccessWithHttpOperationResponse(resourceGroupName, snapshotName, options) { + beginRevokeAccessWithHttpOperationResponse(snapshotName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginRevokeAccess(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._beginRevokeAccess(snapshotName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3874,8 +3804,6 @@ class Snapshots { /** * Revokes access to a snapshot. * - * @param {string} resourceGroupName The name of the resource group. - * * @param {string} snapshotName The name of the snapshot that is being created. * The name can't be changed after the snapshot is created. Supported * characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 @@ -3909,7 +3837,7 @@ class Snapshots { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginRevokeAccess(resourceGroupName, snapshotName, options, optionalCallback) { + beginRevokeAccess(snapshotName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3918,14 +3846,14 @@ class Snapshots { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginRevokeAccess(resourceGroupName, snapshotName, options, (err, result, request, response) => { + self._beginRevokeAccess(snapshotName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginRevokeAccess(resourceGroupName, snapshotName, options, optionalCallback); + return self._beginRevokeAccess(snapshotName, options, optionalCallback); } } diff --git a/lib/services/computeManagement2/lib/operations/usageOperations.js b/lib/services/computeManagement2/lib/operations/usageOperations.js index a6a356e1f3..ea8c5e17fd 100644 --- a/lib/services/computeManagement2/lib/operations/usageOperations.js +++ b/lib/services/computeManagement2/lib/operations/usageOperations.js @@ -49,7 +49,7 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineExtensionImages.js b/lib/services/computeManagement2/lib/operations/virtualMachineExtensionImages.js index fc9e07d629..1158df3865 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineExtensionImages.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineExtensionImages.js @@ -54,7 +54,7 @@ function _get(location, publisherName, type, version, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -204,7 +204,7 @@ function _listTypes(location, publisherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -371,7 +371,7 @@ function _listVersions(location, publisherName, type, options, callback) { let filter = (options && options.filter !== undefined) ? options.filter : undefined; let top = (options && options.top !== undefined) ? options.top : undefined; let orderby = (options && options.orderby !== undefined) ? options.orderby : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineExtensions.js b/lib/services/computeManagement2/lib/operations/virtualMachineExtensions.js index 669cd7f9c8..a0b87cf46b 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineExtensions.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineExtensions.js @@ -383,7 +383,7 @@ function _get(resourceGroupName, vmName, vmExtensionName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -590,7 +590,7 @@ function _beginCreateOrUpdate(resourceGroupName, vmName, vmExtensionName, extens if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -805,7 +805,7 @@ function _beginUpdate(resourceGroupName, vmName, vmExtensionName, extensionParam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -973,7 +973,7 @@ function _beginDeleteMethod(resourceGroupName, vmName, vmExtensionName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineImages.js b/lib/services/computeManagement2/lib/operations/virtualMachineImages.js index 236d37b95f..fda405197b 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineImages.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineImages.js @@ -55,7 +55,7 @@ function _get(location, publisherName, offer, skus, version, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -223,7 +223,7 @@ function _list(location, publisherName, offer, skus, options, callback) { let filter = (options && options.filter !== undefined) ? options.filter : undefined; let top = (options && options.top !== undefined) ? options.top : undefined; let orderby = (options && options.orderby !== undefined) ? options.orderby : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -406,7 +406,7 @@ function _listOffers(location, publisherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -561,7 +561,7 @@ function _listPublishers(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -716,7 +716,7 @@ function _listSkus(location, publisherName, offer, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetExtensions.js b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetExtensions.js index 591b99d1ab..43b2ac10b3 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetExtensions.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetExtensions.js @@ -251,7 +251,7 @@ function _get(resourceGroupName, vmScaleSetName, vmssExtensionName, options, cal throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -406,7 +406,7 @@ function _list(resourceGroupName, vmScaleSetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -583,7 +583,7 @@ function _beginCreateOrUpdate(resourceGroupName, vmScaleSetName, vmssExtensionNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -768,7 +768,7 @@ function _beginDeleteMethod(resourceGroupName, vmScaleSetName, vmssExtensionName if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetRollingUpgrades.js b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetRollingUpgrades.js index 920f0cb874..5c55186c40 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetRollingUpgrades.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetRollingUpgrades.js @@ -210,7 +210,7 @@ function _getLatest(resourceGroupName, vmScaleSetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -354,7 +354,7 @@ function _beginCancel(resourceGroupName, vmScaleSetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -500,7 +500,7 @@ function _beginStartOSUpgrade(resourceGroupName, vmScaleSetName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetVMs.js b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetVMs.js index a86c085fe7..99df353480 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetVMs.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSetVMs.js @@ -824,7 +824,7 @@ function _get(resourceGroupName, vmScaleSetName, instanceId, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -974,7 +974,7 @@ function _getInstanceView(resourceGroupName, vmScaleSetName, instanceId, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1132,7 +1132,7 @@ function _list(resourceGroupName, virtualMachineScaleSetName, options, callback) let filter = (options && options.filter !== undefined) ? options.filter : undefined; let select = (options && options.select !== undefined) ? options.select : undefined; let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1704,7 +1704,7 @@ function _beginReimage(resourceGroupName, vmScaleSetName, instanceId, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1855,7 +1855,7 @@ function _beginReimageAll(resourceGroupName, vmScaleSetName, instanceId, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2008,7 +2008,7 @@ function _beginDeallocate(resourceGroupName, vmScaleSetName, instanceId, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2520,7 +2520,7 @@ function _beginUpdate(resourceGroupName, vmScaleSetName, instanceId, parameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2704,7 +2704,7 @@ function _beginDeleteMethod(resourceGroupName, vmScaleSetName, instanceId, optio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2856,7 +2856,7 @@ function _beginPowerOff(resourceGroupName, vmScaleSetName, instanceId, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3006,7 +3006,7 @@ function _beginRestart(resourceGroupName, vmScaleSetName, instanceId, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3156,7 +3156,7 @@ function _beginStart(resourceGroupName, vmScaleSetName, instanceId, options, cal if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3306,7 +3306,7 @@ function _beginRedeploy(resourceGroupName, vmScaleSetName, instanceId, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3456,7 +3456,7 @@ function _beginPerformMaintenance(resourceGroupName, vmScaleSetName, instanceId, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSets.js b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSets.js index b7a8075150..80dbe132fb 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineScaleSets.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineScaleSets.js @@ -947,7 +947,7 @@ function _get(resourceGroupName, vmScaleSetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1258,7 +1258,7 @@ function _getInstanceView(resourceGroupName, vmScaleSetName, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1400,7 +1400,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1539,7 +1539,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1676,7 +1676,7 @@ function _listSkus(resourceGroupName, vmScaleSetName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1820,7 +1820,7 @@ function _getOSUpgradeHistory(resourceGroupName, vmScaleSetName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2641,7 +2641,7 @@ function _forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3182,7 +3182,7 @@ function _beginCreateOrUpdate(resourceGroupName, vmScaleSetName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3627,7 +3627,7 @@ function _beginUpdate(resourceGroupName, vmScaleSetName, parameters, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3788,7 +3788,7 @@ function _beginDeleteMethod(resourceGroupName, vmScaleSetName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3940,7 +3940,7 @@ function _beginDeallocate(resourceGroupName, vmScaleSetName, options, callback) throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4112,7 +4112,7 @@ function _beginDeleteInstances(resourceGroupName, vmScaleSetName, instanceIds, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4291,7 +4291,7 @@ function _beginPowerOff(resourceGroupName, vmScaleSetName, options, callback) { throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4467,7 +4467,7 @@ function _beginRestart(resourceGroupName, vmScaleSetName, options, callback) { throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4643,7 +4643,7 @@ function _beginStart(resourceGroupName, vmScaleSetName, options, callback) { throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4819,7 +4819,7 @@ function _beginRedeploy(resourceGroupName, vmScaleSetName, options, callback) { throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4995,7 +4995,7 @@ function _beginPerformMaintenance(resourceGroupName, vmScaleSetName, options, ca throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -5168,7 +5168,7 @@ function _beginUpdateInstances(resourceGroupName, vmScaleSetName, instanceIds, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -5346,7 +5346,7 @@ function _beginReimage(resourceGroupName, vmScaleSetName, options, callback) { throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -5523,7 +5523,7 @@ function _beginReimageAll(resourceGroupName, vmScaleSetName, options, callback) throw new Error('callback cannot be null.'); } let instanceIds = (options && options.instanceIds !== undefined) ? options.instanceIds : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachineSizes.js b/lib/services/computeManagement2/lib/operations/virtualMachineSizes.js index f56a070623..a9fa9b3fbc 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachineSizes.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachineSizes.js @@ -49,7 +49,7 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/computeManagement2/lib/operations/virtualMachines.js b/lib/services/computeManagement2/lib/operations/virtualMachines.js index c5c28bb9c3..17aed4d469 100644 --- a/lib/services/computeManagement2/lib/operations/virtualMachines.js +++ b/lib/services/computeManagement2/lib/operations/virtualMachines.js @@ -55,7 +55,7 @@ function _getExtensions(resourceGroupName, vmName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1290,7 +1290,7 @@ function _get(resourceGroupName, vmName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1443,7 +1443,7 @@ function _instanceView(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1747,7 +1747,7 @@ function _generalize(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1890,7 +1890,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2027,7 +2027,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -2164,7 +2164,7 @@ function _listAvailableSizes(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2806,7 +2806,7 @@ function _beginCapture(resourceGroupName, vmName, parameters, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3344,7 +3344,7 @@ function _beginCreateOrUpdate(resourceGroupName, vmName, parameters, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3897,7 +3897,7 @@ function _beginUpdate(resourceGroupName, vmName, parameters, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4075,7 +4075,7 @@ function _beginDeleteMethod(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4220,7 +4220,7 @@ function _beginConvertToManagedDisks(resourceGroupName, vmName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4365,7 +4365,7 @@ function _beginDeallocate(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4511,7 +4511,7 @@ function _beginPowerOff(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4655,7 +4655,7 @@ function _beginRestart(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4799,7 +4799,7 @@ function _beginStart(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4943,7 +4943,7 @@ function _beginRedeploy(resourceGroupName, vmName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -5087,7 +5087,7 @@ function _beginPerformMaintenance(resourceGroupName, vmName, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-12-01'; + let apiVersion = '2017-12-01-alphadummy'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {