Class: Azure::ARM::Compute::Models::ImageOSDisk
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::ImageOSDisk
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/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.
33 34 35 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 33 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’
40 41 42 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 40 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
45 46 47 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 45 def disk_size_gb @disk_size_gb end |
#managed_disk ⇒ SubResource
Returns The managedDisk.
30 31 32 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 30 def managed_disk @managed_disk end |
#os_state ⇒ OperatingSystemStateTypes
include: ‘Generalized’, ‘Specialized’
24 25 26 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 24 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’
20 21 22 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 20 def os_type @os_type end |
#snapshot ⇒ SubResource
Returns The snapshot.
27 28 29 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 27 def snapshot @snapshot end |
#storage_account_type ⇒ StorageAccountTypes
the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: ‘Standard_LRS’, ‘Premium_LRS’
50 51 52 |
# File 'lib/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 |
# File 'lib/generated/azure_mgmt_compute/models/image_osdisk.rb', line 57 def self.mapper() { required: false, serialized_name: 'ImageOSDisk', type: { name: 'Composite', class_name: 'ImageOSDisk', model_properties: { os_type: { required: true, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, os_state: { required: true, serialized_name: 'osState', type: { name: 'Enum', module: 'OperatingSystemStateTypes' } }, snapshot: { required: false, serialized_name: 'snapshot', type: { name: 'Composite', class_name: 'SubResource' } }, managed_disk: { required: false, serialized_name: 'managedDisk', type: { name: 'Composite', class_name: 'SubResource' } }, blob_uri: { required: false, serialized_name: 'blobUri', type: { name: 'String' } }, caching: { required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, disk_size_gb: { required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } }, storage_account_type: { required: false, serialized_name: 'storageAccountType', type: { name: 'Enum', module: 'StorageAccountTypes' } } } } } end |