Class: Azure::Compute::Mgmt::V2018_10_01::Models::ImageOSDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2018_10_01::Models::ImageOSDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb
Overview
Describes an Operating System disk.
Instance Attribute Summary collapse
-
#blob_uri ⇒ String
The Virtual Hard Disk.
-
#caching ⇒ CachingTypes
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. -
#disk_size_gb ⇒ Integer
This element can be used to overwrite the name of the disk in a virtual machine image.
-
#managed_disk ⇒ SubResource
The managedDisk.
-
#os_state ⇒ OperatingSystemStateTypes
include: 'Generalized', 'Specialized'.
-
#os_type ⇒ OperatingSystemTypes
type of the OS that is included in the disk if creating a VM from a custom image.
-
#snapshot ⇒ SubResource
The snapshot.
-
#storage_account_type ⇒ StorageAccountTypes
the managed disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageOSDisk class as Ruby Hash.
Instance Attribute Details
#blob_uri ⇒ String
Returns The Virtual Hard Disk.
32 33 34 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 32 def blob_uri @blob_uri end |
#caching ⇒ CachingTypes
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
39 40 41 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 39 def caching @caching end |
#disk_size_gb ⇒ Integer
This element can be used to overwrite the name of the disk in a virtual machine image.
This value cannot be larger than 1023 GB
44 45 46 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 44 def disk_size_gb @disk_size_gb end |
#managed_disk ⇒ SubResource
Returns The managedDisk.
29 30 31 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 29 def managed_disk @managed_disk end |
#os_state ⇒ OperatingSystemStateTypes
include: 'Generalized', 'Specialized'
23 24 25 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 23 def os_state @os_state end |
#os_type ⇒ OperatingSystemTypes
type of the OS that is included in the disk if creating a VM from a custom image.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'
19 20 21 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 19 def os_type @os_type end |
#snapshot ⇒ SubResource
Returns The snapshot.
26 27 28 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 26 def snapshot @snapshot end |
#storage_account_type ⇒ StorageAccountTypes
the managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
50 51 52 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 50 def storage_account_type @storage_account_type end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageOSDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 57 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageOSDisk', type: { name: 'Composite', class_name: 'ImageOSDisk', model_properties: { os_type: { client_side_validation: true, required: true, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, os_state: { client_side_validation: true, required: true, serialized_name: 'osState', type: { name: 'Enum', module: 'OperatingSystemStateTypes' } }, snapshot: { client_side_validation: true, required: false, serialized_name: 'snapshot', type: { name: 'Composite', class_name: 'SubResource' } }, managed_disk: { client_side_validation: true, required: false, serialized_name: 'managedDisk', type: { name: 'Composite', class_name: 'SubResource' } }, blob_uri: { client_side_validation: true, required: false, serialized_name: 'blobUri', type: { name: 'String' } }, caching: { client_side_validation: true, required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, disk_size_gb: { client_side_validation: true, required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } }, storage_account_type: { client_side_validation: true, required: false, serialized_name: 'storageAccountType', type: { name: 'String' } } } } } end |