@alicloud/eas20210701 2.0.2 → 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 +301 -56
- package/dist/client.js +560 -112
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +677 -130
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;
|
|
@@ -331,6 +350,7 @@ export class Service extends $tea.Model {
|
|
|
331
350
|
image: 'Image',
|
|
332
351
|
internetEndpoint: 'InternetEndpoint',
|
|
333
352
|
intranetEndpoint: 'IntranetEndpoint',
|
|
353
|
+
labels: 'Labels',
|
|
334
354
|
latestVersion: 'LatestVersion',
|
|
335
355
|
memory: 'Memory',
|
|
336
356
|
message: 'Message',
|
|
@@ -371,6 +391,7 @@ export class Service extends $tea.Model {
|
|
|
371
391
|
image: 'string',
|
|
372
392
|
internetEndpoint: 'string',
|
|
373
393
|
intranetEndpoint: 'string',
|
|
394
|
+
labels: { 'type': 'array', 'itemType': ServiceLabels },
|
|
374
395
|
latestVersion: 'number',
|
|
375
396
|
memory: 'number',
|
|
376
397
|
message: 'string',
|
|
@@ -404,6 +425,53 @@ export class Service extends $tea.Model {
|
|
|
404
425
|
}
|
|
405
426
|
}
|
|
406
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
|
+
|
|
407
475
|
export class CreateBenchmarkTaskRequest extends $tea.Model {
|
|
408
476
|
body?: string;
|
|
409
477
|
static names(): { [key: string]: string } {
|
|
@@ -708,15 +776,46 @@ export class CreateResourceLogResponse extends $tea.Model {
|
|
|
708
776
|
}
|
|
709
777
|
|
|
710
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;
|
|
711
806
|
body?: string;
|
|
712
807
|
static names(): { [key: string]: string } {
|
|
713
808
|
return {
|
|
809
|
+
develop: 'Develop',
|
|
810
|
+
labelsShrink: 'Labels',
|
|
714
811
|
body: 'body',
|
|
715
812
|
};
|
|
716
813
|
}
|
|
717
814
|
|
|
718
815
|
static types(): { [key: string]: any } {
|
|
719
816
|
return {
|
|
817
|
+
develop: 'string',
|
|
818
|
+
labelsShrink: 'string',
|
|
720
819
|
body: 'string',
|
|
721
820
|
};
|
|
722
821
|
}
|
|
@@ -1462,6 +1561,91 @@ export class DeleteServiceInstancesResponse extends $tea.Model {
|
|
|
1462
1561
|
}
|
|
1463
1562
|
}
|
|
1464
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
|
+
|
|
1465
1649
|
export class DeleteServiceMirrorResponseBody extends $tea.Model {
|
|
1466
1650
|
message?: string;
|
|
1467
1651
|
requestId?: string;
|
|
@@ -2251,6 +2435,72 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
2251
2435
|
}
|
|
2252
2436
|
}
|
|
2253
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
|
+
|
|
2254
2504
|
export class ListBenchmarkTaskRequest extends $tea.Model {
|
|
2255
2505
|
filter?: string;
|
|
2256
2506
|
pageNumber?: string;
|
|
@@ -2902,17 +3152,66 @@ export class ListServiceVersionsResponse extends $tea.Model {
|
|
|
2902
3152
|
export class ListServicesRequest extends $tea.Model {
|
|
2903
3153
|
filter?: string;
|
|
2904
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;
|
|
2905
3199
|
order?: string;
|
|
2906
3200
|
pageNumber?: number;
|
|
2907
3201
|
pageSize?: number;
|
|
3202
|
+
parentServiceUid?: string;
|
|
3203
|
+
serviceType?: string;
|
|
2908
3204
|
sort?: string;
|
|
2909
3205
|
static names(): { [key: string]: string } {
|
|
2910
3206
|
return {
|
|
2911
3207
|
filter: 'Filter',
|
|
2912
3208
|
groupName: 'GroupName',
|
|
3209
|
+
labelShrink: 'Label',
|
|
2913
3210
|
order: 'Order',
|
|
2914
3211
|
pageNumber: 'PageNumber',
|
|
2915
3212
|
pageSize: 'PageSize',
|
|
3213
|
+
parentServiceUid: 'ParentServiceUid',
|
|
3214
|
+
serviceType: 'ServiceType',
|
|
2916
3215
|
sort: 'Sort',
|
|
2917
3216
|
};
|
|
2918
3217
|
}
|
|
@@ -2921,9 +3220,12 @@ export class ListServicesRequest extends $tea.Model {
|
|
|
2921
3220
|
return {
|
|
2922
3221
|
filter: 'string',
|
|
2923
3222
|
groupName: 'string',
|
|
3223
|
+
labelShrink: 'string',
|
|
2924
3224
|
order: 'string',
|
|
2925
3225
|
pageNumber: 'number',
|
|
2926
3226
|
pageSize: 'number',
|
|
3227
|
+
parentServiceUid: 'string',
|
|
3228
|
+
serviceType: 'string',
|
|
2927
3229
|
sort: 'string',
|
|
2928
3230
|
};
|
|
2929
3231
|
}
|
|
@@ -3732,20 +4034,17 @@ export class UpdateServiceCronScalerResponse extends $tea.Model {
|
|
|
3732
4034
|
}
|
|
3733
4035
|
}
|
|
3734
4036
|
|
|
3735
|
-
export class
|
|
3736
|
-
|
|
3737
|
-
target?: string[];
|
|
4037
|
+
export class UpdateServiceLabelRequest extends $tea.Model {
|
|
4038
|
+
labels?: { [key: string]: string };
|
|
3738
4039
|
static names(): { [key: string]: string } {
|
|
3739
4040
|
return {
|
|
3740
|
-
|
|
3741
|
-
target: 'Target',
|
|
4041
|
+
labels: 'Labels',
|
|
3742
4042
|
};
|
|
3743
4043
|
}
|
|
3744
4044
|
|
|
3745
4045
|
static types(): { [key: string]: any } {
|
|
3746
4046
|
return {
|
|
3747
|
-
|
|
3748
|
-
target: { 'type': 'array', 'itemType': 'string' },
|
|
4047
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3749
4048
|
};
|
|
3750
4049
|
}
|
|
3751
4050
|
|
|
@@ -3754,7 +4053,7 @@ export class UpdateServiceMirrorRequest extends $tea.Model {
|
|
|
3754
4053
|
}
|
|
3755
4054
|
}
|
|
3756
4055
|
|
|
3757
|
-
export class
|
|
4056
|
+
export class UpdateServiceLabelResponseBody extends $tea.Model {
|
|
3758
4057
|
message?: string;
|
|
3759
4058
|
requestId?: string;
|
|
3760
4059
|
static names(): { [key: string]: string } {
|
|
@@ -3776,10 +4075,10 @@ export class UpdateServiceMirrorResponseBody extends $tea.Model {
|
|
|
3776
4075
|
}
|
|
3777
4076
|
}
|
|
3778
4077
|
|
|
3779
|
-
export class
|
|
4078
|
+
export class UpdateServiceLabelResponse extends $tea.Model {
|
|
3780
4079
|
headers: { [key: string]: string };
|
|
3781
4080
|
statusCode: number;
|
|
3782
|
-
body:
|
|
4081
|
+
body: UpdateServiceLabelResponseBody;
|
|
3783
4082
|
static names(): { [key: string]: string } {
|
|
3784
4083
|
return {
|
|
3785
4084
|
headers: 'headers',
|
|
@@ -3792,7 +4091,7 @@ export class UpdateServiceMirrorResponse extends $tea.Model {
|
|
|
3792
4091
|
return {
|
|
3793
4092
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3794
4093
|
statusCode: 'number',
|
|
3795
|
-
body:
|
|
4094
|
+
body: UpdateServiceLabelResponseBody,
|
|
3796
4095
|
};
|
|
3797
4096
|
}
|
|
3798
4097
|
|
|
@@ -3801,17 +4100,20 @@ export class UpdateServiceMirrorResponse extends $tea.Model {
|
|
|
3801
4100
|
}
|
|
3802
4101
|
}
|
|
3803
4102
|
|
|
3804
|
-
export class
|
|
3805
|
-
|
|
4103
|
+
export class UpdateServiceMirrorRequest extends $tea.Model {
|
|
4104
|
+
ratio?: number;
|
|
4105
|
+
target?: string[];
|
|
3806
4106
|
static names(): { [key: string]: string } {
|
|
3807
4107
|
return {
|
|
3808
|
-
|
|
4108
|
+
ratio: 'Ratio',
|
|
4109
|
+
target: 'Target',
|
|
3809
4110
|
};
|
|
3810
4111
|
}
|
|
3811
4112
|
|
|
3812
4113
|
static types(): { [key: string]: any } {
|
|
3813
4114
|
return {
|
|
3814
|
-
|
|
4115
|
+
ratio: 'number',
|
|
4116
|
+
target: { 'type': 'array', 'itemType': 'string' },
|
|
3815
4117
|
};
|
|
3816
4118
|
}
|
|
3817
4119
|
|
|
@@ -3820,7 +4122,7 @@ export class UpdateServiceSafetyLockRequest extends $tea.Model {
|
|
|
3820
4122
|
}
|
|
3821
4123
|
}
|
|
3822
4124
|
|
|
3823
|
-
export class
|
|
4125
|
+
export class UpdateServiceMirrorResponseBody extends $tea.Model {
|
|
3824
4126
|
message?: string;
|
|
3825
4127
|
requestId?: string;
|
|
3826
4128
|
static names(): { [key: string]: string } {
|
|
@@ -3842,10 +4144,76 @@ export class UpdateServiceSafetyLockResponseBody extends $tea.Model {
|
|
|
3842
4144
|
}
|
|
3843
4145
|
}
|
|
3844
4146
|
|
|
3845
|
-
export class
|
|
4147
|
+
export class UpdateServiceMirrorResponse extends $tea.Model {
|
|
3846
4148
|
headers: { [key: string]: string };
|
|
3847
4149
|
statusCode: number;
|
|
3848
|
-
body:
|
|
4150
|
+
body: UpdateServiceMirrorResponseBody;
|
|
4151
|
+
static names(): { [key: string]: string } {
|
|
4152
|
+
return {
|
|
4153
|
+
headers: 'headers',
|
|
4154
|
+
statusCode: 'statusCode',
|
|
4155
|
+
body: 'body',
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
static types(): { [key: string]: any } {
|
|
4160
|
+
return {
|
|
4161
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4162
|
+
statusCode: 'number',
|
|
4163
|
+
body: UpdateServiceMirrorResponseBody,
|
|
4164
|
+
};
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
constructor(map?: { [key: string]: any }) {
|
|
4168
|
+
super(map);
|
|
4169
|
+
}
|
|
4170
|
+
}
|
|
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;
|
|
3849
4217
|
static names(): { [key: string]: string } {
|
|
3850
4218
|
return {
|
|
3851
4219
|
headers: 'headers',
|
|
@@ -3933,6 +4301,28 @@ export class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
3933
4301
|
}
|
|
3934
4302
|
}
|
|
3935
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
|
+
|
|
3936
4326
|
export class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
3937
4327
|
metricName?: string;
|
|
3938
4328
|
service?: string;
|
|
@@ -4262,10 +4652,28 @@ export default class Client extends OpenApi {
|
|
|
4262
4652
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4263
4653
|
}
|
|
4264
4654
|
|
|
4265
|
-
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> {
|
|
4266
4674
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4267
4675
|
let headers : {[key: string ]: string} = { };
|
|
4268
|
-
return await this.
|
|
4676
|
+
return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4269
4677
|
}
|
|
4270
4678
|
|
|
4271
4679
|
async createBenchmarkTaskWithOptions(request: CreateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateBenchmarkTaskResponse> {
|
|
@@ -4288,10 +4696,10 @@ export default class Client extends OpenApi {
|
|
|
4288
4696
|
return $tea.cast<CreateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
|
|
4289
4697
|
}
|
|
4290
4698
|
|
|
4291
|
-
async
|
|
4699
|
+
async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
|
|
4292
4700
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4293
4701
|
let headers : {[key: string ]: string} = { };
|
|
4294
|
-
return await this.
|
|
4702
|
+
return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
|
|
4295
4703
|
}
|
|
4296
4704
|
|
|
4297
4705
|
async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
|
|
@@ -4331,10 +4739,10 @@ export default class Client extends OpenApi {
|
|
|
4331
4739
|
return $tea.cast<CreateResourceResponse>(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
|
|
4332
4740
|
}
|
|
4333
4741
|
|
|
4334
|
-
async
|
|
4742
|
+
async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
|
|
4335
4743
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4336
4744
|
let headers : {[key: string ]: string} = { };
|
|
4337
|
-
return await this.
|
|
4745
|
+
return await this.createResourceWithOptions(request, headers, runtime);
|
|
4338
4746
|
}
|
|
4339
4747
|
|
|
4340
4748
|
async createResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceInstancesResponse> {
|
|
@@ -4378,10 +4786,10 @@ export default class Client extends OpenApi {
|
|
|
4378
4786
|
return $tea.cast<CreateResourceInstancesResponse>(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
|
|
4379
4787
|
}
|
|
4380
4788
|
|
|
4381
|
-
async
|
|
4789
|
+
async createResourceInstances(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest): Promise<CreateResourceInstancesResponse> {
|
|
4382
4790
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4383
4791
|
let headers : {[key: string ]: string} = { };
|
|
4384
|
-
return await this.
|
|
4792
|
+
return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4385
4793
|
}
|
|
4386
4794
|
|
|
4387
4795
|
async createResourceLogWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceLogResponse> {
|
|
@@ -4413,16 +4821,32 @@ export default class Client extends OpenApi {
|
|
|
4413
4821
|
return $tea.cast<CreateResourceLogResponse>(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
|
|
4414
4822
|
}
|
|
4415
4823
|
|
|
4416
|
-
async
|
|
4824
|
+
async createResourceLog(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest): Promise<CreateResourceLogResponse> {
|
|
4417
4825
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4418
4826
|
let headers : {[key: string ]: string} = { };
|
|
4419
|
-
return await this.
|
|
4827
|
+
return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4420
4828
|
}
|
|
4421
4829
|
|
|
4422
|
-
async createServiceWithOptions(
|
|
4423
|
-
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
|
+
|
|
4424
4847
|
let req = new $OpenApi.OpenApiRequest({
|
|
4425
4848
|
headers: headers,
|
|
4849
|
+
query: OpenApiUtil.query(query),
|
|
4426
4850
|
body: request.body,
|
|
4427
4851
|
});
|
|
4428
4852
|
let params = new $OpenApi.Params({
|
|
@@ -4439,10 +4863,10 @@ export default class Client extends OpenApi {
|
|
|
4439
4863
|
return $tea.cast<CreateServiceResponse>(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
|
|
4440
4864
|
}
|
|
4441
4865
|
|
|
4442
|
-
async
|
|
4866
|
+
async createService(request: CreateServiceRequest): Promise<CreateServiceResponse> {
|
|
4443
4867
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4444
4868
|
let headers : {[key: string ]: string} = { };
|
|
4445
|
-
return await this.
|
|
4869
|
+
return await this.createServiceWithOptions(request, headers, runtime);
|
|
4446
4870
|
}
|
|
4447
4871
|
|
|
4448
4872
|
async createServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceAutoScalerResponse> {
|
|
@@ -4478,10 +4902,10 @@ export default class Client extends OpenApi {
|
|
|
4478
4902
|
return $tea.cast<CreateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
|
|
4479
4903
|
}
|
|
4480
4904
|
|
|
4481
|
-
async
|
|
4905
|
+
async createServiceAutoScaler(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest): Promise<CreateServiceAutoScalerResponse> {
|
|
4482
4906
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4483
4907
|
let headers : {[key: string ]: string} = { };
|
|
4484
|
-
return await this.
|
|
4908
|
+
return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4485
4909
|
}
|
|
4486
4910
|
|
|
4487
4911
|
async createServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceCronScalerResponse> {
|
|
@@ -4513,10 +4937,10 @@ export default class Client extends OpenApi {
|
|
|
4513
4937
|
return $tea.cast<CreateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
|
|
4514
4938
|
}
|
|
4515
4939
|
|
|
4516
|
-
async
|
|
4940
|
+
async createServiceCronScaler(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest): Promise<CreateServiceCronScalerResponse> {
|
|
4517
4941
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4518
4942
|
let headers : {[key: string ]: string} = { };
|
|
4519
|
-
return await this.
|
|
4943
|
+
return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4520
4944
|
}
|
|
4521
4945
|
|
|
4522
4946
|
async createServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceMirrorResponse> {
|
|
@@ -4548,10 +4972,10 @@ export default class Client extends OpenApi {
|
|
|
4548
4972
|
return $tea.cast<CreateServiceMirrorResponse>(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
|
|
4549
4973
|
}
|
|
4550
4974
|
|
|
4551
|
-
async
|
|
4975
|
+
async createServiceMirror(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest): Promise<CreateServiceMirrorResponse> {
|
|
4552
4976
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4553
4977
|
let headers : {[key: string ]: string} = { };
|
|
4554
|
-
return await this.
|
|
4978
|
+
return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4555
4979
|
}
|
|
4556
4980
|
|
|
4557
4981
|
async deleteBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteBenchmarkTaskResponse> {
|
|
@@ -4572,10 +4996,10 @@ export default class Client extends OpenApi {
|
|
|
4572
4996
|
return $tea.cast<DeleteBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
|
|
4573
4997
|
}
|
|
4574
4998
|
|
|
4575
|
-
async
|
|
4999
|
+
async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
|
|
4576
5000
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4577
5001
|
let headers : {[key: string ]: string} = { };
|
|
4578
|
-
return await this.
|
|
5002
|
+
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
4579
5003
|
}
|
|
4580
5004
|
|
|
4581
5005
|
async deleteResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceResponse> {
|
|
@@ -4596,10 +5020,10 @@ export default class Client extends OpenApi {
|
|
|
4596
5020
|
return $tea.cast<DeleteResourceResponse>(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
|
|
4597
5021
|
}
|
|
4598
5022
|
|
|
4599
|
-
async
|
|
5023
|
+
async deleteResource(ClusterId: string, ResourceId: string): Promise<DeleteResourceResponse> {
|
|
4600
5024
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4601
5025
|
let headers : {[key: string ]: string} = { };
|
|
4602
|
-
return await this.
|
|
5026
|
+
return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4603
5027
|
}
|
|
4604
5028
|
|
|
4605
5029
|
async deleteResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceDLinkResponse> {
|
|
@@ -4620,10 +5044,10 @@ export default class Client extends OpenApi {
|
|
|
4620
5044
|
return $tea.cast<DeleteResourceDLinkResponse>(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
|
|
4621
5045
|
}
|
|
4622
5046
|
|
|
4623
|
-
async
|
|
5047
|
+
async deleteResourceDLink(ClusterId: string, ResourceId: string): Promise<DeleteResourceDLinkResponse> {
|
|
4624
5048
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4625
5049
|
let headers : {[key: string ]: string} = { };
|
|
4626
|
-
return await this.
|
|
5050
|
+
return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4627
5051
|
}
|
|
4628
5052
|
|
|
4629
5053
|
async deleteResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceInstancesResponse> {
|
|
@@ -4655,10 +5079,10 @@ export default class Client extends OpenApi {
|
|
|
4655
5079
|
return $tea.cast<DeleteResourceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
|
|
4656
5080
|
}
|
|
4657
5081
|
|
|
4658
|
-
async
|
|
5082
|
+
async deleteResourceInstances(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest): Promise<DeleteResourceInstancesResponse> {
|
|
4659
5083
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4660
5084
|
let headers : {[key: string ]: string} = { };
|
|
4661
|
-
return await this.
|
|
5085
|
+
return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
4662
5086
|
}
|
|
4663
5087
|
|
|
4664
5088
|
async deleteResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceLogResponse> {
|
|
@@ -4679,10 +5103,10 @@ export default class Client extends OpenApi {
|
|
|
4679
5103
|
return $tea.cast<DeleteResourceLogResponse>(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
|
|
4680
5104
|
}
|
|
4681
5105
|
|
|
4682
|
-
async
|
|
5106
|
+
async deleteResourceLog(ClusterId: string, ResourceId: string): Promise<DeleteResourceLogResponse> {
|
|
4683
5107
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4684
5108
|
let headers : {[key: string ]: string} = { };
|
|
4685
|
-
return await this.
|
|
5109
|
+
return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4686
5110
|
}
|
|
4687
5111
|
|
|
4688
5112
|
async deleteServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceResponse> {
|
|
@@ -4703,10 +5127,10 @@ export default class Client extends OpenApi {
|
|
|
4703
5127
|
return $tea.cast<DeleteServiceResponse>(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
|
|
4704
5128
|
}
|
|
4705
5129
|
|
|
4706
|
-
async
|
|
5130
|
+
async deleteService(ClusterId: string, ServiceName: string): Promise<DeleteServiceResponse> {
|
|
4707
5131
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4708
5132
|
let headers : {[key: string ]: string} = { };
|
|
4709
|
-
return await this.
|
|
5133
|
+
return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4710
5134
|
}
|
|
4711
5135
|
|
|
4712
5136
|
async deleteServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceAutoScalerResponse> {
|
|
@@ -4727,10 +5151,10 @@ export default class Client extends OpenApi {
|
|
|
4727
5151
|
return $tea.cast<DeleteServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
|
|
4728
5152
|
}
|
|
4729
5153
|
|
|
4730
|
-
async
|
|
5154
|
+
async deleteServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceAutoScalerResponse> {
|
|
4731
5155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4732
5156
|
let headers : {[key: string ]: string} = { };
|
|
4733
|
-
return await this.
|
|
5157
|
+
return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4734
5158
|
}
|
|
4735
5159
|
|
|
4736
5160
|
async deleteServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceCronScalerResponse> {
|
|
@@ -4751,10 +5175,10 @@ export default class Client extends OpenApi {
|
|
|
4751
5175
|
return $tea.cast<DeleteServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
|
|
4752
5176
|
}
|
|
4753
5177
|
|
|
4754
|
-
async
|
|
5178
|
+
async deleteServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceCronScalerResponse> {
|
|
4755
5179
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4756
5180
|
let headers : {[key: string ]: string} = { };
|
|
4757
|
-
return await this.
|
|
5181
|
+
return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4758
5182
|
}
|
|
4759
5183
|
|
|
4760
5184
|
async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
|
|
@@ -4782,10 +5206,47 @@ export default class Client extends OpenApi {
|
|
|
4782
5206
|
return $tea.cast<DeleteServiceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
|
|
4783
5207
|
}
|
|
4784
5208
|
|
|
4785
|
-
async
|
|
5209
|
+
async deleteServiceInstances(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest): Promise<DeleteServiceInstancesResponse> {
|
|
4786
5210
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4787
5211
|
let headers : {[key: string ]: string} = { };
|
|
4788
|
-
return await this.
|
|
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> {
|
|
5247
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5248
|
+
let headers : {[key: string ]: string} = { };
|
|
5249
|
+
return await this.deleteServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4789
5250
|
}
|
|
4790
5251
|
|
|
4791
5252
|
async deleteServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceMirrorResponse> {
|
|
@@ -4806,10 +5267,10 @@ export default class Client extends OpenApi {
|
|
|
4806
5267
|
return $tea.cast<DeleteServiceMirrorResponse>(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
|
|
4807
5268
|
}
|
|
4808
5269
|
|
|
4809
|
-
async
|
|
5270
|
+
async deleteServiceMirror(ClusterId: string, ServiceName: string): Promise<DeleteServiceMirrorResponse> {
|
|
4810
5271
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4811
5272
|
let headers : {[key: string ]: string} = { };
|
|
4812
|
-
return await this.
|
|
5273
|
+
return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4813
5274
|
}
|
|
4814
5275
|
|
|
4815
5276
|
async describeBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskResponse> {
|
|
@@ -4830,10 +5291,10 @@ export default class Client extends OpenApi {
|
|
|
4830
5291
|
return $tea.cast<DescribeBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
|
|
4831
5292
|
}
|
|
4832
5293
|
|
|
4833
|
-
async
|
|
5294
|
+
async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
|
|
4834
5295
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4835
5296
|
let headers : {[key: string ]: string} = { };
|
|
4836
|
-
return await this.
|
|
5297
|
+
return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
4837
5298
|
}
|
|
4838
5299
|
|
|
4839
5300
|
async describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskReportResponse> {
|
|
@@ -4861,10 +5322,10 @@ export default class Client extends OpenApi {
|
|
|
4861
5322
|
return $tea.cast<DescribeBenchmarkTaskReportResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
|
|
4862
5323
|
}
|
|
4863
5324
|
|
|
4864
|
-
async
|
|
5325
|
+
async describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse> {
|
|
4865
5326
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4866
5327
|
let headers : {[key: string ]: string} = { };
|
|
4867
|
-
return await this.
|
|
5328
|
+
return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
4868
5329
|
}
|
|
4869
5330
|
|
|
4870
5331
|
async describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse> {
|
|
@@ -4885,10 +5346,10 @@ export default class Client extends OpenApi {
|
|
|
4885
5346
|
return $tea.cast<DescribeGroupResponse>(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
|
|
4886
5347
|
}
|
|
4887
5348
|
|
|
4888
|
-
async
|
|
5349
|
+
async describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse> {
|
|
4889
5350
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4890
5351
|
let headers : {[key: string ]: string} = { };
|
|
4891
|
-
return await this.
|
|
5352
|
+
return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
|
|
4892
5353
|
}
|
|
4893
5354
|
|
|
4894
5355
|
async describeResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceResponse> {
|
|
@@ -4909,10 +5370,10 @@ export default class Client extends OpenApi {
|
|
|
4909
5370
|
return $tea.cast<DescribeResourceResponse>(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
|
|
4910
5371
|
}
|
|
4911
5372
|
|
|
4912
|
-
async
|
|
5373
|
+
async describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse> {
|
|
4913
5374
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4914
5375
|
let headers : {[key: string ]: string} = { };
|
|
4915
|
-
return await this.
|
|
5376
|
+
return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4916
5377
|
}
|
|
4917
5378
|
|
|
4918
5379
|
async describeResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceDLinkResponse> {
|
|
@@ -4933,10 +5394,10 @@ export default class Client extends OpenApi {
|
|
|
4933
5394
|
return $tea.cast<DescribeResourceDLinkResponse>(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
|
|
4934
5395
|
}
|
|
4935
5396
|
|
|
4936
|
-
async
|
|
5397
|
+
async describeResourceDLink(ClusterId: string, ResourceId: string): Promise<DescribeResourceDLinkResponse> {
|
|
4937
5398
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4938
5399
|
let headers : {[key: string ]: string} = { };
|
|
4939
|
-
return await this.
|
|
5400
|
+
return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4940
5401
|
}
|
|
4941
5402
|
|
|
4942
5403
|
async describeResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceLogResponse> {
|
|
@@ -4957,10 +5418,10 @@ export default class Client extends OpenApi {
|
|
|
4957
5418
|
return $tea.cast<DescribeResourceLogResponse>(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
|
|
4958
5419
|
}
|
|
4959
5420
|
|
|
4960
|
-
async
|
|
5421
|
+
async describeResourceLog(ClusterId: string, ResourceId: string): Promise<DescribeResourceLogResponse> {
|
|
4961
5422
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4962
5423
|
let headers : {[key: string ]: string} = { };
|
|
4963
|
-
return await this.
|
|
5424
|
+
return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
4964
5425
|
}
|
|
4965
5426
|
|
|
4966
5427
|
async describeServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceResponse> {
|
|
@@ -4981,10 +5442,10 @@ export default class Client extends OpenApi {
|
|
|
4981
5442
|
return $tea.cast<DescribeServiceResponse>(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
|
|
4982
5443
|
}
|
|
4983
5444
|
|
|
4984
|
-
async
|
|
5445
|
+
async describeService(ClusterId: string, ServiceName: string): Promise<DescribeServiceResponse> {
|
|
4985
5446
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4986
5447
|
let headers : {[key: string ]: string} = { };
|
|
4987
|
-
return await this.
|
|
5448
|
+
return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4988
5449
|
}
|
|
4989
5450
|
|
|
4990
5451
|
async describeServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceAutoScalerResponse> {
|
|
@@ -5005,10 +5466,10 @@ export default class Client extends OpenApi {
|
|
|
5005
5466
|
return $tea.cast<DescribeServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
|
|
5006
5467
|
}
|
|
5007
5468
|
|
|
5008
|
-
async
|
|
5469
|
+
async describeServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceAutoScalerResponse> {
|
|
5009
5470
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5010
5471
|
let headers : {[key: string ]: string} = { };
|
|
5011
|
-
return await this.
|
|
5472
|
+
return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5012
5473
|
}
|
|
5013
5474
|
|
|
5014
5475
|
async describeServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse> {
|
|
@@ -5029,10 +5490,10 @@ export default class Client extends OpenApi {
|
|
|
5029
5490
|
return $tea.cast<DescribeServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
|
|
5030
5491
|
}
|
|
5031
5492
|
|
|
5032
|
-
async
|
|
5493
|
+
async describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse> {
|
|
5033
5494
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5034
5495
|
let headers : {[key: string ]: string} = { };
|
|
5035
|
-
return await this.
|
|
5496
|
+
return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5036
5497
|
}
|
|
5037
5498
|
|
|
5038
5499
|
async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
|
|
@@ -5072,10 +5533,10 @@ export default class Client extends OpenApi {
|
|
|
5072
5533
|
return $tea.cast<DescribeServiceEventResponse>(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
|
|
5073
5534
|
}
|
|
5074
5535
|
|
|
5075
|
-
async
|
|
5536
|
+
async describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse> {
|
|
5076
5537
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5077
5538
|
let headers : {[key: string ]: string} = { };
|
|
5078
|
-
return await this.
|
|
5539
|
+
return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5079
5540
|
}
|
|
5080
5541
|
|
|
5081
5542
|
async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
|
|
@@ -5123,10 +5584,10 @@ export default class Client extends OpenApi {
|
|
|
5123
5584
|
return $tea.cast<DescribeServiceLogResponse>(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
|
|
5124
5585
|
}
|
|
5125
5586
|
|
|
5126
|
-
async
|
|
5587
|
+
async describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse> {
|
|
5127
5588
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5128
5589
|
let headers : {[key: string ]: string} = { };
|
|
5129
|
-
return await this.
|
|
5590
|
+
return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5130
5591
|
}
|
|
5131
5592
|
|
|
5132
5593
|
async describeServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceMirrorResponse> {
|
|
@@ -5147,10 +5608,41 @@ export default class Client extends OpenApi {
|
|
|
5147
5608
|
return $tea.cast<DescribeServiceMirrorResponse>(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
5148
5609
|
}
|
|
5149
5610
|
|
|
5150
|
-
async
|
|
5611
|
+
async describeServiceMirror(ClusterId: string, ServiceName: string): Promise<DescribeServiceMirrorResponse> {
|
|
5151
5612
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5152
5613
|
let headers : {[key: string ]: string} = { };
|
|
5153
|
-
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);
|
|
5154
5646
|
}
|
|
5155
5647
|
|
|
5156
5648
|
async listBenchmarkTaskWithOptions(request: ListBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListBenchmarkTaskResponse> {
|
|
@@ -5190,10 +5682,10 @@ export default class Client extends OpenApi {
|
|
|
5190
5682
|
return $tea.cast<ListBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
|
|
5191
5683
|
}
|
|
5192
5684
|
|
|
5193
|
-
async
|
|
5685
|
+
async listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse> {
|
|
5194
5686
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5195
5687
|
let headers : {[key: string ]: string} = { };
|
|
5196
|
-
return await this.
|
|
5688
|
+
return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
|
|
5197
5689
|
}
|
|
5198
5690
|
|
|
5199
5691
|
async listGroupsWithOptions(request: ListGroupsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse> {
|
|
@@ -5229,10 +5721,10 @@ export default class Client extends OpenApi {
|
|
|
5229
5721
|
return $tea.cast<ListGroupsResponse>(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
|
|
5230
5722
|
}
|
|
5231
5723
|
|
|
5232
|
-
async
|
|
5724
|
+
async listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse> {
|
|
5233
5725
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5234
5726
|
let headers : {[key: string ]: string} = { };
|
|
5235
|
-
return await this.
|
|
5727
|
+
return await this.listGroupsWithOptions(request, headers, runtime);
|
|
5236
5728
|
}
|
|
5237
5729
|
|
|
5238
5730
|
async listResourceInstanceWorkerWithOptions(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstanceWorkerResponse> {
|
|
@@ -5264,10 +5756,10 @@ export default class Client extends OpenApi {
|
|
|
5264
5756
|
return $tea.cast<ListResourceInstanceWorkerResponse>(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
|
|
5265
5757
|
}
|
|
5266
5758
|
|
|
5267
|
-
async
|
|
5759
|
+
async listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse> {
|
|
5268
5760
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5269
5761
|
let headers : {[key: string ]: string} = { };
|
|
5270
|
-
return await this.
|
|
5762
|
+
return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
|
|
5271
5763
|
}
|
|
5272
5764
|
|
|
5273
5765
|
async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstancesResponse> {
|
|
@@ -5311,10 +5803,10 @@ export default class Client extends OpenApi {
|
|
|
5311
5803
|
return $tea.cast<ListResourceInstancesResponse>(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
|
|
5312
5804
|
}
|
|
5313
5805
|
|
|
5314
|
-
async
|
|
5806
|
+
async listResourceInstances(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse> {
|
|
5315
5807
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5316
5808
|
let headers : {[key: string ]: string} = { };
|
|
5317
|
-
return await this.
|
|
5809
|
+
return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5318
5810
|
}
|
|
5319
5811
|
|
|
5320
5812
|
async listResourceServicesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceServicesResponse> {
|
|
@@ -5346,10 +5838,10 @@ export default class Client extends OpenApi {
|
|
|
5346
5838
|
return $tea.cast<ListResourceServicesResponse>(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
|
|
5347
5839
|
}
|
|
5348
5840
|
|
|
5349
|
-
async
|
|
5841
|
+
async listResourceServices(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest): Promise<ListResourceServicesResponse> {
|
|
5350
5842
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5351
5843
|
let headers : {[key: string ]: string} = { };
|
|
5352
|
-
return await this.
|
|
5844
|
+
return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5353
5845
|
}
|
|
5354
5846
|
|
|
5355
5847
|
async listResourcesWithOptions(request: ListResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse> {
|
|
@@ -5389,10 +5881,10 @@ export default class Client extends OpenApi {
|
|
|
5389
5881
|
return $tea.cast<ListResourcesResponse>(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
|
|
5390
5882
|
}
|
|
5391
5883
|
|
|
5392
|
-
async
|
|
5884
|
+
async listResources(request: ListResourcesRequest): Promise<ListResourcesResponse> {
|
|
5393
5885
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5394
5886
|
let headers : {[key: string ]: string} = { };
|
|
5395
|
-
return await this.
|
|
5887
|
+
return await this.listResourcesWithOptions(request, headers, runtime);
|
|
5396
5888
|
}
|
|
5397
5889
|
|
|
5398
5890
|
async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
|
|
@@ -5424,10 +5916,10 @@ export default class Client extends OpenApi {
|
|
|
5424
5916
|
return $tea.cast<ListServiceInstancesResponse>(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
|
|
5425
5917
|
}
|
|
5426
5918
|
|
|
5427
|
-
async
|
|
5919
|
+
async listServiceInstances(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest): Promise<ListServiceInstancesResponse> {
|
|
5428
5920
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5429
5921
|
let headers : {[key: string ]: string} = { };
|
|
5430
|
-
return await this.
|
|
5922
|
+
return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5431
5923
|
}
|
|
5432
5924
|
|
|
5433
5925
|
async listServiceVersionsWithOptions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceVersionsResponse> {
|
|
@@ -5459,14 +5951,20 @@ export default class Client extends OpenApi {
|
|
|
5459
5951
|
return $tea.cast<ListServiceVersionsResponse>(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
|
|
5460
5952
|
}
|
|
5461
5953
|
|
|
5462
|
-
async
|
|
5954
|
+
async listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse> {
|
|
5463
5955
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5464
5956
|
let headers : {[key: string ]: string} = { };
|
|
5465
|
-
return await this.
|
|
5957
|
+
return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5466
5958
|
}
|
|
5467
5959
|
|
|
5468
|
-
async listServicesWithOptions(
|
|
5469
|
-
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
|
+
|
|
5470
5968
|
let query : {[key: string ]: any} = { };
|
|
5471
5969
|
if (!Util.isUnset(request.filter)) {
|
|
5472
5970
|
query["Filter"] = request.filter;
|
|
@@ -5476,6 +5974,10 @@ export default class Client extends OpenApi {
|
|
|
5476
5974
|
query["GroupName"] = request.groupName;
|
|
5477
5975
|
}
|
|
5478
5976
|
|
|
5977
|
+
if (!Util.isUnset(request.labelShrink)) {
|
|
5978
|
+
query["Label"] = request.labelShrink;
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5479
5981
|
if (!Util.isUnset(request.order)) {
|
|
5480
5982
|
query["Order"] = request.order;
|
|
5481
5983
|
}
|
|
@@ -5488,6 +5990,14 @@ export default class Client extends OpenApi {
|
|
|
5488
5990
|
query["PageSize"] = request.pageSize;
|
|
5489
5991
|
}
|
|
5490
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
|
+
|
|
5491
6001
|
if (!Util.isUnset(request.sort)) {
|
|
5492
6002
|
query["Sort"] = request.sort;
|
|
5493
6003
|
}
|
|
@@ -5510,10 +6020,10 @@ export default class Client extends OpenApi {
|
|
|
5510
6020
|
return $tea.cast<ListServicesResponse>(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
5511
6021
|
}
|
|
5512
6022
|
|
|
5513
|
-
async
|
|
6023
|
+
async listServices(request: ListServicesRequest): Promise<ListServicesResponse> {
|
|
5514
6024
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5515
6025
|
let headers : {[key: string ]: string} = { };
|
|
5516
|
-
return await this.
|
|
6026
|
+
return await this.listServicesWithOptions(request, headers, runtime);
|
|
5517
6027
|
}
|
|
5518
6028
|
|
|
5519
6029
|
async releaseServiceWithOptions(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse> {
|
|
@@ -5545,10 +6055,10 @@ export default class Client extends OpenApi {
|
|
|
5545
6055
|
return $tea.cast<ReleaseServiceResponse>(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
|
|
5546
6056
|
}
|
|
5547
6057
|
|
|
5548
|
-
async
|
|
6058
|
+
async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
|
|
5549
6059
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5550
6060
|
let headers : {[key: string ]: string} = { };
|
|
5551
|
-
return await this.
|
|
6061
|
+
return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5552
6062
|
}
|
|
5553
6063
|
|
|
5554
6064
|
async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
|
|
@@ -5569,10 +6079,10 @@ export default class Client extends OpenApi {
|
|
|
5569
6079
|
return $tea.cast<StartBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
|
|
5570
6080
|
}
|
|
5571
6081
|
|
|
5572
|
-
async
|
|
6082
|
+
async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
|
|
5573
6083
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5574
6084
|
let headers : {[key: string ]: string} = { };
|
|
5575
|
-
return await this.
|
|
6085
|
+
return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
5576
6086
|
}
|
|
5577
6087
|
|
|
5578
6088
|
async startServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartServiceResponse> {
|
|
@@ -5593,10 +6103,10 @@ export default class Client extends OpenApi {
|
|
|
5593
6103
|
return $tea.cast<StartServiceResponse>(await this.callApi(params, req, runtime), new StartServiceResponse({}));
|
|
5594
6104
|
}
|
|
5595
6105
|
|
|
5596
|
-
async
|
|
6106
|
+
async startService(ClusterId: string, ServiceName: string): Promise<StartServiceResponse> {
|
|
5597
6107
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5598
6108
|
let headers : {[key: string ]: string} = { };
|
|
5599
|
-
return await this.
|
|
6109
|
+
return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5600
6110
|
}
|
|
5601
6111
|
|
|
5602
6112
|
async stopBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopBenchmarkTaskResponse> {
|
|
@@ -5617,10 +6127,10 @@ export default class Client extends OpenApi {
|
|
|
5617
6127
|
return $tea.cast<StopBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
|
|
5618
6128
|
}
|
|
5619
6129
|
|
|
5620
|
-
async
|
|
6130
|
+
async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
|
|
5621
6131
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5622
6132
|
let headers : {[key: string ]: string} = { };
|
|
5623
|
-
return await this.
|
|
6133
|
+
return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
5624
6134
|
}
|
|
5625
6135
|
|
|
5626
6136
|
async stopServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopServiceResponse> {
|
|
@@ -5641,10 +6151,10 @@ export default class Client extends OpenApi {
|
|
|
5641
6151
|
return $tea.cast<StopServiceResponse>(await this.callApi(params, req, runtime), new StopServiceResponse({}));
|
|
5642
6152
|
}
|
|
5643
6153
|
|
|
5644
|
-
async
|
|
6154
|
+
async stopService(ClusterId: string, ServiceName: string): Promise<StopServiceResponse> {
|
|
5645
6155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5646
6156
|
let headers : {[key: string ]: string} = { };
|
|
5647
|
-
return await this.
|
|
6157
|
+
return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5648
6158
|
}
|
|
5649
6159
|
|
|
5650
6160
|
async updateBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateBenchmarkTaskResponse> {
|
|
@@ -5667,10 +6177,10 @@ export default class Client extends OpenApi {
|
|
|
5667
6177
|
return $tea.cast<UpdateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
|
|
5668
6178
|
}
|
|
5669
6179
|
|
|
5670
|
-
async
|
|
6180
|
+
async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
|
|
5671
6181
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5672
6182
|
let headers : {[key: string ]: string} = { };
|
|
5673
|
-
return await this.
|
|
6183
|
+
return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
5674
6184
|
}
|
|
5675
6185
|
|
|
5676
6186
|
async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
|
|
@@ -5698,10 +6208,10 @@ export default class Client extends OpenApi {
|
|
|
5698
6208
|
return $tea.cast<UpdateResourceResponse>(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
|
|
5699
6209
|
}
|
|
5700
6210
|
|
|
5701
|
-
async
|
|
6211
|
+
async updateResource(ClusterId: string, ResourceId: string, request: UpdateResourceRequest): Promise<UpdateResourceResponse> {
|
|
5702
6212
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5703
6213
|
let headers : {[key: string ]: string} = { };
|
|
5704
|
-
return await this.
|
|
6214
|
+
return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5705
6215
|
}
|
|
5706
6216
|
|
|
5707
6217
|
async updateResourceDLinkWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceDLinkResponse> {
|
|
@@ -5741,10 +6251,10 @@ export default class Client extends OpenApi {
|
|
|
5741
6251
|
return $tea.cast<UpdateResourceDLinkResponse>(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
|
|
5742
6252
|
}
|
|
5743
6253
|
|
|
5744
|
-
async
|
|
6254
|
+
async updateResourceDLink(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest): Promise<UpdateResourceDLinkResponse> {
|
|
5745
6255
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5746
6256
|
let headers : {[key: string ]: string} = { };
|
|
5747
|
-
return await this.
|
|
6257
|
+
return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
5748
6258
|
}
|
|
5749
6259
|
|
|
5750
6260
|
async updateResourceInstanceWithOptions(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceInstanceResponse> {
|
|
@@ -5772,10 +6282,10 @@ export default class Client extends OpenApi {
|
|
|
5772
6282
|
return $tea.cast<UpdateResourceInstanceResponse>(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
|
|
5773
6283
|
}
|
|
5774
6284
|
|
|
5775
|
-
async
|
|
6285
|
+
async updateResourceInstance(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest): Promise<UpdateResourceInstanceResponse> {
|
|
5776
6286
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5777
6287
|
let headers : {[key: string ]: string} = { };
|
|
5778
|
-
return await this.
|
|
6288
|
+
return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
|
|
5779
6289
|
}
|
|
5780
6290
|
|
|
5781
6291
|
async updateServiceWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceResponse> {
|
|
@@ -5798,10 +6308,10 @@ export default class Client extends OpenApi {
|
|
|
5798
6308
|
return $tea.cast<UpdateServiceResponse>(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
|
|
5799
6309
|
}
|
|
5800
6310
|
|
|
5801
|
-
async
|
|
6311
|
+
async updateService(ClusterId: string, ServiceName: string, request: UpdateServiceRequest): Promise<UpdateServiceResponse> {
|
|
5802
6312
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5803
6313
|
let headers : {[key: string ]: string} = { };
|
|
5804
|
-
return await this.
|
|
6314
|
+
return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5805
6315
|
}
|
|
5806
6316
|
|
|
5807
6317
|
async updateServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceAutoScalerResponse> {
|
|
@@ -5837,10 +6347,10 @@ export default class Client extends OpenApi {
|
|
|
5837
6347
|
return $tea.cast<UpdateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
|
|
5838
6348
|
}
|
|
5839
6349
|
|
|
5840
|
-
async
|
|
6350
|
+
async updateServiceAutoScaler(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest): Promise<UpdateServiceAutoScalerResponse> {
|
|
5841
6351
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5842
6352
|
let headers : {[key: string ]: string} = { };
|
|
5843
|
-
return await this.
|
|
6353
|
+
return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5844
6354
|
}
|
|
5845
6355
|
|
|
5846
6356
|
async updateServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceCronScalerResponse> {
|
|
@@ -5872,10 +6382,41 @@ export default class Client extends OpenApi {
|
|
|
5872
6382
|
return $tea.cast<UpdateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
|
|
5873
6383
|
}
|
|
5874
6384
|
|
|
5875
|
-
async
|
|
6385
|
+
async updateServiceCronScaler(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest): Promise<UpdateServiceCronScalerResponse> {
|
|
5876
6386
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5877
6387
|
let headers : {[key: string ]: string} = { };
|
|
5878
|
-
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);
|
|
5879
6420
|
}
|
|
5880
6421
|
|
|
5881
6422
|
async updateServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceMirrorResponse> {
|
|
@@ -5907,10 +6448,10 @@ export default class Client extends OpenApi {
|
|
|
5907
6448
|
return $tea.cast<UpdateServiceMirrorResponse>(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
|
|
5908
6449
|
}
|
|
5909
6450
|
|
|
5910
|
-
async
|
|
6451
|
+
async updateServiceMirror(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest): Promise<UpdateServiceMirrorResponse> {
|
|
5911
6452
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5912
6453
|
let headers : {[key: string ]: string} = { };
|
|
5913
|
-
return await this.
|
|
6454
|
+
return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5914
6455
|
}
|
|
5915
6456
|
|
|
5916
6457
|
async updateServiceSafetyLockWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceSafetyLockResponse> {
|
|
@@ -5938,10 +6479,10 @@ export default class Client extends OpenApi {
|
|
|
5938
6479
|
return $tea.cast<UpdateServiceSafetyLockResponse>(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
|
|
5939
6480
|
}
|
|
5940
6481
|
|
|
5941
|
-
async
|
|
6482
|
+
async updateServiceSafetyLock(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest): Promise<UpdateServiceSafetyLockResponse> {
|
|
5942
6483
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5943
6484
|
let headers : {[key: string ]: string} = { };
|
|
5944
|
-
return await this.
|
|
6485
|
+
return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5945
6486
|
}
|
|
5946
6487
|
|
|
5947
6488
|
async updateServiceVersionWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceVersionResponse> {
|
|
@@ -5969,4 +6510,10 @@ export default class Client extends OpenApi {
|
|
|
5969
6510
|
return $tea.cast<UpdateServiceVersionResponse>(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
|
|
5970
6511
|
}
|
|
5971
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
|
+
|
|
5972
6519
|
}
|