class Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings

Encryption settings for disk or snapshot

Attributes

disk_encryption_key[RW]

@return [KeyVaultAndSecretReference] Key Vault Secret Url and vault id of the disk encryption key

enabled[RW]

@return [Boolean] Set this flag to true and provide DiskEncryptionKey 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.

key_encryption_key[RW]

@return [KeyVaultAndKeyReference] Key Vault Key Url and vault id of the key encryption key

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb, line 34
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