# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Compute::Mgmt::V2019_11_01
  module Models
    #
    # Encryption settings for one disk volume.
    #
    class EncryptionSettingsElement

      include MsRestAzure

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

      # @return [KeyVaultAndKeyReference] Key Vault Key Url and vault id of the
      # key encryption key. KeyEncryptionKey is optional and when provided is
      # used to unwrap the disk encryption key.
      attr_accessor :key_encryption_key


      #
      # Mapper for EncryptionSettingsElement class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end
