Class: Azure::Compute::Mgmt::V2020_09_30::Models::EncryptionSettingsCollection
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_09_30::Models::EncryptionSettingsCollection
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb
Overview
Encryption settings for disk or snapshot
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
and optional KeyEncryptionKey to enable encryption.
-
#encryption_settings ⇒ Array<EncryptionSettingsElement>
settings, one for each disk volume.
-
#encryption_settings_version ⇒ String
disks.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for EncryptionSettingsCollection class as Ruby Hash.
Instance Attribute Details
#enabled ⇒ Boolean
and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
20 21 22 |
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb', line 20 def enabled @enabled end |
#encryption_settings ⇒ Array<EncryptionSettingsElement>
settings, one for each disk volume.
24 25 26 |
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb', line 24 def encryption_settings @encryption_settings end |
#encryption_settings_version ⇒ String
disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
30 31 32 |
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb', line 30 def encryption_settings_version @encryption_settings_version end |
Class Method Details
.mapper ⇒ Object
Mapper for EncryptionSettingsCollection class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EncryptionSettingsCollection', type: { name: 'Composite', class_name: 'EncryptionSettingsCollection', model_properties: { enabled: { client_side_validation: true, required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, encryption_settings: { client_side_validation: true, required: false, serialized_name: 'encryptionSettings', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EncryptionSettingsElementElementType', type: { name: 'Composite', class_name: 'EncryptionSettingsElement' } } } }, encryption_settings_version: { client_side_validation: true, required: false, serialized_name: 'encryptionSettingsVersion', type: { name: 'String' } } } } } end |