class Azure::Compute::Mgmt::V2020_06_30::Models::EncryptionSettingsCollection

Encryption settings for disk or snapshot

Attributes

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.

encryption_settings[RW]

@return [Array<EncryptionSettingsElement>] A collection of encryption settings, one for each disk volume.

encryption_settings_version[RW]

@return [String] Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EncryptionSettingsCollection',
    type: {
      name: 'Composite',
      class_name: 'EncryptionSettingsCollection',
      model_properties: {
        enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        },
        encryption_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'encryptionSettings',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EncryptionSettingsElementElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EncryptionSettingsElement'
                }
            }
          }
        },
        encryption_settings_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'encryptionSettingsVersion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end