# 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::Scheduler::Mgmt::V2016_03_01
  module Models
    #
    # Model object.
    #
    #
    class ClientCertAuthentication < HttpAuthentication

      include MsRestAzure


      def initialize
        @type = "ClientCertificate"
      end

      attr_accessor :type

      # @return [String] Gets or sets the certificate password, return value
      # will always be empty.
      attr_accessor :password

      # @return [String] Gets or sets the pfx certificate. Accepts
      # certification in base64 encoding, return value will always be empty.
      attr_accessor :pfx

      # @return [String] Gets or sets the certificate thumbprint.
      attr_accessor :certificate_thumbprint

      # @return [DateTime] Gets or sets the certificate expiration date.
      attr_accessor :certificate_expiration_date

      # @return [String] Gets or sets the certificate subject name.
      attr_accessor :certificate_subject_name


      #
      # Mapper for ClientCertAuthentication class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ClientCertificate',
          type: {
            name: 'Composite',
            class_name: 'ClientCertAuthentication',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              password: {
                client_side_validation: true,
                required: false,
                serialized_name: 'password',
                type: {
                  name: 'String'
                }
              },
              pfx: {
                client_side_validation: true,
                required: false,
                serialized_name: 'pfx',
                type: {
                  name: 'String'
                }
              },
              certificate_thumbprint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'certificateThumbprint',
                type: {
                  name: 'String'
                }
              },
              certificate_expiration_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'certificateExpirationDate',
                type: {
                  name: 'DateTime'
                }
              },
              certificate_subject_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'certificateSubjectName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
