Sha256: 5cea9aeb26603b4d74718d3f361e12bc51ae06c5874426ac6b23ca21bd843002

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

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

module Azure::ARM::Compute
  module Models
    #
    # Describes a Encryption Settings for a Disk
    #
    class DiskEncryptionSettings

      include MsRestAzure

      # @return [KeyVaultSecretReference] the disk encryption key which is a
      # KeyVault Secret.
      attr_accessor :disk_encryption_key

      # @return [KeyVaultKeyReference] the key encryption key which is
      # KeyVault Key.
      attr_accessor :key_encryption_key

      # @return [Boolean] whether disk encryption should be enabled on the
      # Virtual Machine.
      attr_accessor :enabled


      #
      # Mapper for DiskEncryptionSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'DiskEncryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'DiskEncryptionSettings',
            model_properties: {
              disk_encryption_key: {
                required: false,
                serialized_name: 'diskEncryptionKey',
                type: {
                  name: 'Composite',
                  class_name: 'KeyVaultSecretReference'
                }
              },
              key_encryption_key: {
                required: false,
                serialized_name: 'keyEncryptionKey',
                type: {
                  name: 'Composite',
                  class_name: 'KeyVaultKeyReference'
                }
              },
              enabled: {
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.7.0 lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
azure_mgmt_compute-0.6.0 lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
azure_mgmt_compute-0.5.0 lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
azure_mgmt_compute-0.4.0 lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb