# 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::ContainerRegistry::Mgmt::V2019_06_01_preview
  module Models
    #
    # Describes the properties of a secret object value.
    #
    class SecretObject

      include MsRestAzure

      # @return [String] The value of the secret. The format of this value will
      # be determined
      # based on the type of the secret object. If the type is Opaque, the
      # value will be
      # used as is without any modification.
      attr_accessor :value

      # @return [SecretObjectType] The type of the secret object which
      # determines how the value of the secret object has to be
      # interpreted. Possible values include: 'Opaque', 'Vaultsecret'
      attr_accessor :type


      #
      # Mapper for SecretObject class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SecretObject',
          type: {
            name: 'Composite',
            class_name: 'SecretObject',
            model_properties: {
              value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
