microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
lib/app-center-node-client/src/account/models/apiTokensGetResponse.js
78lines · modecode
| 1 | /* |
| 2 | * Code generated by Microsoft (R) AutoRest Code Generator. |
| 3 | * Changes may cause incorrect behavior and will be lost if the code is |
| 4 | * regenerated. |
| 5 | */ |
| 6 | |
| 7 | 'use strict'; |
| 8 | |
| 9 | /** |
| 10 | * Class representing a ApiTokensGetResponse. |
| 11 | */ |
| 12 | class ApiTokensGetResponse { |
| 13 | /** |
| 14 | * Create a ApiTokensGetResponse. |
| 15 | * @member {string} id The unique id (UUID) of the api token |
| 16 | * @member {string} [description] The description of the token |
| 17 | * @member {array} [scope] The scope for this token. |
| 18 | * @member {string} createdAt The creation time |
| 19 | */ |
| 20 | constructor() { |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Defines the metadata of ApiTokensGetResponse |
| 25 | * |
| 26 | * @returns {object} metadata of ApiTokensGetResponse |
| 27 | * |
| 28 | */ |
| 29 | mapper() { |
| 30 | return { |
| 31 | required: false, |
| 32 | serializedName: 'ApiTokensGetResponse', |
| 33 | type: { |
| 34 | name: 'Composite', |
| 35 | className: 'ApiTokensGetResponse', |
| 36 | modelProperties: { |
| 37 | id: { |
| 38 | required: true, |
| 39 | serializedName: 'id', |
| 40 | type: { |
| 41 | name: 'String' |
| 42 | } |
| 43 | }, |
| 44 | description: { |
| 45 | required: false, |
| 46 | serializedName: 'description', |
| 47 | type: { |
| 48 | name: 'String' |
| 49 | } |
| 50 | }, |
| 51 | scope: { |
| 52 | required: false, |
| 53 | serializedName: 'scope', |
| 54 | type: { |
| 55 | name: 'Sequence', |
| 56 | element: { |
| 57 | required: false, |
| 58 | serializedName: 'StringElementType', |
| 59 | type: { |
| 60 | name: 'String' |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | }, |
| 65 | createdAt: { |
| 66 | required: true, |
| 67 | serializedName: 'created_at', |
| 68 | type: { |
| 69 | name: 'String' |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | }; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | module.exports = ApiTokensGetResponse; |
| 79 | |