Class: Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb

Overview

Data Disk settings which will be used by the data disks associated to Compute Nodes in the pool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cachingCachingType

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’

Returns:

  • (CachingType)

    The type of caching to be enabled for the data



32
33
34
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb', line 32

def caching
  @caching
end

#disk_size_gbInteger

disk.

Returns:

  • (Integer)

    The initial disk size in GB when creating new data



36
37
38
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb', line 36

def disk_size_gb
  @disk_size_gb
end

#lunInteger

identify each data disk. If attaching multiple disks, each should have a distinct lun.

Returns:

  • (Integer)

    The logical unit number. The lun is used to uniquely



19
20
21
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb', line 19

def lun
  @lun
end

#storage_account_typeStorageAccountType

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’

Returns:



45
46
47
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb', line 45

def 
  @storage_account_type
end

Class Method Details

.mapperObject

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



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 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