Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR compute/resource-manager] Swagger changes for adding diffdisksettings property for the Ephemeral OS Disks #3678

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions lib/services/computeManagement2/lib/models/diffDiskSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Describes the parameters of differencing disk settings that can be be
* specified for operating system disk. <br><br> NOTE: The differencing disk
* settings can only be specified for managed disk.
*
*/
class DiffDiskSettings {
/**
* Create a DiffDiskSettings.
* @member {string} [option] Specifies the differencing disk settings for
* operating system disk. Possible values include: 'Local'
*/
constructor() {
}

/**
* Defines the metadata of DiffDiskSettings
*
* @returns {object} metadata of DiffDiskSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'DiffDiskSettings',
type: {
name: 'Composite',
className: 'DiffDiskSettings',
modelProperties: {
option: {
required: false,
serializedName: 'option',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DiffDiskSettings;
66 changes: 66 additions & 0 deletions lib/services/computeManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,21 @@ export interface VirtualHardDisk {
uri?: string;
}

/**
* @class
* Initializes a new instance of the DiffDiskSettings class.
* @constructor
* Describes the parameters of differencing disk settings that can be be
* specified for operating system disk. <br><br> NOTE: The differencing disk
* settings can only be specified for managed disk.
*
* @member {string} [option] Specifies the differencing disk settings for
* operating system disk. Possible values include: 'Local'
*/
export interface DiffDiskSettings {
option?: string;
}

/**
* @class
* Initializes a new instance of the ManagedDiskParameters class.
Expand Down Expand Up @@ -766,6 +781,10 @@ export interface ManagedDiskParameters extends SubResource {
* Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [diffDiskSettings] Specifies the differencing Disk Settings
* for the operating system disk used by the virtual machine.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {string} createOption Specifies how the virtual machine should be
* created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value
* is used when you are using a specialized disk to create the virtual
Expand All @@ -791,6 +810,7 @@ export interface OSDisk {
image?: VirtualHardDisk;
caching?: string;
writeAcceleratorEnabled?: boolean;
diffDiskSettings?: DiffDiskSettings;
createOption: string;
diskSizeGB?: number;
managedDisk?: ManagedDiskParameters;
Expand Down Expand Up @@ -913,6 +933,10 @@ export interface DataDisk {
* 'ReadWrite'
* @member {boolean} [osDisk.writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the differencing
* disk settings for operating system disk. Possible values include: 'Local'
* @member {string} [osDisk.createOption] Specifies how the virtual machine
* should be created.<br><br> Possible values are:<br><br> **Attach** \u2013
* This value is used when you are using a specialized disk to create the
Expand Down Expand Up @@ -1690,6 +1714,12 @@ export interface VirtualMachineInstanceView {
* 'ReadOnly', 'ReadWrite'
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled] Specifies
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the virtual
* machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down Expand Up @@ -2095,6 +2125,12 @@ export interface VirtualMachine extends Resource {
* 'ReadOnly', 'ReadWrite'
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled] Specifies
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the virtual
* machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down Expand Up @@ -2901,6 +2937,10 @@ export interface VirtualMachineScaleSetManagedDiskParameters {
* 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 {object} [diffDiskSettings] Specifies the differencing Disk Settings
* for the operating system disk used by the virtual machine scale set.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {number} [diskSizeGB] Specifies the size of the operating system
* disk in gigabytes. This element can be used to overwrite the size of the
* disk in a virtual machine image. <br><br> This value cannot be larger than
Expand All @@ -2925,6 +2965,7 @@ export interface VirtualMachineScaleSetOSDisk {
caching?: string;
writeAcceleratorEnabled?: boolean;
createOption: string;
diffDiskSettings?: DiffDiskSettings;
diskSizeGB?: number;
osType?: string;
image?: VirtualHardDisk;
Expand Down Expand Up @@ -3047,6 +3088,11 @@ export interface VirtualMachineScaleSetDataDisk {
* 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 {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine scale
* set.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the differencing
* disk settings for operating system disk. Possible values include: 'Local'
* @member {number} [osDisk.diskSizeGB] Specifies the size of the operating
* system disk in gigabytes. This element can be used to overwrite the size of
* the disk in a virtual machine image. <br><br> This value cannot be larger
Expand Down Expand Up @@ -3625,6 +3671,12 @@ export interface VirtualMachineScaleSetExtensionProfile {
* 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 {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the virtual
* machine scale set.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of
* the operating system disk in gigabytes. This element can be used to
* overwrite the size of the disk in a virtual machine image. <br><br> This
Expand Down Expand Up @@ -4042,6 +4094,14 @@ export interface VirtualMachineScaleSetUpdateVMProfile {
* described above. If you are using a marketplace image, you also use the
* plan element previously described. Possible values include: 'FromImage',
* 'Empty', 'Attach'
* @member {object}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the virtual
* machine scale set.
* @member {string}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings.option]
* Specifies the differencing disk settings for operating system disk. Possible
* values include: 'Local'
* @member {number} [virtualMachineProfile.storageProfile.osDisk.diskSizeGB]
* Specifies the size of the operating system disk in gigabytes. This element
* can be used to overwrite the size of the disk in a virtual machine image.
Expand Down Expand Up @@ -5118,6 +5178,12 @@ export interface VirtualMachineScaleSetVMInstanceView {
* 'ReadOnly', 'ReadWrite'
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled] Specifies
* whether writeAccelerator should be enabled or disabled on the disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the virtual
* machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down
1 change: 1 addition & 0 deletions lib/services/computeManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports.KeyVaultSecretReference = require('./keyVaultSecretReference');
exports.KeyVaultKeyReference = require('./keyVaultKeyReference');
exports.DiskEncryptionSettings = require('./diskEncryptionSettings');
exports.VirtualHardDisk = require('./virtualHardDisk');
exports.DiffDiskSettings = require('./diffDiskSettings');
exports.ManagedDiskParameters = require('./managedDiskParameters');
exports.OSDisk = require('./oSDisk');
exports.DataDisk = require('./dataDisk');
Expand Down
12 changes: 12 additions & 0 deletions lib/services/computeManagement2/lib/models/oSDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class OSDisk {
* 'ReadWrite'
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {string} createOption Specifies how the virtual machine should be
* created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value
* is used when you are using a specialized disk to create the virtual
Expand Down Expand Up @@ -147,6 +151,14 @@ class OSDisk {
name: 'Boolean'
}
},
diffDiskSettings: {
required: false,
serializedName: 'diffDiskSettings',
type: {
name: 'Composite',
className: 'DiffDiskSettings'
}
},
createOption: {
required: true,
serializedName: 'createOption',
Expand Down
5 changes: 5 additions & 0 deletions lib/services/computeManagement2/lib/models/storageProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class StorageProfile {
* 'ReadOnly', 'ReadWrite'
* @member {boolean} [osDisk.writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the
* differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [osDisk.createOption] Specifies how the virtual machine
* should be created.<br><br> Possible values are:<br><br> **Attach** \u2013
* This value is used when you are using a specialized disk to create the
Expand Down
6 changes: 6 additions & 0 deletions lib/services/computeManagement2/lib/models/virtualMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ class VirtualMachine extends models['Resource'] {
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled]
* Specifies whether writeAccelerator should be enabled or disabled on the
* disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the
* virtual machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,14 @@ class VirtualMachineScaleSet extends models['Resource'] {
* 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 {object}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings] Specifies
* the differencing Disk Settings for the operating system disk used by the
* virtual machine scale set.
* @member {string}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings.option]
* Specifies the differencing disk settings for operating system disk.
* Possible values include: 'Local'
* @member {number} [virtualMachineProfile.storageProfile.osDisk.diskSizeGB]
* Specifies the size of the operating system disk in gigabytes. This element
* can be used to overwrite the size of the disk in a virtual machine image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class VirtualMachineScaleSetOSDisk {
* 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 {object} [diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine scale
* set.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {number} [diskSizeGB] Specifies the size of the operating system
* disk in gigabytes. This element can be used to overwrite the size of the
* disk in a virtual machine image. <br><br> This value cannot be larger than
Expand Down Expand Up @@ -97,6 +102,14 @@ class VirtualMachineScaleSetOSDisk {
name: 'String'
}
},
diffDiskSettings: {
required: false,
serializedName: 'diffDiskSettings',
type: {
name: 'Composite',
className: 'DiffDiskSettings'
}
},
diskSizeGB: {
required: false,
serializedName: 'diskSizeGB',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class VirtualMachineScaleSetStorageProfile {
* 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 {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine scale
* set.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the
* differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {number} [osDisk.diskSizeGB] Specifies the size of the operating
* system disk in gigabytes. This element can be used to overwrite the size
* of the disk in a virtual machine image. <br><br> This value cannot be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ class VirtualMachineScaleSetVM extends models['Resource'] {
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled]
* Specifies whether writeAccelerator should be enabled or disabled on the
* disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the
* virtual machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ class VirtualMachineScaleSetVMProfile {
* 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 {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the
* virtual machine scale set.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {number} [storageProfile.osDisk.diskSizeGB] Specifies the size of
* the operating system disk in gigabytes. This element can be used to
* overwrite the size of the disk in a virtual machine image. <br><br> This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ class VirtualMachineUpdate extends models['UpdateResource'] {
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled]
* Specifies whether writeAccelerator should be enabled or disabled on the
* disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the
* virtual machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down
Loading