microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
lib/app-center-node-client/src/build/models/branch.js
60lines · 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 | const models = require('./index'); |
| 10 | |
| 11 | /** |
| 12 | * Class representing a Branch. |
| 13 | */ |
| 14 | class Branch { |
| 15 | /** |
| 16 | * Create a Branch. |
| 17 | * @member {string} name The branch name |
| 18 | * @member {object} commit |
| 19 | * @member {string} [commit.sha] The commit SHA |
| 20 | * @member {string} [commit.url] The URL to the commit |
| 21 | */ |
| 22 | constructor() { |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Defines the metadata of Branch |
| 27 | * |
| 28 | * @returns {object} metadata of Branch |
| 29 | * |
| 30 | */ |
| 31 | mapper() { |
| 32 | return { |
| 33 | required: false, |
| 34 | serializedName: 'Branch', |
| 35 | type: { |
| 36 | name: 'Composite', |
| 37 | className: 'Branch', |
| 38 | modelProperties: { |
| 39 | name: { |
| 40 | required: true, |
| 41 | serializedName: 'name', |
| 42 | type: { |
| 43 | name: 'String' |
| 44 | } |
| 45 | }, |
| 46 | commit: { |
| 47 | required: true, |
| 48 | serializedName: 'commit', |
| 49 | type: { |
| 50 | name: 'Composite', |
| 51 | className: 'Commit' |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | }; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | module.exports = Branch; |