Class: Azure::Compute::Mgmt::V2020_06_30::Models::EncryptionSettingsElement

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb

Overview

Encryption settings for one disk volume.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disk_encryption_keyKeyVaultAndSecretReference

of the disk encryption key

Returns:



17
18
19
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb', line 17

def disk_encryption_key
  @disk_encryption_key
end

#key_encryption_keyKeyVaultAndKeyReference

key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.

Returns:



22
23
24
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb', line 22

def key_encryption_key
  @key_encryption_key
end

Class Method Details

.mapperObject

Mapper for EncryptionSettingsElement class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
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
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EncryptionSettingsElement',
    type: {
      name: 'Composite',
      class_name: 'EncryptionSettingsElement',
      model_properties: {
        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