text: /*
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  /**
   * Class representing a ApiTokenResponsev2.
   */
  class ApiTokenResponsev2 {
    /**
     * Create a ApiTokenResponsev2.
     * @member {uuid} id The unique id (UUID) of the api token
     * @member {string} createdAt The creation time
     * @member {array} [scope] The token's scope. A list of allowed roles.
     * @member {string} [encryptedToken] The encrypted value of a token. This
     * value will only be returned for token of type in_app_update.
     * @member {string} [description] The description of the token
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of ApiTokenResponsev2
     *
     * @returns {object} metadata of ApiTokenResponsev2
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'ApiTokenResponsev2',
        type: {
          name: 'Composite',
          className: 'ApiTokenResponsev2',
          modelProperties: {
            id: {
              required: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            createdAt: {
              required: true,
              serializedName: 'created_at',
              type: {
                name: 'String'
              }
            },
            scope: {
              required: false,
              serializedName: 'scope',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'StringElementType',
                    type: {
                      name: 'String'
                    }
                }
              }
            },
            encryptedToken: {
              required: false,
              serializedName: 'encrypted_token',
              type: {
                name: 'String'
              }
            },
            description: {
              required: false,
              serializedName: 'description',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = ApiTokenResponsev2;
  