@vendasta/mission-control 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_generated/host.service.mjs +25 -0
- package/esm2020/lib/_internal/app-metrics.api.service.mjs +66 -0
- package/esm2020/lib/_internal/enums/app-metrics.enum.mjs +24 -0
- package/esm2020/lib/_internal/enums/index.mjs +11 -0
- package/esm2020/lib/_internal/enums/mission-control.enum.mjs +54 -0
- package/esm2020/lib/_internal/enums/service-level.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/shared-const.enum.mjs +15 -0
- package/esm2020/lib/_internal/index.mjs +14 -0
- package/esm2020/lib/_internal/interfaces/app-metrics.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/mission-control.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/service-level.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/shared-const.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/user.interface.mjs +8 -0
- package/esm2020/lib/_internal/mission-control.api.service.mjs +109 -0
- package/esm2020/lib/_internal/objects/app-metrics.mjs +637 -0
- package/esm2020/lib/_internal/objects/index.mjs +12 -0
- package/esm2020/lib/_internal/objects/mission-control.mjs +1255 -0
- package/esm2020/lib/_internal/objects/service-level.mjs +151 -0
- package/esm2020/lib/_internal/objects/shared-const.mjs +56 -0
- package/esm2020/lib/_internal/objects/user.mjs +131 -0
- package/esm2020/lib/_internal/service-levels.api.service.mjs +50 -0
- package/esm2020/lib/_internal/user.api.service.mjs +45 -0
- package/esm2020/lib/index.mjs +2 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-mission-control.mjs +5 -0
- package/fesm2015/vendasta-mission-control.mjs +2592 -0
- package/fesm2015/vendasta-mission-control.mjs.map +1 -0
- package/fesm2020/vendasta-mission-control.mjs +2591 -0
- package/fesm2020/vendasta-mission-control.mjs.map +1 -0
- package/lib/_generated/host.service.d.ts +7 -0
- package/lib/_internal/app-metrics.api.service.d.ts +21 -0
- package/lib/_internal/enums/app-metrics.enum.d.ts +15 -0
- package/lib/_internal/enums/index.d.ts +4 -0
- package/lib/_internal/enums/mission-control.enum.d.ts +40 -0
- package/lib/_internal/enums/service-level.enum.d.ts +6 -0
- package/lib/_internal/enums/shared-const.enum.d.ts +7 -0
- package/lib/_internal/index.d.ts +7 -0
- package/lib/_internal/interfaces/app-metrics.interface.d.ts +102 -0
- package/lib/_internal/interfaces/index.d.ts +5 -0
- package/lib/_internal/interfaces/mission-control.interface.d.ts +216 -0
- package/lib/_internal/interfaces/service-level.interface.d.ts +29 -0
- package/lib/_internal/interfaces/shared-const.interface.d.ts +8 -0
- package/lib/_internal/interfaces/user.interface.d.ts +20 -0
- package/lib/_internal/mission-control.api.service.d.ts +31 -0
- package/lib/_internal/objects/app-metrics.d.ts +164 -0
- package/lib/_internal/objects/index.d.ts +5 -0
- package/lib/_internal/objects/mission-control.d.ts +332 -0
- package/lib/_internal/objects/service-level.d.ts +43 -0
- package/lib/_internal/objects/shared-const.d.ts +16 -0
- package/lib/_internal/objects/user.d.ts +37 -0
- package/lib/_internal/service-levels.api.service.d.ts +18 -0
- package/lib/_internal/user.api.service.d.ts +17 -0
- package/lib/index.d.ts +1 -0
- package/package.json +35 -0
- package/public_api.d.ts +1 -0
- package/src/README.md +1 -0
- package/vendasta-mission-control.d.ts +5 -0
|
@@ -0,0 +1,2592 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
5
|
+
import { map } from 'rxjs/operators';
|
|
6
|
+
|
|
7
|
+
// *********************************
|
|
8
|
+
// Code generated by sdkgen
|
|
9
|
+
// DO NOT EDIT!.
|
|
10
|
+
//
|
|
11
|
+
// Enums.
|
|
12
|
+
// *********************************
|
|
13
|
+
var Environment;
|
|
14
|
+
(function (Environment) {
|
|
15
|
+
Environment[Environment["ENVIRONMENT_TEST"] = 0] = "ENVIRONMENT_TEST";
|
|
16
|
+
Environment[Environment["ENVIRONMENT_DEMO"] = 1] = "ENVIRONMENT_DEMO";
|
|
17
|
+
Environment[Environment["ENVIRONMENT_PROD"] = 2] = "ENVIRONMENT_PROD";
|
|
18
|
+
Environment[Environment["ENVIRONMENT_UNSET"] = 3] = "ENVIRONMENT_UNSET";
|
|
19
|
+
Environment[Environment["ENVIRONMENT_INVALID"] = 4] = "ENVIRONMENT_INVALID";
|
|
20
|
+
})(Environment || (Environment = {}));
|
|
21
|
+
|
|
22
|
+
// *********************************
|
|
23
|
+
// Code generated by sdkgen
|
|
24
|
+
// DO NOT EDIT!.
|
|
25
|
+
//
|
|
26
|
+
// Enums.
|
|
27
|
+
// *********************************
|
|
28
|
+
var TimeRange;
|
|
29
|
+
(function (TimeRange) {
|
|
30
|
+
TimeRange[TimeRange["TIME_RANGE_UNSET"] = 0] = "TIME_RANGE_UNSET";
|
|
31
|
+
TimeRange[TimeRange["TIME_RANGE_INVALID"] = 1] = "TIME_RANGE_INVALID";
|
|
32
|
+
TimeRange[TimeRange["TIME_RANGE_LAST_30_DAYS"] = 2] = "TIME_RANGE_LAST_30_DAYS";
|
|
33
|
+
TimeRange[TimeRange["TIME_RANGE_LAST_60_DAYS"] = 3] = "TIME_RANGE_LAST_60_DAYS";
|
|
34
|
+
TimeRange[TimeRange["TIME_RANGE_LAST_90_DAYS"] = 4] = "TIME_RANGE_LAST_90_DAYS";
|
|
35
|
+
})(TimeRange || (TimeRange = {}));
|
|
36
|
+
var StatRateUnit;
|
|
37
|
+
(function (StatRateUnit) {
|
|
38
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_UNSET"] = 0] = "STAT_RATE_UNIT_UNSET";
|
|
39
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_INVALID"] = 1] = "STAT_RATE_UNIT_INVALID";
|
|
40
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_DAY"] = 2] = "STAT_RATE_UNIT_DAY";
|
|
41
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_WEEK"] = 3] = "STAT_RATE_UNIT_WEEK";
|
|
42
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_MONTH"] = 4] = "STAT_RATE_UNIT_MONTH";
|
|
43
|
+
StatRateUnit[StatRateUnit["STAT_RATE_UNIT_THREE_MONTHS"] = 5] = "STAT_RATE_UNIT_THREE_MONTHS";
|
|
44
|
+
})(StatRateUnit || (StatRateUnit = {}));
|
|
45
|
+
|
|
46
|
+
// *********************************
|
|
47
|
+
// Code generated by sdkgen
|
|
48
|
+
// DO NOT EDIT!.
|
|
49
|
+
//
|
|
50
|
+
// Enums.
|
|
51
|
+
// *********************************
|
|
52
|
+
var AlertType;
|
|
53
|
+
(function (AlertType) {
|
|
54
|
+
AlertType[AlertType["ALERT_TYPE_NOT_SET"] = 0] = "ALERT_TYPE_NOT_SET";
|
|
55
|
+
AlertType[AlertType["ALERT_TYPE_INFO"] = 1] = "ALERT_TYPE_INFO";
|
|
56
|
+
AlertType[AlertType["ALERT_TYPE_WARNING"] = 2] = "ALERT_TYPE_WARNING";
|
|
57
|
+
AlertType[AlertType["ALERT_TYPE_DANGER"] = 3] = "ALERT_TYPE_DANGER";
|
|
58
|
+
})(AlertType || (AlertType = {}));
|
|
59
|
+
var AppType;
|
|
60
|
+
(function (AppType) {
|
|
61
|
+
AppType[AppType["APP_TYPE_NOT_SET"] = 0] = "APP_TYPE_NOT_SET";
|
|
62
|
+
AppType[AppType["APP_TYPE_VSTATIC"] = 1] = "APP_TYPE_VSTATIC";
|
|
63
|
+
AppType[AppType["APP_TYPE_GAE"] = 2] = "APP_TYPE_GAE";
|
|
64
|
+
AppType[AppType["APP_TYPE_GKE"] = 3] = "APP_TYPE_GKE";
|
|
65
|
+
AppType[AppType["APP_TYPE_NPM"] = 4] = "APP_TYPE_NPM";
|
|
66
|
+
AppType[AppType["APP_TYPE_CLOUDBUILD"] = 5] = "APP_TYPE_CLOUDBUILD";
|
|
67
|
+
})(AppType || (AppType = {}));
|
|
68
|
+
var BuildStatus;
|
|
69
|
+
(function (BuildStatus) {
|
|
70
|
+
BuildStatus[BuildStatus["BUILD_STATUS_UNKNOWN"] = 0] = "BUILD_STATUS_UNKNOWN";
|
|
71
|
+
BuildStatus[BuildStatus["BUILD_STATUS_SUCCESS"] = 1] = "BUILD_STATUS_SUCCESS";
|
|
72
|
+
BuildStatus[BuildStatus["BUILD_STATUS_FAILED"] = 2] = "BUILD_STATUS_FAILED";
|
|
73
|
+
})(BuildStatus || (BuildStatus = {}));
|
|
74
|
+
var DeliveryType;
|
|
75
|
+
(function (DeliveryType) {
|
|
76
|
+
DeliveryType[DeliveryType["DELIVERY_TYPE_DEFAULT"] = 0] = "DELIVERY_TYPE_DEFAULT";
|
|
77
|
+
DeliveryType[DeliveryType["DELIVERY_TYPE_ZONE"] = 1] = "DELIVERY_TYPE_ZONE";
|
|
78
|
+
})(DeliveryType || (DeliveryType = {}));
|
|
79
|
+
var DeploymentStatus;
|
|
80
|
+
(function (DeploymentStatus) {
|
|
81
|
+
DeploymentStatus[DeploymentStatus["DEPLOYMENT_STATUS_UNKNOWN"] = 0] = "DEPLOYMENT_STATUS_UNKNOWN";
|
|
82
|
+
DeploymentStatus[DeploymentStatus["DEPLOYMENT_STATUS_GOOD"] = 1] = "DEPLOYMENT_STATUS_GOOD";
|
|
83
|
+
DeploymentStatus[DeploymentStatus["DEPLOYMENT_STATUS_BAD"] = 2] = "DEPLOYMENT_STATUS_BAD";
|
|
84
|
+
})(DeploymentStatus || (DeploymentStatus = {}));
|
|
85
|
+
var EventType;
|
|
86
|
+
(function (EventType) {
|
|
87
|
+
EventType[EventType["EVENT_TYPE_NOT_SET"] = 0] = "EVENT_TYPE_NOT_SET";
|
|
88
|
+
EventType[EventType["EVENT_TYPE_BUILD"] = 1] = "EVENT_TYPE_BUILD";
|
|
89
|
+
EventType[EventType["EVENT_TYPE_DEPLOYMENT"] = 2] = "EVENT_TYPE_DEPLOYMENT";
|
|
90
|
+
EventType[EventType["EVENT_TYPE_DELIVERY"] = 3] = "EVENT_TYPE_DELIVERY";
|
|
91
|
+
EventType[EventType["EVENT_TYPE_ROLLBACK"] = 4] = "EVENT_TYPE_ROLLBACK";
|
|
92
|
+
EventType[EventType["EVENT_TYPE_LOCK"] = 5] = "EVENT_TYPE_LOCK";
|
|
93
|
+
})(EventType || (EventType = {}));
|
|
94
|
+
var KubernetesController;
|
|
95
|
+
(function (KubernetesController) {
|
|
96
|
+
KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_DEPLOYMENT"] = 0] = "KUBERNETES_CONTROLLER_DEPLOYMENT";
|
|
97
|
+
KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_ARGOROLLOUT"] = 1] = "KUBERNETES_CONTROLLER_ARGOROLLOUT";
|
|
98
|
+
})(KubernetesController || (KubernetesController = {}));
|
|
99
|
+
|
|
100
|
+
// *********************************
|
|
101
|
+
// Code generated by sdkgen
|
|
102
|
+
// DO NOT EDIT!.
|
|
103
|
+
//
|
|
104
|
+
// Enums.
|
|
105
|
+
// *********************************
|
|
106
|
+
var ServiceReadiness;
|
|
107
|
+
(function (ServiceReadiness) {
|
|
108
|
+
ServiceReadiness[ServiceReadiness["SERVICE_READINESS_GENERAL"] = 0] = "SERVICE_READINESS_GENERAL";
|
|
109
|
+
ServiceReadiness[ServiceReadiness["SERVICE_READINESS_PROTOTYPE"] = 1] = "SERVICE_READINESS_PROTOTYPE";
|
|
110
|
+
ServiceReadiness[ServiceReadiness["SERVICE_READINESS_DEPRECATED"] = 2] = "SERVICE_READINESS_DEPRECATED";
|
|
111
|
+
ServiceReadiness[ServiceReadiness["SERVICE_READINESS_SUNSET"] = 3] = "SERVICE_READINESS_SUNSET";
|
|
112
|
+
})(ServiceReadiness || (ServiceReadiness = {}));
|
|
113
|
+
|
|
114
|
+
// *********************************
|
|
115
|
+
|
|
116
|
+
function enumStringToValue$4(enumRef, value) {
|
|
117
|
+
if (typeof value === 'number') {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
return enumRef[value];
|
|
121
|
+
}
|
|
122
|
+
class PagedRequestOptions {
|
|
123
|
+
constructor(kwargs) {
|
|
124
|
+
if (!kwargs) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
Object.assign(this, kwargs);
|
|
128
|
+
}
|
|
129
|
+
static fromProto(proto) {
|
|
130
|
+
let m = new PagedRequestOptions();
|
|
131
|
+
m = Object.assign(m, proto);
|
|
132
|
+
if (proto.pageSize) {
|
|
133
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
134
|
+
}
|
|
135
|
+
return m;
|
|
136
|
+
}
|
|
137
|
+
toApiJson() {
|
|
138
|
+
const toReturn = {};
|
|
139
|
+
if (typeof this.cursor !== 'undefined') {
|
|
140
|
+
toReturn['cursor'] = this.cursor;
|
|
141
|
+
}
|
|
142
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
143
|
+
toReturn['pageSize'] = this.pageSize;
|
|
144
|
+
}
|
|
145
|
+
return toReturn;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class PagedResponseMetadata {
|
|
149
|
+
constructor(kwargs) {
|
|
150
|
+
if (!kwargs) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
Object.assign(this, kwargs);
|
|
154
|
+
}
|
|
155
|
+
static fromProto(proto) {
|
|
156
|
+
let m = new PagedResponseMetadata();
|
|
157
|
+
m = Object.assign(m, proto);
|
|
158
|
+
return m;
|
|
159
|
+
}
|
|
160
|
+
toApiJson() {
|
|
161
|
+
const toReturn = {};
|
|
162
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
163
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
164
|
+
}
|
|
165
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
166
|
+
toReturn['hasMore'] = this.hasMore;
|
|
167
|
+
}
|
|
168
|
+
return toReturn;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function enumStringToValue$3(enumRef, value) {
|
|
173
|
+
if (typeof value === 'number') {
|
|
174
|
+
return value;
|
|
175
|
+
}
|
|
176
|
+
return enumRef[value];
|
|
177
|
+
}
|
|
178
|
+
class ChangeFailData {
|
|
179
|
+
constructor(kwargs) {
|
|
180
|
+
if (!kwargs) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
Object.assign(this, kwargs);
|
|
184
|
+
}
|
|
185
|
+
static fromProto(proto) {
|
|
186
|
+
let m = new ChangeFailData();
|
|
187
|
+
m = Object.assign(m, proto);
|
|
188
|
+
if (proto.timeRange) {
|
|
189
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
190
|
+
}
|
|
191
|
+
if (proto.environment) {
|
|
192
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
193
|
+
}
|
|
194
|
+
return m;
|
|
195
|
+
}
|
|
196
|
+
toApiJson() {
|
|
197
|
+
const toReturn = {};
|
|
198
|
+
if (typeof this.appId !== 'undefined') {
|
|
199
|
+
toReturn['appId'] = this.appId;
|
|
200
|
+
}
|
|
201
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
202
|
+
toReturn['timeRange'] = this.timeRange;
|
|
203
|
+
}
|
|
204
|
+
if (typeof this.current !== 'undefined') {
|
|
205
|
+
toReturn['current'] = this.current;
|
|
206
|
+
}
|
|
207
|
+
if (typeof this.previous !== 'undefined') {
|
|
208
|
+
toReturn['previous'] = this.previous;
|
|
209
|
+
}
|
|
210
|
+
if (typeof this.environment !== 'undefined') {
|
|
211
|
+
toReturn['environment'] = this.environment;
|
|
212
|
+
}
|
|
213
|
+
return toReturn;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
class ChangeFailGetMultiRequest {
|
|
217
|
+
constructor(kwargs) {
|
|
218
|
+
if (!kwargs) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
Object.assign(this, kwargs);
|
|
222
|
+
}
|
|
223
|
+
static fromProto(proto) {
|
|
224
|
+
let m = new ChangeFailGetMultiRequest();
|
|
225
|
+
m = Object.assign(m, proto);
|
|
226
|
+
if (proto.timeRange) {
|
|
227
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
228
|
+
}
|
|
229
|
+
if (proto.environment) {
|
|
230
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
231
|
+
}
|
|
232
|
+
return m;
|
|
233
|
+
}
|
|
234
|
+
toApiJson() {
|
|
235
|
+
const toReturn = {};
|
|
236
|
+
if (typeof this.appIds !== 'undefined') {
|
|
237
|
+
toReturn['appIds'] = this.appIds;
|
|
238
|
+
}
|
|
239
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
240
|
+
toReturn['timeRange'] = this.timeRange;
|
|
241
|
+
}
|
|
242
|
+
if (typeof this.environment !== 'undefined') {
|
|
243
|
+
toReturn['environment'] = this.environment;
|
|
244
|
+
}
|
|
245
|
+
return toReturn;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
class ChangeFailGetMultiResponse {
|
|
249
|
+
constructor(kwargs) {
|
|
250
|
+
if (!kwargs) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
Object.assign(this, kwargs);
|
|
254
|
+
}
|
|
255
|
+
static fromProto(proto) {
|
|
256
|
+
let m = new ChangeFailGetMultiResponse();
|
|
257
|
+
m = Object.assign(m, proto);
|
|
258
|
+
if (proto.data) {
|
|
259
|
+
m.data = proto.data.map(ChangeFailData.fromProto);
|
|
260
|
+
}
|
|
261
|
+
return m;
|
|
262
|
+
}
|
|
263
|
+
toApiJson() {
|
|
264
|
+
const toReturn = {};
|
|
265
|
+
if (typeof this.data !== 'undefined' && this.data !== null) {
|
|
266
|
+
toReturn['data'] = 'toApiJson' in this.data ? this.data.toApiJson() : this.data;
|
|
267
|
+
}
|
|
268
|
+
return toReturn;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class DeploymentFrequencyData {
|
|
272
|
+
constructor(kwargs) {
|
|
273
|
+
if (!kwargs) {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
Object.assign(this, kwargs);
|
|
277
|
+
}
|
|
278
|
+
static fromProto(proto) {
|
|
279
|
+
let m = new DeploymentFrequencyData();
|
|
280
|
+
m = Object.assign(m, proto);
|
|
281
|
+
if (proto.environment) {
|
|
282
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
283
|
+
}
|
|
284
|
+
if (proto.rate) {
|
|
285
|
+
m.rate = StatRate.fromProto(proto.rate);
|
|
286
|
+
}
|
|
287
|
+
if (proto.stats) {
|
|
288
|
+
m.stats = proto.stats.map(StatSnapshot.fromProto);
|
|
289
|
+
}
|
|
290
|
+
return m;
|
|
291
|
+
}
|
|
292
|
+
toApiJson() {
|
|
293
|
+
const toReturn = {};
|
|
294
|
+
if (typeof this.appId !== 'undefined') {
|
|
295
|
+
toReturn['appId'] = this.appId;
|
|
296
|
+
}
|
|
297
|
+
if (typeof this.environment !== 'undefined') {
|
|
298
|
+
toReturn['environment'] = this.environment;
|
|
299
|
+
}
|
|
300
|
+
if (typeof this.rate !== 'undefined' && this.rate !== null) {
|
|
301
|
+
toReturn['rate'] = 'toApiJson' in this.rate ? this.rate.toApiJson() : this.rate;
|
|
302
|
+
}
|
|
303
|
+
if (typeof this.stats !== 'undefined' && this.stats !== null) {
|
|
304
|
+
toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;
|
|
305
|
+
}
|
|
306
|
+
return toReturn;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class DeploymentFrequencyGetMultiRequest {
|
|
310
|
+
constructor(kwargs) {
|
|
311
|
+
if (!kwargs) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
Object.assign(this, kwargs);
|
|
315
|
+
}
|
|
316
|
+
static fromProto(proto) {
|
|
317
|
+
let m = new DeploymentFrequencyGetMultiRequest();
|
|
318
|
+
m = Object.assign(m, proto);
|
|
319
|
+
if (proto.environment) {
|
|
320
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
321
|
+
}
|
|
322
|
+
return m;
|
|
323
|
+
}
|
|
324
|
+
toApiJson() {
|
|
325
|
+
const toReturn = {};
|
|
326
|
+
if (typeof this.appIds !== 'undefined') {
|
|
327
|
+
toReturn['appIds'] = this.appIds;
|
|
328
|
+
}
|
|
329
|
+
if (typeof this.environment !== 'undefined') {
|
|
330
|
+
toReturn['environment'] = this.environment;
|
|
331
|
+
}
|
|
332
|
+
return toReturn;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
class DeploymentFrequencyGetMultiResponse {
|
|
336
|
+
constructor(kwargs) {
|
|
337
|
+
if (!kwargs) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
Object.assign(this, kwargs);
|
|
341
|
+
}
|
|
342
|
+
static fromProto(proto) {
|
|
343
|
+
let m = new DeploymentFrequencyGetMultiResponse();
|
|
344
|
+
m = Object.assign(m, proto);
|
|
345
|
+
if (proto.deploymentFrequencies) {
|
|
346
|
+
m.deploymentFrequencies = proto.deploymentFrequencies.map(DeploymentFrequencyData.fromProto);
|
|
347
|
+
}
|
|
348
|
+
return m;
|
|
349
|
+
}
|
|
350
|
+
toApiJson() {
|
|
351
|
+
const toReturn = {};
|
|
352
|
+
if (typeof this.deploymentFrequencies !== 'undefined' && this.deploymentFrequencies !== null) {
|
|
353
|
+
toReturn['deploymentFrequencies'] = 'toApiJson' in this.deploymentFrequencies ? this.deploymentFrequencies.toApiJson() : this.deploymentFrequencies;
|
|
354
|
+
}
|
|
355
|
+
return toReturn;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
class LeadTime {
|
|
359
|
+
constructor(kwargs) {
|
|
360
|
+
if (!kwargs) {
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
Object.assign(this, kwargs);
|
|
364
|
+
}
|
|
365
|
+
static fromProto(proto) {
|
|
366
|
+
let m = new LeadTime();
|
|
367
|
+
m = Object.assign(m, proto);
|
|
368
|
+
if (proto.environment) {
|
|
369
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
370
|
+
}
|
|
371
|
+
if (proto.duration) {
|
|
372
|
+
m.duration = parseInt(proto.duration, 10);
|
|
373
|
+
}
|
|
374
|
+
if (proto.created) {
|
|
375
|
+
m.created = new Date(proto.created);
|
|
376
|
+
}
|
|
377
|
+
if (proto.updated) {
|
|
378
|
+
m.updated = new Date(proto.updated);
|
|
379
|
+
}
|
|
380
|
+
return m;
|
|
381
|
+
}
|
|
382
|
+
toApiJson() {
|
|
383
|
+
const toReturn = {};
|
|
384
|
+
if (typeof this.id !== 'undefined') {
|
|
385
|
+
toReturn['id'] = this.id;
|
|
386
|
+
}
|
|
387
|
+
if (typeof this.appId !== 'undefined') {
|
|
388
|
+
toReturn['appId'] = this.appId;
|
|
389
|
+
}
|
|
390
|
+
if (typeof this.deliveryIds !== 'undefined') {
|
|
391
|
+
toReturn['deliveryIds'] = this.deliveryIds;
|
|
392
|
+
}
|
|
393
|
+
if (typeof this.deploymentIds !== 'undefined') {
|
|
394
|
+
toReturn['deploymentIds'] = this.deploymentIds;
|
|
395
|
+
}
|
|
396
|
+
if (typeof this.environment !== 'undefined') {
|
|
397
|
+
toReturn['environment'] = this.environment;
|
|
398
|
+
}
|
|
399
|
+
if (typeof this.issueId !== 'undefined') {
|
|
400
|
+
toReturn['issueId'] = this.issueId;
|
|
401
|
+
}
|
|
402
|
+
if (typeof this.duration !== 'undefined') {
|
|
403
|
+
toReturn['duration'] = this.duration;
|
|
404
|
+
}
|
|
405
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
406
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
407
|
+
}
|
|
408
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
409
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
410
|
+
}
|
|
411
|
+
return toReturn;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
class LeadTimeGetMultiRequest {
|
|
415
|
+
constructor(kwargs) {
|
|
416
|
+
if (!kwargs) {
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
Object.assign(this, kwargs);
|
|
420
|
+
}
|
|
421
|
+
static fromProto(proto) {
|
|
422
|
+
let m = new LeadTimeGetMultiRequest();
|
|
423
|
+
m = Object.assign(m, proto);
|
|
424
|
+
if (proto.environment) {
|
|
425
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
426
|
+
}
|
|
427
|
+
if (proto.timeRange) {
|
|
428
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
429
|
+
}
|
|
430
|
+
return m;
|
|
431
|
+
}
|
|
432
|
+
toApiJson() {
|
|
433
|
+
const toReturn = {};
|
|
434
|
+
if (typeof this.appIds !== 'undefined') {
|
|
435
|
+
toReturn['appIds'] = this.appIds;
|
|
436
|
+
}
|
|
437
|
+
if (typeof this.environment !== 'undefined') {
|
|
438
|
+
toReturn['environment'] = this.environment;
|
|
439
|
+
}
|
|
440
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
441
|
+
toReturn['timeRange'] = this.timeRange;
|
|
442
|
+
}
|
|
443
|
+
return toReturn;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
class LeadTimeGetMultiResponse {
|
|
447
|
+
constructor(kwargs) {
|
|
448
|
+
if (!kwargs) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
Object.assign(this, kwargs);
|
|
452
|
+
}
|
|
453
|
+
static fromProto(proto) {
|
|
454
|
+
let m = new LeadTimeGetMultiResponse();
|
|
455
|
+
m = Object.assign(m, proto);
|
|
456
|
+
if (proto.summaries) {
|
|
457
|
+
m.summaries = proto.summaries.map(LeadTimeSummary.fromProto);
|
|
458
|
+
}
|
|
459
|
+
return m;
|
|
460
|
+
}
|
|
461
|
+
toApiJson() {
|
|
462
|
+
const toReturn = {};
|
|
463
|
+
if (typeof this.summaries !== 'undefined' && this.summaries !== null) {
|
|
464
|
+
toReturn['summaries'] = 'toApiJson' in this.summaries ? this.summaries.toApiJson() : this.summaries;
|
|
465
|
+
}
|
|
466
|
+
return toReturn;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
class LeadTimeListRequest {
|
|
470
|
+
constructor(kwargs) {
|
|
471
|
+
if (!kwargs) {
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
Object.assign(this, kwargs);
|
|
475
|
+
}
|
|
476
|
+
static fromProto(proto) {
|
|
477
|
+
let m = new LeadTimeListRequest();
|
|
478
|
+
m = Object.assign(m, proto);
|
|
479
|
+
if (proto.pagingOptions) {
|
|
480
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
481
|
+
}
|
|
482
|
+
return m;
|
|
483
|
+
}
|
|
484
|
+
toApiJson() {
|
|
485
|
+
const toReturn = {};
|
|
486
|
+
if (typeof this.appId !== 'undefined') {
|
|
487
|
+
toReturn['appId'] = this.appId;
|
|
488
|
+
}
|
|
489
|
+
if (typeof this.issueId !== 'undefined') {
|
|
490
|
+
toReturn['issueId'] = this.issueId;
|
|
491
|
+
}
|
|
492
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
493
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
494
|
+
}
|
|
495
|
+
return toReturn;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
class LeadTimeListResponse {
|
|
499
|
+
constructor(kwargs) {
|
|
500
|
+
if (!kwargs) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
Object.assign(this, kwargs);
|
|
504
|
+
}
|
|
505
|
+
static fromProto(proto) {
|
|
506
|
+
let m = new LeadTimeListResponse();
|
|
507
|
+
m = Object.assign(m, proto);
|
|
508
|
+
if (proto.leadTimes) {
|
|
509
|
+
m.leadTimes = proto.leadTimes.map(LeadTime.fromProto);
|
|
510
|
+
}
|
|
511
|
+
if (proto.pagingMetadata) {
|
|
512
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
513
|
+
}
|
|
514
|
+
return m;
|
|
515
|
+
}
|
|
516
|
+
toApiJson() {
|
|
517
|
+
const toReturn = {};
|
|
518
|
+
if (typeof this.leadTimes !== 'undefined' && this.leadTimes !== null) {
|
|
519
|
+
toReturn['leadTimes'] = 'toApiJson' in this.leadTimes ? this.leadTimes.toApiJson() : this.leadTimes;
|
|
520
|
+
}
|
|
521
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
522
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
523
|
+
}
|
|
524
|
+
return toReturn;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
class LeadTimeSummary {
|
|
528
|
+
constructor(kwargs) {
|
|
529
|
+
if (!kwargs) {
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
Object.assign(this, kwargs);
|
|
533
|
+
}
|
|
534
|
+
static fromProto(proto) {
|
|
535
|
+
let m = new LeadTimeSummary();
|
|
536
|
+
m = Object.assign(m, proto);
|
|
537
|
+
if (proto.timeRange) {
|
|
538
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
539
|
+
}
|
|
540
|
+
if (proto.environment) {
|
|
541
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
542
|
+
}
|
|
543
|
+
return m;
|
|
544
|
+
}
|
|
545
|
+
toApiJson() {
|
|
546
|
+
const toReturn = {};
|
|
547
|
+
if (typeof this.appId !== 'undefined') {
|
|
548
|
+
toReturn['appId'] = this.appId;
|
|
549
|
+
}
|
|
550
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
551
|
+
toReturn['timeRange'] = this.timeRange;
|
|
552
|
+
}
|
|
553
|
+
if (typeof this.environment !== 'undefined') {
|
|
554
|
+
toReturn['environment'] = this.environment;
|
|
555
|
+
}
|
|
556
|
+
if (typeof this.current !== 'undefined') {
|
|
557
|
+
toReturn['current'] = this.current;
|
|
558
|
+
}
|
|
559
|
+
if (typeof this.previous !== 'undefined') {
|
|
560
|
+
toReturn['previous'] = this.previous;
|
|
561
|
+
}
|
|
562
|
+
return toReturn;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
class MTTRData {
|
|
566
|
+
constructor(kwargs) {
|
|
567
|
+
if (!kwargs) {
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
Object.assign(this, kwargs);
|
|
571
|
+
}
|
|
572
|
+
static fromProto(proto) {
|
|
573
|
+
let m = new MTTRData();
|
|
574
|
+
m = Object.assign(m, proto);
|
|
575
|
+
if (proto.timeRange) {
|
|
576
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
577
|
+
}
|
|
578
|
+
if (proto.environment) {
|
|
579
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
580
|
+
}
|
|
581
|
+
return m;
|
|
582
|
+
}
|
|
583
|
+
toApiJson() {
|
|
584
|
+
const toReturn = {};
|
|
585
|
+
if (typeof this.appId !== 'undefined') {
|
|
586
|
+
toReturn['appId'] = this.appId;
|
|
587
|
+
}
|
|
588
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
589
|
+
toReturn['timeRange'] = this.timeRange;
|
|
590
|
+
}
|
|
591
|
+
if (typeof this.environment !== 'undefined') {
|
|
592
|
+
toReturn['environment'] = this.environment;
|
|
593
|
+
}
|
|
594
|
+
if (typeof this.current !== 'undefined') {
|
|
595
|
+
toReturn['current'] = this.current;
|
|
596
|
+
}
|
|
597
|
+
if (typeof this.previous !== 'undefined') {
|
|
598
|
+
toReturn['previous'] = this.previous;
|
|
599
|
+
}
|
|
600
|
+
return toReturn;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
class MTTRGetMultiRequest {
|
|
604
|
+
constructor(kwargs) {
|
|
605
|
+
if (!kwargs) {
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
Object.assign(this, kwargs);
|
|
609
|
+
}
|
|
610
|
+
static fromProto(proto) {
|
|
611
|
+
let m = new MTTRGetMultiRequest();
|
|
612
|
+
m = Object.assign(m, proto);
|
|
613
|
+
if (proto.timeRange) {
|
|
614
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
615
|
+
}
|
|
616
|
+
if (proto.environment) {
|
|
617
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
618
|
+
}
|
|
619
|
+
return m;
|
|
620
|
+
}
|
|
621
|
+
toApiJson() {
|
|
622
|
+
const toReturn = {};
|
|
623
|
+
if (typeof this.appIds !== 'undefined') {
|
|
624
|
+
toReturn['appIds'] = this.appIds;
|
|
625
|
+
}
|
|
626
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
627
|
+
toReturn['timeRange'] = this.timeRange;
|
|
628
|
+
}
|
|
629
|
+
if (typeof this.environment !== 'undefined') {
|
|
630
|
+
toReturn['environment'] = this.environment;
|
|
631
|
+
}
|
|
632
|
+
return toReturn;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
class MTTRGetMultiResponse {
|
|
636
|
+
constructor(kwargs) {
|
|
637
|
+
if (!kwargs) {
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
Object.assign(this, kwargs);
|
|
641
|
+
}
|
|
642
|
+
static fromProto(proto) {
|
|
643
|
+
let m = new MTTRGetMultiResponse();
|
|
644
|
+
m = Object.assign(m, proto);
|
|
645
|
+
if (proto.data) {
|
|
646
|
+
m.data = proto.data.map(MTTRData.fromProto);
|
|
647
|
+
}
|
|
648
|
+
return m;
|
|
649
|
+
}
|
|
650
|
+
toApiJson() {
|
|
651
|
+
const toReturn = {};
|
|
652
|
+
if (typeof this.data !== 'undefined' && this.data !== null) {
|
|
653
|
+
toReturn['data'] = 'toApiJson' in this.data ? this.data.toApiJson() : this.data;
|
|
654
|
+
}
|
|
655
|
+
return toReturn;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
class StatRate {
|
|
659
|
+
constructor(kwargs) {
|
|
660
|
+
if (!kwargs) {
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
Object.assign(this, kwargs);
|
|
664
|
+
}
|
|
665
|
+
static fromProto(proto) {
|
|
666
|
+
let m = new StatRate();
|
|
667
|
+
m = Object.assign(m, proto);
|
|
668
|
+
if (proto.unit) {
|
|
669
|
+
m.unit = enumStringToValue$3(StatRateUnit, proto.unit);
|
|
670
|
+
}
|
|
671
|
+
return m;
|
|
672
|
+
}
|
|
673
|
+
toApiJson() {
|
|
674
|
+
const toReturn = {};
|
|
675
|
+
if (typeof this.statsPerUnit !== 'undefined') {
|
|
676
|
+
toReturn['statsPerUnit'] = this.statsPerUnit;
|
|
677
|
+
}
|
|
678
|
+
if (typeof this.unit !== 'undefined') {
|
|
679
|
+
toReturn['unit'] = this.unit;
|
|
680
|
+
}
|
|
681
|
+
return toReturn;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
class StatSnapshot {
|
|
685
|
+
constructor(kwargs) {
|
|
686
|
+
if (!kwargs) {
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
Object.assign(this, kwargs);
|
|
690
|
+
}
|
|
691
|
+
static fromProto(proto) {
|
|
692
|
+
let m = new StatSnapshot();
|
|
693
|
+
m = Object.assign(m, proto);
|
|
694
|
+
if (proto.statDate) {
|
|
695
|
+
m.statDate = new Date(proto.statDate);
|
|
696
|
+
}
|
|
697
|
+
if (proto.statValue) {
|
|
698
|
+
m.statValue = parseInt(proto.statValue, 10);
|
|
699
|
+
}
|
|
700
|
+
return m;
|
|
701
|
+
}
|
|
702
|
+
toApiJson() {
|
|
703
|
+
const toReturn = {};
|
|
704
|
+
if (typeof this.statDate !== 'undefined' && this.statDate !== null) {
|
|
705
|
+
toReturn['statDate'] = 'toApiJson' in this.statDate ? this.statDate.toApiJson() : this.statDate;
|
|
706
|
+
}
|
|
707
|
+
if (typeof this.statValue !== 'undefined') {
|
|
708
|
+
toReturn['statValue'] = this.statValue;
|
|
709
|
+
}
|
|
710
|
+
return toReturn;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
class UserDeployFrequencyData {
|
|
714
|
+
constructor(kwargs) {
|
|
715
|
+
if (!kwargs) {
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
Object.assign(this, kwargs);
|
|
719
|
+
}
|
|
720
|
+
static fromProto(proto) {
|
|
721
|
+
let m = new UserDeployFrequencyData();
|
|
722
|
+
m = Object.assign(m, proto);
|
|
723
|
+
if (proto.environment) {
|
|
724
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
725
|
+
}
|
|
726
|
+
if (proto.rate) {
|
|
727
|
+
m.rate = StatRate.fromProto(proto.rate);
|
|
728
|
+
}
|
|
729
|
+
if (proto.stats) {
|
|
730
|
+
m.stats = proto.stats.map(StatSnapshot.fromProto);
|
|
731
|
+
}
|
|
732
|
+
return m;
|
|
733
|
+
}
|
|
734
|
+
toApiJson() {
|
|
735
|
+
const toReturn = {};
|
|
736
|
+
if (typeof this.userId !== 'undefined') {
|
|
737
|
+
toReturn['userId'] = this.userId;
|
|
738
|
+
}
|
|
739
|
+
if (typeof this.environment !== 'undefined') {
|
|
740
|
+
toReturn['environment'] = this.environment;
|
|
741
|
+
}
|
|
742
|
+
if (typeof this.rate !== 'undefined' && this.rate !== null) {
|
|
743
|
+
toReturn['rate'] = 'toApiJson' in this.rate ? this.rate.toApiJson() : this.rate;
|
|
744
|
+
}
|
|
745
|
+
if (typeof this.stats !== 'undefined' && this.stats !== null) {
|
|
746
|
+
toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;
|
|
747
|
+
}
|
|
748
|
+
return toReturn;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
class UserDeployFrequencyGetMultiRequest {
|
|
752
|
+
constructor(kwargs) {
|
|
753
|
+
if (!kwargs) {
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
Object.assign(this, kwargs);
|
|
757
|
+
}
|
|
758
|
+
static fromProto(proto) {
|
|
759
|
+
let m = new UserDeployFrequencyGetMultiRequest();
|
|
760
|
+
m = Object.assign(m, proto);
|
|
761
|
+
if (proto.environment) {
|
|
762
|
+
m.environment = enumStringToValue$3(Environment, proto.environment);
|
|
763
|
+
}
|
|
764
|
+
if (proto.timeRange) {
|
|
765
|
+
m.timeRange = enumStringToValue$3(TimeRange, proto.timeRange);
|
|
766
|
+
}
|
|
767
|
+
return m;
|
|
768
|
+
}
|
|
769
|
+
toApiJson() {
|
|
770
|
+
const toReturn = {};
|
|
771
|
+
if (typeof this.userIds !== 'undefined') {
|
|
772
|
+
toReturn['userIds'] = this.userIds;
|
|
773
|
+
}
|
|
774
|
+
if (typeof this.environment !== 'undefined') {
|
|
775
|
+
toReturn['environment'] = this.environment;
|
|
776
|
+
}
|
|
777
|
+
if (typeof this.timeRange !== 'undefined') {
|
|
778
|
+
toReturn['timeRange'] = this.timeRange;
|
|
779
|
+
}
|
|
780
|
+
return toReturn;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
class UserDeployFrequencyGetMultiResponse {
|
|
784
|
+
constructor(kwargs) {
|
|
785
|
+
if (!kwargs) {
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
Object.assign(this, kwargs);
|
|
789
|
+
}
|
|
790
|
+
static fromProto(proto) {
|
|
791
|
+
let m = new UserDeployFrequencyGetMultiResponse();
|
|
792
|
+
m = Object.assign(m, proto);
|
|
793
|
+
if (proto.data) {
|
|
794
|
+
m.data = proto.data.map(UserDeployFrequencyData.fromProto);
|
|
795
|
+
}
|
|
796
|
+
return m;
|
|
797
|
+
}
|
|
798
|
+
toApiJson() {
|
|
799
|
+
const toReturn = {};
|
|
800
|
+
if (typeof this.data !== 'undefined' && this.data !== null) {
|
|
801
|
+
toReturn['data'] = 'toApiJson' in this.data ? this.data.toApiJson() : this.data;
|
|
802
|
+
}
|
|
803
|
+
return toReturn;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function enumStringToValue$2(enumRef, value) {
|
|
808
|
+
if (typeof value === 'number') {
|
|
809
|
+
return value;
|
|
810
|
+
}
|
|
811
|
+
return enumRef[value];
|
|
812
|
+
}
|
|
813
|
+
class Alert {
|
|
814
|
+
constructor(kwargs) {
|
|
815
|
+
if (!kwargs) {
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
Object.assign(this, kwargs);
|
|
819
|
+
}
|
|
820
|
+
static fromProto(proto) {
|
|
821
|
+
let m = new Alert();
|
|
822
|
+
m = Object.assign(m, proto);
|
|
823
|
+
if (proto.type) {
|
|
824
|
+
m.type = enumStringToValue$2(AlertType, proto.type);
|
|
825
|
+
}
|
|
826
|
+
return m;
|
|
827
|
+
}
|
|
828
|
+
toApiJson() {
|
|
829
|
+
const toReturn = {};
|
|
830
|
+
if (typeof this.message !== 'undefined') {
|
|
831
|
+
toReturn['message'] = this.message;
|
|
832
|
+
}
|
|
833
|
+
if (typeof this.type !== 'undefined') {
|
|
834
|
+
toReturn['type'] = this.type;
|
|
835
|
+
}
|
|
836
|
+
return toReturn;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
class AppConfig {
|
|
840
|
+
constructor(kwargs) {
|
|
841
|
+
if (!kwargs) {
|
|
842
|
+
return;
|
|
843
|
+
}
|
|
844
|
+
Object.assign(this, kwargs);
|
|
845
|
+
}
|
|
846
|
+
static fromProto(proto) {
|
|
847
|
+
let m = new AppConfig();
|
|
848
|
+
m = Object.assign(m, proto);
|
|
849
|
+
if (proto.deliveryMethods) {
|
|
850
|
+
m.deliveryMethods = proto.deliveryMethods.map(DeliveryMethod.fromProto);
|
|
851
|
+
}
|
|
852
|
+
return m;
|
|
853
|
+
}
|
|
854
|
+
toApiJson() {
|
|
855
|
+
const toReturn = {};
|
|
856
|
+
if (typeof this.appengineProjectId !== 'undefined') {
|
|
857
|
+
toReturn['appengineProjectId'] = this.appengineProjectId;
|
|
858
|
+
}
|
|
859
|
+
if (typeof this.entryUrlTemplate !== 'undefined') {
|
|
860
|
+
toReturn['entryUrlTemplate'] = this.entryUrlTemplate;
|
|
861
|
+
}
|
|
862
|
+
if (typeof this.deliveryMethods !== 'undefined' && this.deliveryMethods !== null) {
|
|
863
|
+
toReturn['deliveryMethods'] = 'toApiJson' in this.deliveryMethods ? this.deliveryMethods.toApiJson() : this.deliveryMethods;
|
|
864
|
+
}
|
|
865
|
+
return toReturn;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
class Application {
|
|
869
|
+
constructor(kwargs) {
|
|
870
|
+
if (!kwargs) {
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
Object.assign(this, kwargs);
|
|
874
|
+
}
|
|
875
|
+
static fromProto(proto) {
|
|
876
|
+
let m = new Application();
|
|
877
|
+
m = Object.assign(m, proto);
|
|
878
|
+
if (proto.appType) {
|
|
879
|
+
m.appType = enumStringToValue$2(AppType, proto.appType);
|
|
880
|
+
}
|
|
881
|
+
if (proto.prodConfig) {
|
|
882
|
+
m.prodConfig = AppConfig.fromProto(proto.prodConfig);
|
|
883
|
+
}
|
|
884
|
+
if (proto.demoConfig) {
|
|
885
|
+
m.demoConfig = AppConfig.fromProto(proto.demoConfig);
|
|
886
|
+
}
|
|
887
|
+
if (proto.alerts) {
|
|
888
|
+
m.alerts = proto.alerts.map(Alert.fromProto);
|
|
889
|
+
}
|
|
890
|
+
return m;
|
|
891
|
+
}
|
|
892
|
+
toApiJson() {
|
|
893
|
+
const toReturn = {};
|
|
894
|
+
if (typeof this.appId !== 'undefined') {
|
|
895
|
+
toReturn['appId'] = this.appId;
|
|
896
|
+
}
|
|
897
|
+
if (typeof this.appName !== 'undefined') {
|
|
898
|
+
toReturn['appName'] = this.appName;
|
|
899
|
+
}
|
|
900
|
+
if (typeof this.appType !== 'undefined') {
|
|
901
|
+
toReturn['appType'] = this.appType;
|
|
902
|
+
}
|
|
903
|
+
if (typeof this.githubRepoUrl !== 'undefined') {
|
|
904
|
+
toReturn['githubRepoUrl'] = this.githubRepoUrl;
|
|
905
|
+
}
|
|
906
|
+
if (typeof this.entryUrlTemplate !== 'undefined') {
|
|
907
|
+
toReturn['entryUrlTemplate'] = this.entryUrlTemplate;
|
|
908
|
+
}
|
|
909
|
+
if (typeof this.prodConfig !== 'undefined' && this.prodConfig !== null) {
|
|
910
|
+
toReturn['prodConfig'] = 'toApiJson' in this.prodConfig ? this.prodConfig.toApiJson() : this.prodConfig;
|
|
911
|
+
}
|
|
912
|
+
if (typeof this.demoConfig !== 'undefined' && this.demoConfig !== null) {
|
|
913
|
+
toReturn['demoConfig'] = 'toApiJson' in this.demoConfig ? this.demoConfig.toApiJson() : this.demoConfig;
|
|
914
|
+
}
|
|
915
|
+
if (typeof this.googleRepoName !== 'undefined') {
|
|
916
|
+
toReturn['googleRepoName'] = this.googleRepoName;
|
|
917
|
+
}
|
|
918
|
+
if (typeof this.invalidConfigurationError !== 'undefined') {
|
|
919
|
+
toReturn['invalidConfigurationError'] = this.invalidConfigurationError;
|
|
920
|
+
}
|
|
921
|
+
if (typeof this.alerts !== 'undefined' && this.alerts !== null) {
|
|
922
|
+
toReturn['alerts'] = 'toApiJson' in this.alerts ? this.alerts.toApiJson() : this.alerts;
|
|
923
|
+
}
|
|
924
|
+
if (typeof this.appRoot !== 'undefined') {
|
|
925
|
+
toReturn['appRoot'] = this.appRoot;
|
|
926
|
+
}
|
|
927
|
+
if (typeof this.defaultBranch !== 'undefined') {
|
|
928
|
+
toReturn['defaultBranch'] = this.defaultBranch;
|
|
929
|
+
}
|
|
930
|
+
return toReturn;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
class Artifacts {
|
|
934
|
+
constructor(kwargs) {
|
|
935
|
+
if (!kwargs) {
|
|
936
|
+
return;
|
|
937
|
+
}
|
|
938
|
+
Object.assign(this, kwargs);
|
|
939
|
+
}
|
|
940
|
+
static fromProto(proto) {
|
|
941
|
+
let m = new Artifacts();
|
|
942
|
+
m = Object.assign(m, proto);
|
|
943
|
+
return m;
|
|
944
|
+
}
|
|
945
|
+
toApiJson() {
|
|
946
|
+
const toReturn = {};
|
|
947
|
+
if (typeof this.gcsBucket !== 'undefined') {
|
|
948
|
+
toReturn['gcsBucket'] = this.gcsBucket;
|
|
949
|
+
}
|
|
950
|
+
if (typeof this.image !== 'undefined') {
|
|
951
|
+
toReturn['image'] = this.image;
|
|
952
|
+
}
|
|
953
|
+
return toReturn;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
class CreateApplicationRequest {
|
|
957
|
+
constructor(kwargs) {
|
|
958
|
+
if (!kwargs) {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
Object.assign(this, kwargs);
|
|
962
|
+
}
|
|
963
|
+
static fromProto(proto) {
|
|
964
|
+
let m = new CreateApplicationRequest();
|
|
965
|
+
m = Object.assign(m, proto);
|
|
966
|
+
if (proto.application) {
|
|
967
|
+
m.application = Application.fromProto(proto.application);
|
|
968
|
+
}
|
|
969
|
+
return m;
|
|
970
|
+
}
|
|
971
|
+
toApiJson() {
|
|
972
|
+
const toReturn = {};
|
|
973
|
+
if (typeof this.application !== 'undefined' && this.application !== null) {
|
|
974
|
+
toReturn['application'] = 'toApiJson' in this.application ? this.application.toApiJson() : this.application;
|
|
975
|
+
}
|
|
976
|
+
return toReturn;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
class CreateDeliveryRequest {
|
|
980
|
+
constructor(kwargs) {
|
|
981
|
+
if (!kwargs) {
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
Object.assign(this, kwargs);
|
|
985
|
+
}
|
|
986
|
+
static fromProto(proto) {
|
|
987
|
+
let m = new CreateDeliveryRequest();
|
|
988
|
+
m = Object.assign(m, proto);
|
|
989
|
+
if (proto.delivery) {
|
|
990
|
+
m.delivery = Delivery.fromProto(proto.delivery);
|
|
991
|
+
}
|
|
992
|
+
return m;
|
|
993
|
+
}
|
|
994
|
+
toApiJson() {
|
|
995
|
+
const toReturn = {};
|
|
996
|
+
if (typeof this.delivery !== 'undefined' && this.delivery !== null) {
|
|
997
|
+
toReturn['delivery'] = 'toApiJson' in this.delivery ? this.delivery.toApiJson() : this.delivery;
|
|
998
|
+
}
|
|
999
|
+
return toReturn;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
class CreateDeliveryResponse {
|
|
1003
|
+
constructor(kwargs) {
|
|
1004
|
+
if (!kwargs) {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
Object.assign(this, kwargs);
|
|
1008
|
+
}
|
|
1009
|
+
static fromProto(proto) {
|
|
1010
|
+
let m = new CreateDeliveryResponse();
|
|
1011
|
+
m = Object.assign(m, proto);
|
|
1012
|
+
return m;
|
|
1013
|
+
}
|
|
1014
|
+
toApiJson() {
|
|
1015
|
+
const toReturn = {};
|
|
1016
|
+
if (typeof this.deliveryId !== 'undefined') {
|
|
1017
|
+
toReturn['deliveryId'] = this.deliveryId;
|
|
1018
|
+
}
|
|
1019
|
+
return toReturn;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
class CreateDeploymentRequest {
|
|
1023
|
+
constructor(kwargs) {
|
|
1024
|
+
if (!kwargs) {
|
|
1025
|
+
return;
|
|
1026
|
+
}
|
|
1027
|
+
Object.assign(this, kwargs);
|
|
1028
|
+
}
|
|
1029
|
+
static fromProto(proto) {
|
|
1030
|
+
let m = new CreateDeploymentRequest();
|
|
1031
|
+
m = Object.assign(m, proto);
|
|
1032
|
+
if (proto.deployment) {
|
|
1033
|
+
m.deployment = Deployment.fromProto(proto.deployment);
|
|
1034
|
+
}
|
|
1035
|
+
return m;
|
|
1036
|
+
}
|
|
1037
|
+
toApiJson() {
|
|
1038
|
+
const toReturn = {};
|
|
1039
|
+
if (typeof this.deployment !== 'undefined' && this.deployment !== null) {
|
|
1040
|
+
toReturn['deployment'] = 'toApiJson' in this.deployment ? this.deployment.toApiJson() : this.deployment;
|
|
1041
|
+
}
|
|
1042
|
+
return toReturn;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
class CreateDeploymentResponse {
|
|
1046
|
+
constructor(kwargs) {
|
|
1047
|
+
if (!kwargs) {
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
Object.assign(this, kwargs);
|
|
1051
|
+
}
|
|
1052
|
+
static fromProto(proto) {
|
|
1053
|
+
let m = new CreateDeploymentResponse();
|
|
1054
|
+
m = Object.assign(m, proto);
|
|
1055
|
+
return m;
|
|
1056
|
+
}
|
|
1057
|
+
toApiJson() {
|
|
1058
|
+
const toReturn = {};
|
|
1059
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1060
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1061
|
+
}
|
|
1062
|
+
return toReturn;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
class DeleteApplicationRequest {
|
|
1066
|
+
constructor(kwargs) {
|
|
1067
|
+
if (!kwargs) {
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1070
|
+
Object.assign(this, kwargs);
|
|
1071
|
+
}
|
|
1072
|
+
static fromProto(proto) {
|
|
1073
|
+
let m = new DeleteApplicationRequest();
|
|
1074
|
+
m = Object.assign(m, proto);
|
|
1075
|
+
return m;
|
|
1076
|
+
}
|
|
1077
|
+
toApiJson() {
|
|
1078
|
+
const toReturn = {};
|
|
1079
|
+
if (typeof this.appId !== 'undefined') {
|
|
1080
|
+
toReturn['appId'] = this.appId;
|
|
1081
|
+
}
|
|
1082
|
+
return toReturn;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
class DeleteDeliveryRequest {
|
|
1086
|
+
constructor(kwargs) {
|
|
1087
|
+
if (!kwargs) {
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
Object.assign(this, kwargs);
|
|
1091
|
+
}
|
|
1092
|
+
static fromProto(proto) {
|
|
1093
|
+
let m = new DeleteDeliveryRequest();
|
|
1094
|
+
m = Object.assign(m, proto);
|
|
1095
|
+
if (proto.environment) {
|
|
1096
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1097
|
+
}
|
|
1098
|
+
return m;
|
|
1099
|
+
}
|
|
1100
|
+
toApiJson() {
|
|
1101
|
+
const toReturn = {};
|
|
1102
|
+
if (typeof this.appId !== 'undefined') {
|
|
1103
|
+
toReturn['appId'] = this.appId;
|
|
1104
|
+
}
|
|
1105
|
+
if (typeof this.deliveryId !== 'undefined') {
|
|
1106
|
+
toReturn['deliveryId'] = this.deliveryId;
|
|
1107
|
+
}
|
|
1108
|
+
if (typeof this.environment !== 'undefined') {
|
|
1109
|
+
toReturn['environment'] = this.environment;
|
|
1110
|
+
}
|
|
1111
|
+
return toReturn;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
class Delivery {
|
|
1115
|
+
constructor(kwargs) {
|
|
1116
|
+
if (!kwargs) {
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
Object.assign(this, kwargs);
|
|
1120
|
+
}
|
|
1121
|
+
static fromProto(proto) {
|
|
1122
|
+
let m = new Delivery();
|
|
1123
|
+
m = Object.assign(m, proto);
|
|
1124
|
+
if (proto.deliveryType) {
|
|
1125
|
+
m.deliveryType = enumStringToValue$2(DeliveryType, proto.deliveryType);
|
|
1126
|
+
}
|
|
1127
|
+
if (proto.environment) {
|
|
1128
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1129
|
+
}
|
|
1130
|
+
if (proto.created) {
|
|
1131
|
+
m.created = new Date(proto.created);
|
|
1132
|
+
}
|
|
1133
|
+
if (proto.updated) {
|
|
1134
|
+
m.updated = new Date(proto.updated);
|
|
1135
|
+
}
|
|
1136
|
+
if (proto.lock) {
|
|
1137
|
+
m.lock = DeliveryLock.fromProto(proto.lock);
|
|
1138
|
+
}
|
|
1139
|
+
return m;
|
|
1140
|
+
}
|
|
1141
|
+
toApiJson() {
|
|
1142
|
+
const toReturn = {};
|
|
1143
|
+
if (typeof this.appId !== 'undefined') {
|
|
1144
|
+
toReturn['appId'] = this.appId;
|
|
1145
|
+
}
|
|
1146
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1147
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1148
|
+
}
|
|
1149
|
+
if (typeof this.deliveryId !== 'undefined') {
|
|
1150
|
+
toReturn['deliveryId'] = this.deliveryId;
|
|
1151
|
+
}
|
|
1152
|
+
if (typeof this.deliveryType !== 'undefined') {
|
|
1153
|
+
toReturn['deliveryType'] = this.deliveryType;
|
|
1154
|
+
}
|
|
1155
|
+
if (typeof this.environment !== 'undefined') {
|
|
1156
|
+
toReturn['environment'] = this.environment;
|
|
1157
|
+
}
|
|
1158
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1159
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1160
|
+
}
|
|
1161
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
1162
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
1163
|
+
}
|
|
1164
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
1165
|
+
toReturn['userEmail'] = this.userEmail;
|
|
1166
|
+
}
|
|
1167
|
+
if (typeof this.zone !== 'undefined') {
|
|
1168
|
+
toReturn['zone'] = this.zone;
|
|
1169
|
+
}
|
|
1170
|
+
if (typeof this.deliveryMethodId !== 'undefined') {
|
|
1171
|
+
toReturn['deliveryMethodId'] = this.deliveryMethodId;
|
|
1172
|
+
}
|
|
1173
|
+
if (typeof this.lock !== 'undefined' && this.lock !== null) {
|
|
1174
|
+
toReturn['lock'] = 'toApiJson' in this.lock ? this.lock.toApiJson() : this.lock;
|
|
1175
|
+
}
|
|
1176
|
+
if (typeof this.automated !== 'undefined') {
|
|
1177
|
+
toReturn['automated'] = this.automated;
|
|
1178
|
+
}
|
|
1179
|
+
if (typeof this.message !== 'undefined') {
|
|
1180
|
+
toReturn['message'] = this.message;
|
|
1181
|
+
}
|
|
1182
|
+
if (typeof this.isRollback !== 'undefined') {
|
|
1183
|
+
toReturn['isRollback'] = this.isRollback;
|
|
1184
|
+
}
|
|
1185
|
+
if (typeof this.buildId !== 'undefined') {
|
|
1186
|
+
toReturn['buildId'] = this.buildId;
|
|
1187
|
+
}
|
|
1188
|
+
return toReturn;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
class DeliveryLock {
|
|
1192
|
+
constructor(kwargs) {
|
|
1193
|
+
if (!kwargs) {
|
|
1194
|
+
return;
|
|
1195
|
+
}
|
|
1196
|
+
Object.assign(this, kwargs);
|
|
1197
|
+
}
|
|
1198
|
+
static fromProto(proto) {
|
|
1199
|
+
let m = new DeliveryLock();
|
|
1200
|
+
m = Object.assign(m, proto);
|
|
1201
|
+
if (proto.created) {
|
|
1202
|
+
m.created = new Date(proto.created);
|
|
1203
|
+
}
|
|
1204
|
+
return m;
|
|
1205
|
+
}
|
|
1206
|
+
toApiJson() {
|
|
1207
|
+
const toReturn = {};
|
|
1208
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
1209
|
+
toReturn['userEmail'] = this.userEmail;
|
|
1210
|
+
}
|
|
1211
|
+
if (typeof this.message !== 'undefined') {
|
|
1212
|
+
toReturn['message'] = this.message;
|
|
1213
|
+
}
|
|
1214
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1215
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1216
|
+
}
|
|
1217
|
+
return toReturn;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
class DeliveryMethod {
|
|
1221
|
+
constructor(kwargs) {
|
|
1222
|
+
if (!kwargs) {
|
|
1223
|
+
return;
|
|
1224
|
+
}
|
|
1225
|
+
Object.assign(this, kwargs);
|
|
1226
|
+
}
|
|
1227
|
+
static fromProto(proto) {
|
|
1228
|
+
let m = new DeliveryMethod();
|
|
1229
|
+
m = Object.assign(m, proto);
|
|
1230
|
+
if (proto.deliveryType) {
|
|
1231
|
+
m.deliveryType = enumStringToValue$2(DeliveryType, proto.deliveryType);
|
|
1232
|
+
}
|
|
1233
|
+
return m;
|
|
1234
|
+
}
|
|
1235
|
+
toApiJson() {
|
|
1236
|
+
const toReturn = {};
|
|
1237
|
+
if (typeof this.deliveryMethodId !== 'undefined') {
|
|
1238
|
+
toReturn['deliveryMethodId'] = this.deliveryMethodId;
|
|
1239
|
+
}
|
|
1240
|
+
if (typeof this.deliveryType !== 'undefined') {
|
|
1241
|
+
toReturn['deliveryType'] = this.deliveryType;
|
|
1242
|
+
}
|
|
1243
|
+
if (typeof this.args !== 'undefined') {
|
|
1244
|
+
toReturn['args'] = this.args;
|
|
1245
|
+
}
|
|
1246
|
+
if (typeof this.description !== 'undefined') {
|
|
1247
|
+
toReturn['description'] = this.description;
|
|
1248
|
+
}
|
|
1249
|
+
if (typeof this.zones !== 'undefined') {
|
|
1250
|
+
toReturn['zones'] = this.zones;
|
|
1251
|
+
}
|
|
1252
|
+
if (typeof this.weight !== 'undefined') {
|
|
1253
|
+
toReturn['weight'] = this.weight;
|
|
1254
|
+
}
|
|
1255
|
+
return toReturn;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
class Deployment {
|
|
1259
|
+
constructor(kwargs) {
|
|
1260
|
+
if (!kwargs) {
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
Object.assign(this, kwargs);
|
|
1264
|
+
}
|
|
1265
|
+
static fromProto(proto) {
|
|
1266
|
+
let m = new Deployment();
|
|
1267
|
+
m = Object.assign(m, proto);
|
|
1268
|
+
if (proto.artifacts) {
|
|
1269
|
+
m.artifacts = Artifacts.fromProto(proto.artifacts);
|
|
1270
|
+
}
|
|
1271
|
+
if (proto.environment) {
|
|
1272
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1273
|
+
}
|
|
1274
|
+
if (proto.created) {
|
|
1275
|
+
m.created = new Date(proto.created);
|
|
1276
|
+
}
|
|
1277
|
+
if (proto.updated) {
|
|
1278
|
+
m.updated = new Date(proto.updated);
|
|
1279
|
+
}
|
|
1280
|
+
if (proto.gitCommitDetails) {
|
|
1281
|
+
m.gitCommitDetails = GitCommitDetails.fromProto(proto.gitCommitDetails);
|
|
1282
|
+
}
|
|
1283
|
+
if (proto.status) {
|
|
1284
|
+
m.status = enumStringToValue$2(DeploymentStatus, proto.status);
|
|
1285
|
+
}
|
|
1286
|
+
if (proto.additionalGitCommitDetails) {
|
|
1287
|
+
m.additionalGitCommitDetails = proto.additionalGitCommitDetails.map(GitCommitDetails.fromProto);
|
|
1288
|
+
}
|
|
1289
|
+
if (proto.k8sConfig) {
|
|
1290
|
+
m.k8sConfig = K8SConfig.fromProto(proto.k8sConfig);
|
|
1291
|
+
}
|
|
1292
|
+
return m;
|
|
1293
|
+
}
|
|
1294
|
+
toApiJson() {
|
|
1295
|
+
const toReturn = {};
|
|
1296
|
+
if (typeof this.appId !== 'undefined') {
|
|
1297
|
+
toReturn['appId'] = this.appId;
|
|
1298
|
+
}
|
|
1299
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1300
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1301
|
+
}
|
|
1302
|
+
if (typeof this.gitHash !== 'undefined') {
|
|
1303
|
+
toReturn['gitHash'] = this.gitHash;
|
|
1304
|
+
}
|
|
1305
|
+
if (typeof this.artifacts !== 'undefined' && this.artifacts !== null) {
|
|
1306
|
+
toReturn['artifacts'] = 'toApiJson' in this.artifacts ? this.artifacts.toApiJson() : this.artifacts;
|
|
1307
|
+
}
|
|
1308
|
+
if (typeof this.environment !== 'undefined') {
|
|
1309
|
+
toReturn['environment'] = this.environment;
|
|
1310
|
+
}
|
|
1311
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1312
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1313
|
+
}
|
|
1314
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
1315
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
1316
|
+
}
|
|
1317
|
+
if (typeof this.buildId !== 'undefined') {
|
|
1318
|
+
toReturn['buildId'] = this.buildId;
|
|
1319
|
+
}
|
|
1320
|
+
if (typeof this.gitCommitDetails !== 'undefined' && this.gitCommitDetails !== null) {
|
|
1321
|
+
toReturn['gitCommitDetails'] = 'toApiJson' in this.gitCommitDetails ? this.gitCommitDetails.toApiJson() : this.gitCommitDetails;
|
|
1322
|
+
}
|
|
1323
|
+
if (typeof this.author !== 'undefined') {
|
|
1324
|
+
toReturn['author'] = this.author;
|
|
1325
|
+
}
|
|
1326
|
+
if (typeof this.name !== 'undefined') {
|
|
1327
|
+
toReturn['name'] = this.name;
|
|
1328
|
+
}
|
|
1329
|
+
if (typeof this.branchName !== 'undefined') {
|
|
1330
|
+
toReturn['branchName'] = this.branchName;
|
|
1331
|
+
}
|
|
1332
|
+
if (typeof this.status !== 'undefined') {
|
|
1333
|
+
toReturn['status'] = this.status;
|
|
1334
|
+
}
|
|
1335
|
+
if (typeof this.statusDescription !== 'undefined') {
|
|
1336
|
+
toReturn['statusDescription'] = this.statusDescription;
|
|
1337
|
+
}
|
|
1338
|
+
if (typeof this.gitHashBase !== 'undefined') {
|
|
1339
|
+
toReturn['gitHashBase'] = this.gitHashBase;
|
|
1340
|
+
}
|
|
1341
|
+
if (typeof this.additionalGitCommitDetails !== 'undefined' && this.additionalGitCommitDetails !== null) {
|
|
1342
|
+
toReturn['additionalGitCommitDetails'] = 'toApiJson' in this.additionalGitCommitDetails ? this.additionalGitCommitDetails.toApiJson() : this.additionalGitCommitDetails;
|
|
1343
|
+
}
|
|
1344
|
+
if (typeof this.k8sConfig !== 'undefined' && this.k8sConfig !== null) {
|
|
1345
|
+
toReturn['k8sConfig'] = 'toApiJson' in this.k8sConfig ? this.k8sConfig.toApiJson() : this.k8sConfig;
|
|
1346
|
+
}
|
|
1347
|
+
return toReturn;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
class Event {
|
|
1351
|
+
constructor(kwargs) {
|
|
1352
|
+
if (!kwargs) {
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
Object.assign(this, kwargs);
|
|
1356
|
+
}
|
|
1357
|
+
static fromProto(proto) {
|
|
1358
|
+
let m = new Event();
|
|
1359
|
+
m = Object.assign(m, proto);
|
|
1360
|
+
if (proto.environment) {
|
|
1361
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1362
|
+
}
|
|
1363
|
+
if (proto.eventType) {
|
|
1364
|
+
m.eventType = enumStringToValue$2(EventType, proto.eventType);
|
|
1365
|
+
}
|
|
1366
|
+
if (proto.created) {
|
|
1367
|
+
m.created = new Date(proto.created);
|
|
1368
|
+
}
|
|
1369
|
+
if (proto.probableAppType) {
|
|
1370
|
+
m.probableAppType = enumStringToValue$2(AppType, proto.probableAppType);
|
|
1371
|
+
}
|
|
1372
|
+
return m;
|
|
1373
|
+
}
|
|
1374
|
+
toApiJson() {
|
|
1375
|
+
const toReturn = {};
|
|
1376
|
+
if (typeof this.appId !== 'undefined') {
|
|
1377
|
+
toReturn['appId'] = this.appId;
|
|
1378
|
+
}
|
|
1379
|
+
if (typeof this.environment !== 'undefined') {
|
|
1380
|
+
toReturn['environment'] = this.environment;
|
|
1381
|
+
}
|
|
1382
|
+
if (typeof this.eventType !== 'undefined') {
|
|
1383
|
+
toReturn['eventType'] = this.eventType;
|
|
1384
|
+
}
|
|
1385
|
+
if (typeof this.eventId !== 'undefined') {
|
|
1386
|
+
toReturn['eventId'] = this.eventId;
|
|
1387
|
+
}
|
|
1388
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
1389
|
+
toReturn['userEmail'] = this.userEmail;
|
|
1390
|
+
}
|
|
1391
|
+
if (typeof this.title !== 'undefined') {
|
|
1392
|
+
toReturn['title'] = this.title;
|
|
1393
|
+
}
|
|
1394
|
+
if (typeof this.details !== 'undefined') {
|
|
1395
|
+
toReturn['details'] = this.details;
|
|
1396
|
+
}
|
|
1397
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1398
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1399
|
+
}
|
|
1400
|
+
if (typeof this.buildId !== 'undefined') {
|
|
1401
|
+
toReturn['buildId'] = this.buildId;
|
|
1402
|
+
}
|
|
1403
|
+
if (typeof this.automated !== 'undefined') {
|
|
1404
|
+
toReturn['automated'] = this.automated;
|
|
1405
|
+
}
|
|
1406
|
+
if (typeof this.probableAppType !== 'undefined') {
|
|
1407
|
+
toReturn['probableAppType'] = this.probableAppType;
|
|
1408
|
+
}
|
|
1409
|
+
return toReturn;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
class GetUserSettingsRequest {
|
|
1413
|
+
constructor(kwargs) {
|
|
1414
|
+
if (!kwargs) {
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
Object.assign(this, kwargs);
|
|
1418
|
+
}
|
|
1419
|
+
static fromProto(proto) {
|
|
1420
|
+
let m = new GetUserSettingsRequest();
|
|
1421
|
+
m = Object.assign(m, proto);
|
|
1422
|
+
return m;
|
|
1423
|
+
}
|
|
1424
|
+
toApiJson() {
|
|
1425
|
+
const toReturn = {};
|
|
1426
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
1427
|
+
toReturn['userEmail'] = this.userEmail;
|
|
1428
|
+
}
|
|
1429
|
+
return toReturn;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
class GetUserSettingsResponse {
|
|
1433
|
+
constructor(kwargs) {
|
|
1434
|
+
if (!kwargs) {
|
|
1435
|
+
return;
|
|
1436
|
+
}
|
|
1437
|
+
Object.assign(this, kwargs);
|
|
1438
|
+
}
|
|
1439
|
+
static fromProto(proto) {
|
|
1440
|
+
let m = new GetUserSettingsResponse();
|
|
1441
|
+
m = Object.assign(m, proto);
|
|
1442
|
+
if (proto.settings) {
|
|
1443
|
+
m.settings = UserSettings.fromProto(proto.settings);
|
|
1444
|
+
}
|
|
1445
|
+
return m;
|
|
1446
|
+
}
|
|
1447
|
+
toApiJson() {
|
|
1448
|
+
const toReturn = {};
|
|
1449
|
+
if (typeof this.settings !== 'undefined' && this.settings !== null) {
|
|
1450
|
+
toReturn['settings'] = 'toApiJson' in this.settings ? this.settings.toApiJson() : this.settings;
|
|
1451
|
+
}
|
|
1452
|
+
return toReturn;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
class GitCommitDetails {
|
|
1456
|
+
constructor(kwargs) {
|
|
1457
|
+
if (!kwargs) {
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
Object.assign(this, kwargs);
|
|
1461
|
+
}
|
|
1462
|
+
static fromProto(proto) {
|
|
1463
|
+
let m = new GitCommitDetails();
|
|
1464
|
+
m = Object.assign(m, proto);
|
|
1465
|
+
if (proto.author) {
|
|
1466
|
+
m.author = GithubCommitUser.fromProto(proto.author);
|
|
1467
|
+
}
|
|
1468
|
+
if (proto.committer) {
|
|
1469
|
+
m.committer = GithubCommitUser.fromProto(proto.committer);
|
|
1470
|
+
}
|
|
1471
|
+
return m;
|
|
1472
|
+
}
|
|
1473
|
+
toApiJson() {
|
|
1474
|
+
const toReturn = {};
|
|
1475
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
1476
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
1477
|
+
}
|
|
1478
|
+
if (typeof this.committer !== 'undefined' && this.committer !== null) {
|
|
1479
|
+
toReturn['committer'] = 'toApiJson' in this.committer ? this.committer.toApiJson() : this.committer;
|
|
1480
|
+
}
|
|
1481
|
+
if (typeof this.message !== 'undefined') {
|
|
1482
|
+
toReturn['message'] = this.message;
|
|
1483
|
+
}
|
|
1484
|
+
return toReturn;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
class GithubCommitUser {
|
|
1488
|
+
constructor(kwargs) {
|
|
1489
|
+
if (!kwargs) {
|
|
1490
|
+
return;
|
|
1491
|
+
}
|
|
1492
|
+
Object.assign(this, kwargs);
|
|
1493
|
+
}
|
|
1494
|
+
static fromProto(proto) {
|
|
1495
|
+
let m = new GithubCommitUser();
|
|
1496
|
+
m = Object.assign(m, proto);
|
|
1497
|
+
if (proto.date) {
|
|
1498
|
+
m.date = new Date(proto.date);
|
|
1499
|
+
}
|
|
1500
|
+
return m;
|
|
1501
|
+
}
|
|
1502
|
+
toApiJson() {
|
|
1503
|
+
const toReturn = {};
|
|
1504
|
+
if (typeof this.date !== 'undefined' && this.date !== null) {
|
|
1505
|
+
toReturn['date'] = 'toApiJson' in this.date ? this.date.toApiJson() : this.date;
|
|
1506
|
+
}
|
|
1507
|
+
if (typeof this.name !== 'undefined') {
|
|
1508
|
+
toReturn['name'] = this.name;
|
|
1509
|
+
}
|
|
1510
|
+
if (typeof this.email !== 'undefined') {
|
|
1511
|
+
toReturn['email'] = this.email;
|
|
1512
|
+
}
|
|
1513
|
+
return toReturn;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
class K8SConfig {
|
|
1517
|
+
constructor(kwargs) {
|
|
1518
|
+
if (!kwargs) {
|
|
1519
|
+
return;
|
|
1520
|
+
}
|
|
1521
|
+
Object.assign(this, kwargs);
|
|
1522
|
+
}
|
|
1523
|
+
static fromProto(proto) {
|
|
1524
|
+
let m = new K8SConfig();
|
|
1525
|
+
m = Object.assign(m, proto);
|
|
1526
|
+
if (proto.controller) {
|
|
1527
|
+
m.controller = enumStringToValue$2(KubernetesController, proto.controller);
|
|
1528
|
+
}
|
|
1529
|
+
return m;
|
|
1530
|
+
}
|
|
1531
|
+
toApiJson() {
|
|
1532
|
+
const toReturn = {};
|
|
1533
|
+
if (typeof this.clusterContext !== 'undefined') {
|
|
1534
|
+
toReturn['clusterContext'] = this.clusterContext;
|
|
1535
|
+
}
|
|
1536
|
+
if (typeof this.controller !== 'undefined') {
|
|
1537
|
+
toReturn['controller'] = this.controller;
|
|
1538
|
+
}
|
|
1539
|
+
return toReturn;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
class ListApplicationsRequest {
|
|
1543
|
+
constructor(kwargs) {
|
|
1544
|
+
if (!kwargs) {
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
Object.assign(this, kwargs);
|
|
1548
|
+
}
|
|
1549
|
+
static fromProto(proto) {
|
|
1550
|
+
let m = new ListApplicationsRequest();
|
|
1551
|
+
m = Object.assign(m, proto);
|
|
1552
|
+
if (proto.appType) {
|
|
1553
|
+
m.appType = enumStringToValue$2(AppType, proto.appType);
|
|
1554
|
+
}
|
|
1555
|
+
if (proto.pagingOptions) {
|
|
1556
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1557
|
+
}
|
|
1558
|
+
return m;
|
|
1559
|
+
}
|
|
1560
|
+
toApiJson() {
|
|
1561
|
+
const toReturn = {};
|
|
1562
|
+
if (typeof this.appType !== 'undefined') {
|
|
1563
|
+
toReturn['appType'] = this.appType;
|
|
1564
|
+
}
|
|
1565
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1566
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1567
|
+
}
|
|
1568
|
+
return toReturn;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
class ListApplicationsResponse {
|
|
1572
|
+
constructor(kwargs) {
|
|
1573
|
+
if (!kwargs) {
|
|
1574
|
+
return;
|
|
1575
|
+
}
|
|
1576
|
+
Object.assign(this, kwargs);
|
|
1577
|
+
}
|
|
1578
|
+
static fromProto(proto) {
|
|
1579
|
+
let m = new ListApplicationsResponse();
|
|
1580
|
+
m = Object.assign(m, proto);
|
|
1581
|
+
if (proto.applications) {
|
|
1582
|
+
m.applications = proto.applications.map(Application.fromProto);
|
|
1583
|
+
}
|
|
1584
|
+
if (proto.pagingMetadata) {
|
|
1585
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1586
|
+
}
|
|
1587
|
+
return m;
|
|
1588
|
+
}
|
|
1589
|
+
toApiJson() {
|
|
1590
|
+
const toReturn = {};
|
|
1591
|
+
if (typeof this.applications !== 'undefined' && this.applications !== null) {
|
|
1592
|
+
toReturn['applications'] = 'toApiJson' in this.applications ? this.applications.toApiJson() : this.applications;
|
|
1593
|
+
}
|
|
1594
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1595
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1596
|
+
}
|
|
1597
|
+
return toReturn;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
class ListDeliveriesByUserRequest {
|
|
1601
|
+
constructor(kwargs) {
|
|
1602
|
+
if (!kwargs) {
|
|
1603
|
+
return;
|
|
1604
|
+
}
|
|
1605
|
+
Object.assign(this, kwargs);
|
|
1606
|
+
}
|
|
1607
|
+
static fromProto(proto) {
|
|
1608
|
+
let m = new ListDeliveriesByUserRequest();
|
|
1609
|
+
m = Object.assign(m, proto);
|
|
1610
|
+
if (proto.environment) {
|
|
1611
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1612
|
+
}
|
|
1613
|
+
if (proto.pagingOptions) {
|
|
1614
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1615
|
+
}
|
|
1616
|
+
return m;
|
|
1617
|
+
}
|
|
1618
|
+
toApiJson() {
|
|
1619
|
+
const toReturn = {};
|
|
1620
|
+
if (typeof this.userId !== 'undefined') {
|
|
1621
|
+
toReturn['userId'] = this.userId;
|
|
1622
|
+
}
|
|
1623
|
+
if (typeof this.environment !== 'undefined') {
|
|
1624
|
+
toReturn['environment'] = this.environment;
|
|
1625
|
+
}
|
|
1626
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1627
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1628
|
+
}
|
|
1629
|
+
return toReturn;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
class ListDeliveriesRequest {
|
|
1633
|
+
constructor(kwargs) {
|
|
1634
|
+
if (!kwargs) {
|
|
1635
|
+
return;
|
|
1636
|
+
}
|
|
1637
|
+
Object.assign(this, kwargs);
|
|
1638
|
+
}
|
|
1639
|
+
static fromProto(proto) {
|
|
1640
|
+
let m = new ListDeliveriesRequest();
|
|
1641
|
+
m = Object.assign(m, proto);
|
|
1642
|
+
if (proto.environment) {
|
|
1643
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1644
|
+
}
|
|
1645
|
+
if (proto.pagingOptions) {
|
|
1646
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1647
|
+
}
|
|
1648
|
+
return m;
|
|
1649
|
+
}
|
|
1650
|
+
toApiJson() {
|
|
1651
|
+
const toReturn = {};
|
|
1652
|
+
if (typeof this.appId !== 'undefined') {
|
|
1653
|
+
toReturn['appId'] = this.appId;
|
|
1654
|
+
}
|
|
1655
|
+
if (typeof this.environment !== 'undefined') {
|
|
1656
|
+
toReturn['environment'] = this.environment;
|
|
1657
|
+
}
|
|
1658
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1659
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1660
|
+
}
|
|
1661
|
+
return toReturn;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
class ListDeliveriesResponse {
|
|
1665
|
+
constructor(kwargs) {
|
|
1666
|
+
if (!kwargs) {
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
Object.assign(this, kwargs);
|
|
1670
|
+
}
|
|
1671
|
+
static fromProto(proto) {
|
|
1672
|
+
let m = new ListDeliveriesResponse();
|
|
1673
|
+
m = Object.assign(m, proto);
|
|
1674
|
+
if (proto.deliveries) {
|
|
1675
|
+
m.deliveries = proto.deliveries.map(Delivery.fromProto);
|
|
1676
|
+
}
|
|
1677
|
+
if (proto.pagingMetadata) {
|
|
1678
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1679
|
+
}
|
|
1680
|
+
return m;
|
|
1681
|
+
}
|
|
1682
|
+
toApiJson() {
|
|
1683
|
+
const toReturn = {};
|
|
1684
|
+
if (typeof this.deliveries !== 'undefined' && this.deliveries !== null) {
|
|
1685
|
+
toReturn['deliveries'] = 'toApiJson' in this.deliveries ? this.deliveries.toApiJson() : this.deliveries;
|
|
1686
|
+
}
|
|
1687
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1688
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1689
|
+
}
|
|
1690
|
+
return toReturn;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
class ListDeploymentsRequest {
|
|
1694
|
+
constructor(kwargs) {
|
|
1695
|
+
if (!kwargs) {
|
|
1696
|
+
return;
|
|
1697
|
+
}
|
|
1698
|
+
Object.assign(this, kwargs);
|
|
1699
|
+
}
|
|
1700
|
+
static fromProto(proto) {
|
|
1701
|
+
let m = new ListDeploymentsRequest();
|
|
1702
|
+
m = Object.assign(m, proto);
|
|
1703
|
+
if (proto.environment) {
|
|
1704
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1705
|
+
}
|
|
1706
|
+
if (proto.pagingOptions) {
|
|
1707
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1708
|
+
}
|
|
1709
|
+
return m;
|
|
1710
|
+
}
|
|
1711
|
+
toApiJson() {
|
|
1712
|
+
const toReturn = {};
|
|
1713
|
+
if (typeof this.appId !== 'undefined') {
|
|
1714
|
+
toReturn['appId'] = this.appId;
|
|
1715
|
+
}
|
|
1716
|
+
if (typeof this.environment !== 'undefined') {
|
|
1717
|
+
toReturn['environment'] = this.environment;
|
|
1718
|
+
}
|
|
1719
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1720
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1721
|
+
}
|
|
1722
|
+
return toReturn;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
class ListDeploymentsResponse {
|
|
1726
|
+
constructor(kwargs) {
|
|
1727
|
+
if (!kwargs) {
|
|
1728
|
+
return;
|
|
1729
|
+
}
|
|
1730
|
+
Object.assign(this, kwargs);
|
|
1731
|
+
}
|
|
1732
|
+
static fromProto(proto) {
|
|
1733
|
+
let m = new ListDeploymentsResponse();
|
|
1734
|
+
m = Object.assign(m, proto);
|
|
1735
|
+
if (proto.deployments) {
|
|
1736
|
+
m.deployments = proto.deployments.map(Deployment.fromProto);
|
|
1737
|
+
}
|
|
1738
|
+
if (proto.pagingMetadata) {
|
|
1739
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1740
|
+
}
|
|
1741
|
+
return m;
|
|
1742
|
+
}
|
|
1743
|
+
toApiJson() {
|
|
1744
|
+
const toReturn = {};
|
|
1745
|
+
if (typeof this.deployments !== 'undefined' && this.deployments !== null) {
|
|
1746
|
+
toReturn['deployments'] = 'toApiJson' in this.deployments ? this.deployments.toApiJson() : this.deployments;
|
|
1747
|
+
}
|
|
1748
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1749
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1750
|
+
}
|
|
1751
|
+
return toReturn;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
class ListEventsRequest {
|
|
1755
|
+
constructor(kwargs) {
|
|
1756
|
+
if (!kwargs) {
|
|
1757
|
+
return;
|
|
1758
|
+
}
|
|
1759
|
+
Object.assign(this, kwargs);
|
|
1760
|
+
}
|
|
1761
|
+
static fromProto(proto) {
|
|
1762
|
+
let m = new ListEventsRequest();
|
|
1763
|
+
m = Object.assign(m, proto);
|
|
1764
|
+
if (proto.environment) {
|
|
1765
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1766
|
+
}
|
|
1767
|
+
if (proto.eventType) {
|
|
1768
|
+
m.eventType = enumStringToValue$2(EventType, proto.eventType);
|
|
1769
|
+
}
|
|
1770
|
+
if (proto.start) {
|
|
1771
|
+
m.start = new Date(proto.start);
|
|
1772
|
+
}
|
|
1773
|
+
if (proto.pagingOptions) {
|
|
1774
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1775
|
+
}
|
|
1776
|
+
return m;
|
|
1777
|
+
}
|
|
1778
|
+
toApiJson() {
|
|
1779
|
+
const toReturn = {};
|
|
1780
|
+
if (typeof this.appId !== 'undefined') {
|
|
1781
|
+
toReturn['appId'] = this.appId;
|
|
1782
|
+
}
|
|
1783
|
+
if (typeof this.environment !== 'undefined') {
|
|
1784
|
+
toReturn['environment'] = this.environment;
|
|
1785
|
+
}
|
|
1786
|
+
if (typeof this.eventType !== 'undefined') {
|
|
1787
|
+
toReturn['eventType'] = this.eventType;
|
|
1788
|
+
}
|
|
1789
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
1790
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
1791
|
+
}
|
|
1792
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
1793
|
+
toReturn['userEmail'] = this.userEmail;
|
|
1794
|
+
}
|
|
1795
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1796
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1797
|
+
}
|
|
1798
|
+
return toReturn;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
class ListEventsResponse {
|
|
1802
|
+
constructor(kwargs) {
|
|
1803
|
+
if (!kwargs) {
|
|
1804
|
+
return;
|
|
1805
|
+
}
|
|
1806
|
+
Object.assign(this, kwargs);
|
|
1807
|
+
}
|
|
1808
|
+
static fromProto(proto) {
|
|
1809
|
+
let m = new ListEventsResponse();
|
|
1810
|
+
m = Object.assign(m, proto);
|
|
1811
|
+
if (proto.events) {
|
|
1812
|
+
m.events = proto.events.map(Event.fromProto);
|
|
1813
|
+
}
|
|
1814
|
+
if (proto.pagingMetadata) {
|
|
1815
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1816
|
+
}
|
|
1817
|
+
return m;
|
|
1818
|
+
}
|
|
1819
|
+
toApiJson() {
|
|
1820
|
+
const toReturn = {};
|
|
1821
|
+
if (typeof this.events !== 'undefined' && this.events !== null) {
|
|
1822
|
+
toReturn['events'] = 'toApiJson' in this.events ? this.events.toApiJson() : this.events;
|
|
1823
|
+
}
|
|
1824
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1825
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1826
|
+
}
|
|
1827
|
+
return toReturn;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
class SendBuildNotificationRequest {
|
|
1831
|
+
constructor(kwargs) {
|
|
1832
|
+
if (!kwargs) {
|
|
1833
|
+
return;
|
|
1834
|
+
}
|
|
1835
|
+
Object.assign(this, kwargs);
|
|
1836
|
+
}
|
|
1837
|
+
static fromProto(proto) {
|
|
1838
|
+
let m = new SendBuildNotificationRequest();
|
|
1839
|
+
m = Object.assign(m, proto);
|
|
1840
|
+
if (proto.status) {
|
|
1841
|
+
m.status = enumStringToValue$2(BuildStatus, proto.status);
|
|
1842
|
+
}
|
|
1843
|
+
return m;
|
|
1844
|
+
}
|
|
1845
|
+
toApiJson() {
|
|
1846
|
+
const toReturn = {};
|
|
1847
|
+
if (typeof this.buildId !== 'undefined') {
|
|
1848
|
+
toReturn['buildId'] = this.buildId;
|
|
1849
|
+
}
|
|
1850
|
+
if (typeof this.message !== 'undefined') {
|
|
1851
|
+
toReturn['message'] = this.message;
|
|
1852
|
+
}
|
|
1853
|
+
if (typeof this.repository !== 'undefined') {
|
|
1854
|
+
toReturn['repository'] = this.repository;
|
|
1855
|
+
}
|
|
1856
|
+
if (typeof this.status !== 'undefined') {
|
|
1857
|
+
toReturn['status'] = this.status;
|
|
1858
|
+
}
|
|
1859
|
+
if (typeof this.gitHash !== 'undefined') {
|
|
1860
|
+
toReturn['gitHash'] = this.gitHash;
|
|
1861
|
+
}
|
|
1862
|
+
return toReturn;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
class UpdateApplicationRequest {
|
|
1866
|
+
constructor(kwargs) {
|
|
1867
|
+
if (!kwargs) {
|
|
1868
|
+
return;
|
|
1869
|
+
}
|
|
1870
|
+
Object.assign(this, kwargs);
|
|
1871
|
+
}
|
|
1872
|
+
static fromProto(proto) {
|
|
1873
|
+
let m = new UpdateApplicationRequest();
|
|
1874
|
+
m = Object.assign(m, proto);
|
|
1875
|
+
if (proto.application) {
|
|
1876
|
+
m.application = Application.fromProto(proto.application);
|
|
1877
|
+
}
|
|
1878
|
+
return m;
|
|
1879
|
+
}
|
|
1880
|
+
toApiJson() {
|
|
1881
|
+
const toReturn = {};
|
|
1882
|
+
if (typeof this.application !== 'undefined' && this.application !== null) {
|
|
1883
|
+
toReturn['application'] = 'toApiJson' in this.application ? this.application.toApiJson() : this.application;
|
|
1884
|
+
}
|
|
1885
|
+
return toReturn;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
class UpdateDeliveryRequest {
|
|
1889
|
+
constructor(kwargs) {
|
|
1890
|
+
if (!kwargs) {
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
Object.assign(this, kwargs);
|
|
1894
|
+
}
|
|
1895
|
+
static fromProto(proto) {
|
|
1896
|
+
let m = new UpdateDeliveryRequest();
|
|
1897
|
+
m = Object.assign(m, proto);
|
|
1898
|
+
if (proto.environment) {
|
|
1899
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1900
|
+
}
|
|
1901
|
+
if (proto.lock) {
|
|
1902
|
+
m.lock = DeliveryLock.fromProto(proto.lock);
|
|
1903
|
+
}
|
|
1904
|
+
return m;
|
|
1905
|
+
}
|
|
1906
|
+
toApiJson() {
|
|
1907
|
+
const toReturn = {};
|
|
1908
|
+
if (typeof this.appId !== 'undefined') {
|
|
1909
|
+
toReturn['appId'] = this.appId;
|
|
1910
|
+
}
|
|
1911
|
+
if (typeof this.deliveryId !== 'undefined') {
|
|
1912
|
+
toReturn['deliveryId'] = this.deliveryId;
|
|
1913
|
+
}
|
|
1914
|
+
if (typeof this.environment !== 'undefined') {
|
|
1915
|
+
toReturn['environment'] = this.environment;
|
|
1916
|
+
}
|
|
1917
|
+
if (typeof this.lock !== 'undefined' && this.lock !== null) {
|
|
1918
|
+
toReturn['lock'] = 'toApiJson' in this.lock ? this.lock.toApiJson() : this.lock;
|
|
1919
|
+
}
|
|
1920
|
+
return toReturn;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
class UpdateDeploymentRequest {
|
|
1924
|
+
constructor(kwargs) {
|
|
1925
|
+
if (!kwargs) {
|
|
1926
|
+
return;
|
|
1927
|
+
}
|
|
1928
|
+
Object.assign(this, kwargs);
|
|
1929
|
+
}
|
|
1930
|
+
static fromProto(proto) {
|
|
1931
|
+
let m = new UpdateDeploymentRequest();
|
|
1932
|
+
m = Object.assign(m, proto);
|
|
1933
|
+
if (proto.environment) {
|
|
1934
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1935
|
+
}
|
|
1936
|
+
if (proto.status) {
|
|
1937
|
+
m.status = enumStringToValue$2(DeploymentStatus, proto.status);
|
|
1938
|
+
}
|
|
1939
|
+
return m;
|
|
1940
|
+
}
|
|
1941
|
+
toApiJson() {
|
|
1942
|
+
const toReturn = {};
|
|
1943
|
+
if (typeof this.appId !== 'undefined') {
|
|
1944
|
+
toReturn['appId'] = this.appId;
|
|
1945
|
+
}
|
|
1946
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1947
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1948
|
+
}
|
|
1949
|
+
if (typeof this.environment !== 'undefined') {
|
|
1950
|
+
toReturn['environment'] = this.environment;
|
|
1951
|
+
}
|
|
1952
|
+
if (typeof this.status !== 'undefined') {
|
|
1953
|
+
toReturn['status'] = this.status;
|
|
1954
|
+
}
|
|
1955
|
+
if (typeof this.buildId !== 'undefined') {
|
|
1956
|
+
toReturn['buildId'] = this.buildId;
|
|
1957
|
+
}
|
|
1958
|
+
return toReturn;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
class UpdateDeploymentResponse {
|
|
1962
|
+
constructor(kwargs) {
|
|
1963
|
+
if (!kwargs) {
|
|
1964
|
+
return;
|
|
1965
|
+
}
|
|
1966
|
+
Object.assign(this, kwargs);
|
|
1967
|
+
}
|
|
1968
|
+
static fromProto(proto) {
|
|
1969
|
+
let m = new UpdateDeploymentResponse();
|
|
1970
|
+
m = Object.assign(m, proto);
|
|
1971
|
+
return m;
|
|
1972
|
+
}
|
|
1973
|
+
toApiJson() {
|
|
1974
|
+
const toReturn = {};
|
|
1975
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1976
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1977
|
+
}
|
|
1978
|
+
return toReturn;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
class UpdateUserSettingsRequest {
|
|
1982
|
+
constructor(kwargs) {
|
|
1983
|
+
if (!kwargs) {
|
|
1984
|
+
return;
|
|
1985
|
+
}
|
|
1986
|
+
Object.assign(this, kwargs);
|
|
1987
|
+
}
|
|
1988
|
+
static fromProto(proto) {
|
|
1989
|
+
let m = new UpdateUserSettingsRequest();
|
|
1990
|
+
m = Object.assign(m, proto);
|
|
1991
|
+
if (proto.settings) {
|
|
1992
|
+
m.settings = UserSettings.fromProto(proto.settings);
|
|
1993
|
+
}
|
|
1994
|
+
return m;
|
|
1995
|
+
}
|
|
1996
|
+
toApiJson() {
|
|
1997
|
+
const toReturn = {};
|
|
1998
|
+
if (typeof this.settings !== 'undefined' && this.settings !== null) {
|
|
1999
|
+
toReturn['settings'] = 'toApiJson' in this.settings ? this.settings.toApiJson() : this.settings;
|
|
2000
|
+
}
|
|
2001
|
+
return toReturn;
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
class UserNotifications {
|
|
2005
|
+
constructor(kwargs) {
|
|
2006
|
+
if (!kwargs) {
|
|
2007
|
+
return;
|
|
2008
|
+
}
|
|
2009
|
+
Object.assign(this, kwargs);
|
|
2010
|
+
}
|
|
2011
|
+
static fromProto(proto) {
|
|
2012
|
+
let m = new UserNotifications();
|
|
2013
|
+
m = Object.assign(m, proto);
|
|
2014
|
+
return m;
|
|
2015
|
+
}
|
|
2016
|
+
toApiJson() {
|
|
2017
|
+
const toReturn = {};
|
|
2018
|
+
if (typeof this.buildSuccessSlackOptOut !== 'undefined') {
|
|
2019
|
+
toReturn['buildSuccessSlackOptOut'] = this.buildSuccessSlackOptOut;
|
|
2020
|
+
}
|
|
2021
|
+
if (typeof this.buildFailureSlackOptOut !== 'undefined') {
|
|
2022
|
+
toReturn['buildFailureSlackOptOut'] = this.buildFailureSlackOptOut;
|
|
2023
|
+
}
|
|
2024
|
+
return toReturn;
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
class UserSettings {
|
|
2028
|
+
constructor(kwargs) {
|
|
2029
|
+
if (!kwargs) {
|
|
2030
|
+
return;
|
|
2031
|
+
}
|
|
2032
|
+
Object.assign(this, kwargs);
|
|
2033
|
+
}
|
|
2034
|
+
static fromProto(proto) {
|
|
2035
|
+
let m = new UserSettings();
|
|
2036
|
+
m = Object.assign(m, proto);
|
|
2037
|
+
if (proto.notifications) {
|
|
2038
|
+
m.notifications = UserNotifications.fromProto(proto.notifications);
|
|
2039
|
+
}
|
|
2040
|
+
return m;
|
|
2041
|
+
}
|
|
2042
|
+
toApiJson() {
|
|
2043
|
+
const toReturn = {};
|
|
2044
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
2045
|
+
toReturn['userEmail'] = this.userEmail;
|
|
2046
|
+
}
|
|
2047
|
+
if (typeof this.favoritedApps !== 'undefined') {
|
|
2048
|
+
toReturn['favoritedApps'] = this.favoritedApps;
|
|
2049
|
+
}
|
|
2050
|
+
if (typeof this.notifications !== 'undefined' && this.notifications !== null) {
|
|
2051
|
+
toReturn['notifications'] = 'toApiJson' in this.notifications ? this.notifications.toApiJson() : this.notifications;
|
|
2052
|
+
}
|
|
2053
|
+
if (typeof this.alternateEmail !== 'undefined') {
|
|
2054
|
+
toReturn['alternateEmail'] = this.alternateEmail;
|
|
2055
|
+
}
|
|
2056
|
+
return toReturn;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
function enumStringToValue$1(enumRef, value) {
|
|
2061
|
+
if (typeof value === 'number') {
|
|
2062
|
+
return value;
|
|
2063
|
+
}
|
|
2064
|
+
return enumRef[value];
|
|
2065
|
+
}
|
|
2066
|
+
class GetServiceLevelsRequest {
|
|
2067
|
+
constructor(kwargs) {
|
|
2068
|
+
if (!kwargs) {
|
|
2069
|
+
return;
|
|
2070
|
+
}
|
|
2071
|
+
Object.assign(this, kwargs);
|
|
2072
|
+
}
|
|
2073
|
+
static fromProto(proto) {
|
|
2074
|
+
let m = new GetServiceLevelsRequest();
|
|
2075
|
+
m = Object.assign(m, proto);
|
|
2076
|
+
return m;
|
|
2077
|
+
}
|
|
2078
|
+
toApiJson() {
|
|
2079
|
+
const toReturn = {};
|
|
2080
|
+
if (typeof this.name !== 'undefined') {
|
|
2081
|
+
toReturn['name'] = this.name;
|
|
2082
|
+
}
|
|
2083
|
+
if (typeof this.githubRepoUrl !== 'undefined') {
|
|
2084
|
+
toReturn['githubRepoUrl'] = this.githubRepoUrl;
|
|
2085
|
+
}
|
|
2086
|
+
if (typeof this.includeDeleted !== 'undefined') {
|
|
2087
|
+
toReturn['includeDeleted'] = this.includeDeleted;
|
|
2088
|
+
}
|
|
2089
|
+
return toReturn;
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
class QueryServiceLevelsRequest {
|
|
2093
|
+
constructor(kwargs) {
|
|
2094
|
+
if (!kwargs) {
|
|
2095
|
+
return;
|
|
2096
|
+
}
|
|
2097
|
+
Object.assign(this, kwargs);
|
|
2098
|
+
}
|
|
2099
|
+
static fromProto(proto) {
|
|
2100
|
+
let m = new QueryServiceLevelsRequest();
|
|
2101
|
+
m = Object.assign(m, proto);
|
|
2102
|
+
return m;
|
|
2103
|
+
}
|
|
2104
|
+
toApiJson() {
|
|
2105
|
+
const toReturn = {};
|
|
2106
|
+
if (typeof this.platform !== 'undefined') {
|
|
2107
|
+
toReturn['platform'] = this.platform;
|
|
2108
|
+
}
|
|
2109
|
+
if (typeof this.language !== 'undefined') {
|
|
2110
|
+
toReturn['language'] = this.language;
|
|
2111
|
+
}
|
|
2112
|
+
if (typeof this.owner !== 'undefined') {
|
|
2113
|
+
toReturn['owner'] = this.owner;
|
|
2114
|
+
}
|
|
2115
|
+
if (typeof this.dependency !== 'undefined') {
|
|
2116
|
+
toReturn['dependency'] = this.dependency;
|
|
2117
|
+
}
|
|
2118
|
+
if (typeof this.includeDeleted !== 'undefined') {
|
|
2119
|
+
toReturn['includeDeleted'] = this.includeDeleted;
|
|
2120
|
+
}
|
|
2121
|
+
return toReturn;
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
class ServiceLevel {
|
|
2125
|
+
constructor(kwargs) {
|
|
2126
|
+
if (!kwargs) {
|
|
2127
|
+
return;
|
|
2128
|
+
}
|
|
2129
|
+
Object.assign(this, kwargs);
|
|
2130
|
+
}
|
|
2131
|
+
static fromProto(proto) {
|
|
2132
|
+
let m = new ServiceLevel();
|
|
2133
|
+
m = Object.assign(m, proto);
|
|
2134
|
+
if (proto.readiness) {
|
|
2135
|
+
m.readiness = enumStringToValue$1(ServiceReadiness, proto.readiness);
|
|
2136
|
+
}
|
|
2137
|
+
if (proto.created) {
|
|
2138
|
+
m.created = new Date(proto.created);
|
|
2139
|
+
}
|
|
2140
|
+
if (proto.modified) {
|
|
2141
|
+
m.modified = new Date(proto.modified);
|
|
2142
|
+
}
|
|
2143
|
+
if (proto.deleted) {
|
|
2144
|
+
m.deleted = new Date(proto.deleted);
|
|
2145
|
+
}
|
|
2146
|
+
return m;
|
|
2147
|
+
}
|
|
2148
|
+
toApiJson() {
|
|
2149
|
+
const toReturn = {};
|
|
2150
|
+
if (typeof this.name !== 'undefined') {
|
|
2151
|
+
toReturn['name'] = this.name;
|
|
2152
|
+
}
|
|
2153
|
+
if (typeof this.githubRepoUrl !== 'undefined') {
|
|
2154
|
+
toReturn['githubRepoUrl'] = this.githubRepoUrl;
|
|
2155
|
+
}
|
|
2156
|
+
if (typeof this.platform !== 'undefined') {
|
|
2157
|
+
toReturn['platform'] = this.platform;
|
|
2158
|
+
}
|
|
2159
|
+
if (typeof this.language !== 'undefined') {
|
|
2160
|
+
toReturn['language'] = this.language;
|
|
2161
|
+
}
|
|
2162
|
+
if (typeof this.availability !== 'undefined') {
|
|
2163
|
+
toReturn['availability'] = this.availability;
|
|
2164
|
+
}
|
|
2165
|
+
if (typeof this.readiness !== 'undefined') {
|
|
2166
|
+
toReturn['readiness'] = this.readiness;
|
|
2167
|
+
}
|
|
2168
|
+
if (typeof this.owner !== 'undefined') {
|
|
2169
|
+
toReturn['owner'] = this.owner;
|
|
2170
|
+
}
|
|
2171
|
+
if (typeof this.hardDependencies !== 'undefined') {
|
|
2172
|
+
toReturn['hardDependencies'] = this.hardDependencies;
|
|
2173
|
+
}
|
|
2174
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
2175
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
2176
|
+
}
|
|
2177
|
+
if (typeof this.modified !== 'undefined' && this.modified !== null) {
|
|
2178
|
+
toReturn['modified'] = 'toApiJson' in this.modified ? this.modified.toApiJson() : this.modified;
|
|
2179
|
+
}
|
|
2180
|
+
if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
|
|
2181
|
+
toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
|
|
2182
|
+
}
|
|
2183
|
+
return toReturn;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
class ServiceLevelsResponse {
|
|
2187
|
+
constructor(kwargs) {
|
|
2188
|
+
if (!kwargs) {
|
|
2189
|
+
return;
|
|
2190
|
+
}
|
|
2191
|
+
Object.assign(this, kwargs);
|
|
2192
|
+
}
|
|
2193
|
+
static fromProto(proto) {
|
|
2194
|
+
let m = new ServiceLevelsResponse();
|
|
2195
|
+
m = Object.assign(m, proto);
|
|
2196
|
+
if (proto.serviceLevels) {
|
|
2197
|
+
m.serviceLevels = proto.serviceLevels.map(ServiceLevel.fromProto);
|
|
2198
|
+
}
|
|
2199
|
+
return m;
|
|
2200
|
+
}
|
|
2201
|
+
toApiJson() {
|
|
2202
|
+
const toReturn = {};
|
|
2203
|
+
if (typeof this.serviceLevels !== 'undefined' && this.serviceLevels !== null) {
|
|
2204
|
+
toReturn['serviceLevels'] = 'toApiJson' in this.serviceLevels ? this.serviceLevels.toApiJson() : this.serviceLevels;
|
|
2205
|
+
}
|
|
2206
|
+
return toReturn;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
function enumStringToValue(enumRef, value) {
|
|
2211
|
+
if (typeof value === 'number') {
|
|
2212
|
+
return value;
|
|
2213
|
+
}
|
|
2214
|
+
return enumRef[value];
|
|
2215
|
+
}
|
|
2216
|
+
class GetUserSettingsRequestV2 {
|
|
2217
|
+
constructor(kwargs) {
|
|
2218
|
+
if (!kwargs) {
|
|
2219
|
+
return;
|
|
2220
|
+
}
|
|
2221
|
+
Object.assign(this, kwargs);
|
|
2222
|
+
}
|
|
2223
|
+
static fromProto(proto) {
|
|
2224
|
+
let m = new GetUserSettingsRequestV2();
|
|
2225
|
+
m = Object.assign(m, proto);
|
|
2226
|
+
return m;
|
|
2227
|
+
}
|
|
2228
|
+
toApiJson() {
|
|
2229
|
+
const toReturn = {};
|
|
2230
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
2231
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
2232
|
+
}
|
|
2233
|
+
return toReturn;
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
class GetUserSettingsResponseV2 {
|
|
2237
|
+
constructor(kwargs) {
|
|
2238
|
+
if (!kwargs) {
|
|
2239
|
+
return;
|
|
2240
|
+
}
|
|
2241
|
+
Object.assign(this, kwargs);
|
|
2242
|
+
}
|
|
2243
|
+
static fromProto(proto) {
|
|
2244
|
+
let m = new GetUserSettingsResponseV2();
|
|
2245
|
+
m = Object.assign(m, proto);
|
|
2246
|
+
if (proto.settings) {
|
|
2247
|
+
m.settings = UserSettingsV2.fromProto(proto.settings);
|
|
2248
|
+
}
|
|
2249
|
+
return m;
|
|
2250
|
+
}
|
|
2251
|
+
toApiJson() {
|
|
2252
|
+
const toReturn = {};
|
|
2253
|
+
if (typeof this.settings !== 'undefined' && this.settings !== null) {
|
|
2254
|
+
toReturn['settings'] = 'toApiJson' in this.settings ? this.settings.toApiJson() : this.settings;
|
|
2255
|
+
}
|
|
2256
|
+
return toReturn;
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
class UpdateUserSettingsRequestV2 {
|
|
2260
|
+
constructor(kwargs) {
|
|
2261
|
+
if (!kwargs) {
|
|
2262
|
+
return;
|
|
2263
|
+
}
|
|
2264
|
+
Object.assign(this, kwargs);
|
|
2265
|
+
}
|
|
2266
|
+
static fromProto(proto) {
|
|
2267
|
+
let m = new UpdateUserSettingsRequestV2();
|
|
2268
|
+
m = Object.assign(m, proto);
|
|
2269
|
+
if (proto.settings) {
|
|
2270
|
+
m.settings = UserSettingsV2.fromProto(proto.settings);
|
|
2271
|
+
}
|
|
2272
|
+
return m;
|
|
2273
|
+
}
|
|
2274
|
+
toApiJson() {
|
|
2275
|
+
const toReturn = {};
|
|
2276
|
+
if (typeof this.settings !== 'undefined' && this.settings !== null) {
|
|
2277
|
+
toReturn['settings'] = 'toApiJson' in this.settings ? this.settings.toApiJson() : this.settings;
|
|
2278
|
+
}
|
|
2279
|
+
return toReturn;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
class UserNotificationsV2 {
|
|
2283
|
+
constructor(kwargs) {
|
|
2284
|
+
if (!kwargs) {
|
|
2285
|
+
return;
|
|
2286
|
+
}
|
|
2287
|
+
Object.assign(this, kwargs);
|
|
2288
|
+
}
|
|
2289
|
+
static fromProto(proto) {
|
|
2290
|
+
let m = new UserNotificationsV2();
|
|
2291
|
+
m = Object.assign(m, proto);
|
|
2292
|
+
return m;
|
|
2293
|
+
}
|
|
2294
|
+
toApiJson() {
|
|
2295
|
+
const toReturn = {};
|
|
2296
|
+
if (typeof this.buildSuccessSlackOptOut !== 'undefined') {
|
|
2297
|
+
toReturn['buildSuccessSlackOptOut'] = this.buildSuccessSlackOptOut;
|
|
2298
|
+
}
|
|
2299
|
+
if (typeof this.buildFailureSlackOptOut !== 'undefined') {
|
|
2300
|
+
toReturn['buildFailureSlackOptOut'] = this.buildFailureSlackOptOut;
|
|
2301
|
+
}
|
|
2302
|
+
return toReturn;
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
class UserSettingsV2 {
|
|
2306
|
+
constructor(kwargs) {
|
|
2307
|
+
if (!kwargs) {
|
|
2308
|
+
return;
|
|
2309
|
+
}
|
|
2310
|
+
Object.assign(this, kwargs);
|
|
2311
|
+
}
|
|
2312
|
+
static fromProto(proto) {
|
|
2313
|
+
let m = new UserSettingsV2();
|
|
2314
|
+
m = Object.assign(m, proto);
|
|
2315
|
+
if (proto.notifications) {
|
|
2316
|
+
m.notifications = UserNotificationsV2.fromProto(proto.notifications);
|
|
2317
|
+
}
|
|
2318
|
+
return m;
|
|
2319
|
+
}
|
|
2320
|
+
toApiJson() {
|
|
2321
|
+
const toReturn = {};
|
|
2322
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
2323
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
2324
|
+
}
|
|
2325
|
+
if (typeof this.userEmail !== 'undefined') {
|
|
2326
|
+
toReturn['userEmail'] = this.userEmail;
|
|
2327
|
+
}
|
|
2328
|
+
if (typeof this.favoritedApps !== 'undefined') {
|
|
2329
|
+
toReturn['favoritedApps'] = this.favoritedApps;
|
|
2330
|
+
}
|
|
2331
|
+
if (typeof this.notifications !== 'undefined' && this.notifications !== null) {
|
|
2332
|
+
toReturn['notifications'] = 'toApiJson' in this.notifications ? this.notifications.toApiJson() : this.notifications;
|
|
2333
|
+
}
|
|
2334
|
+
if (typeof this.alternateEmail !== 'undefined') {
|
|
2335
|
+
toReturn['alternateEmail'] = this.alternateEmail;
|
|
2336
|
+
}
|
|
2337
|
+
return toReturn;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
// *********************************
|
|
2342
|
+
|
|
2343
|
+
var _a;
|
|
2344
|
+
const environment = (_a = (window ? window['environment'] : 'prod')) !== null && _a !== void 0 ? _a : 'prod';
|
|
2345
|
+
const hostMap = {
|
|
2346
|
+
'local': '',
|
|
2347
|
+
'test': '',
|
|
2348
|
+
'demo': 'mission-control-api-demo.apigateway.co',
|
|
2349
|
+
'prod': 'mission-control-api-prod.apigateway.co',
|
|
2350
|
+
'production': 'mission-control-api-prod.apigateway.co',
|
|
2351
|
+
};
|
|
2352
|
+
class HostService {
|
|
2353
|
+
get host() {
|
|
2354
|
+
return hostMap[environment.toLowerCase()];
|
|
2355
|
+
}
|
|
2356
|
+
get hostWithScheme() {
|
|
2357
|
+
return 'https://' + this.host;
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2361
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, decorators: [{
|
|
2363
|
+
type: Injectable,
|
|
2364
|
+
args: [{ providedIn: 'root' }]
|
|
2365
|
+
}] });
|
|
2366
|
+
|
|
2367
|
+
// *********************************
|
|
2368
|
+
class AppMetricsApiService {
|
|
2369
|
+
constructor(http, hostService) {
|
|
2370
|
+
this.http = http;
|
|
2371
|
+
this.hostService = hostService;
|
|
2372
|
+
this._host = this.hostService.hostWithScheme;
|
|
2373
|
+
}
|
|
2374
|
+
apiOptions() {
|
|
2375
|
+
return {
|
|
2376
|
+
headers: new HttpHeaders({
|
|
2377
|
+
'Content-Type': 'application/json'
|
|
2378
|
+
}),
|
|
2379
|
+
withCredentials: true
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
deploymentFrequencyGetMulti(r) {
|
|
2383
|
+
const request = (r.toApiJson) ? r : new DeploymentFrequencyGetMultiRequest(r);
|
|
2384
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/DeploymentFrequencyGetMulti", request.toApiJson(), this.apiOptions())
|
|
2385
|
+
.pipe(map(resp => DeploymentFrequencyGetMultiResponse.fromProto(resp)));
|
|
2386
|
+
}
|
|
2387
|
+
userDeployFrequencyGetMulti(r) {
|
|
2388
|
+
const request = (r.toApiJson) ? r : new UserDeployFrequencyGetMultiRequest(r);
|
|
2389
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/UserDeployFrequencyGetMulti", request.toApiJson(), this.apiOptions())
|
|
2390
|
+
.pipe(map(resp => UserDeployFrequencyGetMultiResponse.fromProto(resp)));
|
|
2391
|
+
}
|
|
2392
|
+
changeFailGetMulti(r) {
|
|
2393
|
+
const request = (r.toApiJson) ? r : new ChangeFailGetMultiRequest(r);
|
|
2394
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/ChangeFailGetMulti", request.toApiJson(), this.apiOptions())
|
|
2395
|
+
.pipe(map(resp => ChangeFailGetMultiResponse.fromProto(resp)));
|
|
2396
|
+
}
|
|
2397
|
+
mttrGetMulti(r) {
|
|
2398
|
+
const request = (r.toApiJson) ? r : new MTTRGetMultiRequest(r);
|
|
2399
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/MTTRGetMulti", request.toApiJson(), this.apiOptions())
|
|
2400
|
+
.pipe(map(resp => MTTRGetMultiResponse.fromProto(resp)));
|
|
2401
|
+
}
|
|
2402
|
+
leadTimeGetMulti(r) {
|
|
2403
|
+
const request = (r.toApiJson) ? r : new LeadTimeGetMultiRequest(r);
|
|
2404
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/LeadTimeGetMulti", request.toApiJson(), this.apiOptions())
|
|
2405
|
+
.pipe(map(resp => LeadTimeGetMultiResponse.fromProto(resp)));
|
|
2406
|
+
}
|
|
2407
|
+
leadTimeList(r) {
|
|
2408
|
+
const request = (r.toApiJson) ? r : new LeadTimeListRequest(r);
|
|
2409
|
+
return this.http.post(this._host + "/missioncontrol.v2.AppMetrics/LeadTimeList", request.toApiJson(), this.apiOptions())
|
|
2410
|
+
.pipe(map(resp => LeadTimeListResponse.fromProto(resp)));
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: AppMetricsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2414
|
+
AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: AppMetricsApiService, providedIn: 'root' });
|
|
2415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: AppMetricsApiService, decorators: [{
|
|
2416
|
+
type: Injectable,
|
|
2417
|
+
args: [{ providedIn: 'root' }]
|
|
2418
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2419
|
+
|
|
2420
|
+
// *********************************
|
|
2421
|
+
class MissionControlApiService {
|
|
2422
|
+
constructor(http, hostService) {
|
|
2423
|
+
this.http = http;
|
|
2424
|
+
this.hostService = hostService;
|
|
2425
|
+
this._host = this.hostService.hostWithScheme;
|
|
2426
|
+
}
|
|
2427
|
+
apiOptions() {
|
|
2428
|
+
return {
|
|
2429
|
+
headers: new HttpHeaders({
|
|
2430
|
+
'Content-Type': 'application/json'
|
|
2431
|
+
}),
|
|
2432
|
+
withCredentials: true
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
createApplication(r) {
|
|
2436
|
+
const request = (r.toApiJson) ? r : new CreateApplicationRequest(r);
|
|
2437
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/CreateApplication", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2438
|
+
}
|
|
2439
|
+
listApplications(r) {
|
|
2440
|
+
const request = (r.toApiJson) ? r : new ListApplicationsRequest(r);
|
|
2441
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListApplications", request.toApiJson(), this.apiOptions())
|
|
2442
|
+
.pipe(map(resp => ListApplicationsResponse.fromProto(resp)));
|
|
2443
|
+
}
|
|
2444
|
+
updateApplication(r) {
|
|
2445
|
+
const request = (r.toApiJson) ? r : new UpdateApplicationRequest(r);
|
|
2446
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateApplication", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2447
|
+
}
|
|
2448
|
+
deleteApplication(r) {
|
|
2449
|
+
const request = (r.toApiJson) ? r : new DeleteApplicationRequest(r);
|
|
2450
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/DeleteApplication", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2451
|
+
}
|
|
2452
|
+
createDeployment(r) {
|
|
2453
|
+
const request = (r.toApiJson) ? r : new CreateDeploymentRequest(r);
|
|
2454
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/CreateDeployment", request.toApiJson(), this.apiOptions())
|
|
2455
|
+
.pipe(map(resp => CreateDeploymentResponse.fromProto(resp)));
|
|
2456
|
+
}
|
|
2457
|
+
listDeployments(r) {
|
|
2458
|
+
const request = (r.toApiJson) ? r : new ListDeploymentsRequest(r);
|
|
2459
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeployments", request.toApiJson(), this.apiOptions())
|
|
2460
|
+
.pipe(map(resp => ListDeploymentsResponse.fromProto(resp)));
|
|
2461
|
+
}
|
|
2462
|
+
updateDeployment(r) {
|
|
2463
|
+
const request = (r.toApiJson) ? r : new UpdateDeploymentRequest(r);
|
|
2464
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateDeployment", request.toApiJson(), this.apiOptions())
|
|
2465
|
+
.pipe(map(resp => UpdateDeploymentResponse.fromProto(resp)));
|
|
2466
|
+
}
|
|
2467
|
+
createDelivery(r) {
|
|
2468
|
+
const request = (r.toApiJson) ? r : new CreateDeliveryRequest(r);
|
|
2469
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/CreateDelivery", request.toApiJson(), this.apiOptions())
|
|
2470
|
+
.pipe(map(resp => CreateDeliveryResponse.fromProto(resp)));
|
|
2471
|
+
}
|
|
2472
|
+
listDeliveries(r) {
|
|
2473
|
+
const request = (r.toApiJson) ? r : new ListDeliveriesRequest(r);
|
|
2474
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeliveries", request.toApiJson(), this.apiOptions())
|
|
2475
|
+
.pipe(map(resp => ListDeliveriesResponse.fromProto(resp)));
|
|
2476
|
+
}
|
|
2477
|
+
listDeliveriesByUser(r) {
|
|
2478
|
+
const request = (r.toApiJson) ? r : new ListDeliveriesByUserRequest(r);
|
|
2479
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeliveriesByUser", request.toApiJson(), this.apiOptions())
|
|
2480
|
+
.pipe(map(resp => ListDeliveriesResponse.fromProto(resp)));
|
|
2481
|
+
}
|
|
2482
|
+
updateDelivery(r) {
|
|
2483
|
+
const request = (r.toApiJson) ? r : new UpdateDeliveryRequest(r);
|
|
2484
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateDelivery", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2485
|
+
}
|
|
2486
|
+
deleteDelivery(r) {
|
|
2487
|
+
const request = (r.toApiJson) ? r : new DeleteDeliveryRequest(r);
|
|
2488
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/DeleteDelivery", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2489
|
+
}
|
|
2490
|
+
listEvents(r) {
|
|
2491
|
+
const request = (r.toApiJson) ? r : new ListEventsRequest(r);
|
|
2492
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListEvents", request.toApiJson(), this.apiOptions())
|
|
2493
|
+
.pipe(map(resp => ListEventsResponse.fromProto(resp)));
|
|
2494
|
+
}
|
|
2495
|
+
updateUserSettings(r) {
|
|
2496
|
+
const request = (r.toApiJson) ? r : new UpdateUserSettingsRequest(r);
|
|
2497
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateUserSettings", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2498
|
+
}
|
|
2499
|
+
getUserSettings(r) {
|
|
2500
|
+
const request = (r.toApiJson) ? r : new GetUserSettingsRequest(r);
|
|
2501
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetUserSettings", request.toApiJson(), this.apiOptions())
|
|
2502
|
+
.pipe(map(resp => GetUserSettingsResponse.fromProto(resp)));
|
|
2503
|
+
}
|
|
2504
|
+
sendBuildNotification(r) {
|
|
2505
|
+
const request = (r.toApiJson) ? r : new SendBuildNotificationRequest(r);
|
|
2506
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/SendBuildNotification", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MissionControlApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2510
|
+
MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
|
|
2511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MissionControlApiService, decorators: [{
|
|
2512
|
+
type: Injectable,
|
|
2513
|
+
args: [{ providedIn: 'root' }]
|
|
2514
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2515
|
+
|
|
2516
|
+
// *********************************
|
|
2517
|
+
class ServiceLevelsApiService {
|
|
2518
|
+
constructor(http, hostService) {
|
|
2519
|
+
this.http = http;
|
|
2520
|
+
this.hostService = hostService;
|
|
2521
|
+
this._host = this.hostService.hostWithScheme;
|
|
2522
|
+
}
|
|
2523
|
+
apiOptions() {
|
|
2524
|
+
return {
|
|
2525
|
+
headers: new HttpHeaders({
|
|
2526
|
+
'Content-Type': 'application/json'
|
|
2527
|
+
}),
|
|
2528
|
+
withCredentials: true
|
|
2529
|
+
};
|
|
2530
|
+
}
|
|
2531
|
+
get(r) {
|
|
2532
|
+
const request = (r.toApiJson) ? r : new GetServiceLevelsRequest(r);
|
|
2533
|
+
return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Get", request.toApiJson(), this.apiOptions())
|
|
2534
|
+
.pipe(map(resp => ServiceLevelsResponse.fromProto(resp)));
|
|
2535
|
+
}
|
|
2536
|
+
query(r) {
|
|
2537
|
+
const request = (r.toApiJson) ? r : new QueryServiceLevelsRequest(r);
|
|
2538
|
+
return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Query", request.toApiJson(), this.apiOptions())
|
|
2539
|
+
.pipe(map(resp => ServiceLevelsResponse.fromProto(resp)));
|
|
2540
|
+
}
|
|
2541
|
+
update(r) {
|
|
2542
|
+
const request = (r.toApiJson) ? r : new ServiceLevel(r);
|
|
2543
|
+
return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ServiceLevelsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2547
|
+
ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ServiceLevelsApiService, providedIn: 'root' });
|
|
2548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ServiceLevelsApiService, decorators: [{
|
|
2549
|
+
type: Injectable,
|
|
2550
|
+
args: [{ providedIn: 'root' }]
|
|
2551
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2552
|
+
|
|
2553
|
+
// *********************************
|
|
2554
|
+
class UserApiService {
|
|
2555
|
+
constructor(http, hostService) {
|
|
2556
|
+
this.http = http;
|
|
2557
|
+
this.hostService = hostService;
|
|
2558
|
+
this._host = this.hostService.hostWithScheme;
|
|
2559
|
+
}
|
|
2560
|
+
apiOptions() {
|
|
2561
|
+
return {
|
|
2562
|
+
headers: new HttpHeaders({
|
|
2563
|
+
'Content-Type': 'application/json'
|
|
2564
|
+
}),
|
|
2565
|
+
withCredentials: true
|
|
2566
|
+
};
|
|
2567
|
+
}
|
|
2568
|
+
updateUserSettings(r) {
|
|
2569
|
+
const request = (r.toApiJson) ? r : new UpdateUserSettingsRequestV2(r);
|
|
2570
|
+
return this.http.post(this._host + "/missioncontrol.v2.User/UpdateUserSettings", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2571
|
+
}
|
|
2572
|
+
getUserSettings(r) {
|
|
2573
|
+
const request = (r.toApiJson) ? r : new GetUserSettingsRequestV2(r);
|
|
2574
|
+
return this.http.post(this._host + "/missioncontrol.v2.User/GetUserSettings", request.toApiJson(), this.apiOptions())
|
|
2575
|
+
.pipe(map(resp => GetUserSettingsResponseV2.fromProto(resp)));
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: UserApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2579
|
+
UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: UserApiService, providedIn: 'root' });
|
|
2580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: UserApiService, decorators: [{
|
|
2581
|
+
type: Injectable,
|
|
2582
|
+
args: [{ providedIn: 'root' }]
|
|
2583
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2584
|
+
|
|
2585
|
+
// *********************************
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* Generated bundle index. Do not edit.
|
|
2589
|
+
*/
|
|
2590
|
+
|
|
2591
|
+
export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, GetServiceLevelsRequest, GetUserSettingsRequest, GetUserSettingsRequestV2, GetUserSettingsResponse, GetUserSettingsResponseV2, GitCommitDetails, GithubCommitUser, K8SConfig, KubernetesController, LeadTime, LeadTimeGetMultiRequest, LeadTimeGetMultiResponse, LeadTimeListRequest, LeadTimeListResponse, LeadTimeSummary, ListApplicationsRequest, ListApplicationsResponse, ListDeliveriesByUserRequest, ListDeliveriesRequest, ListDeliveriesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListEventsRequest, ListEventsResponse, MTTRData, MTTRGetMultiRequest, MTTRGetMultiResponse, MissionControlApiService, PagedRequestOptions, PagedResponseMetadata, QueryServiceLevelsRequest, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2 };
|
|
2592
|
+
//# sourceMappingURL=vendasta-mission-control.mjs.map
|