diff --git a/lib/services/computeManagement2/lib/models/accessUri.js b/lib/services/computeManagement2/lib/models/accessUri.js
index 2f3d401a97..3fa859d644 100644
--- a/lib/services/computeManagement2/lib/models/accessUri.js
+++ b/lib/services/computeManagement2/lib/models/accessUri.js
@@ -39,7 +39,7 @@ class AccessUri {
accessSAS: {
required: false,
readOnly: true,
- serializedName: 'properties.output.accessSAS',
+ serializedName: 'accessSAS',
type: {
name: 'String'
}
diff --git a/lib/services/computeManagement2/lib/models/dataDisk.js b/lib/services/computeManagement2/lib/models/dataDisk.js
index 35ad8c7602..5a4e36bacb 100644
--- a/lib/services/computeManagement2/lib/models/dataDisk.js
+++ b/lib/services/computeManagement2/lib/models/dataDisk.js
@@ -38,13 +38,13 @@ class DataDisk {
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machine should be
- * created.
Possible values are:
**Attach** This value is
- * used when you are using a specialized disk to create the virtual
- * machine.
**FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image,
- * you also use the imageReference element described above. If you are using
- * a marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * created.
Possible values are:
**Attach** \u2013 This value
+ * is used when you are using a specialized disk to create the virtual
+ * machine.
**FromImage** \u2013 This value is used when you are
+ * using an image to create the virtual machine. If you are using a platform
+ * image, you also use the imageReference element described above. If you are
+ * using a marketplace image, you also use the plan element previously
+ * described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [diskSizeGB] Specifies the size of an empty data disk in
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image.
This value cannot be larger than 1023 GB
diff --git a/lib/services/computeManagement2/lib/models/index.d.ts b/lib/services/computeManagement2/lib/models/index.d.ts
index 948ab3d639..48d4654c66 100644
--- a/lib/services/computeManagement2/lib/models/index.d.ts
+++ b/lib/services/computeManagement2/lib/models/index.d.ts
@@ -493,12 +493,19 @@ export interface VirtualMachineCaptureParameters {
* @class
* Initializes a new instance of the VirtualMachineCaptureResult class.
* @constructor
- * Resource Id.
+ * Output of virtual machine capture operation.
*
- * @member {object} [output] Operation output data (raw JSON)
+ * @member {string} [schema] the schema of the captured virtual machine
+ * @member {string} [contentVersion] the version of the content
+ * @member {object} [parameters] parameters of the captured virtual machine
+ * @member {array} [resources] a list of resource items of the captured virtual
+ * machine
*/
export interface VirtualMachineCaptureResult extends SubResource {
- output?: any;
+ readonly schema?: string;
+ readonly contentVersion?: string;
+ readonly parameters?: any;
+ readonly resources?: any[];
}
/**
@@ -756,13 +763,13 @@ export interface ManagedDiskParameters extends SubResource {
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machine should be
- * created.
Possible values are:
**Attach** This value is used
- * when you are using a specialized disk to create the virtual machine.
- * **FromImage** This value is used when you are using an image to create the
- * virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
- * image, you also use the plan element previously described. Possible values
- * include: 'FromImage', 'Empty', 'Attach'
+ * created.
Possible values are:
**Attach** \u2013 This value
+ * is used when you are using a specialized disk to create the virtual
+ * machine.
**FromImage** \u2013 This value is used when you are using
+ * an image to create the virtual machine. If you are using a platform image,
+ * you also use the imageReference element described above. If you are using a
+ * marketplace image, you also use the plan element previously described.
+ * Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [diskSizeGB] Specifies the size of an empty data disk in
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image.
This value cannot be larger than 1023 GB
@@ -808,13 +815,13 @@ export interface OSDisk {
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machine should be
- * created.
Possible values are:
**Attach** This value is used
- * when you are using a specialized disk to create the virtual machine.
- * **FromImage** This value is used when you are using an image to create the
- * virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
- * image, you also use the plan element previously described. Possible values
- * include: 'FromImage', 'Empty', 'Attach'
+ * created.
Possible values are:
**Attach** \u2013 This value
+ * is used when you are using a specialized disk to create the virtual
+ * machine.
**FromImage** \u2013 This value is used when you are using
+ * an image to create the virtual machine. If you are using a platform image,
+ * you also use the imageReference element described above. If you are using a
+ * marketplace image, you also use the plan element previously described.
+ * Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [diskSizeGB] Specifies the size of an empty data disk in
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image.
This value cannot be larger than 1023 GB
@@ -901,13 +908,13 @@ export interface DataDisk {
* @member {boolean} [osDisk.writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} [osDisk.createOption] Specifies how the virtual machine
- * should be created.
Possible values are:
**Attach** This
- * value is used when you are using a specialized disk to create the virtual
- * machine.
**FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image, you
- * also use the imageReference element described above. If you are using a
- * marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * should be created.
Possible values are:
**Attach** \u2013
+ * This value is used when you are using a specialized disk to create the
+ * virtual machine.
**FromImage** \u2013 This value is used when you
+ * are using an image to create the virtual machine. If you are using a
+ * platform image, you also use the imageReference element described above. If
+ * you are using a marketplace image, you also use the plan element previously
+ * described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [osDisk.diskSizeGB] Specifies the size of an empty data
* disk in gigabytes. This element can be used to overwrite the name of the
* disk in a virtual machine image.
This value cannot be larger than
@@ -1634,12 +1641,13 @@ export interface VirtualMachineInstanceView {
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of an
* empty data disk in gigabytes. This element can be used to overwrite the name
* of the disk in a virtual machine image.
This value cannot be larger
@@ -2020,12 +2028,13 @@ export interface VirtualMachine extends Resource {
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of an
* empty data disk in gigabytes. This element can be used to overwrite the name
* of the disk in a virtual machine image.
This value cannot be larger
@@ -2768,9 +2777,9 @@ export interface VirtualMachineScaleSetManagedDiskParameters {
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machines in the
* scale set should be created.
The only allowed value is:
- * **FromImage** This value is used when you are using an image to create the
- * virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
+ * **FromImage** \u2013 This value is used when you are using an image to
+ * create the virtual machine. If you are using a platform image, you also use
+ * the imageReference element described above. If you are using a marketplace
* image, you also use the plan element previously described. Possible values
* include: 'FromImage', 'Empty', 'Attach'
* @member {string} [osType] This property allows you to specify the type of
@@ -2901,9 +2910,9 @@ export interface VirtualMachineScaleSetDataDisk {
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} [osDisk.createOption] Specifies how the virtual machines in
* the scale set should be created.
The only allowed value is:
- * **FromImage** This value is used when you are using an image to create the
- * virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
+ * **FromImage** \u2013 This value is used when you are using an image to
+ * create the virtual machine. If you are using a platform image, you also use
+ * the imageReference element described above. If you are using a marketplace
* image, you also use the plan element previously described. Possible values
* include: 'FromImage', 'Empty', 'Attach'
* @member {string} [osDisk.osType] This property allows you to specify the
@@ -3430,9 +3439,9 @@ export interface VirtualMachineScaleSetExtensionProfile {
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machines in the scale set should be created.
The only
- * allowed value is: **FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image, you
- * also use the imageReference element described above. If you are using a
+ * allowed value is: **FromImage** \u2013 This value is used when you are using
+ * an image to create the virtual machine. If you are using a platform image,
+ * you also use the imageReference element described above. If you are using a
* marketplace image, you also use the plan element previously described.
* Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {string} [storageProfile.osDisk.osType] This property allows you to
@@ -3813,12 +3822,12 @@ export interface VirtualMachineScaleSetUpdateVMProfile {
* disk.
* @member {string} [virtualMachineProfile.storageProfile.osDisk.createOption]
* Specifies how the virtual machines in the scale set should be
- * created.
The only allowed value is: **FromImage** This value is
- * used when you are using an image to create the virtual machine. If you are
- * using a platform image, you also use the imageReference element described
- * above. If you are using a marketplace image, you also use the plan element
- * previously described. Possible values include: 'FromImage', 'Empty',
- * 'Attach'
+ * created.
The only allowed value is: **FromImage** \u2013 This value
+ * is used when you are using an image to create the virtual machine. If you
+ * are using a platform image, you also use the imageReference element
+ * described above. If you are using a marketplace image, you also use the
+ * plan element previously described. Possible values include: 'FromImage',
+ * 'Empty', 'Attach'
* @member {string} [virtualMachineProfile.storageProfile.osDisk.osType] This
* property allows you to specify the type of the OS that is included in the
* disk if creating a VM from user-image or a specialized VHD.
@@ -4771,12 +4780,13 @@ export interface UpgradeOperationHistoricalStatusInfo {
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of an
* empty data disk in gigabytes. This element can be used to overwrite the name
* of the disk in a virtual machine image.
This value cannot be larger
@@ -5118,18 +5128,6 @@ export interface RollingUpgradeStatusInfo extends Resource {
readonly error?: ApiError;
}
-/**
- * @class
- * Initializes a new instance of the ComputeLongRunningOperationProperties class.
- * @constructor
- * Compute-specific operation properties, including output
- *
- * @member {object} [output] Operation output data (raw JSON)
- */
-export interface ComputeLongRunningOperationProperties {
- output?: any;
-}
-
/**
* @class
* Initializes a new instance of the RecoveryWalkResponse class.
@@ -5146,34 +5144,6 @@ export interface RecoveryWalkResponse {
readonly nextPlatformUpdateDomain?: number;
}
-/**
- * @class
- * Initializes a new instance of the OperationStatusResponse class.
- * @constructor
- * Operation status response
- *
- * @member {string} [name] Operation ID
- * @member {string} [status] Operation status
- * @member {date} [startTime] Start time of the operation
- * @member {date} [endTime] End time of the operation
- * @member {object} [error] Api error
- * @member {array} [error.details] The Api error details
- * @member {object} [error.innererror] The Api inner error
- * @member {string} [error.innererror.exceptiontype] The exception type.
- * @member {string} [error.innererror.errordetail] The internal error message
- * or exception dump.
- * @member {string} [error.code] The error code.
- * @member {string} [error.target] The target of the particular error.
- * @member {string} [error.message] The error message.
- */
-export interface OperationStatusResponse {
- readonly name?: string;
- readonly status?: string;
- readonly startTime?: Date;
- readonly endTime?: Date;
- readonly error?: ApiError;
-}
-
/**
* @class
* Initializes a new instance of the LogAnalyticsInputBase class.
@@ -5244,7 +5214,7 @@ export interface LogAnalyticsOutput {
* @member {object} [properties] LogAnalyticsOutput
* @member {string} [properties.output] Output file Uri path to blob container.
*/
-export interface LogAnalyticsOperationResult extends OperationStatusResponse {
+export interface LogAnalyticsOperationResult {
readonly properties?: LogAnalyticsOutput;
}
@@ -5342,7 +5312,7 @@ export interface RunCommandDocument extends RunCommandDocumentBase {
*
* @member {object} [output] Operation output data (raw JSON)
*/
-export interface RunCommandResult extends OperationStatusResponse {
+export interface RunCommandResult {
output?: any;
}
diff --git a/lib/services/computeManagement2/lib/models/index.js b/lib/services/computeManagement2/lib/models/index.js
index bf67f6aaed..8a8cb4a449 100644
--- a/lib/services/computeManagement2/lib/models/index.js
+++ b/lib/services/computeManagement2/lib/models/index.js
@@ -131,9 +131,7 @@ exports.VirtualMachineHealthStatus = require('./virtualMachineHealthStatus');
exports.VirtualMachineScaleSetVMInstanceView = require('./virtualMachineScaleSetVMInstanceView');
exports.RollingUpgradeRunningStatus = require('./rollingUpgradeRunningStatus');
exports.RollingUpgradeStatusInfo = require('./rollingUpgradeStatusInfo');
-exports.ComputeLongRunningOperationProperties = require('./computeLongRunningOperationProperties');
exports.RecoveryWalkResponse = require('./recoveryWalkResponse');
-exports.OperationStatusResponse = require('./operationStatusResponse');
exports.LogAnalyticsInputBase = require('./logAnalyticsInputBase');
exports.RequestRateByIntervalInput = require('./requestRateByIntervalInput');
exports.ThrottledRequestsInput = require('./throttledRequestsInput');
diff --git a/lib/services/computeManagement2/lib/models/logAnalyticsOperationResult.js b/lib/services/computeManagement2/lib/models/logAnalyticsOperationResult.js
index 0bc73509e1..74be807688 100644
--- a/lib/services/computeManagement2/lib/models/logAnalyticsOperationResult.js
+++ b/lib/services/computeManagement2/lib/models/logAnalyticsOperationResult.js
@@ -15,9 +15,8 @@ const models = require('./index');
/**
* LogAnalytics operation status response
*
- * @extends models['OperationStatusResponse']
*/
-class LogAnalyticsOperationResult extends models['OperationStatusResponse'] {
+class LogAnalyticsOperationResult {
/**
* Create a LogAnalyticsOperationResult.
* @member {object} [properties] LogAnalyticsOutput
@@ -25,7 +24,6 @@ class LogAnalyticsOperationResult extends models['OperationStatusResponse'] {
* container.
*/
constructor() {
- super();
}
/**
@@ -42,47 +40,6 @@ class LogAnalyticsOperationResult extends models['OperationStatusResponse'] {
name: 'Composite',
className: 'LogAnalyticsOperationResult',
modelProperties: {
- name: {
- required: false,
- readOnly: true,
- serializedName: 'name',
- type: {
- name: 'String'
- }
- },
- status: {
- required: false,
- readOnly: true,
- serializedName: 'status',
- type: {
- name: 'String'
- }
- },
- startTime: {
- required: false,
- readOnly: true,
- serializedName: 'startTime',
- type: {
- name: 'DateTime'
- }
- },
- endTime: {
- required: false,
- readOnly: true,
- serializedName: 'endTime',
- type: {
- name: 'DateTime'
- }
- },
- error: {
- required: false,
- readOnly: true,
- serializedName: 'error',
- type: {
- name: 'Composite',
- className: 'ApiError'
- }
- },
properties: {
required: false,
readOnly: true,
diff --git a/lib/services/computeManagement2/lib/models/oSDisk.js b/lib/services/computeManagement2/lib/models/oSDisk.js
index ef1de61c3a..bf576f1740 100644
--- a/lib/services/computeManagement2/lib/models/oSDisk.js
+++ b/lib/services/computeManagement2/lib/models/oSDisk.js
@@ -62,13 +62,13 @@ class OSDisk {
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machine should be
- * created.
Possible values are:
**Attach** This value is
- * used when you are using a specialized disk to create the virtual
- * machine.
**FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image,
- * you also use the imageReference element described above. If you are using
- * a marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * created.
Possible values are:
**Attach** \u2013 This value
+ * is used when you are using a specialized disk to create the virtual
+ * machine.
**FromImage** \u2013 This value is used when you are
+ * using an image to create the virtual machine. If you are using a platform
+ * image, you also use the imageReference element described above. If you are
+ * using a marketplace image, you also use the plan element previously
+ * described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [diskSizeGB] Specifies the size of an empty data disk in
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image.
This value cannot be larger than 1023 GB
diff --git a/lib/services/computeManagement2/lib/models/runCommandResult.js b/lib/services/computeManagement2/lib/models/runCommandResult.js
index f23a7d1b8c..e279a76461 100644
--- a/lib/services/computeManagement2/lib/models/runCommandResult.js
+++ b/lib/services/computeManagement2/lib/models/runCommandResult.js
@@ -10,20 +10,16 @@
'use strict';
-const models = require('./index');
-
/**
* Run command operation response.
*
- * @extends models['OperationStatusResponse']
*/
-class RunCommandResult extends models['OperationStatusResponse'] {
+class RunCommandResult {
/**
* Create a RunCommandResult.
* @member {object} [output] Operation output data (raw JSON)
*/
constructor() {
- super();
}
/**
@@ -40,47 +36,6 @@ class RunCommandResult extends models['OperationStatusResponse'] {
name: 'Composite',
className: 'RunCommandResult',
modelProperties: {
- name: {
- required: false,
- readOnly: true,
- serializedName: 'name',
- type: {
- name: 'String'
- }
- },
- status: {
- required: false,
- readOnly: true,
- serializedName: 'status',
- type: {
- name: 'String'
- }
- },
- startTime: {
- required: false,
- readOnly: true,
- serializedName: 'startTime',
- type: {
- name: 'DateTime'
- }
- },
- endTime: {
- required: false,
- readOnly: true,
- serializedName: 'endTime',
- type: {
- name: 'DateTime'
- }
- },
- error: {
- required: false,
- readOnly: true,
- serializedName: 'error',
- type: {
- name: 'Composite',
- className: 'ApiError'
- }
- },
output: {
required: false,
serializedName: 'properties.output',
diff --git a/lib/services/computeManagement2/lib/models/storageProfile.js b/lib/services/computeManagement2/lib/models/storageProfile.js
index 1d7cde3559..38b108fcd0 100644
--- a/lib/services/computeManagement2/lib/models/storageProfile.js
+++ b/lib/services/computeManagement2/lib/models/storageProfile.js
@@ -80,13 +80,14 @@ class StorageProfile {
* @member {boolean} [osDisk.writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} [osDisk.createOption] Specifies how the virtual machine
- * should be created.
Possible values are:
**Attach** This
- * value is used when you are using a specialized disk to create the virtual
- * machine.
**FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image,
- * you also use the imageReference element described above. If you are using
- * a marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * should be created.
Possible values are:
**Attach** \u2013
+ * This value is used when you are using a specialized disk to create the
+ * virtual machine.
**FromImage** \u2013 This value is used when you
+ * are using an image to create the virtual machine. If you are using a
+ * platform image, you also use the imageReference element described above.
+ * If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
* @member {number} [osDisk.diskSizeGB] Specifies the size of an empty data
* disk in gigabytes. This element can be used to overwrite the name of the
* disk in a virtual machine image.
This value cannot be larger than
diff --git a/lib/services/computeManagement2/lib/models/virtualMachine.js b/lib/services/computeManagement2/lib/models/virtualMachine.js
index 021ab3369e..dfb237a362 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachine.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachine.js
@@ -172,13 +172,13 @@ class VirtualMachine extends models['Resource'] {
* disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above.
- * If you are using a marketplace image, you also use the plan element
- * previously described. Possible values include: 'FromImage', 'Empty',
- * 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan
+ * element previously described. Possible values include: 'FromImage',
+ * 'Empty', 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of
* an empty data disk in gigabytes. This element can be used to overwrite the
* name of the disk in a virtual machine image.
This value cannot be
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineCaptureResult.js b/lib/services/computeManagement2/lib/models/virtualMachineCaptureResult.js
index 82d3ef372b..67facb1d8a 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineCaptureResult.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineCaptureResult.js
@@ -13,14 +13,18 @@
const models = require('./index');
/**
- * Resource Id.
+ * Output of virtual machine capture operation.
*
* @extends models['SubResource']
*/
class VirtualMachineCaptureResult extends models['SubResource'] {
/**
* Create a VirtualMachineCaptureResult.
- * @member {object} [output] Operation output data (raw JSON)
+ * @member {string} [schema] the schema of the captured virtual machine
+ * @member {string} [contentVersion] the version of the content
+ * @member {object} [parameters] parameters of the captured virtual machine
+ * @member {array} [resources] a list of resource items of the captured
+ * virtual machine
*/
constructor() {
super();
@@ -47,12 +51,44 @@ class VirtualMachineCaptureResult extends models['SubResource'] {
name: 'String'
}
},
- output: {
+ schema: {
required: false,
- serializedName: 'properties.output',
+ readOnly: true,
+ serializedName: '$schema',
+ type: {
+ name: 'String'
+ }
+ },
+ contentVersion: {
+ required: false,
+ readOnly: true,
+ serializedName: 'contentVersion',
+ type: {
+ name: 'String'
+ }
+ },
+ parameters: {
+ required: false,
+ readOnly: true,
+ serializedName: 'parameters',
type: {
name: 'Object'
}
+ },
+ resources: {
+ required: false,
+ readOnly: true,
+ serializedName: 'resources',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'ObjectElementType',
+ type: {
+ name: 'Object'
+ }
+ }
+ }
}
}
}
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSet.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSet.js
index ec71b2c23b..601e8f504c 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSet.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSet.js
@@ -217,11 +217,11 @@ class VirtualMachineScaleSet extends models['Resource'] {
* @member {string}
* [virtualMachineProfile.storageProfile.osDisk.createOption] Specifies how
* the virtual machines in the scale set should be created.
The only
- * allowed value is: **FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image,
- * you also use the imageReference element described above. If you are using
- * a marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * allowed value is: **FromImage** \u2013 This value is used when you are
+ * using an image to create the virtual machine. If you are using a platform
+ * image, you also use the imageReference element described above. If you are
+ * using a marketplace image, you also use the plan element previously
+ * described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {string} [virtualMachineProfile.storageProfile.osDisk.osType] This
* property allows you to specify the type of the OS that is included in the
* disk if creating a VM from user-image or a specialized VHD.
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetOSDisk.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetOSDisk.js
index f53cfd7fe7..737b7c9db1 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetOSDisk.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetOSDisk.js
@@ -29,11 +29,11 @@ class VirtualMachineScaleSetOSDisk {
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machines in the
* scale set should be created.
The only allowed value is:
- * **FromImage** This value is used when you are using an image to create
- * the virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
- * image, you also use the plan element previously described. Possible
- * values include: 'FromImage', 'Empty', 'Attach'
+ * **FromImage** \u2013 This value is used when you are using an image to
+ * create the virtual machine. If you are using a platform image, you also
+ * use the imageReference element described above. If you are using a
+ * marketplace image, you also use the plan element previously described.
+ * Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {string} [osType] This property allows you to specify the type of
* the OS that is included in the disk if creating a VM from user-image or a
* specialized VHD.
Possible values are:
**Windows**
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetStorageProfile.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetStorageProfile.js
index d10d24ff7f..b8ab9a175b 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetStorageProfile.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetStorageProfile.js
@@ -49,11 +49,11 @@ class VirtualMachineScaleSetStorageProfile {
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} [osDisk.createOption] Specifies how the virtual machines
* in the scale set should be created.
The only allowed value is:
- * **FromImage** This value is used when you are using an image to create
- * the virtual machine. If you are using a platform image, you also use the
- * imageReference element described above. If you are using a marketplace
- * image, you also use the plan element previously described. Possible
- * values include: 'FromImage', 'Empty', 'Attach'
+ * **FromImage** \u2013 This value is used when you are using an image to
+ * create the virtual machine. If you are using a platform image, you also
+ * use the imageReference element described above. If you are using a
+ * marketplace image, you also use the plan element previously described.
+ * Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {string} [osDisk.osType] This property allows you to specify the
* type of the OS that is included in the disk if creating a VM from
* user-image or a specialized VHD.
Possible values are:
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVM.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVM.js
index 74cfa7f752..7b9e19dea1 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVM.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVM.js
@@ -228,13 +228,13 @@ class VirtualMachineScaleSetVM extends models['Resource'] {
* disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above.
- * If you are using a marketplace image, you also use the plan element
- * previously described. Possible values include: 'FromImage', 'Empty',
- * 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan
+ * element previously described. Possible values include: 'FromImage',
+ * 'Empty', 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of
* an empty data disk in gigabytes. This element can be used to overwrite the
* name of the disk in a virtual machine image.
This value cannot be
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVMProfile.js b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVMProfile.js
index 22bedcae0e..c0ee43dd34 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVMProfile.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineScaleSetVMProfile.js
@@ -132,11 +132,11 @@ class VirtualMachineScaleSetVMProfile {
* disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machines in the scale set should be created.
The only
- * allowed value is: **FromImage** This value is used when you are using an
- * image to create the virtual machine. If you are using a platform image,
- * you also use the imageReference element described above. If you are using
- * a marketplace image, you also use the plan element previously described.
- * Possible values include: 'FromImage', 'Empty', 'Attach'
+ * allowed value is: **FromImage** \u2013 This value is used when you are
+ * using an image to create the virtual machine. If you are using a platform
+ * image, you also use the imageReference element described above. If you are
+ * using a marketplace image, you also use the plan element previously
+ * described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {string} [storageProfile.osDisk.osType] This property allows you
* to specify the type of the OS that is included in the disk if creating a
* VM from user-image or a specialized VHD.
Possible values are:
diff --git a/lib/services/computeManagement2/lib/models/virtualMachineUpdate.js b/lib/services/computeManagement2/lib/models/virtualMachineUpdate.js
index a04666a880..c3aa49a406 100644
--- a/lib/services/computeManagement2/lib/models/virtualMachineUpdate.js
+++ b/lib/services/computeManagement2/lib/models/virtualMachineUpdate.js
@@ -172,13 +172,13 @@ class VirtualMachineUpdate extends models['UpdateResource'] {
* disk.
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above.
- * If you are using a marketplace image, you also use the plan element
- * previously described. Possible values include: 'FromImage', 'Empty',
- * 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan
+ * element previously described. Possible values include: 'FromImage',
+ * 'Empty', 'Attach'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of
* an empty data disk in gigabytes. This element can be used to overwrite the
* name of the disk in a virtual machine image.
This value cannot be
diff --git a/lib/services/computeManagement2/lib/operations/availabilitySets.js b/lib/services/computeManagement2/lib/operations/availabilitySets.js
index 292da5c63a..d2d6a7b712 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 = '2018-04-01';
// 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 = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -400,9 +400,7 @@ function _update(resourceGroupName, availabilitySetName, parameters, options, ca
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -418,7 +416,7 @@ function _deleteMethod(resourceGroupName, availabilitySetName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -504,23 +502,6 @@ function _deleteMethod(resourceGroupName, availabilitySetName, options, callback
// Create Result
let result = null;
if (responseBody === '') responseBody = null;
- // Deserialize Response
- if (statusCode === 200) {
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
- }
return callback(null, result, httpRequest, response);
});
@@ -561,7 +542,7 @@ function _get(resourceGroupName, availabilitySetName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -703,7 +684,7 @@ function _list(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -844,7 +825,7 @@ function _listAvailableSizes(resourceGroupName, availabilitySetName, options, ca
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1250,7 +1231,7 @@ class AvailabilitySets {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -1287,7 +1268,7 @@ class AvailabilitySets {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -1295,9 +1276,7 @@ class AvailabilitySets {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
diff --git a/lib/services/computeManagement2/lib/operations/disks.js b/lib/services/computeManagement2/lib/operations/disks.js
index aeb9e01a49..436ad19155 100644
--- a/lib/services/computeManagement2/lib/operations/disks.js
+++ b/lib/services/computeManagement2/lib/operations/disks.js
@@ -473,9 +473,7 @@ function _get(resourceGroupName, diskName, options, callback) {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -513,20 +511,6 @@ function _deleteMethod(resourceGroupName, diskName, options, callback) {
if (responseBody === '') responseBody = null;
// Deserialize Response
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
return callback(null, result, httpRequest, response);
});
@@ -913,9 +897,7 @@ function _grantAccess(resourceGroupName, diskName, grantAccessData, options, cal
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -953,20 +935,6 @@ function _revokeAccess(resourceGroupName, diskName, options, callback) {
if (responseBody === '') responseBody = null;
// Deserialize Response
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
return callback(null, result, httpRequest, response);
});
@@ -1483,9 +1451,7 @@ function _beginUpdate(resourceGroupName, diskName, disk, options, callback) {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -1587,23 +1553,6 @@ function _beginDeleteMethod(resourceGroupName, diskName, options, callback) {
// Create Result
let result = null;
if (responseBody === '') responseBody = null;
- // Deserialize Response
- if (statusCode === 200) {
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
- }
return callback(null, result, httpRequest, response);
});
@@ -1802,9 +1751,7 @@ function _beginGrantAccess(resourceGroupName, diskName, grantAccessData, options
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -1906,23 +1853,6 @@ function _beginRevokeAccess(resourceGroupName, diskName, options, callback) {
// Create Result
let result = null;
if (responseBody === '') responseBody = null;
- // Deserialize Response
- if (statusCode === 200) {
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
- }
return callback(null, result, httpRequest, response);
});
@@ -2758,7 +2688,7 @@ class Disks {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -2798,7 +2728,7 @@ class Disks {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -2806,9 +2736,7 @@ class Disks {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -3121,7 +3049,7 @@ class Disks {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -3161,7 +3089,7 @@ class Disks {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -3169,9 +3097,7 @@ class Disks {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -3656,7 +3582,7 @@ class Disks {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -3696,7 +3622,7 @@ class Disks {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -3704,9 +3630,7 @@ class Disks {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -3859,7 +3783,7 @@ class Disks {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -3899,7 +3823,7 @@ class Disks {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -3907,9 +3831,7 @@ class Disks {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
diff --git a/lib/services/computeManagement2/lib/operations/images.js b/lib/services/computeManagement2/lib/operations/images.js
index 27ee1a0181..cc3a456cba 100644
--- a/lib/services/computeManagement2/lib/operations/images.js
+++ b/lib/services/computeManagement2/lib/operations/images.js
@@ -313,9 +313,7 @@ function _update(resourceGroupName, imageName, parameters, options, callback) {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -353,20 +351,6 @@ function _deleteMethod(resourceGroupName, imageName, options, callback) {
if (responseBody === '') responseBody = null;
// Deserialize Response
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
return callback(null, result, httpRequest, response);
});
@@ -412,7 +396,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 = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -559,7 +543,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -696,7 +680,7 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
@@ -894,7 +878,7 @@ function _beginCreateOrUpdate(resourceGroupName, imageName, parameters, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1132,7 +1116,7 @@ function _beginUpdate(resourceGroupName, imageName, parameters, options, callbac
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1292,9 +1276,7 @@ function _beginUpdate(resourceGroupName, imageName, parameters, options, callbac
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -1310,7 +1292,7 @@ function _beginDeleteMethod(resourceGroupName, imageName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2017-12-01';
+ let apiVersion = '2018-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1396,23 +1378,6 @@ function _beginDeleteMethod(resourceGroupName, imageName, options, callback) {
// Create Result
let result = null;
if (responseBody === '') responseBody = null;
- // Deserialize Response
- if (statusCode === 200) {
- let parsedResponse = null;
- try {
- parsedResponse = JSON.parse(responseBody);
- result = JSON.parse(responseBody);
- if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['OperationStatusResponse']().mapper();
- result = client.deserialize(resultMapper, parsedResponse, 'result');
- }
- } catch (error) {
- let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
- deserializationError.request = msRest.stripRequest(httpRequest);
- deserializationError.response = msRest.stripResponse(response);
- return callback(deserializationError);
- }
- }
return callback(null, result, httpRequest, response);
});
@@ -2129,7 +2094,7 @@ class Images {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -2166,7 +2131,7 @@ class Images {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -2174,9 +2139,7 @@ class Images {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
@@ -2892,7 +2855,7 @@ class Images {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
@@ -2929,7 +2892,7 @@ class Images {
*
* {Promise} A promise is returned
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error} - The error object.
*
@@ -2937,9 +2900,7 @@ class Images {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
- * {object} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
diff --git a/lib/services/computeManagement2/lib/operations/index.d.ts b/lib/services/computeManagement2/lib/operations/index.d.ts
index 6d4d9fcd7b..dd345e1f9b 100644
--- a/lib/services/computeManagement2/lib/operations/index.d.ts
+++ b/lib/services/computeManagement2/lib/operations/index.d.ts
@@ -310,11 +310,11 @@ export interface AvailabilitySets {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- deleteMethodWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ deleteMethodWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Delete an availability set.
@@ -335,7 +335,7 @@ export interface AvailabilitySets {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -343,17 +343,15 @@ export interface AvailabilitySets {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deleteMethod(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deleteMethod(resourceGroupName: string, availabilitySetName: string, callback: ServiceCallback): void;
- deleteMethod(resourceGroupName: string, availabilitySetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteMethod(resourceGroupName: string, availabilitySetName: string, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, availabilitySetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -1060,11 +1058,11 @@ export interface VirtualMachineExtensions {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- deleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ deleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to delete the extension.
@@ -1088,7 +1086,7 @@ export interface VirtualMachineExtensions {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -1096,17 +1094,15 @@ export interface VirtualMachineExtensions {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback): void;
- deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -1490,11 +1486,11 @@ export interface VirtualMachineExtensions {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to delete the extension.
@@ -1518,7 +1514,7 @@ export interface VirtualMachineExtensions {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -1526,17 +1522,15 @@ export interface VirtualMachineExtensions {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback): void;
- beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
}
/**
@@ -1888,12 +1882,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -2285,12 +2280,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -2701,12 +2697,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -3096,12 +3093,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -3338,11 +3336,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- deleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ deleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to delete a virtual machine.
@@ -3363,7 +3361,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3371,17 +3369,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deleteMethod(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deleteMethod(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- deleteMethod(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteMethod(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -3526,11 +3522,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- convertToManagedDisksWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ convertToManagedDisksWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Converts virtual machine disks from blob-based to managed disks. Virtual
@@ -3552,7 +3548,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3560,17 +3556,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- convertToManagedDisks(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- convertToManagedDisks(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- convertToManagedDisks(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ convertToManagedDisks(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ convertToManagedDisks(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ convertToManagedDisks(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -3588,11 +3582,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- deallocateWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ deallocateWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Shuts down the virtual machine and releases the compute resources. You are
@@ -3614,7 +3608,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3622,17 +3616,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deallocate(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deallocate(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- deallocate(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deallocate(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deallocate(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ deallocate(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -3649,11 +3641,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- generalizeWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ generalizeWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Sets the state of the virtual machine to generalized.
@@ -3674,7 +3666,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3682,17 +3674,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- generalize(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- generalize(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- generalize(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ generalize(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ generalize(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ generalize(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -3885,11 +3875,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- powerOffWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ powerOffWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to power off (stop) a virtual machine. The virtual machine can
@@ -3912,7 +3902,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3920,17 +3910,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- powerOff(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- powerOff(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- powerOff(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ powerOff(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ powerOff(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ powerOff(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -3947,11 +3935,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- restartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ restartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to restart a virtual machine.
@@ -3972,7 +3960,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -3980,17 +3968,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- restart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- restart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- restart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ restart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ restart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ restart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -4007,11 +3993,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- startWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ startWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to start a virtual machine.
@@ -4032,7 +4018,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -4040,17 +4026,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- start(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- start(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- start(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ start(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ start(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ start(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -4067,11 +4051,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- redeployWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ redeployWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to redeploy a virtual machine.
@@ -4092,7 +4076,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -4100,17 +4084,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- redeploy(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- redeploy(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- redeploy(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ redeploy(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ redeploy(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ redeploy(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -4127,11 +4109,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- performMaintenanceWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ performMaintenanceWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to perform maintenance on a virtual machine.
@@ -4152,7 +4134,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -4160,17 +4142,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- performMaintenance(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- performMaintenance(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- performMaintenance(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ performMaintenance(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ performMaintenance(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ performMaintenance(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -4197,11 +4177,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- runCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ runCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Run command on the VM.
@@ -4232,7 +4212,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {RunCommandResult} - The deserialized result object.
+ * @resolve {Array} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -4240,16 +4220,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {RunCommandResult} [result] - The deserialized result object if an error did not occur.
- * See {@link RunCommandResult} for more information.
+ * {Array} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback): void;
- runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback): void;
+ runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -4524,12 +4503,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -4921,12 +4901,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -5337,12 +5318,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -5732,12 +5714,13 @@ export interface VirtualMachines {
*
* @param {string} parameters.storageProfile.osDisk.createOption Specifies how
* the virtual machine should be created.
Possible values are:
- * **Attach** This value is used when you are using a specialized disk to
- * create the virtual machine.
**FromImage** This value is used when
- * you are using an image to create the virtual machine. If you are using a
- * platform image, you also use the imageReference element described above. If
- * you are using a marketplace image, you also use the plan element previously
- * described. Possible values include: 'FromImage', 'Empty', 'Attach'
+ * **Attach** \u2013 This value is used when you are using a specialized disk
+ * to create the virtual machine.
**FromImage** \u2013 This value is
+ * used when you are using an image to create the virtual machine. If you are
+ * using a platform image, you also use the imageReference element described
+ * above. If you are using a marketplace image, you also use the plan element
+ * previously described. Possible values include: 'FromImage', 'Empty',
+ * 'Attach'
*
* @param {number} [parameters.storageProfile.osDisk.diskSizeGB] Specifies the
* size of an empty data disk in gigabytes. This element can be used to
@@ -5974,11 +5957,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to delete a virtual machine.
@@ -5999,7 +5982,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6007,17 +5990,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginDeleteMethod(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginDeleteMethod(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginDeleteMethod(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6035,11 +6016,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginConvertToManagedDisksWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginConvertToManagedDisksWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Converts virtual machine disks from blob-based to managed disks. Virtual
@@ -6061,7 +6042,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6069,17 +6050,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginConvertToManagedDisks(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginConvertToManagedDisks(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6097,11 +6076,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginDeallocateWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginDeallocateWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Shuts down the virtual machine and releases the compute resources. You are
@@ -6123,7 +6102,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6131,17 +6110,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginDeallocate(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginDeallocate(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginDeallocate(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginDeallocate(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginDeallocate(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginDeallocate(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6160,11 +6137,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginPowerOffWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginPowerOffWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to power off (stop) a virtual machine. The virtual machine can
@@ -6187,7 +6164,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6195,17 +6172,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginPowerOff(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginPowerOff(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginPowerOff(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginPowerOff(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginPowerOff(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginPowerOff(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6222,11 +6197,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginRestartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginRestartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to restart a virtual machine.
@@ -6247,7 +6222,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6255,17 +6230,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginRestart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginRestart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginRestart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginRestart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginRestart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginRestart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6282,11 +6255,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginStartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginStartWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to start a virtual machine.
@@ -6307,7 +6280,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6315,17 +6288,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginStart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginStart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginStart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginStart(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginStart(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginStart(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6342,11 +6313,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginRedeployWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginRedeployWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to redeploy a virtual machine.
@@ -6367,7 +6338,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6375,17 +6346,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginRedeploy(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginRedeploy(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginRedeploy(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginRedeploy(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginRedeploy(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginRedeploy(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6402,11 +6371,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginPerformMaintenanceWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginPerformMaintenanceWithHttpOperationResponse(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* The operation to perform maintenance on a virtual machine.
@@ -6427,7 +6396,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6435,17 +6404,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginPerformMaintenance(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
- beginPerformMaintenance(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginPerformMaintenance(resourceGroupName: string, vmName: string, callback: ServiceCallback): void;
+ beginPerformMaintenance(resourceGroupName: string, vmName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -6472,11 +6439,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginRunCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginRunCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Run command on the VM.
@@ -6507,7 +6474,7 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
- * @resolve {RunCommandResult} - The deserialized result object.
+ * @resolve {Array} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -6515,16 +6482,15 @@ export interface VirtualMachines {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {RunCommandResult} [result] - The deserialized result object if an error did not occur.
- * See {@link RunCommandResult} for more information.
+ * {Array} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback): void;
- beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback): void;
+ beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -7572,11 +7538,11 @@ export interface Images {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- deleteMethodWithHttpOperationResponse(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ deleteMethodWithHttpOperationResponse(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Deletes an Image.
@@ -7597,7 +7563,7 @@ export interface Images {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -7605,17 +7571,15 @@ export interface Images {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deleteMethod(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deleteMethod(resourceGroupName: string, imageName: string, callback: ServiceCallback): void;
- deleteMethod(resourceGroupName: string, imageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteMethod(resourceGroupName: string, imageName: string, callback: ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, imageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -8173,11 +8137,11 @@ export interface Images {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* Deletes an Image.
@@ -8198,7 +8162,7 @@ export interface Images {
*
* {Promise} A promise is returned.
*
- * @resolve {OperationStatusResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -8206,17 +8170,15 @@ export interface Images {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link OperationStatusResponse} for more
- * information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- beginDeleteMethod(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- beginDeleteMethod(resourceGroupName: string, imageName: string, callback: ServiceCallback): void;
- beginDeleteMethod(resourceGroupName: string, imageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, imageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ beginDeleteMethod(resourceGroupName: string, imageName: string, callback: ServiceCallback): void;
+ beginDeleteMethod(resourceGroupName: string, imageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -8609,12 +8571,12 @@ export interface VirtualMachineScaleSets {
* @param {string}
* parameters.virtualMachineProfile.storageProfile.osDisk.createOption
* Specifies how the virtual machines in the scale set should be
- * created.