Class: Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetDataDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetDataDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-30/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_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.
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/2017-03-30/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'
32 33 34 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 32 def create_option @create_option 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
38 39 40 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 38 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/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 21 def lun @lun end |
#managed_disk ⇒ VirtualMachineScaleSetManagedDiskParameters
parameters.
42 43 44 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 42 def managed_disk @managed_disk end |
#name ⇒ String
Returns The disk name.
16 17 18 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 16 def name @name end |
Class Method Details
.mapper ⇒ Object
Mapper for VirtualMachineScaleSetDataDisk class as Ruby Hash. This will be used for serialization/deserialization.
49 50 51 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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 49 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' } }, create_option: { client_side_validation: true, required: true, serialized_name: 'createOption', type: { name: 'Enum', module: 'DiskCreateOptionTypes' } }, 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' } } } } } end |