Class: Azure::Compute::Mgmt::V2019_12_01::Models::DataDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_12_01::Models::DataDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb
Overview
Describes a data disk.
Instance Attribute Summary collapse
-
#caching ⇒ CachingTypes
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. -
#create_option ⇒ DiskCreateOptionTypes
should be created.
Possible values are:
*Attach* u2013 This value is used when you are using a specialized disk to create the virtual machine.
*FromImage* u2013 This value is used when you are using an image to create the virtual machine. -
#disk_iopsread_write ⇒ Integer
when StorageAccountType is UltraSSD_LRS.
-
#disk_mbps_read_write ⇒ Integer
managed disk when StorageAccountType is UltraSSD_LRS.
-
#disk_size_gb ⇒ Integer
gigabytes.
-
#image ⇒ VirtualHardDisk
virtual hard disk will be copied before being attached to the virtual machine.
-
#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 ⇒ ManagedDiskParameters
The managed disk parameters.
-
#name ⇒ String
The disk name.
-
#to_be_detached ⇒ Boolean
detachment from the VirtualMachine/VirtualMachineScaleset.
-
#vhd ⇒ VirtualHardDisk
The virtual hard disk.
-
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DataDisk 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'
37 38 39 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 37 def caching @caching end |
#create_option ⇒ DiskCreateOptionTypes
should be created.
Possible values are:
*Attach* u2013 This value is used when you are using a specialized disk to create the virtual machine.
*FromImage* u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'
52 53 54 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 52 def create_option @create_option end |
#disk_iopsread_write ⇒ Integer
when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set.
71 72 73 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 71 def disk_iopsread_write @disk_iopsread_write end |
#disk_mbps_read_write ⇒ Integer
managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set.
77 78 79 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 77 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
58 59 60 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 58 def disk_size_gb @disk_size_gb end |
#image ⇒ VirtualHardDisk
virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
30 31 32 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 30 def image @image 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.
18 19 20 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 18 def lun @lun end |
#managed_disk ⇒ ManagedDiskParameters
Returns The managed disk parameters.
61 62 63 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 61 def managed_disk @managed_disk end |
#name ⇒ String
Returns The disk name.
21 22 23 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 21 def name @name end |
#to_be_detached ⇒ Boolean
detachment from the VirtualMachine/VirtualMachineScaleset
65 66 67 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 65 def to_be_detached @to_be_detached end |
#vhd ⇒ VirtualHardDisk
Returns The virtual hard disk.
24 25 26 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 24 def vhd @vhd end |
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
41 42 43 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 41 def write_accelerator_enabled @write_accelerator_enabled end |
Class Method Details
.mapper ⇒ Object
Mapper for DataDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb', line 84 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' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, vhd: { client_side_validation: true, required: false, serialized_name: 'vhd', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, image: { client_side_validation: true, required: false, serialized_name: 'image', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, 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: 'ManagedDiskParameters' } }, to_be_detached: { client_side_validation: true, required: false, serialized_name: 'toBeDetached', type: { name: 'Boolean' } }, disk_iopsread_write: { client_side_validation: true, required: false, read_only: true, serialized_name: 'diskIOPSReadWrite', type: { name: 'Number' } }, disk_mbps_read_write: { client_side_validation: true, required: false, read_only: true, serialized_name: 'diskMBpsReadWrite', type: { name: 'Number' } } } } } end |