class Azure::Compute::Mgmt::V2017_12_01::Models::ImageOSDisk
Describes an Operating System disk.
Attributes
@return [String] The Virtual Hard Disk.
@return [CachingTypes] Specifies the caching requirements.
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
@return [Integer] Specifies the size of empty data disks 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
@return [SubResource] The managedDisk.
@return [OperatingSystemStateTypes] The OS State. Possible values include: 'Generalized', 'Specialized'
@return [OperatingSystemTypes] This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'
@return [SubResource] The snapshot.
@return [StorageAccountTypes] Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'
Private Class Methods
Mapper for ImageOSDisk
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb, line 56 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageOSDisk', type: { name: 'Composite', class_name: 'ImageOSDisk', model_properties: { os_type: { client_side_validation: true, required: true, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, os_state: { client_side_validation: true, required: true, serialized_name: 'osState', type: { name: 'Enum', module: 'OperatingSystemStateTypes' } }, snapshot: { client_side_validation: true, required: false, serialized_name: 'snapshot', type: { name: 'Composite', class_name: 'SubResource' } }, managed_disk: { client_side_validation: true, required: false, serialized_name: 'managedDisk', type: { name: 'Composite', class_name: 'SubResource' } }, blob_uri: { client_side_validation: true, required: false, serialized_name: 'blobUri', type: { name: 'String' } }, caching: { client_side_validation: true, required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, disk_size_gb: { client_side_validation: true, required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } }, storage_account_type: { client_side_validation: true, required: false, serialized_name: 'storageAccountType', type: { name: 'String' } } } } } end