@alicloud/eas20210701 2.0.1 → 2.0.3
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/dist/client.d.ts +396 -55
- package/dist/client.js +765 -129
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +896 -121
package/src/client.ts
CHANGED
|
@@ -58,9 +58,13 @@ export class Instance extends $tea.Model {
|
|
|
58
58
|
namespace?: string;
|
|
59
59
|
readyProcesses?: number;
|
|
60
60
|
reason?: string;
|
|
61
|
+
resourceType?: string;
|
|
61
62
|
restartCount?: number;
|
|
63
|
+
role?: string;
|
|
62
64
|
startAt?: string;
|
|
63
65
|
status?: string;
|
|
66
|
+
tenantHostIP?: string;
|
|
67
|
+
tenantInstanceIP?: string;
|
|
64
68
|
totalProcesses?: number;
|
|
65
69
|
static names(): { [key: string]: string } {
|
|
66
70
|
return {
|
|
@@ -73,9 +77,13 @@ export class Instance extends $tea.Model {
|
|
|
73
77
|
namespace: 'Namespace',
|
|
74
78
|
readyProcesses: 'ReadyProcesses',
|
|
75
79
|
reason: 'Reason',
|
|
80
|
+
resourceType: 'ResourceType',
|
|
76
81
|
restartCount: 'RestartCount',
|
|
82
|
+
role: 'Role',
|
|
77
83
|
startAt: 'StartAt',
|
|
78
84
|
status: 'Status',
|
|
85
|
+
tenantHostIP: 'TenantHostIP',
|
|
86
|
+
tenantInstanceIP: 'TenantInstanceIP',
|
|
79
87
|
totalProcesses: 'TotalProcesses',
|
|
80
88
|
};
|
|
81
89
|
}
|
|
@@ -91,9 +99,13 @@ export class Instance extends $tea.Model {
|
|
|
91
99
|
namespace: 'string',
|
|
92
100
|
readyProcesses: 'number',
|
|
93
101
|
reason: 'string',
|
|
102
|
+
resourceType: 'string',
|
|
94
103
|
restartCount: 'number',
|
|
104
|
+
role: 'string',
|
|
95
105
|
startAt: 'string',
|
|
96
106
|
status: 'string',
|
|
107
|
+
tenantHostIP: 'string',
|
|
108
|
+
tenantInstanceIP: 'string',
|
|
97
109
|
totalProcesses: 'number',
|
|
98
110
|
};
|
|
99
111
|
}
|
|
@@ -172,9 +184,11 @@ export class ResourceInstance extends $tea.Model {
|
|
|
172
184
|
instanceMemory?: string;
|
|
173
185
|
instanceName?: string;
|
|
174
186
|
instanceStatus?: string;
|
|
187
|
+
instanceTenantIp?: string;
|
|
175
188
|
instanceType?: string;
|
|
176
189
|
instanceUsedCpu?: number;
|
|
177
190
|
instanceUsedGpu?: number;
|
|
191
|
+
instanceUsedGpuMemory?: string;
|
|
178
192
|
instanceUsedMemory?: string;
|
|
179
193
|
region?: string;
|
|
180
194
|
zone?: string;
|
|
@@ -193,9 +207,11 @@ export class ResourceInstance extends $tea.Model {
|
|
|
193
207
|
instanceMemory: 'InstanceMemory',
|
|
194
208
|
instanceName: 'InstanceName',
|
|
195
209
|
instanceStatus: 'InstanceStatus',
|
|
210
|
+
instanceTenantIp: 'InstanceTenantIp',
|
|
196
211
|
instanceType: 'InstanceType',
|
|
197
212
|
instanceUsedCpu: 'InstanceUsedCpu',
|
|
198
213
|
instanceUsedGpu: 'InstanceUsedGpu',
|
|
214
|
+
instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
|
|
199
215
|
instanceUsedMemory: 'InstanceUsedMemory',
|
|
200
216
|
region: 'Region',
|
|
201
217
|
zone: 'Zone',
|
|
@@ -217,9 +233,11 @@ export class ResourceInstance extends $tea.Model {
|
|
|
217
233
|
instanceMemory: 'string',
|
|
218
234
|
instanceName: 'string',
|
|
219
235
|
instanceStatus: 'string',
|
|
236
|
+
instanceTenantIp: 'string',
|
|
220
237
|
instanceType: 'string',
|
|
221
238
|
instanceUsedCpu: 'number',
|
|
222
239
|
instanceUsedGpu: 'number',
|
|
240
|
+
instanceUsedGpuMemory: 'string',
|
|
223
241
|
instanceUsedMemory: 'string',
|
|
224
242
|
region: 'string',
|
|
225
243
|
zone: 'string',
|
|
@@ -294,6 +312,7 @@ export class Service extends $tea.Model {
|
|
|
294
312
|
image?: string;
|
|
295
313
|
internetEndpoint?: string;
|
|
296
314
|
intranetEndpoint?: string;
|
|
315
|
+
labels?: ServiceLabels[];
|
|
297
316
|
latestVersion?: number;
|
|
298
317
|
memory?: number;
|
|
299
318
|
message?: string;
|
|
@@ -308,6 +327,7 @@ export class Service extends $tea.Model {
|
|
|
308
327
|
role?: string;
|
|
309
328
|
roleAttrs?: string;
|
|
310
329
|
runningInstance?: number;
|
|
330
|
+
safetyLock?: string;
|
|
311
331
|
serviceConfig?: string;
|
|
312
332
|
serviceGroup?: string;
|
|
313
333
|
serviceId?: string;
|
|
@@ -330,6 +350,7 @@ export class Service extends $tea.Model {
|
|
|
330
350
|
image: 'Image',
|
|
331
351
|
internetEndpoint: 'InternetEndpoint',
|
|
332
352
|
intranetEndpoint: 'IntranetEndpoint',
|
|
353
|
+
labels: 'Labels',
|
|
333
354
|
latestVersion: 'LatestVersion',
|
|
334
355
|
memory: 'Memory',
|
|
335
356
|
message: 'Message',
|
|
@@ -344,6 +365,7 @@ export class Service extends $tea.Model {
|
|
|
344
365
|
role: 'Role',
|
|
345
366
|
roleAttrs: 'RoleAttrs',
|
|
346
367
|
runningInstance: 'RunningInstance',
|
|
368
|
+
safetyLock: 'SafetyLock',
|
|
347
369
|
serviceConfig: 'ServiceConfig',
|
|
348
370
|
serviceGroup: 'ServiceGroup',
|
|
349
371
|
serviceId: 'ServiceId',
|
|
@@ -369,6 +391,7 @@ export class Service extends $tea.Model {
|
|
|
369
391
|
image: 'string',
|
|
370
392
|
internetEndpoint: 'string',
|
|
371
393
|
intranetEndpoint: 'string',
|
|
394
|
+
labels: { 'type': 'array', 'itemType': ServiceLabels },
|
|
372
395
|
latestVersion: 'number',
|
|
373
396
|
memory: 'number',
|
|
374
397
|
message: 'string',
|
|
@@ -383,6 +406,7 @@ export class Service extends $tea.Model {
|
|
|
383
406
|
role: 'string',
|
|
384
407
|
roleAttrs: 'string',
|
|
385
408
|
runningInstance: 'number',
|
|
409
|
+
safetyLock: 'string',
|
|
386
410
|
serviceConfig: 'string',
|
|
387
411
|
serviceGroup: 'string',
|
|
388
412
|
serviceId: 'string',
|
|
@@ -401,6 +425,53 @@ export class Service extends $tea.Model {
|
|
|
401
425
|
}
|
|
402
426
|
}
|
|
403
427
|
|
|
428
|
+
export class CommitServiceResponseBody extends $tea.Model {
|
|
429
|
+
message?: string;
|
|
430
|
+
requestId?: string;
|
|
431
|
+
static names(): { [key: string]: string } {
|
|
432
|
+
return {
|
|
433
|
+
message: 'Message',
|
|
434
|
+
requestId: 'RequestId',
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
static types(): { [key: string]: any } {
|
|
439
|
+
return {
|
|
440
|
+
message: 'string',
|
|
441
|
+
requestId: 'string',
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
constructor(map?: { [key: string]: any }) {
|
|
446
|
+
super(map);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export class CommitServiceResponse extends $tea.Model {
|
|
451
|
+
headers: { [key: string]: string };
|
|
452
|
+
statusCode: number;
|
|
453
|
+
body: CommitServiceResponseBody;
|
|
454
|
+
static names(): { [key: string]: string } {
|
|
455
|
+
return {
|
|
456
|
+
headers: 'headers',
|
|
457
|
+
statusCode: 'statusCode',
|
|
458
|
+
body: 'body',
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static types(): { [key: string]: any } {
|
|
463
|
+
return {
|
|
464
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
465
|
+
statusCode: 'number',
|
|
466
|
+
body: CommitServiceResponseBody,
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
constructor(map?: { [key: string]: any }) {
|
|
471
|
+
super(map);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
404
475
|
export class CreateBenchmarkTaskRequest extends $tea.Model {
|
|
405
476
|
body?: string;
|
|
406
477
|
static names(): { [key: string]: string } {
|
|
@@ -705,15 +776,46 @@ export class CreateResourceLogResponse extends $tea.Model {
|
|
|
705
776
|
}
|
|
706
777
|
|
|
707
778
|
export class CreateServiceRequest extends $tea.Model {
|
|
779
|
+
develop?: string;
|
|
780
|
+
labels?: { [key: string]: string };
|
|
781
|
+
body?: string;
|
|
782
|
+
static names(): { [key: string]: string } {
|
|
783
|
+
return {
|
|
784
|
+
develop: 'Develop',
|
|
785
|
+
labels: 'Labels',
|
|
786
|
+
body: 'body',
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
static types(): { [key: string]: any } {
|
|
791
|
+
return {
|
|
792
|
+
develop: 'string',
|
|
793
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
794
|
+
body: 'string',
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
constructor(map?: { [key: string]: any }) {
|
|
799
|
+
super(map);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export class CreateServiceShrinkRequest extends $tea.Model {
|
|
804
|
+
develop?: string;
|
|
805
|
+
labelsShrink?: string;
|
|
708
806
|
body?: string;
|
|
709
807
|
static names(): { [key: string]: string } {
|
|
710
808
|
return {
|
|
809
|
+
develop: 'Develop',
|
|
810
|
+
labelsShrink: 'Labels',
|
|
711
811
|
body: 'body',
|
|
712
812
|
};
|
|
713
813
|
}
|
|
714
814
|
|
|
715
815
|
static types(): { [key: string]: any } {
|
|
716
816
|
return {
|
|
817
|
+
develop: 'string',
|
|
818
|
+
labelsShrink: 'string',
|
|
717
819
|
body: 'string',
|
|
718
820
|
};
|
|
719
821
|
}
|
|
@@ -1459,6 +1561,91 @@ export class DeleteServiceInstancesResponse extends $tea.Model {
|
|
|
1459
1561
|
}
|
|
1460
1562
|
}
|
|
1461
1563
|
|
|
1564
|
+
export class DeleteServiceLabelRequest extends $tea.Model {
|
|
1565
|
+
keys?: string[];
|
|
1566
|
+
static names(): { [key: string]: string } {
|
|
1567
|
+
return {
|
|
1568
|
+
keys: 'Keys',
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
static types(): { [key: string]: any } {
|
|
1573
|
+
return {
|
|
1574
|
+
keys: { 'type': 'array', 'itemType': 'string' },
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
constructor(map?: { [key: string]: any }) {
|
|
1579
|
+
super(map);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export class DeleteServiceLabelShrinkRequest extends $tea.Model {
|
|
1584
|
+
keysShrink?: string;
|
|
1585
|
+
static names(): { [key: string]: string } {
|
|
1586
|
+
return {
|
|
1587
|
+
keysShrink: 'Keys',
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
static types(): { [key: string]: any } {
|
|
1592
|
+
return {
|
|
1593
|
+
keysShrink: 'string',
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
constructor(map?: { [key: string]: any }) {
|
|
1598
|
+
super(map);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export class DeleteServiceLabelResponseBody extends $tea.Model {
|
|
1603
|
+
message?: string;
|
|
1604
|
+
requestId?: string;
|
|
1605
|
+
static names(): { [key: string]: string } {
|
|
1606
|
+
return {
|
|
1607
|
+
message: 'Message',
|
|
1608
|
+
requestId: 'RequestId',
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
static types(): { [key: string]: any } {
|
|
1613
|
+
return {
|
|
1614
|
+
message: 'string',
|
|
1615
|
+
requestId: 'string',
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
constructor(map?: { [key: string]: any }) {
|
|
1620
|
+
super(map);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
export class DeleteServiceLabelResponse extends $tea.Model {
|
|
1625
|
+
headers: { [key: string]: string };
|
|
1626
|
+
statusCode: number;
|
|
1627
|
+
body: DeleteServiceLabelResponseBody;
|
|
1628
|
+
static names(): { [key: string]: string } {
|
|
1629
|
+
return {
|
|
1630
|
+
headers: 'headers',
|
|
1631
|
+
statusCode: 'statusCode',
|
|
1632
|
+
body: 'body',
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
static types(): { [key: string]: any } {
|
|
1637
|
+
return {
|
|
1638
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1639
|
+
statusCode: 'number',
|
|
1640
|
+
body: DeleteServiceLabelResponseBody,
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
constructor(map?: { [key: string]: any }) {
|
|
1645
|
+
super(map);
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1462
1649
|
export class DeleteServiceMirrorResponseBody extends $tea.Model {
|
|
1463
1650
|
message?: string;
|
|
1464
1651
|
requestId?: string;
|
|
@@ -2248,14 +2435,80 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
2248
2435
|
}
|
|
2249
2436
|
}
|
|
2250
2437
|
|
|
2438
|
+
export class DevelopServiceRequest extends $tea.Model {
|
|
2439
|
+
exit?: string;
|
|
2440
|
+
static names(): { [key: string]: string } {
|
|
2441
|
+
return {
|
|
2442
|
+
exit: 'Exit',
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
static types(): { [key: string]: any } {
|
|
2447
|
+
return {
|
|
2448
|
+
exit: 'string',
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
constructor(map?: { [key: string]: any }) {
|
|
2453
|
+
super(map);
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
export class DevelopServiceResponseBody extends $tea.Model {
|
|
2458
|
+
message?: string;
|
|
2459
|
+
requestId?: string;
|
|
2460
|
+
static names(): { [key: string]: string } {
|
|
2461
|
+
return {
|
|
2462
|
+
message: 'Message',
|
|
2463
|
+
requestId: 'RequestId',
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
static types(): { [key: string]: any } {
|
|
2468
|
+
return {
|
|
2469
|
+
message: 'string',
|
|
2470
|
+
requestId: 'string',
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
constructor(map?: { [key: string]: any }) {
|
|
2475
|
+
super(map);
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
export class DevelopServiceResponse extends $tea.Model {
|
|
2480
|
+
headers: { [key: string]: string };
|
|
2481
|
+
statusCode: number;
|
|
2482
|
+
body: DevelopServiceResponseBody;
|
|
2483
|
+
static names(): { [key: string]: string } {
|
|
2484
|
+
return {
|
|
2485
|
+
headers: 'headers',
|
|
2486
|
+
statusCode: 'statusCode',
|
|
2487
|
+
body: 'body',
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
static types(): { [key: string]: any } {
|
|
2492
|
+
return {
|
|
2493
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2494
|
+
statusCode: 'number',
|
|
2495
|
+
body: DevelopServiceResponseBody,
|
|
2496
|
+
};
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
constructor(map?: { [key: string]: any }) {
|
|
2500
|
+
super(map);
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2251
2504
|
export class ListBenchmarkTaskRequest extends $tea.Model {
|
|
2252
|
-
|
|
2505
|
+
filter?: string;
|
|
2253
2506
|
pageNumber?: string;
|
|
2254
2507
|
pageSize?: string;
|
|
2255
2508
|
serviceName?: string;
|
|
2256
2509
|
static names(): { [key: string]: string } {
|
|
2257
2510
|
return {
|
|
2258
|
-
|
|
2511
|
+
filter: 'Filter',
|
|
2259
2512
|
pageNumber: 'PageNumber',
|
|
2260
2513
|
pageSize: 'PageSize',
|
|
2261
2514
|
serviceName: 'ServiceName',
|
|
@@ -2264,7 +2517,7 @@ export class ListBenchmarkTaskRequest extends $tea.Model {
|
|
|
2264
2517
|
|
|
2265
2518
|
static types(): { [key: string]: any } {
|
|
2266
2519
|
return {
|
|
2267
|
-
|
|
2520
|
+
filter: 'string',
|
|
2268
2521
|
pageNumber: 'string',
|
|
2269
2522
|
pageSize: 'string',
|
|
2270
2523
|
serviceName: 'string',
|
|
@@ -2493,11 +2746,15 @@ export class ListResourceInstanceWorkerResponse extends $tea.Model {
|
|
|
2493
2746
|
|
|
2494
2747
|
export class ListResourceInstancesRequest extends $tea.Model {
|
|
2495
2748
|
chargeType?: string;
|
|
2749
|
+
instanceId?: string;
|
|
2750
|
+
instanceName?: string;
|
|
2496
2751
|
pageNumber?: number;
|
|
2497
2752
|
pageSize?: number;
|
|
2498
2753
|
static names(): { [key: string]: string } {
|
|
2499
2754
|
return {
|
|
2500
2755
|
chargeType: 'ChargeType',
|
|
2756
|
+
instanceId: 'InstanceId',
|
|
2757
|
+
instanceName: 'InstanceName',
|
|
2501
2758
|
pageNumber: 'PageNumber',
|
|
2502
2759
|
pageSize: 'PageSize',
|
|
2503
2760
|
};
|
|
@@ -2506,6 +2763,8 @@ export class ListResourceInstancesRequest extends $tea.Model {
|
|
|
2506
2763
|
static types(): { [key: string]: any } {
|
|
2507
2764
|
return {
|
|
2508
2765
|
chargeType: 'string',
|
|
2766
|
+
instanceId: 'string',
|
|
2767
|
+
instanceName: 'string',
|
|
2509
2768
|
pageNumber: 'number',
|
|
2510
2769
|
pageSize: 'number',
|
|
2511
2770
|
};
|
|
@@ -2653,10 +2912,14 @@ export class ListResourceServicesResponse extends $tea.Model {
|
|
|
2653
2912
|
export class ListResourcesRequest extends $tea.Model {
|
|
2654
2913
|
pageNumber?: number;
|
|
2655
2914
|
pageSize?: number;
|
|
2915
|
+
resourceId?: string;
|
|
2916
|
+
resourceName?: string;
|
|
2656
2917
|
static names(): { [key: string]: string } {
|
|
2657
2918
|
return {
|
|
2658
2919
|
pageNumber: 'PageNumber',
|
|
2659
2920
|
pageSize: 'PageSize',
|
|
2921
|
+
resourceId: 'ResourceId',
|
|
2922
|
+
resourceName: 'ResourceName',
|
|
2660
2923
|
};
|
|
2661
2924
|
}
|
|
2662
2925
|
|
|
@@ -2664,6 +2927,8 @@ export class ListResourcesRequest extends $tea.Model {
|
|
|
2664
2927
|
return {
|
|
2665
2928
|
pageNumber: 'number',
|
|
2666
2929
|
pageSize: 'number',
|
|
2930
|
+
resourceId: 'string',
|
|
2931
|
+
resourceName: 'string',
|
|
2667
2932
|
};
|
|
2668
2933
|
}
|
|
2669
2934
|
|
|
@@ -2887,17 +3152,66 @@ export class ListServiceVersionsResponse extends $tea.Model {
|
|
|
2887
3152
|
export class ListServicesRequest extends $tea.Model {
|
|
2888
3153
|
filter?: string;
|
|
2889
3154
|
groupName?: string;
|
|
3155
|
+
label?: { [key: string]: string };
|
|
3156
|
+
order?: string;
|
|
3157
|
+
pageNumber?: number;
|
|
3158
|
+
pageSize?: number;
|
|
3159
|
+
parentServiceUid?: string;
|
|
3160
|
+
serviceType?: string;
|
|
3161
|
+
sort?: string;
|
|
3162
|
+
static names(): { [key: string]: string } {
|
|
3163
|
+
return {
|
|
3164
|
+
filter: 'Filter',
|
|
3165
|
+
groupName: 'GroupName',
|
|
3166
|
+
label: 'Label',
|
|
3167
|
+
order: 'Order',
|
|
3168
|
+
pageNumber: 'PageNumber',
|
|
3169
|
+
pageSize: 'PageSize',
|
|
3170
|
+
parentServiceUid: 'ParentServiceUid',
|
|
3171
|
+
serviceType: 'ServiceType',
|
|
3172
|
+
sort: 'Sort',
|
|
3173
|
+
};
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
static types(): { [key: string]: any } {
|
|
3177
|
+
return {
|
|
3178
|
+
filter: 'string',
|
|
3179
|
+
groupName: 'string',
|
|
3180
|
+
label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3181
|
+
order: 'string',
|
|
3182
|
+
pageNumber: 'number',
|
|
3183
|
+
pageSize: 'number',
|
|
3184
|
+
parentServiceUid: 'string',
|
|
3185
|
+
serviceType: 'string',
|
|
3186
|
+
sort: 'string',
|
|
3187
|
+
};
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
constructor(map?: { [key: string]: any }) {
|
|
3191
|
+
super(map);
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
export class ListServicesShrinkRequest extends $tea.Model {
|
|
3196
|
+
filter?: string;
|
|
3197
|
+
groupName?: string;
|
|
3198
|
+
labelShrink?: string;
|
|
2890
3199
|
order?: string;
|
|
2891
3200
|
pageNumber?: number;
|
|
2892
3201
|
pageSize?: number;
|
|
3202
|
+
parentServiceUid?: string;
|
|
3203
|
+
serviceType?: string;
|
|
2893
3204
|
sort?: string;
|
|
2894
3205
|
static names(): { [key: string]: string } {
|
|
2895
3206
|
return {
|
|
2896
3207
|
filter: 'Filter',
|
|
2897
3208
|
groupName: 'GroupName',
|
|
3209
|
+
labelShrink: 'Label',
|
|
2898
3210
|
order: 'Order',
|
|
2899
3211
|
pageNumber: 'PageNumber',
|
|
2900
3212
|
pageSize: 'PageSize',
|
|
3213
|
+
parentServiceUid: 'ParentServiceUid',
|
|
3214
|
+
serviceType: 'ServiceType',
|
|
2901
3215
|
sort: 'Sort',
|
|
2902
3216
|
};
|
|
2903
3217
|
}
|
|
@@ -2906,9 +3220,12 @@ export class ListServicesRequest extends $tea.Model {
|
|
|
2906
3220
|
return {
|
|
2907
3221
|
filter: 'string',
|
|
2908
3222
|
groupName: 'string',
|
|
3223
|
+
labelShrink: 'string',
|
|
2909
3224
|
order: 'string',
|
|
2910
3225
|
pageNumber: 'number',
|
|
2911
3226
|
pageSize: 'number',
|
|
3227
|
+
parentServiceUid: 'string',
|
|
3228
|
+
serviceType: 'string',
|
|
2912
3229
|
sort: 'string',
|
|
2913
3230
|
};
|
|
2914
3231
|
}
|
|
@@ -3441,17 +3758,17 @@ export class UpdateResourceDLinkResponse extends $tea.Model {
|
|
|
3441
3758
|
}
|
|
3442
3759
|
}
|
|
3443
3760
|
|
|
3444
|
-
export class
|
|
3445
|
-
|
|
3761
|
+
export class UpdateResourceInstanceRequest extends $tea.Model {
|
|
3762
|
+
action?: string;
|
|
3446
3763
|
static names(): { [key: string]: string } {
|
|
3447
3764
|
return {
|
|
3448
|
-
|
|
3765
|
+
action: 'Action',
|
|
3449
3766
|
};
|
|
3450
3767
|
}
|
|
3451
3768
|
|
|
3452
3769
|
static types(): { [key: string]: any } {
|
|
3453
3770
|
return {
|
|
3454
|
-
|
|
3771
|
+
action: 'string',
|
|
3455
3772
|
};
|
|
3456
3773
|
}
|
|
3457
3774
|
|
|
@@ -3460,19 +3777,88 @@ export class UpdateServiceRequest extends $tea.Model {
|
|
|
3460
3777
|
}
|
|
3461
3778
|
}
|
|
3462
3779
|
|
|
3463
|
-
export class
|
|
3464
|
-
|
|
3780
|
+
export class UpdateResourceInstanceResponseBody extends $tea.Model {
|
|
3781
|
+
instanceId?: string;
|
|
3465
3782
|
requestId?: string;
|
|
3783
|
+
resourceId?: string;
|
|
3466
3784
|
static names(): { [key: string]: string } {
|
|
3467
3785
|
return {
|
|
3468
|
-
|
|
3786
|
+
instanceId: 'InstanceId',
|
|
3469
3787
|
requestId: 'RequestId',
|
|
3788
|
+
resourceId: 'ResourceId',
|
|
3470
3789
|
};
|
|
3471
3790
|
}
|
|
3472
3791
|
|
|
3473
3792
|
static types(): { [key: string]: any } {
|
|
3474
3793
|
return {
|
|
3475
|
-
|
|
3794
|
+
instanceId: 'string',
|
|
3795
|
+
requestId: 'string',
|
|
3796
|
+
resourceId: 'string',
|
|
3797
|
+
};
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
constructor(map?: { [key: string]: any }) {
|
|
3801
|
+
super(map);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
export class UpdateResourceInstanceResponse extends $tea.Model {
|
|
3806
|
+
headers: { [key: string]: string };
|
|
3807
|
+
statusCode: number;
|
|
3808
|
+
body: UpdateResourceInstanceResponseBody;
|
|
3809
|
+
static names(): { [key: string]: string } {
|
|
3810
|
+
return {
|
|
3811
|
+
headers: 'headers',
|
|
3812
|
+
statusCode: 'statusCode',
|
|
3813
|
+
body: 'body',
|
|
3814
|
+
};
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
static types(): { [key: string]: any } {
|
|
3818
|
+
return {
|
|
3819
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3820
|
+
statusCode: 'number',
|
|
3821
|
+
body: UpdateResourceInstanceResponseBody,
|
|
3822
|
+
};
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
constructor(map?: { [key: string]: any }) {
|
|
3826
|
+
super(map);
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
|
|
3830
|
+
export class UpdateServiceRequest extends $tea.Model {
|
|
3831
|
+
body?: string;
|
|
3832
|
+
static names(): { [key: string]: string } {
|
|
3833
|
+
return {
|
|
3834
|
+
body: 'body',
|
|
3835
|
+
};
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
static types(): { [key: string]: any } {
|
|
3839
|
+
return {
|
|
3840
|
+
body: 'string',
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
constructor(map?: { [key: string]: any }) {
|
|
3845
|
+
super(map);
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3849
|
+
export class UpdateServiceResponseBody extends $tea.Model {
|
|
3850
|
+
message?: string;
|
|
3851
|
+
requestId?: string;
|
|
3852
|
+
static names(): { [key: string]: string } {
|
|
3853
|
+
return {
|
|
3854
|
+
message: 'Message',
|
|
3855
|
+
requestId: 'RequestId',
|
|
3856
|
+
};
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
static types(): { [key: string]: any } {
|
|
3860
|
+
return {
|
|
3861
|
+
message: 'string',
|
|
3476
3862
|
requestId: 'string',
|
|
3477
3863
|
};
|
|
3478
3864
|
}
|
|
@@ -3648,6 +4034,72 @@ export class UpdateServiceCronScalerResponse extends $tea.Model {
|
|
|
3648
4034
|
}
|
|
3649
4035
|
}
|
|
3650
4036
|
|
|
4037
|
+
export class UpdateServiceLabelRequest extends $tea.Model {
|
|
4038
|
+
labels?: { [key: string]: string };
|
|
4039
|
+
static names(): { [key: string]: string } {
|
|
4040
|
+
return {
|
|
4041
|
+
labels: 'Labels',
|
|
4042
|
+
};
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
static types(): { [key: string]: any } {
|
|
4046
|
+
return {
|
|
4047
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
constructor(map?: { [key: string]: any }) {
|
|
4052
|
+
super(map);
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
export class UpdateServiceLabelResponseBody extends $tea.Model {
|
|
4057
|
+
message?: string;
|
|
4058
|
+
requestId?: string;
|
|
4059
|
+
static names(): { [key: string]: string } {
|
|
4060
|
+
return {
|
|
4061
|
+
message: 'Message',
|
|
4062
|
+
requestId: 'RequestId',
|
|
4063
|
+
};
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
static types(): { [key: string]: any } {
|
|
4067
|
+
return {
|
|
4068
|
+
message: 'string',
|
|
4069
|
+
requestId: 'string',
|
|
4070
|
+
};
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
constructor(map?: { [key: string]: any }) {
|
|
4074
|
+
super(map);
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
export class UpdateServiceLabelResponse extends $tea.Model {
|
|
4079
|
+
headers: { [key: string]: string };
|
|
4080
|
+
statusCode: number;
|
|
4081
|
+
body: UpdateServiceLabelResponseBody;
|
|
4082
|
+
static names(): { [key: string]: string } {
|
|
4083
|
+
return {
|
|
4084
|
+
headers: 'headers',
|
|
4085
|
+
statusCode: 'statusCode',
|
|
4086
|
+
body: 'body',
|
|
4087
|
+
};
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4090
|
+
static types(): { [key: string]: any } {
|
|
4091
|
+
return {
|
|
4092
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4093
|
+
statusCode: 'number',
|
|
4094
|
+
body: UpdateServiceLabelResponseBody,
|
|
4095
|
+
};
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
constructor(map?: { [key: string]: any }) {
|
|
4099
|
+
super(map);
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
|
|
3651
4103
|
export class UpdateServiceMirrorRequest extends $tea.Model {
|
|
3652
4104
|
ratio?: number;
|
|
3653
4105
|
target?: string[];
|
|
@@ -3717,6 +4169,72 @@ export class UpdateServiceMirrorResponse extends $tea.Model {
|
|
|
3717
4169
|
}
|
|
3718
4170
|
}
|
|
3719
4171
|
|
|
4172
|
+
export class UpdateServiceSafetyLockRequest extends $tea.Model {
|
|
4173
|
+
lock?: string;
|
|
4174
|
+
static names(): { [key: string]: string } {
|
|
4175
|
+
return {
|
|
4176
|
+
lock: 'Lock',
|
|
4177
|
+
};
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
static types(): { [key: string]: any } {
|
|
4181
|
+
return {
|
|
4182
|
+
lock: 'string',
|
|
4183
|
+
};
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4186
|
+
constructor(map?: { [key: string]: any }) {
|
|
4187
|
+
super(map);
|
|
4188
|
+
}
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
export class UpdateServiceSafetyLockResponseBody extends $tea.Model {
|
|
4192
|
+
message?: string;
|
|
4193
|
+
requestId?: string;
|
|
4194
|
+
static names(): { [key: string]: string } {
|
|
4195
|
+
return {
|
|
4196
|
+
message: 'Message',
|
|
4197
|
+
requestId: 'RequestId',
|
|
4198
|
+
};
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
static types(): { [key: string]: any } {
|
|
4202
|
+
return {
|
|
4203
|
+
message: 'string',
|
|
4204
|
+
requestId: 'string',
|
|
4205
|
+
};
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
constructor(map?: { [key: string]: any }) {
|
|
4209
|
+
super(map);
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
export class UpdateServiceSafetyLockResponse extends $tea.Model {
|
|
4214
|
+
headers: { [key: string]: string };
|
|
4215
|
+
statusCode: number;
|
|
4216
|
+
body: UpdateServiceSafetyLockResponseBody;
|
|
4217
|
+
static names(): { [key: string]: string } {
|
|
4218
|
+
return {
|
|
4219
|
+
headers: 'headers',
|
|
4220
|
+
statusCode: 'statusCode',
|
|
4221
|
+
body: 'body',
|
|
4222
|
+
};
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
static types(): { [key: string]: any } {
|
|
4226
|
+
return {
|
|
4227
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4228
|
+
statusCode: 'number',
|
|
4229
|
+
body: UpdateServiceSafetyLockResponseBody,
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
constructor(map?: { [key: string]: any }) {
|
|
4234
|
+
super(map);
|
|
4235
|
+
}
|
|
4236
|
+
}
|
|
4237
|
+
|
|
3720
4238
|
export class UpdateServiceVersionRequest extends $tea.Model {
|
|
3721
4239
|
version?: number;
|
|
3722
4240
|
static names(): { [key: string]: string } {
|
|
@@ -3783,6 +4301,28 @@ export class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
3783
4301
|
}
|
|
3784
4302
|
}
|
|
3785
4303
|
|
|
4304
|
+
export class ServiceLabels extends $tea.Model {
|
|
4305
|
+
labelKey?: string;
|
|
4306
|
+
labelValue?: string;
|
|
4307
|
+
static names(): { [key: string]: string } {
|
|
4308
|
+
return {
|
|
4309
|
+
labelKey: 'LabelKey',
|
|
4310
|
+
labelValue: 'LabelValue',
|
|
4311
|
+
};
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
static types(): { [key: string]: any } {
|
|
4315
|
+
return {
|
|
4316
|
+
labelKey: 'string',
|
|
4317
|
+
labelValue: 'string',
|
|
4318
|
+
};
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
constructor(map?: { [key: string]: any }) {
|
|
4322
|
+
super(map);
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
|
|
3786
4326
|
export class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
3787
4327
|
metricName?: string;
|
|
3788
4328
|
service?: string;
|
|
@@ -4112,10 +4652,28 @@ export default class Client extends OpenApi {
|
|
|
4112
4652
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4113
4653
|
}
|
|
4114
4654
|
|
|
4115
|
-
async
|
|
4655
|
+
async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
|
|
4656
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4657
|
+
headers: headers,
|
|
4658
|
+
});
|
|
4659
|
+
let params = new $OpenApi.Params({
|
|
4660
|
+
action: "CommitService",
|
|
4661
|
+
version: "2021-07-01",
|
|
4662
|
+
protocol: "HTTPS",
|
|
4663
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/commit`,
|
|
4664
|
+
method: "PUT",
|
|
4665
|
+
authType: "AK",
|
|
4666
|
+
style: "ROA",
|
|
4667
|
+
reqBodyType: "json",
|
|
4668
|
+
bodyType: "json",
|
|
4669
|
+
});
|
|
4670
|
+
return $tea.cast<CommitServiceResponse>(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
async commitService(ClusterId: string, ServiceName: string): Promise<CommitServiceResponse> {
|
|
4116
4674
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4117
4675
|
let headers : {[key: string ]: string} = { };
|
|
4118
|
-
return await this.
|
|
4676
|
+
return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4119
4677
|
}
|
|
4120
4678
|
|
|
4121
4679
|
async createBenchmarkTaskWithOptions(request: CreateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateBenchmarkTaskResponse> {
|
|
@@ -4138,10 +4696,10 @@ export default class Client extends OpenApi {
|
|
|
4138
4696
|
return $tea.cast<CreateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
|
|
4139
4697
|
}
|
|
4140
4698
|
|
|
4141
|
-
async
|
|
4699
|
+
async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
|
|
4142
4700
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4143
4701
|
let headers : {[key: string ]: string} = { };
|
|
4144
|
-
return await this.
|
|
4702
|
+
return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
|
|
4145
4703
|
}
|
|
4146
4704
|
|
|
4147
4705
|
async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
|
|
@@ -4181,10 +4739,10 @@ export default class Client extends OpenApi {
|
|
|
4181
4739
|
return $tea.cast<CreateResourceResponse>(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
|
|
4182
4740
|
}
|
|
4183
4741
|
|
|
4184
|
-
async
|
|
4742
|
+
async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
|
|
4185
4743
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4186
4744
|
let headers : {[key: string ]: string} = { };
|
|
4187
|
-
return await this.
|
|
4745
|
+
return await this.createResourceWithOptions(request, headers, runtime);
|
|
4188
4746
|
}
|
|
4189
4747
|
|
|
4190
4748
|
async createResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceInstancesResponse> {
|
|
@@ -4228,10 +4786,10 @@ export default class Client extends OpenApi {
|
|
|
4228
4786
|
return $tea.cast<CreateResourceInstancesResponse>(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
|
|
4229
4787
|
}
|
|
4230
4788
|
|
|
4231
|
-
async
|
|
4789
|
+
async createResourceInstances(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest): Promise<CreateResourceInstancesResponse> {
|
|
4232
4790
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4233
4791
|
let headers : {[key: string ]: string} = { };
|
|
4234
|
-
return await this.
|
|
4792
|
+
return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4235
4793
|
}
|
|
4236
4794
|
|
|
4237
4795
|
async createResourceLogWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceLogResponse> {
|
|
@@ -4263,16 +4821,32 @@ export default class Client extends OpenApi {
|
|
|
4263
4821
|
return $tea.cast<CreateResourceLogResponse>(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
|
|
4264
4822
|
}
|
|
4265
4823
|
|
|
4266
|
-
async
|
|
4824
|
+
async createResourceLog(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest): Promise<CreateResourceLogResponse> {
|
|
4267
4825
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4268
4826
|
let headers : {[key: string ]: string} = { };
|
|
4269
|
-
return await this.
|
|
4827
|
+
return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4270
4828
|
}
|
|
4271
4829
|
|
|
4272
|
-
async createServiceWithOptions(
|
|
4273
|
-
Util.validateModel(
|
|
4830
|
+
async createServiceWithOptions(tmpReq: CreateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceResponse> {
|
|
4831
|
+
Util.validateModel(tmpReq);
|
|
4832
|
+
let request = new CreateServiceShrinkRequest({ });
|
|
4833
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4834
|
+
if (!Util.isUnset(tmpReq.labels)) {
|
|
4835
|
+
request.labelsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.labels, "Labels", "json");
|
|
4836
|
+
}
|
|
4837
|
+
|
|
4838
|
+
let query : {[key: string ]: any} = { };
|
|
4839
|
+
if (!Util.isUnset(request.develop)) {
|
|
4840
|
+
query["Develop"] = request.develop;
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
if (!Util.isUnset(request.labelsShrink)) {
|
|
4844
|
+
query["Labels"] = request.labelsShrink;
|
|
4845
|
+
}
|
|
4846
|
+
|
|
4274
4847
|
let req = new $OpenApi.OpenApiRequest({
|
|
4275
4848
|
headers: headers,
|
|
4849
|
+
query: OpenApiUtil.query(query),
|
|
4276
4850
|
body: request.body,
|
|
4277
4851
|
});
|
|
4278
4852
|
let params = new $OpenApi.Params({
|
|
@@ -4289,10 +4863,10 @@ export default class Client extends OpenApi {
|
|
|
4289
4863
|
return $tea.cast<CreateServiceResponse>(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
|
|
4290
4864
|
}
|
|
4291
4865
|
|
|
4292
|
-
async
|
|
4866
|
+
async createService(request: CreateServiceRequest): Promise<CreateServiceResponse> {
|
|
4293
4867
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4294
4868
|
let headers : {[key: string ]: string} = { };
|
|
4295
|
-
return await this.
|
|
4869
|
+
return await this.createServiceWithOptions(request, headers, runtime);
|
|
4296
4870
|
}
|
|
4297
4871
|
|
|
4298
4872
|
async createServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceAutoScalerResponse> {
|
|
@@ -4328,10 +4902,10 @@ export default class Client extends OpenApi {
|
|
|
4328
4902
|
return $tea.cast<CreateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
|
|
4329
4903
|
}
|
|
4330
4904
|
|
|
4331
|
-
async
|
|
4905
|
+
async createServiceAutoScaler(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest): Promise<CreateServiceAutoScalerResponse> {
|
|
4332
4906
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4333
4907
|
let headers : {[key: string ]: string} = { };
|
|
4334
|
-
return await this.
|
|
4908
|
+
return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4335
4909
|
}
|
|
4336
4910
|
|
|
4337
4911
|
async createServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceCronScalerResponse> {
|
|
@@ -4363,10 +4937,10 @@ export default class Client extends OpenApi {
|
|
|
4363
4937
|
return $tea.cast<CreateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
|
|
4364
4938
|
}
|
|
4365
4939
|
|
|
4366
|
-
async
|
|
4940
|
+
async createServiceCronScaler(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest): Promise<CreateServiceCronScalerResponse> {
|
|
4367
4941
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4368
4942
|
let headers : {[key: string ]: string} = { };
|
|
4369
|
-
return await this.
|
|
4943
|
+
return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4370
4944
|
}
|
|
4371
4945
|
|
|
4372
4946
|
async createServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceMirrorResponse> {
|
|
@@ -4398,10 +4972,10 @@ export default class Client extends OpenApi {
|
|
|
4398
4972
|
return $tea.cast<CreateServiceMirrorResponse>(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
|
|
4399
4973
|
}
|
|
4400
4974
|
|
|
4401
|
-
async
|
|
4975
|
+
async createServiceMirror(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest): Promise<CreateServiceMirrorResponse> {
|
|
4402
4976
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4403
4977
|
let headers : {[key: string ]: string} = { };
|
|
4404
|
-
return await this.
|
|
4978
|
+
return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4405
4979
|
}
|
|
4406
4980
|
|
|
4407
4981
|
async deleteBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteBenchmarkTaskResponse> {
|
|
@@ -4422,10 +4996,10 @@ export default class Client extends OpenApi {
|
|
|
4422
4996
|
return $tea.cast<DeleteBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
|
|
4423
4997
|
}
|
|
4424
4998
|
|
|
4425
|
-
async
|
|
4999
|
+
async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
|
|
4426
5000
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4427
5001
|
let headers : {[key: string ]: string} = { };
|
|
4428
|
-
return await this.
|
|
5002
|
+
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
4429
5003
|
}
|
|
4430
5004
|
|
|
4431
5005
|
async deleteResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceResponse> {
|
|
@@ -4446,10 +5020,10 @@ export default class Client extends OpenApi {
|
|
|
4446
5020
|
return $tea.cast<DeleteResourceResponse>(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
|
|
4447
5021
|
}
|
|
4448
5022
|
|
|
4449
|
-
async
|
|
5023
|
+
async deleteResource(ClusterId: string, ResourceId: string): Promise<DeleteResourceResponse> {
|
|
4450
5024
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4451
5025
|
let headers : {[key: string ]: string} = { };
|
|
4452
|
-
return await this.
|
|
5026
|
+
return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4453
5027
|
}
|
|
4454
5028
|
|
|
4455
5029
|
async deleteResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceDLinkResponse> {
|
|
@@ -4470,10 +5044,10 @@ export default class Client extends OpenApi {
|
|
|
4470
5044
|
return $tea.cast<DeleteResourceDLinkResponse>(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
|
|
4471
5045
|
}
|
|
4472
5046
|
|
|
4473
|
-
async
|
|
5047
|
+
async deleteResourceDLink(ClusterId: string, ResourceId: string): Promise<DeleteResourceDLinkResponse> {
|
|
4474
5048
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4475
5049
|
let headers : {[key: string ]: string} = { };
|
|
4476
|
-
return await this.
|
|
5050
|
+
return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4477
5051
|
}
|
|
4478
5052
|
|
|
4479
5053
|
async deleteResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceInstancesResponse> {
|
|
@@ -4505,10 +5079,10 @@ export default class Client extends OpenApi {
|
|
|
4505
5079
|
return $tea.cast<DeleteResourceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
|
|
4506
5080
|
}
|
|
4507
5081
|
|
|
4508
|
-
async
|
|
5082
|
+
async deleteResourceInstances(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest): Promise<DeleteResourceInstancesResponse> {
|
|
4509
5083
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4510
5084
|
let headers : {[key: string ]: string} = { };
|
|
4511
|
-
return await this.
|
|
5085
|
+
return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4512
5086
|
}
|
|
4513
5087
|
|
|
4514
5088
|
async deleteResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceLogResponse> {
|
|
@@ -4529,10 +5103,10 @@ export default class Client extends OpenApi {
|
|
|
4529
5103
|
return $tea.cast<DeleteResourceLogResponse>(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
|
|
4530
5104
|
}
|
|
4531
5105
|
|
|
4532
|
-
async
|
|
5106
|
+
async deleteResourceLog(ClusterId: string, ResourceId: string): Promise<DeleteResourceLogResponse> {
|
|
4533
5107
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4534
5108
|
let headers : {[key: string ]: string} = { };
|
|
4535
|
-
return await this.
|
|
5109
|
+
return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4536
5110
|
}
|
|
4537
5111
|
|
|
4538
5112
|
async deleteServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceResponse> {
|
|
@@ -4553,10 +5127,10 @@ export default class Client extends OpenApi {
|
|
|
4553
5127
|
return $tea.cast<DeleteServiceResponse>(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
|
|
4554
5128
|
}
|
|
4555
5129
|
|
|
4556
|
-
async
|
|
5130
|
+
async deleteService(ClusterId: string, ServiceName: string): Promise<DeleteServiceResponse> {
|
|
4557
5131
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4558
5132
|
let headers : {[key: string ]: string} = { };
|
|
4559
|
-
return await this.
|
|
5133
|
+
return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4560
5134
|
}
|
|
4561
5135
|
|
|
4562
5136
|
async deleteServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceAutoScalerResponse> {
|
|
@@ -4577,10 +5151,10 @@ export default class Client extends OpenApi {
|
|
|
4577
5151
|
return $tea.cast<DeleteServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
|
|
4578
5152
|
}
|
|
4579
5153
|
|
|
4580
|
-
async
|
|
5154
|
+
async deleteServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceAutoScalerResponse> {
|
|
4581
5155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4582
5156
|
let headers : {[key: string ]: string} = { };
|
|
4583
|
-
return await this.
|
|
5157
|
+
return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4584
5158
|
}
|
|
4585
5159
|
|
|
4586
5160
|
async deleteServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceCronScalerResponse> {
|
|
@@ -4601,10 +5175,10 @@ export default class Client extends OpenApi {
|
|
|
4601
5175
|
return $tea.cast<DeleteServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
|
|
4602
5176
|
}
|
|
4603
5177
|
|
|
4604
|
-
async
|
|
5178
|
+
async deleteServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceCronScalerResponse> {
|
|
4605
5179
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4606
5180
|
let headers : {[key: string ]: string} = { };
|
|
4607
|
-
return await this.
|
|
5181
|
+
return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4608
5182
|
}
|
|
4609
5183
|
|
|
4610
5184
|
async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
|
|
@@ -4632,10 +5206,47 @@ export default class Client extends OpenApi {
|
|
|
4632
5206
|
return $tea.cast<DeleteServiceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
|
|
4633
5207
|
}
|
|
4634
5208
|
|
|
4635
|
-
async
|
|
5209
|
+
async deleteServiceInstances(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest): Promise<DeleteServiceInstancesResponse> {
|
|
5210
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5211
|
+
let headers : {[key: string ]: string} = { };
|
|
5212
|
+
return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5215
|
+
async deleteServiceLabelWithOptions(ClusterId: string, ServiceName: string, tmpReq: DeleteServiceLabelRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceLabelResponse> {
|
|
5216
|
+
Util.validateModel(tmpReq);
|
|
5217
|
+
let request = new DeleteServiceLabelShrinkRequest({ });
|
|
5218
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5219
|
+
if (!Util.isUnset(tmpReq.keys)) {
|
|
5220
|
+
request.keysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
|
|
5221
|
+
}
|
|
5222
|
+
|
|
5223
|
+
let query : {[key: string ]: any} = { };
|
|
5224
|
+
if (!Util.isUnset(request.keysShrink)) {
|
|
5225
|
+
query["Keys"] = request.keysShrink;
|
|
5226
|
+
}
|
|
5227
|
+
|
|
5228
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5229
|
+
headers: headers,
|
|
5230
|
+
query: OpenApiUtil.query(query),
|
|
5231
|
+
});
|
|
5232
|
+
let params = new $OpenApi.Params({
|
|
5233
|
+
action: "DeleteServiceLabel",
|
|
5234
|
+
version: "2021-07-01",
|
|
5235
|
+
protocol: "HTTPS",
|
|
5236
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/label`,
|
|
5237
|
+
method: "DELETE",
|
|
5238
|
+
authType: "AK",
|
|
5239
|
+
style: "ROA",
|
|
5240
|
+
reqBodyType: "json",
|
|
5241
|
+
bodyType: "json",
|
|
5242
|
+
});
|
|
5243
|
+
return $tea.cast<DeleteServiceLabelResponse>(await this.callApi(params, req, runtime), new DeleteServiceLabelResponse({}));
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
async deleteServiceLabel(ClusterId: string, ServiceName: string, request: DeleteServiceLabelRequest): Promise<DeleteServiceLabelResponse> {
|
|
4636
5247
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4637
5248
|
let headers : {[key: string ]: string} = { };
|
|
4638
|
-
return await this.
|
|
5249
|
+
return await this.deleteServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4639
5250
|
}
|
|
4640
5251
|
|
|
4641
5252
|
async deleteServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceMirrorResponse> {
|
|
@@ -4656,10 +5267,10 @@ export default class Client extends OpenApi {
|
|
|
4656
5267
|
return $tea.cast<DeleteServiceMirrorResponse>(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
|
|
4657
5268
|
}
|
|
4658
5269
|
|
|
4659
|
-
async
|
|
5270
|
+
async deleteServiceMirror(ClusterId: string, ServiceName: string): Promise<DeleteServiceMirrorResponse> {
|
|
4660
5271
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4661
5272
|
let headers : {[key: string ]: string} = { };
|
|
4662
|
-
return await this.
|
|
5273
|
+
return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4663
5274
|
}
|
|
4664
5275
|
|
|
4665
5276
|
async describeBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskResponse> {
|
|
@@ -4680,10 +5291,10 @@ export default class Client extends OpenApi {
|
|
|
4680
5291
|
return $tea.cast<DescribeBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
|
|
4681
5292
|
}
|
|
4682
5293
|
|
|
4683
|
-
async
|
|
5294
|
+
async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
|
|
4684
5295
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4685
5296
|
let headers : {[key: string ]: string} = { };
|
|
4686
|
-
return await this.
|
|
5297
|
+
return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
4687
5298
|
}
|
|
4688
5299
|
|
|
4689
5300
|
async describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskReportResponse> {
|
|
@@ -4711,10 +5322,10 @@ export default class Client extends OpenApi {
|
|
|
4711
5322
|
return $tea.cast<DescribeBenchmarkTaskReportResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
|
|
4712
5323
|
}
|
|
4713
5324
|
|
|
4714
|
-
async
|
|
5325
|
+
async describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse> {
|
|
4715
5326
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4716
5327
|
let headers : {[key: string ]: string} = { };
|
|
4717
|
-
return await this.
|
|
5328
|
+
return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
4718
5329
|
}
|
|
4719
5330
|
|
|
4720
5331
|
async describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse> {
|
|
@@ -4735,10 +5346,10 @@ export default class Client extends OpenApi {
|
|
|
4735
5346
|
return $tea.cast<DescribeGroupResponse>(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
|
|
4736
5347
|
}
|
|
4737
5348
|
|
|
4738
|
-
async
|
|
5349
|
+
async describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse> {
|
|
4739
5350
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4740
5351
|
let headers : {[key: string ]: string} = { };
|
|
4741
|
-
return await this.
|
|
5352
|
+
return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
|
|
4742
5353
|
}
|
|
4743
5354
|
|
|
4744
5355
|
async describeResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceResponse> {
|
|
@@ -4759,10 +5370,10 @@ export default class Client extends OpenApi {
|
|
|
4759
5370
|
return $tea.cast<DescribeResourceResponse>(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
|
|
4760
5371
|
}
|
|
4761
5372
|
|
|
4762
|
-
async
|
|
5373
|
+
async describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse> {
|
|
4763
5374
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4764
5375
|
let headers : {[key: string ]: string} = { };
|
|
4765
|
-
return await this.
|
|
5376
|
+
return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4766
5377
|
}
|
|
4767
5378
|
|
|
4768
5379
|
async describeResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceDLinkResponse> {
|
|
@@ -4783,10 +5394,10 @@ export default class Client extends OpenApi {
|
|
|
4783
5394
|
return $tea.cast<DescribeResourceDLinkResponse>(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
|
|
4784
5395
|
}
|
|
4785
5396
|
|
|
4786
|
-
async
|
|
5397
|
+
async describeResourceDLink(ClusterId: string, ResourceId: string): Promise<DescribeResourceDLinkResponse> {
|
|
4787
5398
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4788
5399
|
let headers : {[key: string ]: string} = { };
|
|
4789
|
-
return await this.
|
|
5400
|
+
return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4790
5401
|
}
|
|
4791
5402
|
|
|
4792
5403
|
async describeResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceLogResponse> {
|
|
@@ -4807,10 +5418,10 @@ export default class Client extends OpenApi {
|
|
|
4807
5418
|
return $tea.cast<DescribeResourceLogResponse>(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
|
|
4808
5419
|
}
|
|
4809
5420
|
|
|
4810
|
-
async
|
|
5421
|
+
async describeResourceLog(ClusterId: string, ResourceId: string): Promise<DescribeResourceLogResponse> {
|
|
4811
5422
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4812
5423
|
let headers : {[key: string ]: string} = { };
|
|
4813
|
-
return await this.
|
|
5424
|
+
return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4814
5425
|
}
|
|
4815
5426
|
|
|
4816
5427
|
async describeServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceResponse> {
|
|
@@ -4831,10 +5442,10 @@ export default class Client extends OpenApi {
|
|
|
4831
5442
|
return $tea.cast<DescribeServiceResponse>(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
|
|
4832
5443
|
}
|
|
4833
5444
|
|
|
4834
|
-
async
|
|
5445
|
+
async describeService(ClusterId: string, ServiceName: string): Promise<DescribeServiceResponse> {
|
|
4835
5446
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4836
5447
|
let headers : {[key: string ]: string} = { };
|
|
4837
|
-
return await this.
|
|
5448
|
+
return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4838
5449
|
}
|
|
4839
5450
|
|
|
4840
5451
|
async describeServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceAutoScalerResponse> {
|
|
@@ -4855,10 +5466,10 @@ export default class Client extends OpenApi {
|
|
|
4855
5466
|
return $tea.cast<DescribeServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
|
|
4856
5467
|
}
|
|
4857
5468
|
|
|
4858
|
-
async
|
|
5469
|
+
async describeServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceAutoScalerResponse> {
|
|
4859
5470
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4860
5471
|
let headers : {[key: string ]: string} = { };
|
|
4861
|
-
return await this.
|
|
5472
|
+
return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4862
5473
|
}
|
|
4863
5474
|
|
|
4864
5475
|
async describeServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse> {
|
|
@@ -4879,10 +5490,10 @@ export default class Client extends OpenApi {
|
|
|
4879
5490
|
return $tea.cast<DescribeServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
|
|
4880
5491
|
}
|
|
4881
5492
|
|
|
4882
|
-
async
|
|
5493
|
+
async describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse> {
|
|
4883
5494
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4884
5495
|
let headers : {[key: string ]: string} = { };
|
|
4885
|
-
return await this.
|
|
5496
|
+
return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4886
5497
|
}
|
|
4887
5498
|
|
|
4888
5499
|
async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
|
|
@@ -4922,10 +5533,10 @@ export default class Client extends OpenApi {
|
|
|
4922
5533
|
return $tea.cast<DescribeServiceEventResponse>(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
|
|
4923
5534
|
}
|
|
4924
5535
|
|
|
4925
|
-
async
|
|
5536
|
+
async describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse> {
|
|
4926
5537
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4927
5538
|
let headers : {[key: string ]: string} = { };
|
|
4928
|
-
return await this.
|
|
5539
|
+
return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4929
5540
|
}
|
|
4930
5541
|
|
|
4931
5542
|
async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
|
|
@@ -4973,10 +5584,10 @@ export default class Client extends OpenApi {
|
|
|
4973
5584
|
return $tea.cast<DescribeServiceLogResponse>(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
|
|
4974
5585
|
}
|
|
4975
5586
|
|
|
4976
|
-
async
|
|
5587
|
+
async describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse> {
|
|
4977
5588
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4978
5589
|
let headers : {[key: string ]: string} = { };
|
|
4979
|
-
return await this.
|
|
5590
|
+
return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4980
5591
|
}
|
|
4981
5592
|
|
|
4982
5593
|
async describeServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceMirrorResponse> {
|
|
@@ -4997,17 +5608,48 @@ export default class Client extends OpenApi {
|
|
|
4997
5608
|
return $tea.cast<DescribeServiceMirrorResponse>(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
4998
5609
|
}
|
|
4999
5610
|
|
|
5000
|
-
async
|
|
5611
|
+
async describeServiceMirror(ClusterId: string, ServiceName: string): Promise<DescribeServiceMirrorResponse> {
|
|
5001
5612
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5002
5613
|
let headers : {[key: string ]: string} = { };
|
|
5003
|
-
return await this.
|
|
5614
|
+
return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
async developServiceWithOptions(ClusterId: string, ServiceName: string, request: DevelopServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DevelopServiceResponse> {
|
|
5618
|
+
Util.validateModel(request);
|
|
5619
|
+
let query : {[key: string ]: any} = { };
|
|
5620
|
+
if (!Util.isUnset(request.exit)) {
|
|
5621
|
+
query["Exit"] = request.exit;
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5625
|
+
headers: headers,
|
|
5626
|
+
query: OpenApiUtil.query(query),
|
|
5627
|
+
});
|
|
5628
|
+
let params = new $OpenApi.Params({
|
|
5629
|
+
action: "DevelopService",
|
|
5630
|
+
version: "2021-07-01",
|
|
5631
|
+
protocol: "HTTPS",
|
|
5632
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/develop`,
|
|
5633
|
+
method: "PUT",
|
|
5634
|
+
authType: "AK",
|
|
5635
|
+
style: "ROA",
|
|
5636
|
+
reqBodyType: "json",
|
|
5637
|
+
bodyType: "json",
|
|
5638
|
+
});
|
|
5639
|
+
return $tea.cast<DevelopServiceResponse>(await this.callApi(params, req, runtime), new DevelopServiceResponse({}));
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5642
|
+
async developService(ClusterId: string, ServiceName: string, request: DevelopServiceRequest): Promise<DevelopServiceResponse> {
|
|
5643
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5644
|
+
let headers : {[key: string ]: string} = { };
|
|
5645
|
+
return await this.developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5004
5646
|
}
|
|
5005
5647
|
|
|
5006
5648
|
async listBenchmarkTaskWithOptions(request: ListBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListBenchmarkTaskResponse> {
|
|
5007
5649
|
Util.validateModel(request);
|
|
5008
5650
|
let query : {[key: string ]: any} = { };
|
|
5009
|
-
if (!Util.isUnset(request.
|
|
5010
|
-
query["
|
|
5651
|
+
if (!Util.isUnset(request.filter)) {
|
|
5652
|
+
query["Filter"] = request.filter;
|
|
5011
5653
|
}
|
|
5012
5654
|
|
|
5013
5655
|
if (!Util.isUnset(request.pageNumber)) {
|
|
@@ -5040,10 +5682,10 @@ export default class Client extends OpenApi {
|
|
|
5040
5682
|
return $tea.cast<ListBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
|
|
5041
5683
|
}
|
|
5042
5684
|
|
|
5043
|
-
async
|
|
5685
|
+
async listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse> {
|
|
5044
5686
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5045
5687
|
let headers : {[key: string ]: string} = { };
|
|
5046
|
-
return await this.
|
|
5688
|
+
return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
|
|
5047
5689
|
}
|
|
5048
5690
|
|
|
5049
5691
|
async listGroupsWithOptions(request: ListGroupsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse> {
|
|
@@ -5079,10 +5721,10 @@ export default class Client extends OpenApi {
|
|
|
5079
5721
|
return $tea.cast<ListGroupsResponse>(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
|
|
5080
5722
|
}
|
|
5081
5723
|
|
|
5082
|
-
async
|
|
5724
|
+
async listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse> {
|
|
5083
5725
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5084
5726
|
let headers : {[key: string ]: string} = { };
|
|
5085
|
-
return await this.
|
|
5727
|
+
return await this.listGroupsWithOptions(request, headers, runtime);
|
|
5086
5728
|
}
|
|
5087
5729
|
|
|
5088
5730
|
async listResourceInstanceWorkerWithOptions(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstanceWorkerResponse> {
|
|
@@ -5114,10 +5756,10 @@ export default class Client extends OpenApi {
|
|
|
5114
5756
|
return $tea.cast<ListResourceInstanceWorkerResponse>(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
|
|
5115
5757
|
}
|
|
5116
5758
|
|
|
5117
|
-
async
|
|
5759
|
+
async listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse> {
|
|
5118
5760
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5119
5761
|
let headers : {[key: string ]: string} = { };
|
|
5120
|
-
return await this.
|
|
5762
|
+
return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
|
|
5121
5763
|
}
|
|
5122
5764
|
|
|
5123
5765
|
async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstancesResponse> {
|
|
@@ -5127,6 +5769,14 @@ export default class Client extends OpenApi {
|
|
|
5127
5769
|
query["ChargeType"] = request.chargeType;
|
|
5128
5770
|
}
|
|
5129
5771
|
|
|
5772
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
5773
|
+
query["InstanceId"] = request.instanceId;
|
|
5774
|
+
}
|
|
5775
|
+
|
|
5776
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
5777
|
+
query["InstanceName"] = request.instanceName;
|
|
5778
|
+
}
|
|
5779
|
+
|
|
5130
5780
|
if (!Util.isUnset(request.pageNumber)) {
|
|
5131
5781
|
query["PageNumber"] = request.pageNumber;
|
|
5132
5782
|
}
|
|
@@ -5153,10 +5803,10 @@ export default class Client extends OpenApi {
|
|
|
5153
5803
|
return $tea.cast<ListResourceInstancesResponse>(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
|
|
5154
5804
|
}
|
|
5155
5805
|
|
|
5156
|
-
async
|
|
5806
|
+
async listResourceInstances(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse> {
|
|
5157
5807
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5158
5808
|
let headers : {[key: string ]: string} = { };
|
|
5159
|
-
return await this.
|
|
5809
|
+
return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5160
5810
|
}
|
|
5161
5811
|
|
|
5162
5812
|
async listResourceServicesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceServicesResponse> {
|
|
@@ -5188,10 +5838,10 @@ export default class Client extends OpenApi {
|
|
|
5188
5838
|
return $tea.cast<ListResourceServicesResponse>(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
|
|
5189
5839
|
}
|
|
5190
5840
|
|
|
5191
|
-
async
|
|
5841
|
+
async listResourceServices(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest): Promise<ListResourceServicesResponse> {
|
|
5192
5842
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5193
5843
|
let headers : {[key: string ]: string} = { };
|
|
5194
|
-
return await this.
|
|
5844
|
+
return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5195
5845
|
}
|
|
5196
5846
|
|
|
5197
5847
|
async listResourcesWithOptions(request: ListResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse> {
|
|
@@ -5205,6 +5855,14 @@ export default class Client extends OpenApi {
|
|
|
5205
5855
|
query["PageSize"] = request.pageSize;
|
|
5206
5856
|
}
|
|
5207
5857
|
|
|
5858
|
+
if (!Util.isUnset(request.resourceId)) {
|
|
5859
|
+
query["ResourceId"] = request.resourceId;
|
|
5860
|
+
}
|
|
5861
|
+
|
|
5862
|
+
if (!Util.isUnset(request.resourceName)) {
|
|
5863
|
+
query["ResourceName"] = request.resourceName;
|
|
5864
|
+
}
|
|
5865
|
+
|
|
5208
5866
|
let req = new $OpenApi.OpenApiRequest({
|
|
5209
5867
|
headers: headers,
|
|
5210
5868
|
query: OpenApiUtil.query(query),
|
|
@@ -5223,10 +5881,10 @@ export default class Client extends OpenApi {
|
|
|
5223
5881
|
return $tea.cast<ListResourcesResponse>(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
|
|
5224
5882
|
}
|
|
5225
5883
|
|
|
5226
|
-
async
|
|
5884
|
+
async listResources(request: ListResourcesRequest): Promise<ListResourcesResponse> {
|
|
5227
5885
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5228
5886
|
let headers : {[key: string ]: string} = { };
|
|
5229
|
-
return await this.
|
|
5887
|
+
return await this.listResourcesWithOptions(request, headers, runtime);
|
|
5230
5888
|
}
|
|
5231
5889
|
|
|
5232
5890
|
async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
|
|
@@ -5258,10 +5916,10 @@ export default class Client extends OpenApi {
|
|
|
5258
5916
|
return $tea.cast<ListServiceInstancesResponse>(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
|
|
5259
5917
|
}
|
|
5260
5918
|
|
|
5261
|
-
async
|
|
5919
|
+
async listServiceInstances(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest): Promise<ListServiceInstancesResponse> {
|
|
5262
5920
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5263
5921
|
let headers : {[key: string ]: string} = { };
|
|
5264
|
-
return await this.
|
|
5922
|
+
return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5265
5923
|
}
|
|
5266
5924
|
|
|
5267
5925
|
async listServiceVersionsWithOptions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceVersionsResponse> {
|
|
@@ -5293,14 +5951,20 @@ export default class Client extends OpenApi {
|
|
|
5293
5951
|
return $tea.cast<ListServiceVersionsResponse>(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
|
|
5294
5952
|
}
|
|
5295
5953
|
|
|
5296
|
-
async
|
|
5954
|
+
async listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse> {
|
|
5297
5955
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5298
5956
|
let headers : {[key: string ]: string} = { };
|
|
5299
|
-
return await this.
|
|
5957
|
+
return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5300
5958
|
}
|
|
5301
5959
|
|
|
5302
|
-
async listServicesWithOptions(
|
|
5303
|
-
Util.validateModel(
|
|
5960
|
+
async listServicesWithOptions(tmpReq: ListServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServicesResponse> {
|
|
5961
|
+
Util.validateModel(tmpReq);
|
|
5962
|
+
let request = new ListServicesShrinkRequest({ });
|
|
5963
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5964
|
+
if (!Util.isUnset(tmpReq.label)) {
|
|
5965
|
+
request.labelShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
|
|
5966
|
+
}
|
|
5967
|
+
|
|
5304
5968
|
let query : {[key: string ]: any} = { };
|
|
5305
5969
|
if (!Util.isUnset(request.filter)) {
|
|
5306
5970
|
query["Filter"] = request.filter;
|
|
@@ -5310,6 +5974,10 @@ export default class Client extends OpenApi {
|
|
|
5310
5974
|
query["GroupName"] = request.groupName;
|
|
5311
5975
|
}
|
|
5312
5976
|
|
|
5977
|
+
if (!Util.isUnset(request.labelShrink)) {
|
|
5978
|
+
query["Label"] = request.labelShrink;
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5313
5981
|
if (!Util.isUnset(request.order)) {
|
|
5314
5982
|
query["Order"] = request.order;
|
|
5315
5983
|
}
|
|
@@ -5322,6 +5990,14 @@ export default class Client extends OpenApi {
|
|
|
5322
5990
|
query["PageSize"] = request.pageSize;
|
|
5323
5991
|
}
|
|
5324
5992
|
|
|
5993
|
+
if (!Util.isUnset(request.parentServiceUid)) {
|
|
5994
|
+
query["ParentServiceUid"] = request.parentServiceUid;
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5997
|
+
if (!Util.isUnset(request.serviceType)) {
|
|
5998
|
+
query["ServiceType"] = request.serviceType;
|
|
5999
|
+
}
|
|
6000
|
+
|
|
5325
6001
|
if (!Util.isUnset(request.sort)) {
|
|
5326
6002
|
query["Sort"] = request.sort;
|
|
5327
6003
|
}
|
|
@@ -5344,10 +6020,10 @@ export default class Client extends OpenApi {
|
|
|
5344
6020
|
return $tea.cast<ListServicesResponse>(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
5345
6021
|
}
|
|
5346
6022
|
|
|
5347
|
-
async
|
|
6023
|
+
async listServices(request: ListServicesRequest): Promise<ListServicesResponse> {
|
|
5348
6024
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5349
6025
|
let headers : {[key: string ]: string} = { };
|
|
5350
|
-
return await this.
|
|
6026
|
+
return await this.listServicesWithOptions(request, headers, runtime);
|
|
5351
6027
|
}
|
|
5352
6028
|
|
|
5353
6029
|
async releaseServiceWithOptions(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse> {
|
|
@@ -5379,10 +6055,10 @@ export default class Client extends OpenApi {
|
|
|
5379
6055
|
return $tea.cast<ReleaseServiceResponse>(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
|
|
5380
6056
|
}
|
|
5381
6057
|
|
|
5382
|
-
async
|
|
6058
|
+
async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
|
|
5383
6059
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5384
6060
|
let headers : {[key: string ]: string} = { };
|
|
5385
|
-
return await this.
|
|
6061
|
+
return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5386
6062
|
}
|
|
5387
6063
|
|
|
5388
6064
|
async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
|
|
@@ -5403,10 +6079,10 @@ export default class Client extends OpenApi {
|
|
|
5403
6079
|
return $tea.cast<StartBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
|
|
5404
6080
|
}
|
|
5405
6081
|
|
|
5406
|
-
async
|
|
6082
|
+
async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
|
|
5407
6083
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5408
6084
|
let headers : {[key: string ]: string} = { };
|
|
5409
|
-
return await this.
|
|
6085
|
+
return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
5410
6086
|
}
|
|
5411
6087
|
|
|
5412
6088
|
async startServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartServiceResponse> {
|
|
@@ -5427,10 +6103,10 @@ export default class Client extends OpenApi {
|
|
|
5427
6103
|
return $tea.cast<StartServiceResponse>(await this.callApi(params, req, runtime), new StartServiceResponse({}));
|
|
5428
6104
|
}
|
|
5429
6105
|
|
|
5430
|
-
async
|
|
6106
|
+
async startService(ClusterId: string, ServiceName: string): Promise<StartServiceResponse> {
|
|
5431
6107
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5432
6108
|
let headers : {[key: string ]: string} = { };
|
|
5433
|
-
return await this.
|
|
6109
|
+
return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5434
6110
|
}
|
|
5435
6111
|
|
|
5436
6112
|
async stopBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopBenchmarkTaskResponse> {
|
|
@@ -5451,10 +6127,10 @@ export default class Client extends OpenApi {
|
|
|
5451
6127
|
return $tea.cast<StopBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
|
|
5452
6128
|
}
|
|
5453
6129
|
|
|
5454
|
-
async
|
|
6130
|
+
async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
|
|
5455
6131
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5456
6132
|
let headers : {[key: string ]: string} = { };
|
|
5457
|
-
return await this.
|
|
6133
|
+
return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
5458
6134
|
}
|
|
5459
6135
|
|
|
5460
6136
|
async stopServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopServiceResponse> {
|
|
@@ -5475,10 +6151,10 @@ export default class Client extends OpenApi {
|
|
|
5475
6151
|
return $tea.cast<StopServiceResponse>(await this.callApi(params, req, runtime), new StopServiceResponse({}));
|
|
5476
6152
|
}
|
|
5477
6153
|
|
|
5478
|
-
async
|
|
6154
|
+
async stopService(ClusterId: string, ServiceName: string): Promise<StopServiceResponse> {
|
|
5479
6155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5480
6156
|
let headers : {[key: string ]: string} = { };
|
|
5481
|
-
return await this.
|
|
6157
|
+
return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5482
6158
|
}
|
|
5483
6159
|
|
|
5484
6160
|
async updateBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateBenchmarkTaskResponse> {
|
|
@@ -5501,10 +6177,10 @@ export default class Client extends OpenApi {
|
|
|
5501
6177
|
return $tea.cast<UpdateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
|
|
5502
6178
|
}
|
|
5503
6179
|
|
|
5504
|
-
async
|
|
6180
|
+
async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
|
|
5505
6181
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5506
6182
|
let headers : {[key: string ]: string} = { };
|
|
5507
|
-
return await this.
|
|
6183
|
+
return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
5508
6184
|
}
|
|
5509
6185
|
|
|
5510
6186
|
async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
|
|
@@ -5532,10 +6208,10 @@ export default class Client extends OpenApi {
|
|
|
5532
6208
|
return $tea.cast<UpdateResourceResponse>(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
|
|
5533
6209
|
}
|
|
5534
6210
|
|
|
5535
|
-
async
|
|
6211
|
+
async updateResource(ClusterId: string, ResourceId: string, request: UpdateResourceRequest): Promise<UpdateResourceResponse> {
|
|
5536
6212
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5537
6213
|
let headers : {[key: string ]: string} = { };
|
|
5538
|
-
return await this.
|
|
6214
|
+
return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5539
6215
|
}
|
|
5540
6216
|
|
|
5541
6217
|
async updateResourceDLinkWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceDLinkResponse> {
|
|
@@ -5575,10 +6251,41 @@ export default class Client extends OpenApi {
|
|
|
5575
6251
|
return $tea.cast<UpdateResourceDLinkResponse>(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
|
|
5576
6252
|
}
|
|
5577
6253
|
|
|
5578
|
-
async
|
|
6254
|
+
async updateResourceDLink(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest): Promise<UpdateResourceDLinkResponse> {
|
|
5579
6255
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5580
6256
|
let headers : {[key: string ]: string} = { };
|
|
5581
|
-
return await this.
|
|
6257
|
+
return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
6258
|
+
}
|
|
6259
|
+
|
|
6260
|
+
async updateResourceInstanceWithOptions(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceInstanceResponse> {
|
|
6261
|
+
Util.validateModel(request);
|
|
6262
|
+
let body : {[key: string ]: any} = { };
|
|
6263
|
+
if (!Util.isUnset(request.action)) {
|
|
6264
|
+
body["Action"] = request.action;
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6268
|
+
headers: headers,
|
|
6269
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6270
|
+
});
|
|
6271
|
+
let params = new $OpenApi.Params({
|
|
6272
|
+
action: "UpdateResourceInstance",
|
|
6273
|
+
version: "2021-07-01",
|
|
6274
|
+
protocol: "HTTPS",
|
|
6275
|
+
pathname: `/api/v2/resources/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ResourceId)}/instances/${OpenApiUtil.getEncodeParam(InstanceId)}`,
|
|
6276
|
+
method: "PUT",
|
|
6277
|
+
authType: "AK",
|
|
6278
|
+
style: "ROA",
|
|
6279
|
+
reqBodyType: "json",
|
|
6280
|
+
bodyType: "json",
|
|
6281
|
+
});
|
|
6282
|
+
return $tea.cast<UpdateResourceInstanceResponse>(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
|
|
6283
|
+
}
|
|
6284
|
+
|
|
6285
|
+
async updateResourceInstance(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest): Promise<UpdateResourceInstanceResponse> {
|
|
6286
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6287
|
+
let headers : {[key: string ]: string} = { };
|
|
6288
|
+
return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
|
|
5582
6289
|
}
|
|
5583
6290
|
|
|
5584
6291
|
async updateServiceWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceResponse> {
|
|
@@ -5601,10 +6308,10 @@ export default class Client extends OpenApi {
|
|
|
5601
6308
|
return $tea.cast<UpdateServiceResponse>(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
|
|
5602
6309
|
}
|
|
5603
6310
|
|
|
5604
|
-
async
|
|
6311
|
+
async updateService(ClusterId: string, ServiceName: string, request: UpdateServiceRequest): Promise<UpdateServiceResponse> {
|
|
5605
6312
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5606
6313
|
let headers : {[key: string ]: string} = { };
|
|
5607
|
-
return await this.
|
|
6314
|
+
return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5608
6315
|
}
|
|
5609
6316
|
|
|
5610
6317
|
async updateServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceAutoScalerResponse> {
|
|
@@ -5640,10 +6347,10 @@ export default class Client extends OpenApi {
|
|
|
5640
6347
|
return $tea.cast<UpdateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
|
|
5641
6348
|
}
|
|
5642
6349
|
|
|
5643
|
-
async
|
|
6350
|
+
async updateServiceAutoScaler(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest): Promise<UpdateServiceAutoScalerResponse> {
|
|
5644
6351
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5645
6352
|
let headers : {[key: string ]: string} = { };
|
|
5646
|
-
return await this.
|
|
6353
|
+
return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5647
6354
|
}
|
|
5648
6355
|
|
|
5649
6356
|
async updateServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceCronScalerResponse> {
|
|
@@ -5675,10 +6382,41 @@ export default class Client extends OpenApi {
|
|
|
5675
6382
|
return $tea.cast<UpdateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
|
|
5676
6383
|
}
|
|
5677
6384
|
|
|
5678
|
-
async
|
|
6385
|
+
async updateServiceCronScaler(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest): Promise<UpdateServiceCronScalerResponse> {
|
|
5679
6386
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5680
6387
|
let headers : {[key: string ]: string} = { };
|
|
5681
|
-
return await this.
|
|
6388
|
+
return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
6389
|
+
}
|
|
6390
|
+
|
|
6391
|
+
async updateServiceLabelWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceLabelRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceLabelResponse> {
|
|
6392
|
+
Util.validateModel(request);
|
|
6393
|
+
let body : {[key: string ]: any} = { };
|
|
6394
|
+
if (!Util.isUnset(request.labels)) {
|
|
6395
|
+
body["Labels"] = request.labels;
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6398
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6399
|
+
headers: headers,
|
|
6400
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6401
|
+
});
|
|
6402
|
+
let params = new $OpenApi.Params({
|
|
6403
|
+
action: "UpdateServiceLabel",
|
|
6404
|
+
version: "2021-07-01",
|
|
6405
|
+
protocol: "HTTPS",
|
|
6406
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/label`,
|
|
6407
|
+
method: "PUT",
|
|
6408
|
+
authType: "AK",
|
|
6409
|
+
style: "ROA",
|
|
6410
|
+
reqBodyType: "json",
|
|
6411
|
+
bodyType: "json",
|
|
6412
|
+
});
|
|
6413
|
+
return $tea.cast<UpdateServiceLabelResponse>(await this.callApi(params, req, runtime), new UpdateServiceLabelResponse({}));
|
|
6414
|
+
}
|
|
6415
|
+
|
|
6416
|
+
async updateServiceLabel(ClusterId: string, ServiceName: string, request: UpdateServiceLabelRequest): Promise<UpdateServiceLabelResponse> {
|
|
6417
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6418
|
+
let headers : {[key: string ]: string} = { };
|
|
6419
|
+
return await this.updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5682
6420
|
}
|
|
5683
6421
|
|
|
5684
6422
|
async updateServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceMirrorResponse> {
|
|
@@ -5710,10 +6448,41 @@ export default class Client extends OpenApi {
|
|
|
5710
6448
|
return $tea.cast<UpdateServiceMirrorResponse>(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
|
|
5711
6449
|
}
|
|
5712
6450
|
|
|
5713
|
-
async
|
|
6451
|
+
async updateServiceMirror(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest): Promise<UpdateServiceMirrorResponse> {
|
|
5714
6452
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5715
6453
|
let headers : {[key: string ]: string} = { };
|
|
5716
|
-
return await this.
|
|
6454
|
+
return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
6455
|
+
}
|
|
6456
|
+
|
|
6457
|
+
async updateServiceSafetyLockWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceSafetyLockResponse> {
|
|
6458
|
+
Util.validateModel(request);
|
|
6459
|
+
let body : {[key: string ]: any} = { };
|
|
6460
|
+
if (!Util.isUnset(request.lock)) {
|
|
6461
|
+
body["Lock"] = request.lock;
|
|
6462
|
+
}
|
|
6463
|
+
|
|
6464
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6465
|
+
headers: headers,
|
|
6466
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6467
|
+
});
|
|
6468
|
+
let params = new $OpenApi.Params({
|
|
6469
|
+
action: "UpdateServiceSafetyLock",
|
|
6470
|
+
version: "2021-07-01",
|
|
6471
|
+
protocol: "HTTPS",
|
|
6472
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/lock`,
|
|
6473
|
+
method: "PUT",
|
|
6474
|
+
authType: "AK",
|
|
6475
|
+
style: "ROA",
|
|
6476
|
+
reqBodyType: "json",
|
|
6477
|
+
bodyType: "json",
|
|
6478
|
+
});
|
|
6479
|
+
return $tea.cast<UpdateServiceSafetyLockResponse>(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
async updateServiceSafetyLock(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest): Promise<UpdateServiceSafetyLockResponse> {
|
|
6483
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6484
|
+
let headers : {[key: string ]: string} = { };
|
|
6485
|
+
return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5717
6486
|
}
|
|
5718
6487
|
|
|
5719
6488
|
async updateServiceVersionWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceVersionResponse> {
|
|
@@ -5741,4 +6510,10 @@ export default class Client extends OpenApi {
|
|
|
5741
6510
|
return $tea.cast<UpdateServiceVersionResponse>(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
|
|
5742
6511
|
}
|
|
5743
6512
|
|
|
6513
|
+
async updateServiceVersion(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest): Promise<UpdateServiceVersionResponse> {
|
|
6514
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6515
|
+
let headers : {[key: string ]: string} = { };
|
|
6516
|
+
return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
6517
|
+
}
|
|
6518
|
+
|
|
5744
6519
|
}
|