Class: Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineScaleSetDataDisk

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb

Overview

Describes a virtual machine scale set data disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cachingCachingTypes

Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

Returns:



28
29
30
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 28

def caching
  @caching
end

#create_optionDiskCreateOptionTypes

include: 'FromImage', 'Empty', 'Attach'

Returns:



36
37
38
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 36

def create_option
  @create_option
end

#disk_iopsread_writeInteger

Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

Returns:

  • (Integer)

    Specifies the Read-Write IOPS for the managed disk.



51
52
53
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 51

def disk_iopsread_write
  @disk_iopsread_write
end

#disk_mbps_read_writeInteger

managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

Returns:

  • (Integer)

    Specifies the bandwidth in MB per second for the



57
58
59
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 57

def disk_mbps_read_write
  @disk_mbps_read_write
end

#disk_size_gbInteger

gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
This value cannot be larger than 1023 GB

Returns:

  • (Integer)

    Specifies the size of an empty data disk in



42
43
44
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 42

def disk_size_gb
  @disk_size_gb
end

#lunInteger

This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.

Returns:

  • (Integer)

    Specifies the logical unit number of the data disk.



21
22
23
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 21

def lun
  @lun
end

#managed_diskVirtualMachineScaleSetManagedDiskParameters

parameters.

Returns:



46
47
48
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 46

def managed_disk
  @managed_disk
end

#nameString

Returns The disk name.

Returns:

  • (String)

    The disk name.



16
17
18
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 16

def name
  @name
end

#write_accelerator_enabledBoolean

or disabled on the disk.

Returns:

  • (Boolean)

    Specifies whether writeAccelerator should be enabled



32
33
34
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 32

def write_accelerator_enabled
  @write_accelerator_enabled
end

Class Method Details

.mapperObject

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



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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 64

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineScaleSetDataDisk',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetDataDisk',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        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: 'CachingTypes'
          }
        },
        write_accelerator_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'writeAcceleratorEnabled',
          type: {
            name: 'Boolean'
          }
        },
        create_option: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createOption',
          type: {
            name: 'String'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        managed_disk: {
          client_side_validation: true,
          required: false,
          serialized_name: 'managedDisk',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetManagedDiskParameters'
          }
        },
        disk_iopsread_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskIOPSReadWrite',
          type: {
            name: 'Number'
          }
        },
        disk_mbps_read_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskMBpsReadWrite',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end