Class: Azure::Compute::Mgmt::V2019_03_01::Models::OSDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::OSDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb
Overview
Specifies information about the operating system disk used by the virtual machine.
For more information about disks, see [About disks and VHDs for Azure virtual machines](docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
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. -
#diff_disk_settings ⇒ DiffDiskSettings
the operating system disk used by the virtual machine.
-
#disk_size_gb ⇒ Integer
gigabytes.
-
#encryption_settings ⇒ DiskEncryptionSettings
the OS Disk.
-
#image ⇒ VirtualHardDisk
virtual hard disk will be copied before being attached to the virtual machine.
-
#managed_disk ⇒ ManagedDiskParameters
The managed disk parameters.
-
#name ⇒ String
The disk name.
-
#os_type ⇒ OperatingSystemTypes
type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
-
#vhd ⇒ VirtualHardDisk
The virtual hard disk.
-
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for OSDisk 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'
46 47 48 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 46 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'
65 66 67 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 65 def create_option @create_option end |
#diff_disk_settings ⇒ DiffDiskSettings
the operating system disk used by the virtual machine.
54 55 56 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 54 def diff_disk_settings @diff_disk_settings 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
71 72 73 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 71 def disk_size_gb @disk_size_gb end |
#encryption_settings ⇒ DiskEncryptionSettings
the OS Disk.
Minimum api-version: 2015-06-15
27 28 29 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 27 def encryption_settings @encryption_settings 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.
39 40 41 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 39 def image @image end |
#managed_disk ⇒ ManagedDiskParameters
Returns The managed disk parameters.
74 75 76 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 74 def managed_disk @managed_disk end |
#name ⇒ String
Returns The disk name.
30 31 32 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 30 def name @name end |
#os_type ⇒ OperatingSystemTypes
type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'
23 24 25 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 23 def os_type @os_type end |
#vhd ⇒ VirtualHardDisk
Returns The virtual hard disk.
33 34 35 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 33 def vhd @vhd end |
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
50 51 52 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 50 def write_accelerator_enabled @write_accelerator_enabled end |
Class Method Details
.mapper ⇒ Object
Mapper for OSDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb', line 81 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'OSDisk', type: { name: 'Composite', class_name: 'OSDisk', model_properties: { os_type: { client_side_validation: true, required: false, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, encryption_settings: { client_side_validation: true, required: false, serialized_name: 'encryptionSettings', type: { name: 'Composite', class_name: 'DiskEncryptionSettings' } }, 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' } }, diff_disk_settings: { client_side_validation: true, required: false, serialized_name: 'diffDiskSettings', type: { name: 'Composite', class_name: 'DiffDiskSettings' } }, 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' } } } } } end |