class Azure::Batch::Mgmt::V2019_08_01::Models::DataDisk

Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.

Attributes

caching[RW]

@return [CachingType] The type of caching to be enabled for the data disks. Values are:

none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write.

The default value for caching is none. For information about the caching options see: blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

disk_size_gb[RW]

@return [Integer] The initial disk size in GB when creating new data disk.

lun[RW]

@return [Integer] The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

storage_account_type[RW]

@return [StorageAccountType] The storage account type to be used for the data disk. If omitted, the default is “Standard_LRS”. Values are:

Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage. Possible values include: 'Standard_LRS', 'Premium_LRS'

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-08-01/generated/azure_mgmt_batch/models/data_disk.rb, line 53
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DataDisk',
    type: {
      name: 'Composite',
      class_name: 'DataDisk',
      model_properties: {
        lun: {
          client_side_validation: true,
          required: true,
          serialized_name: 'lun',
          type: {
            name: 'Number'
          }
        },
        caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'caching',
          type: {
            name: 'Enum',
            module: 'CachingType'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: true,
          serialized_name: 'diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        storage_account_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageAccountType',
          type: {
            name: 'Enum',
            module: 'StorageAccountType'
          }
        }
      }
    }
  }
end