Class: Azure::Compute::Mgmt::V2016_04_30_preview::Models::EncryptionSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb

Overview

Encryption settings for disk or snapshot

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disk_encryption_keyKeyVaultAndSecretReference

of the disk encryption key

Returns:



24
25
26
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb', line 24

def disk_encryption_key
  @disk_encryption_key
end

#enabledBoolean

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.

Returns:

  • (Boolean)

    Set this flag to true and provide DiskEncryptionKey



20
21
22
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb', line 20

def enabled
  @enabled
end

#key_encryption_keyKeyVaultAndKeyReference

key encryption key

Returns:



28
29
30
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb', line 28

def key_encryption_key
  @key_encryption_key
end

Class Method Details

.mapperObject

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
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb', line 35

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