/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * The description of an X509 CA Certificate.
 *
 */
class CertificateProperties {
  /**
   * Create a CertificateProperties.
   * @member {string} [subject] The certificate's subject name.
   * @member {date} [expiry] The certificate's expiration date and time.
   * @member {string} [thumbprint] The certificate's thumbprint.
   * @member {boolean} [isVerified] Determines whether certificate has been
   * verified.
   * @member {date} [created] The certificate's creation date and time.
   * @member {date} [updated] The certificate's last update date and time.
   */
  constructor() {
  }

  /**
   * Defines the metadata of CertificateProperties
   *
   * @returns {object} metadata of CertificateProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'CertificateProperties',
      type: {
        name: 'Composite',
        className: 'CertificateProperties',
        modelProperties: {
          subject: {
            required: false,
            readOnly: true,
            serializedName: 'subject',
            type: {
              name: 'String'
            }
          },
          expiry: {
            required: false,
            readOnly: true,
            serializedName: 'expiry',
            type: {
              name: 'DateTimeRfc1123'
            }
          },
          thumbprint: {
            required: false,
            readOnly: true,
            serializedName: 'thumbprint',
            type: {
              name: 'String'
            }
          },
          isVerified: {
            required: false,
            readOnly: true,
            serializedName: 'isVerified',
            type: {
              name: 'Boolean'
            }
          },
          created: {
            required: false,
            readOnly: true,
            serializedName: 'created',
            type: {
              name: 'DateTimeRfc1123'
            }
          },
          updated: {
            required: false,
            readOnly: true,
            serializedName: 'updated',
            type: {
              name: 'DateTimeRfc1123'
            }
          }
        }
      }
    };
  }
}

module.exports = CertificateProperties;
