microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
lib/app-center-node-client/src/codepush/models/codePushReleaseModification.js
82lines · modeblame
1d7f5fbcmax-mironov8 years ago | 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 | const models = require('./index'); | |
| 10 | | |
| 11 | /** | |
| 12 | * Class representing a CodePushReleaseModification. | |
| 13 | * @extends models['CodePushReleaseInfo'] | |
| 14 | */ | |
| 15 | class CodePushReleaseModification extends models['CodePushReleaseInfo'] { | |
| 16 | /** | |
| 17 | * Create a CodePushReleaseModification. | |
| 18 | */ | |
| 19 | constructor() { | |
| 20 | super(); | |
| 21 | } | |
| 22 | | |
| 23 | /** | |
| 24 | * Defines the metadata of CodePushReleaseModification | |
| 25 | * | |
| 26 | * @returns {object} metadata of CodePushReleaseModification | |
| 27 | * | |
| 28 | */ | |
| 29 | mapper() { | |
| 30 | return { | |
| 31 | required: false, | |
| 32 | serializedName: 'CodePushReleaseModification', | |
| 33 | type: { | |
| 34 | name: 'Composite', | |
| 35 | className: 'CodePushReleaseModification', | |
| 36 | modelProperties: { | |
| 37 | targetBinaryRange: { | |
| 38 | required: false, | |
| 39 | serializedName: 'target_binary_range', | |
| 40 | type: { | |
| 41 | name: 'String' | |
| 42 | } | |
| 43 | }, | |
| 44 | description: { | |
| 45 | required: false, | |
| 46 | serializedName: 'description', | |
| 47 | type: { | |
| 48 | name: 'String' | |
| 49 | } | |
| 50 | }, | |
| 51 | isDisabled: { | |
| 52 | required: false, | |
| 53 | serializedName: 'is_disabled', | |
| 54 | type: { | |
| 55 | name: 'Boolean' | |
| 56 | } | |
| 57 | }, | |
| 58 | isMandatory: { | |
| 59 | required: false, | |
| 60 | serializedName: 'is_mandatory', | |
| 61 | type: { | |
| 62 | name: 'Boolean' | |
| 63 | } | |
| 64 | }, | |
| 65 | rollout: { | |
| 66 | required: false, | |
| 67 | serializedName: 'rollout', | |
| 68 | constraints: { | |
| 69 | InclusiveMaximum: 100, | |
| 70 | InclusiveMinimum: 1 | |
| 71 | }, | |
| 72 | type: { | |
| 73 | name: 'Number' | |
| 74 | } | |
| 75 | } | |
| 76 | } | |
| 77 | } | |
| 78 | }; | |
| 79 | } | |
| 80 | } | |
| 81 | | |
| 82 | module.exports = CodePushReleaseModification; |