Class: Azure::Compute::Mgmt::V2019_03_01::Models::SnapshotUpdate
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::SnapshotUpdate
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb
Overview
Snapshot update resource.
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Integer
mandatory and it indicates the size of the disk to create.
-
#encryption_settings_collection ⇒ EncryptionSettingsCollection
used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
-
#os_type ⇒ OperatingSystemTypes
values include: 'Windows', 'Linux'.
- #sku ⇒ SnapshotSku
-
#tags ⇒ Hash{String => String}
Resource tags.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SnapshotUpdate class as Ruby Hash.
Instance Attribute Details
#disk_size_gb ⇒ Integer
mandatory and it indicates the size of the disk 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.
24 25 26 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 24 def disk_size_gb @disk_size_gb end |
#encryption_settings_collection ⇒ EncryptionSettingsCollection
used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
29 30 31 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 29 def encryption_settings_collection @encryption_settings_collection end |
#os_type ⇒ OperatingSystemTypes
values include: 'Windows', 'Linux'
17 18 19 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 17 def os_type @os_type end |
#sku ⇒ SnapshotSku
35 36 37 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 35 def sku @sku end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
32 33 34 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 32 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for SnapshotUpdate class as Ruby Hash. This will be used for serialization/deserialization.
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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_update.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SnapshotUpdate', type: { name: 'Composite', class_name: 'SnapshotUpdate', model_properties: { os_type: { client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, disk_size_gb: { client_side_validation: true, required: false, serialized_name: 'properties.diskSizeGB', type: { name: 'Number' } }, encryption_settings_collection: { client_side_validation: true, required: false, serialized_name: 'properties.encryptionSettingsCollection', type: { name: 'Composite', class_name: 'EncryptionSettingsCollection' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, sku: { client_side_validation: true, required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'SnapshotSku' } } } } } end |