# 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::V2020_12_01 module Models # # Describes a data disk. # class ImageDataDisk < ImageDisk 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 # # 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: { 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' } }, disk_encryption_set: { client_side_validation: true, required: false, serialized_name: 'diskEncryptionSet', type: { name: 'Composite', class_name: 'DiskEncryptionSetParameters' } }, lun: { client_side_validation: true, required: true, serialized_name: 'lun', type: { name: 'Number' } } } } } end end end end