Class: Azure::ARM::Compute::Models::DiskUpdate
- Inherits:
-
ResourceUpdate
- Object
- ResourceUpdate
- Azure::ARM::Compute::Models::DiskUpdate
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_compute/models/disk_update.rb
Overview
Disk update resource.
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Integer
mandatory and it indicates the size of the VHD to create.
-
#encryption_settings ⇒ EncryptionSettings
Encryption settings for disk or snapshot.
-
#os_type ⇒ OperatingSystemTypes
values include: ‘Windows’, ‘Linux’.
Attributes inherited from ResourceUpdate
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DiskUpdate class as Ruby Hash.
Instance Attribute Details
#disk_size_gb ⇒ Integer
mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
25 26 27 |
# File 'lib/generated/azure_mgmt_compute/models/disk_update.rb', line 25 def disk_size_gb @disk_size_gb end |
#encryption_settings ⇒ EncryptionSettings
Returns Encryption settings for disk or snapshot.
28 29 30 |
# File 'lib/generated/azure_mgmt_compute/models/disk_update.rb', line 28 def encryption_settings @encryption_settings end |
#os_type ⇒ OperatingSystemTypes
values include: ‘Windows’, ‘Linux’
18 19 20 |
# File 'lib/generated/azure_mgmt_compute/models/disk_update.rb', line 18 def os_type @os_type end |
Class Method Details
.mapper ⇒ Object
Mapper for DiskUpdate class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 |
# File 'lib/generated/azure_mgmt_compute/models/disk_update.rb', line 35 def self.mapper() { required: false, serialized_name: 'DiskUpdate', type: { name: 'Composite', class_name: 'DiskUpdate', model_properties: { tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, sku: { required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'DiskSku' } }, os_type: { required: false, serialized_name: 'properties.osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, disk_size_gb: { required: false, serialized_name: 'properties.diskSizeGB', type: { name: 'Number' } }, encryption_settings: { required: false, serialized_name: 'properties.encryptionSettings', type: { name: 'Composite', class_name: 'EncryptionSettings' } } } } } end |