microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
lib/app-center-node-client/src/account/models/appRequest.js
83lines · 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 AppRequest. |
| 11 | */ |
| 12 | class AppRequest { |
| 13 | /** |
| 14 | * Create a AppRequest. |
| 15 | * @member {string} [description] A short text describing the app |
| 16 | * @member {string} displayName The descriptive name of the app. This can |
| 17 | * contain any characters |
| 18 | * @member {string} [name] The name of the app used in URLs |
| 19 | * @member {string} os The OS the app will be running on. Possible values |
| 20 | * include: 'Android', 'iOS', 'macOS', 'Tizen', 'tvOS', 'Windows' |
| 21 | * @member {string} platform The platform of the app. Possible values |
| 22 | * include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native', |
| 23 | * 'Xamarin' |
| 24 | */ |
| 25 | constructor() { |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Defines the metadata of AppRequest |
| 30 | * |
| 31 | * @returns {object} metadata of AppRequest |
| 32 | * |
| 33 | */ |
| 34 | mapper() { |
| 35 | return { |
| 36 | required: false, |
| 37 | serializedName: 'AppRequest', |
| 38 | type: { |
| 39 | name: 'Composite', |
| 40 | className: 'AppRequest', |
| 41 | modelProperties: { |
| 42 | description: { |
| 43 | required: false, |
| 44 | serializedName: 'description', |
| 45 | type: { |
| 46 | name: 'String' |
| 47 | } |
| 48 | }, |
| 49 | displayName: { |
| 50 | required: true, |
| 51 | serializedName: 'display_name', |
| 52 | type: { |
| 53 | name: 'String' |
| 54 | } |
| 55 | }, |
| 56 | name: { |
| 57 | required: false, |
| 58 | serializedName: 'name', |
| 59 | type: { |
| 60 | name: 'String' |
| 61 | } |
| 62 | }, |
| 63 | os: { |
| 64 | required: true, |
| 65 | serializedName: 'os', |
| 66 | type: { |
| 67 | name: 'String' |
| 68 | } |
| 69 | }, |
| 70 | platform: { |
| 71 | required: true, |
| 72 | serializedName: 'platform', |
| 73 | type: { |
| 74 | name: 'String' |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | }; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | module.exports = AppRequest; |
| 84 | |