text: /*
   * 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';
  
  const models = require('./index');
  
  /**
   * Definition of the credential.
   *
   * @extends models['ProxyResource']
   */
  class Credential extends models['ProxyResource'] {
    /**
     * Create a Credential.
     * @member {string} [userName] Gets the user name of the credential.
     * @member {date} [creationTime] Gets the creation time.
     * @member {date} [lastModifiedTime] Gets the last modified time.
     * @member {string} [description] Gets or sets the description.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of Credential
     *
     * @returns {object} metadata of Credential
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'Credential',
        type: {
          name: 'Composite',
          className: 'Credential',
          modelProperties: {
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            name: {
              required: false,
              readOnly: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            type: {
              required: false,
              readOnly: true,
              serializedName: 'type',
              type: {
                name: 'String'
              }
            },
            userName: {
              required: false,
              readOnly: true,
              serializedName: 'properties.userName',
              type: {
                name: 'String'
              }
            },
            creationTime: {
              required: false,
              nullable: false,
              readOnly: true,
              serializedName: 'properties.creationTime',
              type: {
                name: 'DateTime'
              }
            },
            lastModifiedTime: {
              required: false,
              nullable: false,
              readOnly: true,
              serializedName: 'properties.lastModifiedTime',
              type: {
                name: 'DateTime'
              }
            },
            description: {
              required: false,
              serializedName: 'properties.description',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = Credential;
  