Class: Azure::Compute::Mgmt::V2015_06_15::Models::OSDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2015_06_15::Models::OSDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-06-15/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. -
#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.
-
#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.
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/2015-06-15/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'
57 58 59 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb', line 57 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
63 64 65 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb', line 63 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/2015-06-15/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/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb', line 39 def image @image end |
#name ⇒ String
Returns The disk name.
30 31 32 |
# File 'lib/2015-06-15/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/2015-06-15/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/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb', line 33 def vhd @vhd end |
Class Method Details
.mapper ⇒ Object
Mapper for OSDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 151 152 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb', line 70 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: true, serialized_name: 'name', type: { name: 'String' } }, vhd: { client_side_validation: true, required: true, 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' } }, 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' } } } } } end |