azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
106 lines (100 loc) • 3.8 kB
JavaScript
/*
* 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.
*/
;
const models = require('./index');
/**
* Describes a virtual machine scale set storage profile.
*
*/
class VirtualMachineScaleSetUpdateStorageProfile {
/**
* Create a VirtualMachineScaleSetUpdateStorageProfile.
* @member {object} [imageReference] The image reference.
* @member {string} [imageReference.publisher] The image publisher.
* @member {string} [imageReference.offer] Specifies the offer of the
* platform image or marketplace image used to create the virtual machine.
* @member {string} [imageReference.sku] The image SKU.
* @member {string} [imageReference.version] Specifies the version of the
* platform image or marketplace image used to create the virtual machine.
* The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and
* Build are decimal numbers. Specify 'latest' to use the latest version of
* an image available at deploy time. Even if you use 'latest', the VM image
* will not automatically update after deploy time even if a new version
* becomes available.
* @member {object} [osDisk] The OS disk.
* @member {string} [osDisk.caching] The caching type. Possible values
* include: 'None', 'ReadOnly', 'ReadWrite'
* @member {object} [osDisk.image] The Source User Image VirtualHardDisk.
* This VirtualHardDisk will be copied before using it to attach to the
* Virtual Machine. If SourceImage is provided, the destination
* VirtualHardDisk should not exist.
* @member {string} [osDisk.image.uri] Specifies the virtual hard disk's uri.
* @member {array} [osDisk.vhdContainers] The list of virtual hard disk
* container uris.
* @member {object} [osDisk.managedDisk] The managed disk parameters.
* @member {string} [osDisk.managedDisk.storageAccountType] Specifies the
* storage account type for the managed disk. Possible values are:
* Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS'
* @member {array} [dataDisks] The data disks.
*/
constructor() {
}
/**
* Defines the metadata of VirtualMachineScaleSetUpdateStorageProfile
*
* @returns {object} metadata of VirtualMachineScaleSetUpdateStorageProfile
*
*/
mapper() {
return {
required: false,
serializedName: 'VirtualMachineScaleSetUpdateStorageProfile',
type: {
name: 'Composite',
className: 'VirtualMachineScaleSetUpdateStorageProfile',
modelProperties: {
imageReference: {
required: false,
serializedName: 'imageReference',
type: {
name: 'Composite',
className: 'ImageReference'
}
},
osDisk: {
required: false,
serializedName: 'osDisk',
type: {
name: 'Composite',
className: 'VirtualMachineScaleSetUpdateOSDisk'
}
},
dataDisks: {
required: false,
serializedName: 'dataDisks',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'VirtualMachineScaleSetDataDiskElementType',
type: {
name: 'Composite',
className: 'VirtualMachineScaleSetDataDisk'
}
}
}
}
}
}
};
}
}
module.exports = VirtualMachineScaleSetUpdateStorageProfile;