microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
86466695ed3443c9a6a1facdfd9bce89c668afbf

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

lib/app-center-node-client/src/build/models/build.js

123lines · 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 Build.
11 */
12class Build {
13 /**
14 * Create a Build.
15 * @member {number} id The build ID
16 * @member {string} buildNumber The build number
17 * @member {string} queueTime The time the build was queued
18 * @member {string} [startTime] The time the build was started
19 * @member {string} [finishTime] The time the build was finished
20 * @member {string} [lastChangedDate] The time the build status was last
21 * changed
22 * @member {string} status The build status
23 * @member {string} result The build result
24 * @member {string} sourceBranch The source branch name
25 * @member {string} sourceVersion The source SHA
26 */
27 constructor() {
28 }
29
30 /**
31 * Defines the metadata of Build
32 *
33 * @returns {object} metadata of Build
34 *
35 */
36 mapper() {
37 return {
38 required: false,
39 serializedName: 'Build',
40 type: {
41 name: 'Composite',
42 className: 'Build',
43 modelProperties: {
44 id: {
45 required: true,
46 serializedName: 'id',
47 constraints: {
48 ExclusiveMinimum: 0
49 },
50 type: {
51 name: 'Number'
52 }
53 },
54 buildNumber: {
55 required: true,
56 serializedName: 'buildNumber',
57 type: {
58 name: 'String'
59 }
60 },
61 queueTime: {
62 required: true,
63 serializedName: 'queueTime',
64 type: {
65 name: 'String'
66 }
67 },
68 startTime: {
69 required: false,
70 serializedName: 'startTime',
71 type: {
72 name: 'String'
73 }
74 },
75 finishTime: {
76 required: false,
77 serializedName: 'finishTime',
78 type: {
79 name: 'String'
80 }
81 },
82 lastChangedDate: {
83 required: false,
84 serializedName: 'lastChangedDate',
85 type: {
86 name: 'String'
87 }
88 },
89 status: {
90 required: true,
91 serializedName: 'status',
92 type: {
93 name: 'String'
94 }
95 },
96 result: {
97 required: true,
98 serializedName: 'result',
99 type: {
100 name: 'String'
101 }
102 },
103 sourceBranch: {
104 required: true,
105 serializedName: 'sourceBranch',
106 type: {
107 name: 'String'
108 }
109 },
110 sourceVersion: {
111 required: true,
112 serializedName: 'sourceVersion',
113 type: {
114 name: 'String'
115 }
116 }
117 }
118 }
119 };
120 }
121}
122
123module.exports = Build;
124