@alicloud/appstream-center20210901 1.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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +1025 -0
- package/dist/client.js +2006 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +2501 -0
package/dist/client.js
ADDED
|
@@ -0,0 +1,2006 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
// This file is auto-generated, don't edit it
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
18
|
+
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
19
|
+
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
|
+
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
|
+
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class ApproveOtaTaskRequest extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
29
|
+
bizRegionId: 'BizRegionId',
|
|
30
|
+
otaType: 'OtaType',
|
|
31
|
+
startTime: 'StartTime',
|
|
32
|
+
taskId: 'TaskId',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static types() {
|
|
36
|
+
return {
|
|
37
|
+
appInstanceGroupId: 'string',
|
|
38
|
+
bizRegionId: 'string',
|
|
39
|
+
otaType: 'string',
|
|
40
|
+
startTime: 'string',
|
|
41
|
+
taskId: 'string',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ApproveOtaTaskRequest = ApproveOtaTaskRequest;
|
|
46
|
+
class ApproveOtaTaskResponseBody extends $tea.Model {
|
|
47
|
+
constructor(map) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
static names() {
|
|
51
|
+
return {
|
|
52
|
+
code: 'Code',
|
|
53
|
+
message: 'Message',
|
|
54
|
+
requestId: 'RequestId',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static types() {
|
|
58
|
+
return {
|
|
59
|
+
code: 'string',
|
|
60
|
+
message: 'string',
|
|
61
|
+
requestId: 'string',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ApproveOtaTaskResponseBody = ApproveOtaTaskResponseBody;
|
|
66
|
+
class ApproveOtaTaskResponse extends $tea.Model {
|
|
67
|
+
constructor(map) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
static names() {
|
|
71
|
+
return {
|
|
72
|
+
headers: 'headers',
|
|
73
|
+
statusCode: 'statusCode',
|
|
74
|
+
body: 'body',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static types() {
|
|
78
|
+
return {
|
|
79
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
80
|
+
statusCode: 'number',
|
|
81
|
+
body: ApproveOtaTaskResponseBody,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.ApproveOtaTaskResponse = ApproveOtaTaskResponse;
|
|
86
|
+
class AuthorizeInstanceGroupRequest extends $tea.Model {
|
|
87
|
+
constructor(map) {
|
|
88
|
+
super(map);
|
|
89
|
+
}
|
|
90
|
+
static names() {
|
|
91
|
+
return {
|
|
92
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
93
|
+
authorizeUserIds: 'AuthorizeUserIds',
|
|
94
|
+
productType: 'ProductType',
|
|
95
|
+
unAuthorizeUserIds: 'UnAuthorizeUserIds',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static types() {
|
|
99
|
+
return {
|
|
100
|
+
appInstanceGroupId: 'string',
|
|
101
|
+
authorizeUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
102
|
+
productType: 'string',
|
|
103
|
+
unAuthorizeUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.AuthorizeInstanceGroupRequest = AuthorizeInstanceGroupRequest;
|
|
108
|
+
class AuthorizeInstanceGroupResponseBody extends $tea.Model {
|
|
109
|
+
constructor(map) {
|
|
110
|
+
super(map);
|
|
111
|
+
}
|
|
112
|
+
static names() {
|
|
113
|
+
return {
|
|
114
|
+
requestId: 'RequestId',
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
static types() {
|
|
118
|
+
return {
|
|
119
|
+
requestId: 'string',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.AuthorizeInstanceGroupResponseBody = AuthorizeInstanceGroupResponseBody;
|
|
124
|
+
class AuthorizeInstanceGroupResponse extends $tea.Model {
|
|
125
|
+
constructor(map) {
|
|
126
|
+
super(map);
|
|
127
|
+
}
|
|
128
|
+
static names() {
|
|
129
|
+
return {
|
|
130
|
+
headers: 'headers',
|
|
131
|
+
statusCode: 'statusCode',
|
|
132
|
+
body: 'body',
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static types() {
|
|
136
|
+
return {
|
|
137
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
138
|
+
statusCode: 'number',
|
|
139
|
+
body: AuthorizeInstanceGroupResponseBody,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.AuthorizeInstanceGroupResponse = AuthorizeInstanceGroupResponse;
|
|
144
|
+
class CancelOtaTaskRequest extends $tea.Model {
|
|
145
|
+
constructor(map) {
|
|
146
|
+
super(map);
|
|
147
|
+
}
|
|
148
|
+
static names() {
|
|
149
|
+
return {
|
|
150
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
151
|
+
taskId: 'TaskId',
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
static types() {
|
|
155
|
+
return {
|
|
156
|
+
appInstanceGroupId: 'string',
|
|
157
|
+
taskId: 'string',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.CancelOtaTaskRequest = CancelOtaTaskRequest;
|
|
162
|
+
class CancelOtaTaskResponseBody extends $tea.Model {
|
|
163
|
+
constructor(map) {
|
|
164
|
+
super(map);
|
|
165
|
+
}
|
|
166
|
+
static names() {
|
|
167
|
+
return {
|
|
168
|
+
code: 'Code',
|
|
169
|
+
message: 'Message',
|
|
170
|
+
requestId: 'RequestId',
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
static types() {
|
|
174
|
+
return {
|
|
175
|
+
code: 'string',
|
|
176
|
+
message: 'string',
|
|
177
|
+
requestId: 'string',
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.CancelOtaTaskResponseBody = CancelOtaTaskResponseBody;
|
|
182
|
+
class CancelOtaTaskResponse extends $tea.Model {
|
|
183
|
+
constructor(map) {
|
|
184
|
+
super(map);
|
|
185
|
+
}
|
|
186
|
+
static names() {
|
|
187
|
+
return {
|
|
188
|
+
headers: 'headers',
|
|
189
|
+
statusCode: 'statusCode',
|
|
190
|
+
body: 'body',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
static types() {
|
|
194
|
+
return {
|
|
195
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
196
|
+
statusCode: 'number',
|
|
197
|
+
body: CancelOtaTaskResponseBody,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.CancelOtaTaskResponse = CancelOtaTaskResponse;
|
|
202
|
+
class CreateAppInstanceGroupRequest extends $tea.Model {
|
|
203
|
+
constructor(map) {
|
|
204
|
+
super(map);
|
|
205
|
+
}
|
|
206
|
+
static names() {
|
|
207
|
+
return {
|
|
208
|
+
appCenterImageId: 'AppCenterImageId',
|
|
209
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
210
|
+
autoPay: 'AutoPay',
|
|
211
|
+
autoRenew: 'AutoRenew',
|
|
212
|
+
bizRegionId: 'BizRegionId',
|
|
213
|
+
chargeResourceMode: 'ChargeResourceMode',
|
|
214
|
+
chargeType: 'ChargeType',
|
|
215
|
+
nodePool: 'NodePool',
|
|
216
|
+
period: 'Period',
|
|
217
|
+
periodUnit: 'PeriodUnit',
|
|
218
|
+
productType: 'ProductType',
|
|
219
|
+
promotionId: 'PromotionId',
|
|
220
|
+
sessionTimeout: 'SessionTimeout',
|
|
221
|
+
userInfo: 'UserInfo',
|
|
222
|
+
users: 'Users',
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
static types() {
|
|
226
|
+
return {
|
|
227
|
+
appCenterImageId: 'string',
|
|
228
|
+
appInstanceGroupName: 'string',
|
|
229
|
+
autoPay: 'boolean',
|
|
230
|
+
autoRenew: 'boolean',
|
|
231
|
+
bizRegionId: 'string',
|
|
232
|
+
chargeResourceMode: 'string',
|
|
233
|
+
chargeType: 'string',
|
|
234
|
+
nodePool: CreateAppInstanceGroupRequestNodePool,
|
|
235
|
+
period: 'number',
|
|
236
|
+
periodUnit: 'string',
|
|
237
|
+
productType: 'string',
|
|
238
|
+
promotionId: 'string',
|
|
239
|
+
sessionTimeout: 'number',
|
|
240
|
+
userInfo: CreateAppInstanceGroupRequestUserInfo,
|
|
241
|
+
users: { 'type': 'array', 'itemType': 'string' },
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.CreateAppInstanceGroupRequest = CreateAppInstanceGroupRequest;
|
|
246
|
+
class CreateAppInstanceGroupShrinkRequest extends $tea.Model {
|
|
247
|
+
constructor(map) {
|
|
248
|
+
super(map);
|
|
249
|
+
}
|
|
250
|
+
static names() {
|
|
251
|
+
return {
|
|
252
|
+
appCenterImageId: 'AppCenterImageId',
|
|
253
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
254
|
+
autoPay: 'AutoPay',
|
|
255
|
+
autoRenew: 'AutoRenew',
|
|
256
|
+
bizRegionId: 'BizRegionId',
|
|
257
|
+
chargeResourceMode: 'ChargeResourceMode',
|
|
258
|
+
chargeType: 'ChargeType',
|
|
259
|
+
nodePoolShrink: 'NodePool',
|
|
260
|
+
period: 'Period',
|
|
261
|
+
periodUnit: 'PeriodUnit',
|
|
262
|
+
productType: 'ProductType',
|
|
263
|
+
promotionId: 'PromotionId',
|
|
264
|
+
sessionTimeout: 'SessionTimeout',
|
|
265
|
+
userInfoShrink: 'UserInfo',
|
|
266
|
+
users: 'Users',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
static types() {
|
|
270
|
+
return {
|
|
271
|
+
appCenterImageId: 'string',
|
|
272
|
+
appInstanceGroupName: 'string',
|
|
273
|
+
autoPay: 'boolean',
|
|
274
|
+
autoRenew: 'boolean',
|
|
275
|
+
bizRegionId: 'string',
|
|
276
|
+
chargeResourceMode: 'string',
|
|
277
|
+
chargeType: 'string',
|
|
278
|
+
nodePoolShrink: 'string',
|
|
279
|
+
period: 'number',
|
|
280
|
+
periodUnit: 'string',
|
|
281
|
+
productType: 'string',
|
|
282
|
+
promotionId: 'string',
|
|
283
|
+
sessionTimeout: 'number',
|
|
284
|
+
userInfoShrink: 'string',
|
|
285
|
+
users: { 'type': 'array', 'itemType': 'string' },
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.CreateAppInstanceGroupShrinkRequest = CreateAppInstanceGroupShrinkRequest;
|
|
290
|
+
class CreateAppInstanceGroupResponseBody extends $tea.Model {
|
|
291
|
+
constructor(map) {
|
|
292
|
+
super(map);
|
|
293
|
+
}
|
|
294
|
+
static names() {
|
|
295
|
+
return {
|
|
296
|
+
appInstanceGroupModel: 'AppInstanceGroupModel',
|
|
297
|
+
requestId: 'RequestId',
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static types() {
|
|
301
|
+
return {
|
|
302
|
+
appInstanceGroupModel: CreateAppInstanceGroupResponseBodyAppInstanceGroupModel,
|
|
303
|
+
requestId: 'string',
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
exports.CreateAppInstanceGroupResponseBody = CreateAppInstanceGroupResponseBody;
|
|
308
|
+
class CreateAppInstanceGroupResponse extends $tea.Model {
|
|
309
|
+
constructor(map) {
|
|
310
|
+
super(map);
|
|
311
|
+
}
|
|
312
|
+
static names() {
|
|
313
|
+
return {
|
|
314
|
+
headers: 'headers',
|
|
315
|
+
statusCode: 'statusCode',
|
|
316
|
+
body: 'body',
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
static types() {
|
|
320
|
+
return {
|
|
321
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
322
|
+
statusCode: 'number',
|
|
323
|
+
body: CreateAppInstanceGroupResponseBody,
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
exports.CreateAppInstanceGroupResponse = CreateAppInstanceGroupResponse;
|
|
328
|
+
class GetOtaTaskByTaskIdRequest extends $tea.Model {
|
|
329
|
+
constructor(map) {
|
|
330
|
+
super(map);
|
|
331
|
+
}
|
|
332
|
+
static names() {
|
|
333
|
+
return {
|
|
334
|
+
taskId: 'TaskId',
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
static types() {
|
|
338
|
+
return {
|
|
339
|
+
taskId: 'string',
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
exports.GetOtaTaskByTaskIdRequest = GetOtaTaskByTaskIdRequest;
|
|
344
|
+
class GetOtaTaskByTaskIdResponseBody extends $tea.Model {
|
|
345
|
+
constructor(map) {
|
|
346
|
+
super(map);
|
|
347
|
+
}
|
|
348
|
+
static names() {
|
|
349
|
+
return {
|
|
350
|
+
code: 'Code',
|
|
351
|
+
message: 'Message',
|
|
352
|
+
otaVersion: 'OtaVersion',
|
|
353
|
+
releaseNote: 'ReleaseNote',
|
|
354
|
+
requestId: 'RequestId',
|
|
355
|
+
taskStartTime: 'TaskStartTime',
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
static types() {
|
|
359
|
+
return {
|
|
360
|
+
code: 'string',
|
|
361
|
+
message: 'string',
|
|
362
|
+
otaVersion: 'string',
|
|
363
|
+
releaseNote: 'string',
|
|
364
|
+
requestId: 'string',
|
|
365
|
+
taskStartTime: 'string',
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.GetOtaTaskByTaskIdResponseBody = GetOtaTaskByTaskIdResponseBody;
|
|
370
|
+
class GetOtaTaskByTaskIdResponse extends $tea.Model {
|
|
371
|
+
constructor(map) {
|
|
372
|
+
super(map);
|
|
373
|
+
}
|
|
374
|
+
static names() {
|
|
375
|
+
return {
|
|
376
|
+
headers: 'headers',
|
|
377
|
+
statusCode: 'statusCode',
|
|
378
|
+
body: 'body',
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
static types() {
|
|
382
|
+
return {
|
|
383
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
384
|
+
statusCode: 'number',
|
|
385
|
+
body: GetOtaTaskByTaskIdResponseBody,
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
exports.GetOtaTaskByTaskIdResponse = GetOtaTaskByTaskIdResponse;
|
|
390
|
+
class GetResourcePriceRequest extends $tea.Model {
|
|
391
|
+
constructor(map) {
|
|
392
|
+
super(map);
|
|
393
|
+
}
|
|
394
|
+
static names() {
|
|
395
|
+
return {
|
|
396
|
+
amount: 'Amount',
|
|
397
|
+
bizRegionId: 'BizRegionId',
|
|
398
|
+
chargeType: 'ChargeType',
|
|
399
|
+
nodeInstanceType: 'NodeInstanceType',
|
|
400
|
+
period: 'Period',
|
|
401
|
+
periodUnit: 'PeriodUnit',
|
|
402
|
+
productType: 'ProductType',
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
static types() {
|
|
406
|
+
return {
|
|
407
|
+
amount: 'number',
|
|
408
|
+
bizRegionId: 'string',
|
|
409
|
+
chargeType: 'string',
|
|
410
|
+
nodeInstanceType: 'string',
|
|
411
|
+
period: 'number',
|
|
412
|
+
periodUnit: 'string',
|
|
413
|
+
productType: 'string',
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
exports.GetResourcePriceRequest = GetResourcePriceRequest;
|
|
418
|
+
class GetResourcePriceResponseBody extends $tea.Model {
|
|
419
|
+
constructor(map) {
|
|
420
|
+
super(map);
|
|
421
|
+
}
|
|
422
|
+
static names() {
|
|
423
|
+
return {
|
|
424
|
+
code: 'Code',
|
|
425
|
+
message: 'Message',
|
|
426
|
+
priceModel: 'PriceModel',
|
|
427
|
+
requestId: 'RequestId',
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
static types() {
|
|
431
|
+
return {
|
|
432
|
+
code: 'string',
|
|
433
|
+
message: 'string',
|
|
434
|
+
priceModel: GetResourcePriceResponseBodyPriceModel,
|
|
435
|
+
requestId: 'string',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
exports.GetResourcePriceResponseBody = GetResourcePriceResponseBody;
|
|
440
|
+
class GetResourcePriceResponse extends $tea.Model {
|
|
441
|
+
constructor(map) {
|
|
442
|
+
super(map);
|
|
443
|
+
}
|
|
444
|
+
static names() {
|
|
445
|
+
return {
|
|
446
|
+
headers: 'headers',
|
|
447
|
+
statusCode: 'statusCode',
|
|
448
|
+
body: 'body',
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
static types() {
|
|
452
|
+
return {
|
|
453
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
454
|
+
statusCode: 'number',
|
|
455
|
+
body: GetResourcePriceResponseBody,
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
exports.GetResourcePriceResponse = GetResourcePriceResponse;
|
|
460
|
+
class ListAppInstanceGroupRequest extends $tea.Model {
|
|
461
|
+
constructor(map) {
|
|
462
|
+
super(map);
|
|
463
|
+
}
|
|
464
|
+
static names() {
|
|
465
|
+
return {
|
|
466
|
+
appCenterImageId: 'AppCenterImageId',
|
|
467
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
468
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
469
|
+
pageNumber: 'PageNumber',
|
|
470
|
+
pageSize: 'PageSize',
|
|
471
|
+
productType: 'ProductType',
|
|
472
|
+
regionId: 'RegionId',
|
|
473
|
+
status: 'Status',
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
static types() {
|
|
477
|
+
return {
|
|
478
|
+
appCenterImageId: 'string',
|
|
479
|
+
appInstanceGroupId: 'string',
|
|
480
|
+
appInstanceGroupName: 'string',
|
|
481
|
+
pageNumber: 'number',
|
|
482
|
+
pageSize: 'number',
|
|
483
|
+
productType: 'string',
|
|
484
|
+
regionId: 'string',
|
|
485
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
exports.ListAppInstanceGroupRequest = ListAppInstanceGroupRequest;
|
|
490
|
+
class ListAppInstanceGroupResponseBody extends $tea.Model {
|
|
491
|
+
constructor(map) {
|
|
492
|
+
super(map);
|
|
493
|
+
}
|
|
494
|
+
static names() {
|
|
495
|
+
return {
|
|
496
|
+
appInstanceGroupModels: 'AppInstanceGroupModels',
|
|
497
|
+
pageNumber: 'PageNumber',
|
|
498
|
+
pageSize: 'PageSize',
|
|
499
|
+
requestId: 'RequestId',
|
|
500
|
+
totalCount: 'TotalCount',
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
static types() {
|
|
504
|
+
return {
|
|
505
|
+
appInstanceGroupModels: { 'type': 'array', 'itemType': ListAppInstanceGroupResponseBodyAppInstanceGroupModels },
|
|
506
|
+
pageNumber: 'number',
|
|
507
|
+
pageSize: 'number',
|
|
508
|
+
requestId: 'string',
|
|
509
|
+
totalCount: 'number',
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
exports.ListAppInstanceGroupResponseBody = ListAppInstanceGroupResponseBody;
|
|
514
|
+
class ListAppInstanceGroupResponse extends $tea.Model {
|
|
515
|
+
constructor(map) {
|
|
516
|
+
super(map);
|
|
517
|
+
}
|
|
518
|
+
static names() {
|
|
519
|
+
return {
|
|
520
|
+
headers: 'headers',
|
|
521
|
+
statusCode: 'statusCode',
|
|
522
|
+
body: 'body',
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
static types() {
|
|
526
|
+
return {
|
|
527
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
528
|
+
statusCode: 'number',
|
|
529
|
+
body: ListAppInstanceGroupResponseBody,
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
exports.ListAppInstanceGroupResponse = ListAppInstanceGroupResponse;
|
|
534
|
+
class ListNodeInstanceTypeRequest extends $tea.Model {
|
|
535
|
+
constructor(map) {
|
|
536
|
+
super(map);
|
|
537
|
+
}
|
|
538
|
+
static names() {
|
|
539
|
+
return {
|
|
540
|
+
bizRegionId: 'BizRegionId',
|
|
541
|
+
language: 'Language',
|
|
542
|
+
osType: 'OsType',
|
|
543
|
+
pageNumber: 'PageNumber',
|
|
544
|
+
pageSize: 'PageSize',
|
|
545
|
+
productType: 'ProductType',
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
static types() {
|
|
549
|
+
return {
|
|
550
|
+
bizRegionId: 'string',
|
|
551
|
+
language: 'string',
|
|
552
|
+
osType: 'string',
|
|
553
|
+
pageNumber: 'number',
|
|
554
|
+
pageSize: 'number',
|
|
555
|
+
productType: 'string',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
exports.ListNodeInstanceTypeRequest = ListNodeInstanceTypeRequest;
|
|
560
|
+
class ListNodeInstanceTypeResponseBody extends $tea.Model {
|
|
561
|
+
constructor(map) {
|
|
562
|
+
super(map);
|
|
563
|
+
}
|
|
564
|
+
static names() {
|
|
565
|
+
return {
|
|
566
|
+
nodeInstanceTypeModels: 'NodeInstanceTypeModels',
|
|
567
|
+
pageNumber: 'PageNumber',
|
|
568
|
+
pageSize: 'PageSize',
|
|
569
|
+
requestId: 'RequestId',
|
|
570
|
+
totalCount: 'TotalCount',
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
static types() {
|
|
574
|
+
return {
|
|
575
|
+
nodeInstanceTypeModels: { 'type': 'array', 'itemType': ListNodeInstanceTypeResponseBodyNodeInstanceTypeModels },
|
|
576
|
+
pageNumber: 'number',
|
|
577
|
+
pageSize: 'number',
|
|
578
|
+
requestId: 'string',
|
|
579
|
+
totalCount: 'number',
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
exports.ListNodeInstanceTypeResponseBody = ListNodeInstanceTypeResponseBody;
|
|
584
|
+
class ListNodeInstanceTypeResponse extends $tea.Model {
|
|
585
|
+
constructor(map) {
|
|
586
|
+
super(map);
|
|
587
|
+
}
|
|
588
|
+
static names() {
|
|
589
|
+
return {
|
|
590
|
+
headers: 'headers',
|
|
591
|
+
statusCode: 'statusCode',
|
|
592
|
+
body: 'body',
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
static types() {
|
|
596
|
+
return {
|
|
597
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
598
|
+
statusCode: 'number',
|
|
599
|
+
body: ListNodeInstanceTypeResponseBody,
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
exports.ListNodeInstanceTypeResponse = ListNodeInstanceTypeResponse;
|
|
604
|
+
class ListOtaTaskRequest extends $tea.Model {
|
|
605
|
+
constructor(map) {
|
|
606
|
+
super(map);
|
|
607
|
+
}
|
|
608
|
+
static names() {
|
|
609
|
+
return {
|
|
610
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
611
|
+
otaType: 'OtaType',
|
|
612
|
+
pageNumber: 'PageNumber',
|
|
613
|
+
pageSize: 'PageSize',
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
static types() {
|
|
617
|
+
return {
|
|
618
|
+
appInstanceGroupId: 'string',
|
|
619
|
+
otaType: 'string',
|
|
620
|
+
pageNumber: 'number',
|
|
621
|
+
pageSize: 'number',
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
exports.ListOtaTaskRequest = ListOtaTaskRequest;
|
|
626
|
+
class ListOtaTaskResponseBody extends $tea.Model {
|
|
627
|
+
constructor(map) {
|
|
628
|
+
super(map);
|
|
629
|
+
}
|
|
630
|
+
static names() {
|
|
631
|
+
return {
|
|
632
|
+
pageNumber: 'PageNumber',
|
|
633
|
+
pageSize: 'PageSize',
|
|
634
|
+
requestId: 'RequestId',
|
|
635
|
+
taskList: 'TaskList',
|
|
636
|
+
totalCount: 'TotalCount',
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
static types() {
|
|
640
|
+
return {
|
|
641
|
+
pageNumber: 'number',
|
|
642
|
+
pageSize: 'number',
|
|
643
|
+
requestId: 'string',
|
|
644
|
+
taskList: { 'type': 'array', 'itemType': ListOtaTaskResponseBodyTaskList },
|
|
645
|
+
totalCount: 'number',
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
exports.ListOtaTaskResponseBody = ListOtaTaskResponseBody;
|
|
650
|
+
class ListOtaTaskResponse extends $tea.Model {
|
|
651
|
+
constructor(map) {
|
|
652
|
+
super(map);
|
|
653
|
+
}
|
|
654
|
+
static names() {
|
|
655
|
+
return {
|
|
656
|
+
headers: 'headers',
|
|
657
|
+
statusCode: 'statusCode',
|
|
658
|
+
body: 'body',
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
static types() {
|
|
662
|
+
return {
|
|
663
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
664
|
+
statusCode: 'number',
|
|
665
|
+
body: ListOtaTaskResponseBody,
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
exports.ListOtaTaskResponse = ListOtaTaskResponse;
|
|
670
|
+
class ListRegionsResponseBody extends $tea.Model {
|
|
671
|
+
constructor(map) {
|
|
672
|
+
super(map);
|
|
673
|
+
}
|
|
674
|
+
static names() {
|
|
675
|
+
return {
|
|
676
|
+
regionModels: 'RegionModels',
|
|
677
|
+
requestId: 'RequestId',
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
static types() {
|
|
681
|
+
return {
|
|
682
|
+
regionModels: { 'type': 'array', 'itemType': ListRegionsResponseBodyRegionModels },
|
|
683
|
+
requestId: 'string',
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
exports.ListRegionsResponseBody = ListRegionsResponseBody;
|
|
688
|
+
class ListRegionsResponse extends $tea.Model {
|
|
689
|
+
constructor(map) {
|
|
690
|
+
super(map);
|
|
691
|
+
}
|
|
692
|
+
static names() {
|
|
693
|
+
return {
|
|
694
|
+
headers: 'headers',
|
|
695
|
+
statusCode: 'statusCode',
|
|
696
|
+
body: 'body',
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
static types() {
|
|
700
|
+
return {
|
|
701
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
702
|
+
statusCode: 'number',
|
|
703
|
+
body: ListRegionsResponseBody,
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
exports.ListRegionsResponse = ListRegionsResponse;
|
|
708
|
+
class ModifyAppInstanceGroupAttributeRequest extends $tea.Model {
|
|
709
|
+
constructor(map) {
|
|
710
|
+
super(map);
|
|
711
|
+
}
|
|
712
|
+
static names() {
|
|
713
|
+
return {
|
|
714
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
715
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
716
|
+
nodePool: 'NodePool',
|
|
717
|
+
productType: 'ProductType',
|
|
718
|
+
sessionTimeout: 'SessionTimeout',
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
static types() {
|
|
722
|
+
return {
|
|
723
|
+
appInstanceGroupId: 'string',
|
|
724
|
+
appInstanceGroupName: 'string',
|
|
725
|
+
nodePool: ModifyAppInstanceGroupAttributeRequestNodePool,
|
|
726
|
+
productType: 'string',
|
|
727
|
+
sessionTimeout: 'number',
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
exports.ModifyAppInstanceGroupAttributeRequest = ModifyAppInstanceGroupAttributeRequest;
|
|
732
|
+
class ModifyAppInstanceGroupAttributeShrinkRequest extends $tea.Model {
|
|
733
|
+
constructor(map) {
|
|
734
|
+
super(map);
|
|
735
|
+
}
|
|
736
|
+
static names() {
|
|
737
|
+
return {
|
|
738
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
739
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
740
|
+
nodePoolShrink: 'NodePool',
|
|
741
|
+
productType: 'ProductType',
|
|
742
|
+
sessionTimeout: 'SessionTimeout',
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
static types() {
|
|
746
|
+
return {
|
|
747
|
+
appInstanceGroupId: 'string',
|
|
748
|
+
appInstanceGroupName: 'string',
|
|
749
|
+
nodePoolShrink: 'string',
|
|
750
|
+
productType: 'string',
|
|
751
|
+
sessionTimeout: 'number',
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
exports.ModifyAppInstanceGroupAttributeShrinkRequest = ModifyAppInstanceGroupAttributeShrinkRequest;
|
|
756
|
+
class ModifyAppInstanceGroupAttributeResponseBody extends $tea.Model {
|
|
757
|
+
constructor(map) {
|
|
758
|
+
super(map);
|
|
759
|
+
}
|
|
760
|
+
static names() {
|
|
761
|
+
return {
|
|
762
|
+
code: 'Code',
|
|
763
|
+
message: 'Message',
|
|
764
|
+
requestId: 'RequestId',
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
static types() {
|
|
768
|
+
return {
|
|
769
|
+
code: 'string',
|
|
770
|
+
message: 'string',
|
|
771
|
+
requestId: 'string',
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
exports.ModifyAppInstanceGroupAttributeResponseBody = ModifyAppInstanceGroupAttributeResponseBody;
|
|
776
|
+
class ModifyAppInstanceGroupAttributeResponse extends $tea.Model {
|
|
777
|
+
constructor(map) {
|
|
778
|
+
super(map);
|
|
779
|
+
}
|
|
780
|
+
static names() {
|
|
781
|
+
return {
|
|
782
|
+
headers: 'headers',
|
|
783
|
+
statusCode: 'statusCode',
|
|
784
|
+
body: 'body',
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
static types() {
|
|
788
|
+
return {
|
|
789
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
790
|
+
statusCode: 'number',
|
|
791
|
+
body: ModifyAppInstanceGroupAttributeResponseBody,
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
exports.ModifyAppInstanceGroupAttributeResponse = ModifyAppInstanceGroupAttributeResponse;
|
|
796
|
+
class ModifyNodePoolAttributeRequest extends $tea.Model {
|
|
797
|
+
constructor(map) {
|
|
798
|
+
super(map);
|
|
799
|
+
}
|
|
800
|
+
static names() {
|
|
801
|
+
return {
|
|
802
|
+
bizRegionId: 'BizRegionId',
|
|
803
|
+
nodeCapacity: 'NodeCapacity',
|
|
804
|
+
nodePoolStrategy: 'NodePoolStrategy',
|
|
805
|
+
poolId: 'PoolId',
|
|
806
|
+
productType: 'ProductType',
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
static types() {
|
|
810
|
+
return {
|
|
811
|
+
bizRegionId: 'string',
|
|
812
|
+
nodeCapacity: 'number',
|
|
813
|
+
nodePoolStrategy: ModifyNodePoolAttributeRequestNodePoolStrategy,
|
|
814
|
+
poolId: 'string',
|
|
815
|
+
productType: 'string',
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
exports.ModifyNodePoolAttributeRequest = ModifyNodePoolAttributeRequest;
|
|
820
|
+
class ModifyNodePoolAttributeShrinkRequest extends $tea.Model {
|
|
821
|
+
constructor(map) {
|
|
822
|
+
super(map);
|
|
823
|
+
}
|
|
824
|
+
static names() {
|
|
825
|
+
return {
|
|
826
|
+
bizRegionId: 'BizRegionId',
|
|
827
|
+
nodeCapacity: 'NodeCapacity',
|
|
828
|
+
nodePoolStrategyShrink: 'NodePoolStrategy',
|
|
829
|
+
poolId: 'PoolId',
|
|
830
|
+
productType: 'ProductType',
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
static types() {
|
|
834
|
+
return {
|
|
835
|
+
bizRegionId: 'string',
|
|
836
|
+
nodeCapacity: 'number',
|
|
837
|
+
nodePoolStrategyShrink: 'string',
|
|
838
|
+
poolId: 'string',
|
|
839
|
+
productType: 'string',
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
exports.ModifyNodePoolAttributeShrinkRequest = ModifyNodePoolAttributeShrinkRequest;
|
|
844
|
+
class ModifyNodePoolAttributeResponseBody extends $tea.Model {
|
|
845
|
+
constructor(map) {
|
|
846
|
+
super(map);
|
|
847
|
+
}
|
|
848
|
+
static names() {
|
|
849
|
+
return {
|
|
850
|
+
code: 'Code',
|
|
851
|
+
message: 'Message',
|
|
852
|
+
requestId: 'RequestId',
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static types() {
|
|
856
|
+
return {
|
|
857
|
+
code: 'string',
|
|
858
|
+
message: 'string',
|
|
859
|
+
requestId: 'string',
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
exports.ModifyNodePoolAttributeResponseBody = ModifyNodePoolAttributeResponseBody;
|
|
864
|
+
class ModifyNodePoolAttributeResponse extends $tea.Model {
|
|
865
|
+
constructor(map) {
|
|
866
|
+
super(map);
|
|
867
|
+
}
|
|
868
|
+
static names() {
|
|
869
|
+
return {
|
|
870
|
+
headers: 'headers',
|
|
871
|
+
statusCode: 'statusCode',
|
|
872
|
+
body: 'body',
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
static types() {
|
|
876
|
+
return {
|
|
877
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
878
|
+
statusCode: 'number',
|
|
879
|
+
body: ModifyNodePoolAttributeResponseBody,
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
exports.ModifyNodePoolAttributeResponse = ModifyNodePoolAttributeResponse;
|
|
884
|
+
class PageListAppInstanceGroupUserRequest extends $tea.Model {
|
|
885
|
+
constructor(map) {
|
|
886
|
+
super(map);
|
|
887
|
+
}
|
|
888
|
+
static names() {
|
|
889
|
+
return {
|
|
890
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
891
|
+
pageNumber: 'PageNumber',
|
|
892
|
+
pageSize: 'PageSize',
|
|
893
|
+
productType: 'ProductType',
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
static types() {
|
|
897
|
+
return {
|
|
898
|
+
appInstanceGroupId: 'string',
|
|
899
|
+
pageNumber: 'number',
|
|
900
|
+
pageSize: 'number',
|
|
901
|
+
productType: 'string',
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
exports.PageListAppInstanceGroupUserRequest = PageListAppInstanceGroupUserRequest;
|
|
906
|
+
class PageListAppInstanceGroupUserResponseBody extends $tea.Model {
|
|
907
|
+
constructor(map) {
|
|
908
|
+
super(map);
|
|
909
|
+
}
|
|
910
|
+
static names() {
|
|
911
|
+
return {
|
|
912
|
+
requestId: 'RequestId',
|
|
913
|
+
users: 'Users',
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
static types() {
|
|
917
|
+
return {
|
|
918
|
+
requestId: 'string',
|
|
919
|
+
users: { 'type': 'array', 'itemType': 'string' },
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
exports.PageListAppInstanceGroupUserResponseBody = PageListAppInstanceGroupUserResponseBody;
|
|
924
|
+
class PageListAppInstanceGroupUserResponse extends $tea.Model {
|
|
925
|
+
constructor(map) {
|
|
926
|
+
super(map);
|
|
927
|
+
}
|
|
928
|
+
static names() {
|
|
929
|
+
return {
|
|
930
|
+
headers: 'headers',
|
|
931
|
+
statusCode: 'statusCode',
|
|
932
|
+
body: 'body',
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
static types() {
|
|
936
|
+
return {
|
|
937
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
938
|
+
statusCode: 'number',
|
|
939
|
+
body: PageListAppInstanceGroupUserResponseBody,
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
exports.PageListAppInstanceGroupUserResponse = PageListAppInstanceGroupUserResponse;
|
|
944
|
+
class UpdateAppInstanceGroupImageRequest extends $tea.Model {
|
|
945
|
+
constructor(map) {
|
|
946
|
+
super(map);
|
|
947
|
+
}
|
|
948
|
+
static names() {
|
|
949
|
+
return {
|
|
950
|
+
appCenterImageId: 'AppCenterImageId',
|
|
951
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
952
|
+
bizRegionId: 'BizRegionId',
|
|
953
|
+
productType: 'ProductType',
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
static types() {
|
|
957
|
+
return {
|
|
958
|
+
appCenterImageId: 'string',
|
|
959
|
+
appInstanceGroupId: 'string',
|
|
960
|
+
bizRegionId: 'string',
|
|
961
|
+
productType: 'string',
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
exports.UpdateAppInstanceGroupImageRequest = UpdateAppInstanceGroupImageRequest;
|
|
966
|
+
class UpdateAppInstanceGroupImageResponseBody extends $tea.Model {
|
|
967
|
+
constructor(map) {
|
|
968
|
+
super(map);
|
|
969
|
+
}
|
|
970
|
+
static names() {
|
|
971
|
+
return {
|
|
972
|
+
code: 'Code',
|
|
973
|
+
message: 'Message',
|
|
974
|
+
requestId: 'RequestId',
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
static types() {
|
|
978
|
+
return {
|
|
979
|
+
code: 'string',
|
|
980
|
+
message: 'string',
|
|
981
|
+
requestId: 'string',
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
exports.UpdateAppInstanceGroupImageResponseBody = UpdateAppInstanceGroupImageResponseBody;
|
|
986
|
+
class UpdateAppInstanceGroupImageResponse extends $tea.Model {
|
|
987
|
+
constructor(map) {
|
|
988
|
+
super(map);
|
|
989
|
+
}
|
|
990
|
+
static names() {
|
|
991
|
+
return {
|
|
992
|
+
headers: 'headers',
|
|
993
|
+
statusCode: 'statusCode',
|
|
994
|
+
body: 'body',
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
static types() {
|
|
998
|
+
return {
|
|
999
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1000
|
+
statusCode: 'number',
|
|
1001
|
+
body: UpdateAppInstanceGroupImageResponseBody,
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
exports.UpdateAppInstanceGroupImageResponse = UpdateAppInstanceGroupImageResponse;
|
|
1006
|
+
class CreateAppInstanceGroupRequestNodePool extends $tea.Model {
|
|
1007
|
+
constructor(map) {
|
|
1008
|
+
super(map);
|
|
1009
|
+
}
|
|
1010
|
+
static names() {
|
|
1011
|
+
return {
|
|
1012
|
+
maxScalingAmount: 'MaxScalingAmount',
|
|
1013
|
+
nodeAmount: 'NodeAmount',
|
|
1014
|
+
nodeCapacity: 'NodeCapacity',
|
|
1015
|
+
nodeInstanceType: 'NodeInstanceType',
|
|
1016
|
+
scalingDownAfterIdleMinutes: 'ScalingDownAfterIdleMinutes',
|
|
1017
|
+
scalingStep: 'ScalingStep',
|
|
1018
|
+
scalingUsageThreshold: 'ScalingUsageThreshold',
|
|
1019
|
+
strategyType: 'StrategyType',
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
static types() {
|
|
1023
|
+
return {
|
|
1024
|
+
maxScalingAmount: 'number',
|
|
1025
|
+
nodeAmount: 'number',
|
|
1026
|
+
nodeCapacity: 'number',
|
|
1027
|
+
nodeInstanceType: 'string',
|
|
1028
|
+
scalingDownAfterIdleMinutes: 'number',
|
|
1029
|
+
scalingStep: 'number',
|
|
1030
|
+
scalingUsageThreshold: 'string',
|
|
1031
|
+
strategyType: 'string',
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
exports.CreateAppInstanceGroupRequestNodePool = CreateAppInstanceGroupRequestNodePool;
|
|
1036
|
+
class CreateAppInstanceGroupRequestUserInfo extends $tea.Model {
|
|
1037
|
+
constructor(map) {
|
|
1038
|
+
super(map);
|
|
1039
|
+
}
|
|
1040
|
+
static names() {
|
|
1041
|
+
return {
|
|
1042
|
+
type: 'Type',
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
static types() {
|
|
1046
|
+
return {
|
|
1047
|
+
type: 'string',
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
exports.CreateAppInstanceGroupRequestUserInfo = CreateAppInstanceGroupRequestUserInfo;
|
|
1052
|
+
class CreateAppInstanceGroupResponseBodyAppInstanceGroupModel extends $tea.Model {
|
|
1053
|
+
constructor(map) {
|
|
1054
|
+
super(map);
|
|
1055
|
+
}
|
|
1056
|
+
static names() {
|
|
1057
|
+
return {
|
|
1058
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
1059
|
+
nodePoolId: 'NodePoolId',
|
|
1060
|
+
orderId: 'OrderId',
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
static types() {
|
|
1064
|
+
return {
|
|
1065
|
+
appInstanceGroupId: 'string',
|
|
1066
|
+
nodePoolId: 'string',
|
|
1067
|
+
orderId: 'string',
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
exports.CreateAppInstanceGroupResponseBodyAppInstanceGroupModel = CreateAppInstanceGroupResponseBodyAppInstanceGroupModel;
|
|
1072
|
+
class GetResourcePriceResponseBodyPriceModelPricePromotions extends $tea.Model {
|
|
1073
|
+
constructor(map) {
|
|
1074
|
+
super(map);
|
|
1075
|
+
}
|
|
1076
|
+
static names() {
|
|
1077
|
+
return {
|
|
1078
|
+
optionCode: 'OptionCode',
|
|
1079
|
+
promotionDesc: 'PromotionDesc',
|
|
1080
|
+
promotionId: 'PromotionId',
|
|
1081
|
+
promotionName: 'PromotionName',
|
|
1082
|
+
selected: 'Selected',
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
static types() {
|
|
1086
|
+
return {
|
|
1087
|
+
optionCode: 'string',
|
|
1088
|
+
promotionDesc: 'string',
|
|
1089
|
+
promotionId: 'string',
|
|
1090
|
+
promotionName: 'string',
|
|
1091
|
+
selected: 'boolean',
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
exports.GetResourcePriceResponseBodyPriceModelPricePromotions = GetResourcePriceResponseBodyPriceModelPricePromotions;
|
|
1096
|
+
class GetResourcePriceResponseBodyPriceModelPrice extends $tea.Model {
|
|
1097
|
+
constructor(map) {
|
|
1098
|
+
super(map);
|
|
1099
|
+
}
|
|
1100
|
+
static names() {
|
|
1101
|
+
return {
|
|
1102
|
+
currency: 'Currency',
|
|
1103
|
+
discountPrice: 'DiscountPrice',
|
|
1104
|
+
originalPrice: 'OriginalPrice',
|
|
1105
|
+
promotions: 'Promotions',
|
|
1106
|
+
tradePrice: 'TradePrice',
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
static types() {
|
|
1110
|
+
return {
|
|
1111
|
+
currency: 'string',
|
|
1112
|
+
discountPrice: 'string',
|
|
1113
|
+
originalPrice: 'string',
|
|
1114
|
+
promotions: { 'type': 'array', 'itemType': GetResourcePriceResponseBodyPriceModelPricePromotions },
|
|
1115
|
+
tradePrice: 'string',
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
exports.GetResourcePriceResponseBodyPriceModelPrice = GetResourcePriceResponseBodyPriceModelPrice;
|
|
1120
|
+
class GetResourcePriceResponseBodyPriceModelRules extends $tea.Model {
|
|
1121
|
+
constructor(map) {
|
|
1122
|
+
super(map);
|
|
1123
|
+
}
|
|
1124
|
+
static names() {
|
|
1125
|
+
return {
|
|
1126
|
+
description: 'Description',
|
|
1127
|
+
ruleId: 'RuleId',
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
static types() {
|
|
1131
|
+
return {
|
|
1132
|
+
description: 'string',
|
|
1133
|
+
ruleId: 'number',
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
exports.GetResourcePriceResponseBodyPriceModelRules = GetResourcePriceResponseBodyPriceModelRules;
|
|
1138
|
+
class GetResourcePriceResponseBodyPriceModel extends $tea.Model {
|
|
1139
|
+
constructor(map) {
|
|
1140
|
+
super(map);
|
|
1141
|
+
}
|
|
1142
|
+
static names() {
|
|
1143
|
+
return {
|
|
1144
|
+
price: 'Price',
|
|
1145
|
+
rules: 'Rules',
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
static types() {
|
|
1149
|
+
return {
|
|
1150
|
+
price: GetResourcePriceResponseBodyPriceModelPrice,
|
|
1151
|
+
rules: { 'type': 'array', 'itemType': GetResourcePriceResponseBodyPriceModelRules },
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
exports.GetResourcePriceResponseBodyPriceModel = GetResourcePriceResponseBodyPriceModel;
|
|
1156
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModelsApps extends $tea.Model {
|
|
1157
|
+
constructor(map) {
|
|
1158
|
+
super(map);
|
|
1159
|
+
}
|
|
1160
|
+
static names() {
|
|
1161
|
+
return {
|
|
1162
|
+
appId: 'AppId',
|
|
1163
|
+
appName: 'AppName',
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
static types() {
|
|
1167
|
+
return {
|
|
1168
|
+
appId: 'string',
|
|
1169
|
+
appName: 'string',
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModelsApps = ListAppInstanceGroupResponseBodyAppInstanceGroupModelsApps;
|
|
1174
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedulesTimerPeriods extends $tea.Model {
|
|
1175
|
+
constructor(map) {
|
|
1176
|
+
super(map);
|
|
1177
|
+
}
|
|
1178
|
+
static names() {
|
|
1179
|
+
return {
|
|
1180
|
+
amount: 'Amount',
|
|
1181
|
+
endTime: 'EndTime',
|
|
1182
|
+
startTime: 'StartTime',
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
static types() {
|
|
1186
|
+
return {
|
|
1187
|
+
amount: 'number',
|
|
1188
|
+
endTime: 'string',
|
|
1189
|
+
startTime: 'string',
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedulesTimerPeriods = ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedulesTimerPeriods;
|
|
1194
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedules extends $tea.Model {
|
|
1195
|
+
constructor(map) {
|
|
1196
|
+
super(map);
|
|
1197
|
+
}
|
|
1198
|
+
static names() {
|
|
1199
|
+
return {
|
|
1200
|
+
recurrenceType: 'RecurrenceType',
|
|
1201
|
+
recurrenceValues: 'RecurrenceValues',
|
|
1202
|
+
timerPeriods: 'TimerPeriods',
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
static types() {
|
|
1206
|
+
return {
|
|
1207
|
+
recurrenceType: 'string',
|
|
1208
|
+
recurrenceValues: { 'type': 'array', 'itemType': 'number' },
|
|
1209
|
+
timerPeriods: { 'type': 'array', 'itemType': ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedulesTimerPeriods },
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedules = ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedules;
|
|
1214
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePool extends $tea.Model {
|
|
1215
|
+
constructor(map) {
|
|
1216
|
+
super(map);
|
|
1217
|
+
}
|
|
1218
|
+
static names() {
|
|
1219
|
+
return {
|
|
1220
|
+
amount: 'Amount',
|
|
1221
|
+
maxScalingAmount: 'MaxScalingAmount',
|
|
1222
|
+
nodeAmount: 'NodeAmount',
|
|
1223
|
+
nodeCapacity: 'NodeCapacity',
|
|
1224
|
+
nodeInstanceType: 'NodeInstanceType',
|
|
1225
|
+
nodePoolId: 'NodePoolId',
|
|
1226
|
+
nodeUsed: 'NodeUsed',
|
|
1227
|
+
recurrenceSchedules: 'RecurrenceSchedules',
|
|
1228
|
+
scalingDownAfterIdleMinutes: 'ScalingDownAfterIdleMinutes',
|
|
1229
|
+
scalingNodeAmount: 'ScalingNodeAmount',
|
|
1230
|
+
scalingNodeUsed: 'ScalingNodeUsed',
|
|
1231
|
+
scalingStep: 'ScalingStep',
|
|
1232
|
+
scalingUsageThreshold: 'ScalingUsageThreshold',
|
|
1233
|
+
strategyDisableDate: 'StrategyDisableDate',
|
|
1234
|
+
strategyEnableDate: 'StrategyEnableDate',
|
|
1235
|
+
strategyType: 'StrategyType',
|
|
1236
|
+
warmUp: 'WarmUp',
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
static types() {
|
|
1240
|
+
return {
|
|
1241
|
+
amount: 'number',
|
|
1242
|
+
maxScalingAmount: 'number',
|
|
1243
|
+
nodeAmount: 'number',
|
|
1244
|
+
nodeCapacity: 'number',
|
|
1245
|
+
nodeInstanceType: 'string',
|
|
1246
|
+
nodePoolId: 'string',
|
|
1247
|
+
nodeUsed: 'number',
|
|
1248
|
+
recurrenceSchedules: { 'type': 'array', 'itemType': ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePoolRecurrenceSchedules },
|
|
1249
|
+
scalingDownAfterIdleMinutes: 'number',
|
|
1250
|
+
scalingNodeAmount: 'number',
|
|
1251
|
+
scalingNodeUsed: 'number',
|
|
1252
|
+
scalingStep: 'number',
|
|
1253
|
+
scalingUsageThreshold: 'string',
|
|
1254
|
+
strategyDisableDate: 'string',
|
|
1255
|
+
strategyEnableDate: 'string',
|
|
1256
|
+
strategyType: 'string',
|
|
1257
|
+
warmUp: 'boolean',
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePool = ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePool;
|
|
1262
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModelsOtaInfo extends $tea.Model {
|
|
1263
|
+
constructor(map) {
|
|
1264
|
+
super(map);
|
|
1265
|
+
}
|
|
1266
|
+
static names() {
|
|
1267
|
+
return {
|
|
1268
|
+
newOtaVersion: 'NewOtaVersion',
|
|
1269
|
+
otaVersion: 'OtaVersion',
|
|
1270
|
+
taskId: 'TaskId',
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
static types() {
|
|
1274
|
+
return {
|
|
1275
|
+
newOtaVersion: 'string',
|
|
1276
|
+
otaVersion: 'string',
|
|
1277
|
+
taskId: 'string',
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModelsOtaInfo = ListAppInstanceGroupResponseBodyAppInstanceGroupModelsOtaInfo;
|
|
1282
|
+
class ListAppInstanceGroupResponseBodyAppInstanceGroupModels extends $tea.Model {
|
|
1283
|
+
constructor(map) {
|
|
1284
|
+
super(map);
|
|
1285
|
+
}
|
|
1286
|
+
static names() {
|
|
1287
|
+
return {
|
|
1288
|
+
amount: 'Amount',
|
|
1289
|
+
appCenterImageId: 'AppCenterImageId',
|
|
1290
|
+
appInstanceGroupId: 'AppInstanceGroupId',
|
|
1291
|
+
appInstanceGroupName: 'AppInstanceGroupName',
|
|
1292
|
+
appInstanceType: 'AppInstanceType',
|
|
1293
|
+
apps: 'Apps',
|
|
1294
|
+
chargeType: 'ChargeType',
|
|
1295
|
+
expiredTime: 'ExpiredTime',
|
|
1296
|
+
gmtCreate: 'GmtCreate',
|
|
1297
|
+
nodePool: 'NodePool',
|
|
1298
|
+
osType: 'OsType',
|
|
1299
|
+
otaInfo: 'OtaInfo',
|
|
1300
|
+
productType: 'ProductType',
|
|
1301
|
+
regionId: 'RegionId',
|
|
1302
|
+
sessionTimeout: 'SessionTimeout',
|
|
1303
|
+
specId: 'SpecId',
|
|
1304
|
+
status: 'Status',
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
static types() {
|
|
1308
|
+
return {
|
|
1309
|
+
amount: 'number',
|
|
1310
|
+
appCenterImageId: 'string',
|
|
1311
|
+
appInstanceGroupId: 'string',
|
|
1312
|
+
appInstanceGroupName: 'string',
|
|
1313
|
+
appInstanceType: 'string',
|
|
1314
|
+
apps: { 'type': 'array', 'itemType': ListAppInstanceGroupResponseBodyAppInstanceGroupModelsApps },
|
|
1315
|
+
chargeType: 'string',
|
|
1316
|
+
expiredTime: 'string',
|
|
1317
|
+
gmtCreate: 'string',
|
|
1318
|
+
nodePool: { 'type': 'array', 'itemType': ListAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePool },
|
|
1319
|
+
osType: 'string',
|
|
1320
|
+
otaInfo: ListAppInstanceGroupResponseBodyAppInstanceGroupModelsOtaInfo,
|
|
1321
|
+
productType: 'string',
|
|
1322
|
+
regionId: 'string',
|
|
1323
|
+
sessionTimeout: 'string',
|
|
1324
|
+
specId: 'string',
|
|
1325
|
+
status: 'string',
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
exports.ListAppInstanceGroupResponseBodyAppInstanceGroupModels = ListAppInstanceGroupResponseBodyAppInstanceGroupModels;
|
|
1330
|
+
class ListNodeInstanceTypeResponseBodyNodeInstanceTypeModels extends $tea.Model {
|
|
1331
|
+
constructor(map) {
|
|
1332
|
+
super(map);
|
|
1333
|
+
}
|
|
1334
|
+
static names() {
|
|
1335
|
+
return {
|
|
1336
|
+
cpu: 'Cpu',
|
|
1337
|
+
gpu: 'Gpu',
|
|
1338
|
+
gpuMemory: 'GpuMemory',
|
|
1339
|
+
maxCapacity: 'MaxCapacity',
|
|
1340
|
+
memory: 'Memory',
|
|
1341
|
+
nodeInstanceType: 'NodeInstanceType',
|
|
1342
|
+
nodeInstanceTypeFamily: 'NodeInstanceTypeFamily',
|
|
1343
|
+
nodeTypeName: 'NodeTypeName',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
static types() {
|
|
1347
|
+
return {
|
|
1348
|
+
cpu: 'string',
|
|
1349
|
+
gpu: 'string',
|
|
1350
|
+
gpuMemory: 'number',
|
|
1351
|
+
maxCapacity: 'number',
|
|
1352
|
+
memory: 'number',
|
|
1353
|
+
nodeInstanceType: 'string',
|
|
1354
|
+
nodeInstanceTypeFamily: 'string',
|
|
1355
|
+
nodeTypeName: 'string',
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
exports.ListNodeInstanceTypeResponseBodyNodeInstanceTypeModels = ListNodeInstanceTypeResponseBodyNodeInstanceTypeModels;
|
|
1360
|
+
class ListOtaTaskResponseBodyTaskList extends $tea.Model {
|
|
1361
|
+
constructor(map) {
|
|
1362
|
+
super(map);
|
|
1363
|
+
}
|
|
1364
|
+
static names() {
|
|
1365
|
+
return {
|
|
1366
|
+
otaVersion: 'OtaVersion',
|
|
1367
|
+
taskDisplayStatus: 'TaskDisplayStatus',
|
|
1368
|
+
taskId: 'TaskId',
|
|
1369
|
+
taskStartTime: 'TaskStartTime',
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
static types() {
|
|
1373
|
+
return {
|
|
1374
|
+
otaVersion: 'string',
|
|
1375
|
+
taskDisplayStatus: 'string',
|
|
1376
|
+
taskId: 'string',
|
|
1377
|
+
taskStartTime: 'string',
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
exports.ListOtaTaskResponseBodyTaskList = ListOtaTaskResponseBodyTaskList;
|
|
1382
|
+
class ListRegionsResponseBodyRegionModels extends $tea.Model {
|
|
1383
|
+
constructor(map) {
|
|
1384
|
+
super(map);
|
|
1385
|
+
}
|
|
1386
|
+
static names() {
|
|
1387
|
+
return {
|
|
1388
|
+
regionId: 'regionId',
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
static types() {
|
|
1392
|
+
return {
|
|
1393
|
+
regionId: 'string',
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
exports.ListRegionsResponseBodyRegionModels = ListRegionsResponseBodyRegionModels;
|
|
1398
|
+
class ModifyAppInstanceGroupAttributeRequestNodePool extends $tea.Model {
|
|
1399
|
+
constructor(map) {
|
|
1400
|
+
super(map);
|
|
1401
|
+
}
|
|
1402
|
+
static names() {
|
|
1403
|
+
return {
|
|
1404
|
+
nodeCapacity: 'NodeCapacity',
|
|
1405
|
+
nodePoolId: 'NodePoolId',
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
static types() {
|
|
1409
|
+
return {
|
|
1410
|
+
nodeCapacity: 'number',
|
|
1411
|
+
nodePoolId: 'string',
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
exports.ModifyAppInstanceGroupAttributeRequestNodePool = ModifyAppInstanceGroupAttributeRequestNodePool;
|
|
1416
|
+
class ModifyNodePoolAttributeRequestNodePoolStrategy extends $tea.Model {
|
|
1417
|
+
constructor(map) {
|
|
1418
|
+
super(map);
|
|
1419
|
+
}
|
|
1420
|
+
static names() {
|
|
1421
|
+
return {
|
|
1422
|
+
maxScalingAmount: 'MaxScalingAmount',
|
|
1423
|
+
scalingDownAfterIdleMinutes: 'ScalingDownAfterIdleMinutes',
|
|
1424
|
+
scalingStep: 'ScalingStep',
|
|
1425
|
+
scalingUsageThreshold: 'ScalingUsageThreshold',
|
|
1426
|
+
strategyType: 'StrategyType',
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
static types() {
|
|
1430
|
+
return {
|
|
1431
|
+
maxScalingAmount: 'number',
|
|
1432
|
+
scalingDownAfterIdleMinutes: 'number',
|
|
1433
|
+
scalingStep: 'number',
|
|
1434
|
+
scalingUsageThreshold: 'string',
|
|
1435
|
+
strategyType: 'string',
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
exports.ModifyNodePoolAttributeRequestNodePoolStrategy = ModifyNodePoolAttributeRequestNodePoolStrategy;
|
|
1440
|
+
class Client extends openapi_client_1.default {
|
|
1441
|
+
constructor(config) {
|
|
1442
|
+
super(config);
|
|
1443
|
+
this._endpointRule = "";
|
|
1444
|
+
this.checkConfig(config);
|
|
1445
|
+
this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
1446
|
+
}
|
|
1447
|
+
getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
|
|
1448
|
+
if (!tea_util_1.default.empty(endpoint)) {
|
|
1449
|
+
return endpoint;
|
|
1450
|
+
}
|
|
1451
|
+
if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
|
|
1452
|
+
return endpointMap[regionId];
|
|
1453
|
+
}
|
|
1454
|
+
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
1455
|
+
}
|
|
1456
|
+
async approveOtaTaskWithOptions(request, runtime) {
|
|
1457
|
+
tea_util_1.default.validateModel(request);
|
|
1458
|
+
let body = {};
|
|
1459
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1460
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1461
|
+
}
|
|
1462
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1463
|
+
body["BizRegionId"] = request.bizRegionId;
|
|
1464
|
+
}
|
|
1465
|
+
if (!tea_util_1.default.isUnset(request.otaType)) {
|
|
1466
|
+
body["OtaType"] = request.otaType;
|
|
1467
|
+
}
|
|
1468
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
1469
|
+
body["StartTime"] = request.startTime;
|
|
1470
|
+
}
|
|
1471
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
1472
|
+
body["TaskId"] = request.taskId;
|
|
1473
|
+
}
|
|
1474
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1475
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1476
|
+
});
|
|
1477
|
+
let params = new $OpenApi.Params({
|
|
1478
|
+
action: "ApproveOtaTask",
|
|
1479
|
+
version: "2021-09-01",
|
|
1480
|
+
protocol: "HTTPS",
|
|
1481
|
+
pathname: "/",
|
|
1482
|
+
method: "POST",
|
|
1483
|
+
authType: "AK",
|
|
1484
|
+
style: "RPC",
|
|
1485
|
+
reqBodyType: "formData",
|
|
1486
|
+
bodyType: "json",
|
|
1487
|
+
});
|
|
1488
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ApproveOtaTaskResponse({}));
|
|
1489
|
+
}
|
|
1490
|
+
async approveOtaTask(request) {
|
|
1491
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1492
|
+
return await this.approveOtaTaskWithOptions(request, runtime);
|
|
1493
|
+
}
|
|
1494
|
+
async authorizeInstanceGroupWithOptions(request, runtime) {
|
|
1495
|
+
tea_util_1.default.validateModel(request);
|
|
1496
|
+
let body = {};
|
|
1497
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1498
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1499
|
+
}
|
|
1500
|
+
if (!tea_util_1.default.isUnset(request.authorizeUserIds)) {
|
|
1501
|
+
body["AuthorizeUserIds"] = request.authorizeUserIds;
|
|
1502
|
+
}
|
|
1503
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1504
|
+
body["ProductType"] = request.productType;
|
|
1505
|
+
}
|
|
1506
|
+
if (!tea_util_1.default.isUnset(request.unAuthorizeUserIds)) {
|
|
1507
|
+
body["UnAuthorizeUserIds"] = request.unAuthorizeUserIds;
|
|
1508
|
+
}
|
|
1509
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1510
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1511
|
+
});
|
|
1512
|
+
let params = new $OpenApi.Params({
|
|
1513
|
+
action: "AuthorizeInstanceGroup",
|
|
1514
|
+
version: "2021-09-01",
|
|
1515
|
+
protocol: "HTTPS",
|
|
1516
|
+
pathname: "/",
|
|
1517
|
+
method: "POST",
|
|
1518
|
+
authType: "AK",
|
|
1519
|
+
style: "RPC",
|
|
1520
|
+
reqBodyType: "formData",
|
|
1521
|
+
bodyType: "json",
|
|
1522
|
+
});
|
|
1523
|
+
return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeInstanceGroupResponse({}));
|
|
1524
|
+
}
|
|
1525
|
+
async authorizeInstanceGroup(request) {
|
|
1526
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1527
|
+
return await this.authorizeInstanceGroupWithOptions(request, runtime);
|
|
1528
|
+
}
|
|
1529
|
+
async cancelOtaTaskWithOptions(request, runtime) {
|
|
1530
|
+
tea_util_1.default.validateModel(request);
|
|
1531
|
+
let body = {};
|
|
1532
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1533
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1534
|
+
}
|
|
1535
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
1536
|
+
body["TaskId"] = request.taskId;
|
|
1537
|
+
}
|
|
1538
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1539
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1540
|
+
});
|
|
1541
|
+
let params = new $OpenApi.Params({
|
|
1542
|
+
action: "CancelOtaTask",
|
|
1543
|
+
version: "2021-09-01",
|
|
1544
|
+
protocol: "HTTPS",
|
|
1545
|
+
pathname: "/",
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
authType: "AK",
|
|
1548
|
+
style: "RPC",
|
|
1549
|
+
reqBodyType: "formData",
|
|
1550
|
+
bodyType: "json",
|
|
1551
|
+
});
|
|
1552
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelOtaTaskResponse({}));
|
|
1553
|
+
}
|
|
1554
|
+
async cancelOtaTask(request) {
|
|
1555
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1556
|
+
return await this.cancelOtaTaskWithOptions(request, runtime);
|
|
1557
|
+
}
|
|
1558
|
+
async createAppInstanceGroupWithOptions(tmpReq, runtime) {
|
|
1559
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
1560
|
+
let request = new CreateAppInstanceGroupShrinkRequest({});
|
|
1561
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
1562
|
+
if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.nodePool))) {
|
|
1563
|
+
request.nodePoolShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.nodePool), "NodePool", "json");
|
|
1564
|
+
}
|
|
1565
|
+
if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
|
|
1566
|
+
request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
|
|
1567
|
+
}
|
|
1568
|
+
let body = {};
|
|
1569
|
+
if (!tea_util_1.default.isUnset(request.appCenterImageId)) {
|
|
1570
|
+
body["AppCenterImageId"] = request.appCenterImageId;
|
|
1571
|
+
}
|
|
1572
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupName)) {
|
|
1573
|
+
body["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
1574
|
+
}
|
|
1575
|
+
if (!tea_util_1.default.isUnset(request.autoPay)) {
|
|
1576
|
+
body["AutoPay"] = request.autoPay;
|
|
1577
|
+
}
|
|
1578
|
+
if (!tea_util_1.default.isUnset(request.autoRenew)) {
|
|
1579
|
+
body["AutoRenew"] = request.autoRenew;
|
|
1580
|
+
}
|
|
1581
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1582
|
+
body["BizRegionId"] = request.bizRegionId;
|
|
1583
|
+
}
|
|
1584
|
+
if (!tea_util_1.default.isUnset(request.chargeResourceMode)) {
|
|
1585
|
+
body["ChargeResourceMode"] = request.chargeResourceMode;
|
|
1586
|
+
}
|
|
1587
|
+
if (!tea_util_1.default.isUnset(request.chargeType)) {
|
|
1588
|
+
body["ChargeType"] = request.chargeType;
|
|
1589
|
+
}
|
|
1590
|
+
if (!tea_util_1.default.isUnset(request.nodePoolShrink)) {
|
|
1591
|
+
body["NodePool"] = request.nodePoolShrink;
|
|
1592
|
+
}
|
|
1593
|
+
if (!tea_util_1.default.isUnset(request.period)) {
|
|
1594
|
+
body["Period"] = request.period;
|
|
1595
|
+
}
|
|
1596
|
+
if (!tea_util_1.default.isUnset(request.periodUnit)) {
|
|
1597
|
+
body["PeriodUnit"] = request.periodUnit;
|
|
1598
|
+
}
|
|
1599
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1600
|
+
body["ProductType"] = request.productType;
|
|
1601
|
+
}
|
|
1602
|
+
if (!tea_util_1.default.isUnset(request.promotionId)) {
|
|
1603
|
+
body["PromotionId"] = request.promotionId;
|
|
1604
|
+
}
|
|
1605
|
+
if (!tea_util_1.default.isUnset(request.sessionTimeout)) {
|
|
1606
|
+
body["SessionTimeout"] = request.sessionTimeout;
|
|
1607
|
+
}
|
|
1608
|
+
if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
|
|
1609
|
+
body["UserInfo"] = request.userInfoShrink;
|
|
1610
|
+
}
|
|
1611
|
+
if (!tea_util_1.default.isUnset(request.users)) {
|
|
1612
|
+
body["Users"] = request.users;
|
|
1613
|
+
}
|
|
1614
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1615
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1616
|
+
});
|
|
1617
|
+
let params = new $OpenApi.Params({
|
|
1618
|
+
action: "CreateAppInstanceGroup",
|
|
1619
|
+
version: "2021-09-01",
|
|
1620
|
+
protocol: "HTTPS",
|
|
1621
|
+
pathname: "/",
|
|
1622
|
+
method: "POST",
|
|
1623
|
+
authType: "AK",
|
|
1624
|
+
style: "RPC",
|
|
1625
|
+
reqBodyType: "formData",
|
|
1626
|
+
bodyType: "json",
|
|
1627
|
+
});
|
|
1628
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAppInstanceGroupResponse({}));
|
|
1629
|
+
}
|
|
1630
|
+
async createAppInstanceGroup(request) {
|
|
1631
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1632
|
+
return await this.createAppInstanceGroupWithOptions(request, runtime);
|
|
1633
|
+
}
|
|
1634
|
+
async getOtaTaskByTaskIdWithOptions(request, runtime) {
|
|
1635
|
+
tea_util_1.default.validateModel(request);
|
|
1636
|
+
let body = {};
|
|
1637
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
1638
|
+
body["TaskId"] = request.taskId;
|
|
1639
|
+
}
|
|
1640
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1641
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1642
|
+
});
|
|
1643
|
+
let params = new $OpenApi.Params({
|
|
1644
|
+
action: "GetOtaTaskByTaskId",
|
|
1645
|
+
version: "2021-09-01",
|
|
1646
|
+
protocol: "HTTPS",
|
|
1647
|
+
pathname: "/",
|
|
1648
|
+
method: "POST",
|
|
1649
|
+
authType: "AK",
|
|
1650
|
+
style: "RPC",
|
|
1651
|
+
reqBodyType: "formData",
|
|
1652
|
+
bodyType: "json",
|
|
1653
|
+
});
|
|
1654
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetOtaTaskByTaskIdResponse({}));
|
|
1655
|
+
}
|
|
1656
|
+
async getOtaTaskByTaskId(request) {
|
|
1657
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1658
|
+
return await this.getOtaTaskByTaskIdWithOptions(request, runtime);
|
|
1659
|
+
}
|
|
1660
|
+
async getResourcePriceWithOptions(request, runtime) {
|
|
1661
|
+
tea_util_1.default.validateModel(request);
|
|
1662
|
+
let query = {};
|
|
1663
|
+
if (!tea_util_1.default.isUnset(request.amount)) {
|
|
1664
|
+
query["Amount"] = request.amount;
|
|
1665
|
+
}
|
|
1666
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1667
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
1668
|
+
}
|
|
1669
|
+
if (!tea_util_1.default.isUnset(request.chargeType)) {
|
|
1670
|
+
query["ChargeType"] = request.chargeType;
|
|
1671
|
+
}
|
|
1672
|
+
if (!tea_util_1.default.isUnset(request.nodeInstanceType)) {
|
|
1673
|
+
query["NodeInstanceType"] = request.nodeInstanceType;
|
|
1674
|
+
}
|
|
1675
|
+
if (!tea_util_1.default.isUnset(request.period)) {
|
|
1676
|
+
query["Period"] = request.period;
|
|
1677
|
+
}
|
|
1678
|
+
if (!tea_util_1.default.isUnset(request.periodUnit)) {
|
|
1679
|
+
query["PeriodUnit"] = request.periodUnit;
|
|
1680
|
+
}
|
|
1681
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1682
|
+
query["ProductType"] = request.productType;
|
|
1683
|
+
}
|
|
1684
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1685
|
+
query: openapi_util_1.default.query(query),
|
|
1686
|
+
});
|
|
1687
|
+
let params = new $OpenApi.Params({
|
|
1688
|
+
action: "GetResourcePrice",
|
|
1689
|
+
version: "2021-09-01",
|
|
1690
|
+
protocol: "HTTPS",
|
|
1691
|
+
pathname: "/",
|
|
1692
|
+
method: "POST",
|
|
1693
|
+
authType: "AK",
|
|
1694
|
+
style: "RPC",
|
|
1695
|
+
reqBodyType: "formData",
|
|
1696
|
+
bodyType: "json",
|
|
1697
|
+
});
|
|
1698
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetResourcePriceResponse({}));
|
|
1699
|
+
}
|
|
1700
|
+
async getResourcePrice(request) {
|
|
1701
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1702
|
+
return await this.getResourcePriceWithOptions(request, runtime);
|
|
1703
|
+
}
|
|
1704
|
+
async listAppInstanceGroupWithOptions(request, runtime) {
|
|
1705
|
+
tea_util_1.default.validateModel(request);
|
|
1706
|
+
let query = {};
|
|
1707
|
+
if (!tea_util_1.default.isUnset(request.appCenterImageId)) {
|
|
1708
|
+
query["AppCenterImageId"] = request.appCenterImageId;
|
|
1709
|
+
}
|
|
1710
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1711
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1712
|
+
}
|
|
1713
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupName)) {
|
|
1714
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
1715
|
+
}
|
|
1716
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1717
|
+
query["PageNumber"] = request.pageNumber;
|
|
1718
|
+
}
|
|
1719
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1720
|
+
query["PageSize"] = request.pageSize;
|
|
1721
|
+
}
|
|
1722
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1723
|
+
query["ProductType"] = request.productType;
|
|
1724
|
+
}
|
|
1725
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
1726
|
+
query["RegionId"] = request.regionId;
|
|
1727
|
+
}
|
|
1728
|
+
let body = {};
|
|
1729
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
1730
|
+
body["Status"] = request.status;
|
|
1731
|
+
}
|
|
1732
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1733
|
+
query: openapi_util_1.default.query(query),
|
|
1734
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1735
|
+
});
|
|
1736
|
+
let params = new $OpenApi.Params({
|
|
1737
|
+
action: "ListAppInstanceGroup",
|
|
1738
|
+
version: "2021-09-01",
|
|
1739
|
+
protocol: "HTTPS",
|
|
1740
|
+
pathname: "/",
|
|
1741
|
+
method: "POST",
|
|
1742
|
+
authType: "AK",
|
|
1743
|
+
style: "RPC",
|
|
1744
|
+
reqBodyType: "formData",
|
|
1745
|
+
bodyType: "json",
|
|
1746
|
+
});
|
|
1747
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListAppInstanceGroupResponse({}));
|
|
1748
|
+
}
|
|
1749
|
+
async listAppInstanceGroup(request) {
|
|
1750
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1751
|
+
return await this.listAppInstanceGroupWithOptions(request, runtime);
|
|
1752
|
+
}
|
|
1753
|
+
async listNodeInstanceTypeWithOptions(request, runtime) {
|
|
1754
|
+
tea_util_1.default.validateModel(request);
|
|
1755
|
+
let query = {};
|
|
1756
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1757
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
1758
|
+
}
|
|
1759
|
+
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1760
|
+
query["Language"] = request.language;
|
|
1761
|
+
}
|
|
1762
|
+
if (!tea_util_1.default.isUnset(request.osType)) {
|
|
1763
|
+
query["OsType"] = request.osType;
|
|
1764
|
+
}
|
|
1765
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1766
|
+
query["PageNumber"] = request.pageNumber;
|
|
1767
|
+
}
|
|
1768
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1769
|
+
query["PageSize"] = request.pageSize;
|
|
1770
|
+
}
|
|
1771
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1772
|
+
query["ProductType"] = request.productType;
|
|
1773
|
+
}
|
|
1774
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1775
|
+
query: openapi_util_1.default.query(query),
|
|
1776
|
+
});
|
|
1777
|
+
let params = new $OpenApi.Params({
|
|
1778
|
+
action: "ListNodeInstanceType",
|
|
1779
|
+
version: "2021-09-01",
|
|
1780
|
+
protocol: "HTTPS",
|
|
1781
|
+
pathname: "/",
|
|
1782
|
+
method: "POST",
|
|
1783
|
+
authType: "AK",
|
|
1784
|
+
style: "RPC",
|
|
1785
|
+
reqBodyType: "formData",
|
|
1786
|
+
bodyType: "json",
|
|
1787
|
+
});
|
|
1788
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListNodeInstanceTypeResponse({}));
|
|
1789
|
+
}
|
|
1790
|
+
async listNodeInstanceType(request) {
|
|
1791
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1792
|
+
return await this.listNodeInstanceTypeWithOptions(request, runtime);
|
|
1793
|
+
}
|
|
1794
|
+
async listOtaTaskWithOptions(request, runtime) {
|
|
1795
|
+
tea_util_1.default.validateModel(request);
|
|
1796
|
+
let body = {};
|
|
1797
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1798
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1799
|
+
}
|
|
1800
|
+
if (!tea_util_1.default.isUnset(request.otaType)) {
|
|
1801
|
+
body["OtaType"] = request.otaType;
|
|
1802
|
+
}
|
|
1803
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1804
|
+
body["PageNumber"] = request.pageNumber;
|
|
1805
|
+
}
|
|
1806
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1807
|
+
body["PageSize"] = request.pageSize;
|
|
1808
|
+
}
|
|
1809
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1810
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1811
|
+
});
|
|
1812
|
+
let params = new $OpenApi.Params({
|
|
1813
|
+
action: "ListOtaTask",
|
|
1814
|
+
version: "2021-09-01",
|
|
1815
|
+
protocol: "HTTPS",
|
|
1816
|
+
pathname: "/",
|
|
1817
|
+
method: "POST",
|
|
1818
|
+
authType: "AK",
|
|
1819
|
+
style: "RPC",
|
|
1820
|
+
reqBodyType: "formData",
|
|
1821
|
+
bodyType: "json",
|
|
1822
|
+
});
|
|
1823
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListOtaTaskResponse({}));
|
|
1824
|
+
}
|
|
1825
|
+
async listOtaTask(request) {
|
|
1826
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1827
|
+
return await this.listOtaTaskWithOptions(request, runtime);
|
|
1828
|
+
}
|
|
1829
|
+
async listRegionsWithOptions(runtime) {
|
|
1830
|
+
let req = new $OpenApi.OpenApiRequest({});
|
|
1831
|
+
let params = new $OpenApi.Params({
|
|
1832
|
+
action: "ListRegions",
|
|
1833
|
+
version: "2021-09-01",
|
|
1834
|
+
protocol: "HTTPS",
|
|
1835
|
+
pathname: "/",
|
|
1836
|
+
method: "POST",
|
|
1837
|
+
authType: "AK",
|
|
1838
|
+
style: "RPC",
|
|
1839
|
+
reqBodyType: "formData",
|
|
1840
|
+
bodyType: "json",
|
|
1841
|
+
});
|
|
1842
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListRegionsResponse({}));
|
|
1843
|
+
}
|
|
1844
|
+
async listRegions() {
|
|
1845
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1846
|
+
return await this.listRegionsWithOptions(runtime);
|
|
1847
|
+
}
|
|
1848
|
+
async modifyAppInstanceGroupAttributeWithOptions(tmpReq, runtime) {
|
|
1849
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
1850
|
+
let request = new ModifyAppInstanceGroupAttributeShrinkRequest({});
|
|
1851
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
1852
|
+
if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.nodePool))) {
|
|
1853
|
+
request.nodePoolShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.nodePool), "NodePool", "json");
|
|
1854
|
+
}
|
|
1855
|
+
let query = {};
|
|
1856
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1857
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1858
|
+
}
|
|
1859
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupName)) {
|
|
1860
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
1861
|
+
}
|
|
1862
|
+
if (!tea_util_1.default.isUnset(request.nodePoolShrink)) {
|
|
1863
|
+
query["NodePool"] = request.nodePoolShrink;
|
|
1864
|
+
}
|
|
1865
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1866
|
+
query["ProductType"] = request.productType;
|
|
1867
|
+
}
|
|
1868
|
+
if (!tea_util_1.default.isUnset(request.sessionTimeout)) {
|
|
1869
|
+
query["SessionTimeout"] = request.sessionTimeout;
|
|
1870
|
+
}
|
|
1871
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1872
|
+
query: openapi_util_1.default.query(query),
|
|
1873
|
+
});
|
|
1874
|
+
let params = new $OpenApi.Params({
|
|
1875
|
+
action: "ModifyAppInstanceGroupAttribute",
|
|
1876
|
+
version: "2021-09-01",
|
|
1877
|
+
protocol: "HTTPS",
|
|
1878
|
+
pathname: "/",
|
|
1879
|
+
method: "POST",
|
|
1880
|
+
authType: "AK",
|
|
1881
|
+
style: "RPC",
|
|
1882
|
+
reqBodyType: "formData",
|
|
1883
|
+
bodyType: "json",
|
|
1884
|
+
});
|
|
1885
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyAppInstanceGroupAttributeResponse({}));
|
|
1886
|
+
}
|
|
1887
|
+
async modifyAppInstanceGroupAttribute(request) {
|
|
1888
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1889
|
+
return await this.modifyAppInstanceGroupAttributeWithOptions(request, runtime);
|
|
1890
|
+
}
|
|
1891
|
+
async modifyNodePoolAttributeWithOptions(tmpReq, runtime) {
|
|
1892
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
1893
|
+
let request = new ModifyNodePoolAttributeShrinkRequest({});
|
|
1894
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
1895
|
+
if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.nodePoolStrategy))) {
|
|
1896
|
+
request.nodePoolStrategyShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.nodePoolStrategy), "NodePoolStrategy", "json");
|
|
1897
|
+
}
|
|
1898
|
+
let body = {};
|
|
1899
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1900
|
+
body["BizRegionId"] = request.bizRegionId;
|
|
1901
|
+
}
|
|
1902
|
+
if (!tea_util_1.default.isUnset(request.nodeCapacity)) {
|
|
1903
|
+
body["NodeCapacity"] = request.nodeCapacity;
|
|
1904
|
+
}
|
|
1905
|
+
if (!tea_util_1.default.isUnset(request.nodePoolStrategyShrink)) {
|
|
1906
|
+
body["NodePoolStrategy"] = request.nodePoolStrategyShrink;
|
|
1907
|
+
}
|
|
1908
|
+
if (!tea_util_1.default.isUnset(request.poolId)) {
|
|
1909
|
+
body["PoolId"] = request.poolId;
|
|
1910
|
+
}
|
|
1911
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1912
|
+
body["ProductType"] = request.productType;
|
|
1913
|
+
}
|
|
1914
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1915
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1916
|
+
});
|
|
1917
|
+
let params = new $OpenApi.Params({
|
|
1918
|
+
action: "ModifyNodePoolAttribute",
|
|
1919
|
+
version: "2021-09-01",
|
|
1920
|
+
protocol: "HTTPS",
|
|
1921
|
+
pathname: "/",
|
|
1922
|
+
method: "POST",
|
|
1923
|
+
authType: "AK",
|
|
1924
|
+
style: "RPC",
|
|
1925
|
+
reqBodyType: "formData",
|
|
1926
|
+
bodyType: "json",
|
|
1927
|
+
});
|
|
1928
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolAttributeResponse({}));
|
|
1929
|
+
}
|
|
1930
|
+
async modifyNodePoolAttribute(request) {
|
|
1931
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1932
|
+
return await this.modifyNodePoolAttributeWithOptions(request, runtime);
|
|
1933
|
+
}
|
|
1934
|
+
async pageListAppInstanceGroupUserWithOptions(request, runtime) {
|
|
1935
|
+
tea_util_1.default.validateModel(request);
|
|
1936
|
+
let body = {};
|
|
1937
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1938
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1939
|
+
}
|
|
1940
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1941
|
+
body["PageNumber"] = request.pageNumber;
|
|
1942
|
+
}
|
|
1943
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1944
|
+
body["PageSize"] = request.pageSize;
|
|
1945
|
+
}
|
|
1946
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1947
|
+
body["ProductType"] = request.productType;
|
|
1948
|
+
}
|
|
1949
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1950
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1951
|
+
});
|
|
1952
|
+
let params = new $OpenApi.Params({
|
|
1953
|
+
action: "PageListAppInstanceGroupUser",
|
|
1954
|
+
version: "2021-09-01",
|
|
1955
|
+
protocol: "HTTPS",
|
|
1956
|
+
pathname: "/",
|
|
1957
|
+
method: "POST",
|
|
1958
|
+
authType: "AK",
|
|
1959
|
+
style: "RPC",
|
|
1960
|
+
reqBodyType: "formData",
|
|
1961
|
+
bodyType: "json",
|
|
1962
|
+
});
|
|
1963
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PageListAppInstanceGroupUserResponse({}));
|
|
1964
|
+
}
|
|
1965
|
+
async pageListAppInstanceGroupUser(request) {
|
|
1966
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1967
|
+
return await this.pageListAppInstanceGroupUserWithOptions(request, runtime);
|
|
1968
|
+
}
|
|
1969
|
+
async updateAppInstanceGroupImageWithOptions(request, runtime) {
|
|
1970
|
+
tea_util_1.default.validateModel(request);
|
|
1971
|
+
let query = {};
|
|
1972
|
+
if (!tea_util_1.default.isUnset(request.appCenterImageId)) {
|
|
1973
|
+
query["AppCenterImageId"] = request.appCenterImageId;
|
|
1974
|
+
}
|
|
1975
|
+
if (!tea_util_1.default.isUnset(request.appInstanceGroupId)) {
|
|
1976
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
1977
|
+
}
|
|
1978
|
+
if (!tea_util_1.default.isUnset(request.bizRegionId)) {
|
|
1979
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
1980
|
+
}
|
|
1981
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1982
|
+
query["ProductType"] = request.productType;
|
|
1983
|
+
}
|
|
1984
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1985
|
+
query: openapi_util_1.default.query(query),
|
|
1986
|
+
});
|
|
1987
|
+
let params = new $OpenApi.Params({
|
|
1988
|
+
action: "UpdateAppInstanceGroupImage",
|
|
1989
|
+
version: "2021-09-01",
|
|
1990
|
+
protocol: "HTTPS",
|
|
1991
|
+
pathname: "/",
|
|
1992
|
+
method: "POST",
|
|
1993
|
+
authType: "AK",
|
|
1994
|
+
style: "RPC",
|
|
1995
|
+
reqBodyType: "formData",
|
|
1996
|
+
bodyType: "json",
|
|
1997
|
+
});
|
|
1998
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateAppInstanceGroupImageResponse({}));
|
|
1999
|
+
}
|
|
2000
|
+
async updateAppInstanceGroupImage(request) {
|
|
2001
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2002
|
+
return await this.updateAppInstanceGroupImageWithOptions(request, runtime);
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
exports.default = Client;
|
|
2006
|
+
//# sourceMappingURL=client.js.map
|