Class: Azure::ARM::Compute::Models::EncryptionSettings
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::EncryptionSettings
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_compute/models/encryption_settings.rb
Overview
Encryption settings for disk or snapshot
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ KeyVaultAndSecretReference
of the disk encryption key.
-
#enabled ⇒ Boolean
and optional KeyEncryptionKey to enable encryption.
-
#key_encryption_key ⇒ KeyVaultAndKeyReference
key encryption key.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for EncryptionSettings class as Ruby Hash.
Instance Attribute Details
#disk_encryption_key ⇒ KeyVaultAndSecretReference
of the disk encryption key
25 26 27 |
# File 'lib/generated/azure_mgmt_compute/models/encryption_settings.rb', line 25 def disk_encryption_key @disk_encryption_key end |
#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.
21 22 23 |
# File 'lib/generated/azure_mgmt_compute/models/encryption_settings.rb', line 21 def enabled @enabled end |
#key_encryption_key ⇒ KeyVaultAndKeyReference
key encryption key
29 30 31 |
# File 'lib/generated/azure_mgmt_compute/models/encryption_settings.rb', line 29 def key_encryption_key @key_encryption_key end |
Class Method Details
.mapper ⇒ Object
Mapper for EncryptionSettings class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_compute/models/encryption_settings.rb', line 36 def self.mapper() { required: false, serialized_name: 'EncryptionSettings', type: { name: 'Composite', class_name: 'EncryptionSettings', model_properties: { enabled: { required: false, serialized_name: 'enabled', type: { name: 'Boolean' } }, disk_encryption_key: { required: false, serialized_name: 'diskEncryptionKey', type: { name: 'Composite', class_name: 'KeyVaultAndSecretReference' } }, key_encryption_key: { required: false, serialized_name: 'keyEncryptionKey', type: { name: 'Composite', class_name: 'KeyVaultAndKeyReference' } } } } } end |