UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

92 lines (87 loc) 2.29 kB
/* * 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'; /** * Class representing a ApiTokensCreateResponse. */ class ApiTokensCreateResponse { /** * Create a ApiTokensCreateResponse. * @property {string} id The unique id (UUID) of the api token * @property {string} apiToken The api token generated will not be accessible * again * @property {string} [description] The description of the token * @property {array} [scope] The scope for this token. * @property {string} createdAt The creation time */ constructor() { } /** * Defines the metadata of ApiTokensCreateResponse * * @returns {object} metadata of ApiTokensCreateResponse * */ mapper() { return { required: false, serializedName: 'ApiTokensCreateResponse', type: { name: 'Composite', className: 'ApiTokensCreateResponse', modelProperties: { id: { required: true, serializedName: 'id', type: { name: 'String' } }, apiToken: { required: true, serializedName: 'api_token', type: { name: 'String' } }, description: { required: false, serializedName: 'description', type: { name: 'String' } }, scope: { required: false, serializedName: 'scope', type: { name: 'Sequence', element: { required: false, serializedName: 'StringElementType', type: { name: 'String' } } } }, createdAt: { required: true, serializedName: 'created_at', type: { name: 'String' } } } } }; } } module.exports = ApiTokensCreateResponse;