Class: Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-06-01/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
24 25 26 |
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb', line 24 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.
20 21 22 |
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb', line 20 def enabled @enabled end |
#key_encryption_key ⇒ KeyVaultAndKeyReference
key encryption key
28 29 30 |
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb', line 28 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.
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 |
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EncryptionSettings', type: { name: 'Composite', class_name: 'EncryptionSettings', model_properties: { enabled: { client_side_validation: true, required: false, serialized_name: 'enabled', type: { name: 'Boolean' } }, disk_encryption_key: { client_side_validation: true, required: false, serialized_name: 'diskEncryptionKey', type: { name: 'Composite', class_name: 'KeyVaultAndSecretReference' } }, key_encryption_key: { client_side_validation: true, required: false, serialized_name: 'keyEncryptionKey', type: { name: 'Composite', class_name: 'KeyVaultAndKeyReference' } } } } } end |