# 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::IotHub::Mgmt::V2017_07_01
  module Models
    #
    # The description of an X509 CA Certificate.
    #
    class CertificateProperties

      include MsRestAzure

      # @return [String] The certificate's subject name.
      attr_accessor :subject

      # @return [DateTime] The certificate's expiration date and time.
      attr_accessor :expiry

      # @return [String] The certificate's thumbprint.
      attr_accessor :thumbprint

      # @return [Boolean] Determines whether certificate has been verified.
      attr_accessor :is_verified

      # @return [DateTime] The certificate's create date and time.
      attr_accessor :created

      # @return [DateTime] The certificate's last update date and time.
      attr_accessor :updated


      #
      # Mapper for CertificateProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CertificateProperties',
          type: {
            name: 'Composite',
            class_name: 'CertificateProperties',
            model_properties: {
              subject: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'subject',
                type: {
                  name: 'String'
                }
              },
              expiry: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'expiry',
                type: {
                  name: 'DateTimeRfc1123'
                }
              },
              thumbprint: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'thumbprint',
                type: {
                  name: 'String'
                }
              },
              is_verified: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'isVerified',
                type: {
                  name: 'Boolean'
                }
              },
              created: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'created',
                type: {
                  name: 'DateTimeRfc1123'
                }
              },
              updated: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'updated',
                type: {
                  name: 'DateTimeRfc1123'
                }
              }
            }
          }
        }
      end
    end
  end
end
