/*
 * 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';

/**
 * Raw certificate data.
 *
 */
class RawCertificateData {
  /**
   * Create a RawCertificateData.
   * @property {string} [authType] Specifies the authentication type. Possible
   * values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService',
   * 'AzureActiveDirectory'
   * @property {buffer} [certificate] The base64 encoded certificate raw data
   * string
   */
  constructor() {
  }

  /**
   * Defines the metadata of RawCertificateData
   *
   * @returns {object} metadata of RawCertificateData
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'RawCertificateData',
      type: {
        name: 'Composite',
        className: 'RawCertificateData',
        modelProperties: {
          authType: {
            required: false,
            serializedName: 'authType',
            type: {
              name: 'String'
            }
          },
          certificate: {
            required: false,
            serializedName: 'certificate',
            type: {
              name: 'ByteArray'
            }
          }
        }
      }
    };
  }
}

module.exports = RawCertificateData;
