# 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::DataFactory::Mgmt::V2017_09_01_preview
  module Models
    #
    # Azure Key Vault secret reference.
    #
    class AzureKeyVaultSecretReference < SecretBase

      include MsRestAzure


      def initialize
        @type = "AzureKeyVaultSecret"
      end

      attr_accessor :type

      # @return [LinkedServiceReference] The Azure Key Vault linked service
      # reference.
      attr_accessor :store

      # @return The name of the secret in Azure Key Vault. Type: string (or
      # Expression with resultType string).
      attr_accessor :secret_name

      # @return The version of the secret in Azure Key Vault. The default value
      # is the latest version of the secret. Type: string (or Expression with
      # resultType string).
      attr_accessor :secret_version


      #
      # Mapper for AzureKeyVaultSecretReference class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AzureKeyVaultSecret',
          type: {
            name: 'Composite',
            class_name: 'AzureKeyVaultSecretReference',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              store: {
                client_side_validation: true,
                required: true,
                serialized_name: 'store',
                default_value: {},
                type: {
                  name: 'Composite',
                  class_name: 'LinkedServiceReference'
                }
              },
              secret_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'secretName',
                type: {
                  name: 'Object'
                }
              },
              secret_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'secretVersion',
                type: {
                  name: 'Object'
                }
              }
            }
          }
        }
      end
    end
  end
end
