Class: Azure::Compute::Mgmt::V2020_06_01::Models::ImageDisk
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_06_01::Models::ImageDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb
Overview
Describes a image disk.
Direct Known Subclasses
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_encryption_set ⇒ DiskEncryptionSetParameters
disk encryption set resource id for the managed image disk.
-
#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.
-
#snapshot ⇒ SubResource
The snapshot.
-
#storage_account_type ⇒ StorageAccountTypes
the managed disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageDisk class as Ruby Hash.
Instance Attribute Details
#blob_uri ⇒ String
Returns The Virtual Hard Disk.
22 23 24 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 22 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'
29 30 31 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 29 def caching @caching end |
#disk_encryption_set ⇒ DiskEncryptionSetParameters
disk encryption set resource id for the managed image disk.
44 45 46 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 44 def disk_encryption_set @disk_encryption_set 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
34 35 36 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 34 def disk_size_gb @disk_size_gb end |
#managed_disk ⇒ SubResource
Returns The managedDisk.
19 20 21 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 19 def managed_disk @managed_disk end |
#snapshot ⇒ SubResource
Returns The snapshot.
16 17 18 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 16 def snapshot @snapshot end |
#storage_account_type ⇒ StorageAccountTypes
the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
40 41 42 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 40 def storage_account_type @storage_account_type end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb', line 51 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageDisk', type: { name: 'Composite', class_name: 'ImageDisk', model_properties: { 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' } }, disk_encryption_set: { client_side_validation: true, required: false, serialized_name: 'diskEncryptionSet', type: { name: 'Composite', class_name: 'DiskEncryptionSetParameters' } } } } } end |