Class: Azure::ARM::Compute::Models::DataDisk
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::DataDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_compute/models/data_disk.rb
Overview
Describes a data disk.
Instance Attribute Summary collapse
-
#caching ⇒ CachingTypes
‘None’, ‘ReadOnly’, ‘ReadWrite’.
-
#create_option ⇒ DiskCreateOptionTypes
include: ‘fromImage’, ‘empty’, ‘attach’.
-
#disk_size_gb ⇒ Integer
and the new desired size for existing OS and Data disks.
-
#image ⇒ VirtualHardDisk
VirtualHardDisk will be copied before using it to attach to the Virtual Machine.If SourceImage is provided, the destination VirtualHardDisk should not exist.
-
#lun ⇒ Integer
The logical unit number.
-
#name ⇒ String
The disk name.
-
#vhd ⇒ VirtualHardDisk
The Virtual Hard Disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DataDisk class as Ruby Hash.
Instance Attribute Details
#caching ⇒ CachingTypes
‘None’, ‘ReadOnly’, ‘ReadWrite’
32 33 34 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 32 def caching @caching end |
#create_option ⇒ DiskCreateOptionTypes
include: ‘fromImage’, ‘empty’, ‘attach’
36 37 38 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 36 def create_option @create_option end |
#disk_size_gb ⇒ Integer
and the new desired size for existing OS and Data disks.
40 41 42 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 40 def disk_size_gb @disk_size_gb end |
#image ⇒ VirtualHardDisk
VirtualHardDisk will be copied before using it to attach to the Virtual Machine.If SourceImage is provided, the destination VirtualHardDisk should not exist.
28 29 30 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 28 def image @image end |
#lun ⇒ Integer
Returns the logical unit number.
16 17 18 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 16 def lun @lun end |
#name ⇒ String
Returns the disk name.
19 20 21 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 19 def name @name end |
#vhd ⇒ VirtualHardDisk
Returns the Virtual Hard Disk.
22 23 24 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 22 def vhd @vhd end |
Class Method Details
.mapper ⇒ Object
Mapper for DataDisk class as Ruby Hash. This will be used for serialization/deserialization.
47 48 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 |
# File 'lib/generated/azure_mgmt_compute/models/data_disk.rb', line 47 def self.mapper() { required: false, serialized_name: 'DataDisk', type: { name: 'Composite', class_name: 'DataDisk', model_properties: { lun: { required: true, serialized_name: 'lun', type: { name: 'Number' } }, name: { required: true, serialized_name: 'name', type: { name: 'String' } }, vhd: { required: true, serialized_name: 'vhd', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, image: { required: false, serialized_name: 'image', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, caching: { required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, create_option: { required: true, serialized_name: 'createOption', type: { name: 'Enum', module: 'DiskCreateOptionTypes' } }, disk_size_gb: { required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } } } } } end |