# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2019_03_01 module Models # # Describes a data disk. # class ImageDataDisk include MsRestAzure # @return [Integer] Specifies the logical unit number of the data disk. # This value is used to identify data disks within the VM and therefore # must be unique for each data disk attached to a VM. attr_accessor :lun # @return [SubResource] The snapshot. attr_accessor :snapshot # @return [SubResource] The managedDisk. attr_accessor :managed_disk # @return [String] The Virtual Hard Disk. attr_accessor :blob_uri # @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' attr_accessor :caching # @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 attr_accessor :disk_size_gb # @return [StorageAccountTypes] Specifies the storage account type for # the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, # it cannot be used with OS Disk. Possible values include: # 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' attr_accessor :storage_account_type # # Mapper for ImageDataDisk class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageDataDisk', type: { name: 'Composite', class_name: 'ImageDataDisk', model_properties: { lun: { client_side_validation: true, required: true, serialized_name: 'lun', type: { name: 'Number' } }, 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 end end end