class Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk
Data Disk settings which will be used by the data disks associated to Compute Nodes in the pool.
Attributes
@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'
@return [Integer] The initial disk size in GB when creating new data disk.
@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.
@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'
Public Class Methods
Mapper for DataDisk
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb, line 52 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