class Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DataDiskProperties

Request body for adding a new or existing data disk to a virtual machine.

Attributes

attach_new_data_disk_options[RW]

@return [AttachNewDataDiskOptions] Specifies options to attach a new disk to the virtual machine.

existing_lab_disk_id[RW]

@return [String] Specifies the existing lab disk id to attach to virtual machine.

host_caching[RW]

@return [HostCachingOptions] Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', 'ReadOnly', 'ReadWrite'

Public Class Methods

mapper() click to toggle source

Mapper for DataDiskProperties class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DataDiskProperties',
    type: {
      name: 'Composite',
      class_name: 'DataDiskProperties',
      model_properties: {
        attach_new_data_disk_options: {
          client_side_validation: true,
          required: false,
          serialized_name: 'attachNewDataDiskOptions',
          type: {
            name: 'Composite',
            class_name: 'AttachNewDataDiskOptions'
          }
        },
        existing_lab_disk_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'existingLabDiskId',
          type: {
            name: 'String'
          }
        },
        host_caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'hostCaching',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end