Class: Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineScaleSetDataDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineScaleSetDataDisk
- 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
-
#caching ⇒ CachingTypes
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. -
#create_option ⇒ DiskCreateOptionTypes
include: 'FromImage', 'Empty', 'Attach'.
-
#disk_iopsread_write ⇒ Integer
Should be used only when StorageAccountType is UltraSSD_LRS.
-
#disk_mbps_read_write ⇒ Integer
managed disk.
-
#disk_size_gb ⇒ Integer
gigabytes.
-
#lun ⇒ Integer
This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
-
#managed_disk ⇒ VirtualMachineScaleSetManagedDiskParameters
parameters.
-
#name ⇒ String
The disk name.
-
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for VirtualMachineScaleSetDataDisk class as Ruby Hash.
Instance Attribute Details
#caching ⇒ CachingTypes
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
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_option ⇒ DiskCreateOptionTypes
include: 'FromImage', 'Empty', 'Attach'
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_write ⇒ Integer
Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
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_write ⇒ Integer
managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
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_gb ⇒ Integer
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
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 |
#lun ⇒ Integer
This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
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_disk ⇒ VirtualMachineScaleSetManagedDiskParameters
parameters.
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 |
#name ⇒ String
Returns 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_enabled ⇒ Boolean
or disabled on the disk.
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
.mapper ⇒ Object
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 |