@alicloud/eas20210701 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +559 -11
- package/dist/client.js +1083 -40
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1389 -102
package/dist/client.js
CHANGED
|
@@ -98,6 +98,7 @@ class Instance extends $tea.Model {
|
|
|
98
98
|
instanceName: 'InstanceName',
|
|
99
99
|
instancePort: 'InstancePort',
|
|
100
100
|
isSpot: 'IsSpot',
|
|
101
|
+
isolated: 'Isolated',
|
|
101
102
|
lastState: 'LastState',
|
|
102
103
|
namespace: 'Namespace',
|
|
103
104
|
originalAmount: 'OriginalAmount',
|
|
@@ -122,6 +123,7 @@ class Instance extends $tea.Model {
|
|
|
122
123
|
instanceName: 'string',
|
|
123
124
|
instancePort: 'number',
|
|
124
125
|
isSpot: 'boolean',
|
|
126
|
+
isolated: 'boolean',
|
|
125
127
|
lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
126
128
|
namespace: 'string',
|
|
127
129
|
originalAmount: 'number',
|
|
@@ -286,6 +288,10 @@ class Service extends $tea.Model {
|
|
|
286
288
|
static names() {
|
|
287
289
|
return {
|
|
288
290
|
accessToken: 'AccessToken',
|
|
291
|
+
appConfig: 'AppConfig',
|
|
292
|
+
appSpecName: 'AppSpecName',
|
|
293
|
+
appType: 'AppType',
|
|
294
|
+
appVersion: 'AppVersion',
|
|
289
295
|
callerUid: 'CallerUid',
|
|
290
296
|
cpu: 'Cpu',
|
|
291
297
|
createTime: 'CreateTime',
|
|
@@ -323,11 +329,16 @@ class Service extends $tea.Model {
|
|
|
323
329
|
totalInstance: 'TotalInstance',
|
|
324
330
|
updateTime: 'UpdateTime',
|
|
325
331
|
weight: 'Weight',
|
|
332
|
+
workspaceId: 'WorkspaceId',
|
|
326
333
|
};
|
|
327
334
|
}
|
|
328
335
|
static types() {
|
|
329
336
|
return {
|
|
330
337
|
accessToken: 'string',
|
|
338
|
+
appConfig: 'string',
|
|
339
|
+
appSpecName: 'string',
|
|
340
|
+
appType: 'string',
|
|
341
|
+
appVersion: 'string',
|
|
331
342
|
callerUid: 'string',
|
|
332
343
|
cpu: 'number',
|
|
333
344
|
createTime: 'string',
|
|
@@ -365,6 +376,7 @@ class Service extends $tea.Model {
|
|
|
365
376
|
totalInstance: 'number',
|
|
366
377
|
updateTime: 'string',
|
|
367
378
|
weight: 'number',
|
|
379
|
+
workspaceId: 'string',
|
|
368
380
|
};
|
|
369
381
|
}
|
|
370
382
|
}
|
|
@@ -407,6 +419,84 @@ class CommitServiceResponse extends $tea.Model {
|
|
|
407
419
|
}
|
|
408
420
|
}
|
|
409
421
|
exports.CommitServiceResponse = CommitServiceResponse;
|
|
422
|
+
class CreateAppServiceRequest extends $tea.Model {
|
|
423
|
+
constructor(map) {
|
|
424
|
+
super(map);
|
|
425
|
+
}
|
|
426
|
+
static names() {
|
|
427
|
+
return {
|
|
428
|
+
quotaId: 'QuotaId',
|
|
429
|
+
workspaceId: 'WorkspaceId',
|
|
430
|
+
appType: 'AppType',
|
|
431
|
+
appVersion: 'AppVersion',
|
|
432
|
+
config: 'Config',
|
|
433
|
+
replicas: 'Replicas',
|
|
434
|
+
serviceName: 'ServiceName',
|
|
435
|
+
serviceSpec: 'ServiceSpec',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
static types() {
|
|
439
|
+
return {
|
|
440
|
+
quotaId: 'string',
|
|
441
|
+
workspaceId: 'string',
|
|
442
|
+
appType: 'string',
|
|
443
|
+
appVersion: 'string',
|
|
444
|
+
config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
445
|
+
replicas: 'number',
|
|
446
|
+
serviceName: 'string',
|
|
447
|
+
serviceSpec: 'string',
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports.CreateAppServiceRequest = CreateAppServiceRequest;
|
|
452
|
+
class CreateAppServiceResponseBody extends $tea.Model {
|
|
453
|
+
constructor(map) {
|
|
454
|
+
super(map);
|
|
455
|
+
}
|
|
456
|
+
static names() {
|
|
457
|
+
return {
|
|
458
|
+
internetEndpoint: 'InternetEndpoint',
|
|
459
|
+
intranetEndpoint: 'IntranetEndpoint',
|
|
460
|
+
region: 'Region',
|
|
461
|
+
requestId: 'RequestId',
|
|
462
|
+
serviceId: 'ServiceId',
|
|
463
|
+
serviceName: 'ServiceName',
|
|
464
|
+
status: 'Status',
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
static types() {
|
|
468
|
+
return {
|
|
469
|
+
internetEndpoint: 'string',
|
|
470
|
+
intranetEndpoint: 'string',
|
|
471
|
+
region: 'string',
|
|
472
|
+
requestId: 'string',
|
|
473
|
+
serviceId: 'string',
|
|
474
|
+
serviceName: 'string',
|
|
475
|
+
status: 'string',
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
exports.CreateAppServiceResponseBody = CreateAppServiceResponseBody;
|
|
480
|
+
class CreateAppServiceResponse extends $tea.Model {
|
|
481
|
+
constructor(map) {
|
|
482
|
+
super(map);
|
|
483
|
+
}
|
|
484
|
+
static names() {
|
|
485
|
+
return {
|
|
486
|
+
headers: 'headers',
|
|
487
|
+
statusCode: 'statusCode',
|
|
488
|
+
body: 'body',
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
static types() {
|
|
492
|
+
return {
|
|
493
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
494
|
+
statusCode: 'number',
|
|
495
|
+
body: CreateAppServiceResponseBody,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
exports.CreateAppServiceResponse = CreateAppServiceResponse;
|
|
410
500
|
class CreateBenchmarkTaskRequest extends $tea.Model {
|
|
411
501
|
constructor(map) {
|
|
412
502
|
super(map);
|
|
@@ -465,6 +555,130 @@ class CreateBenchmarkTaskResponse extends $tea.Model {
|
|
|
465
555
|
}
|
|
466
556
|
}
|
|
467
557
|
exports.CreateBenchmarkTaskResponse = CreateBenchmarkTaskResponse;
|
|
558
|
+
class CreateGatewayRequest extends $tea.Model {
|
|
559
|
+
constructor(map) {
|
|
560
|
+
super(map);
|
|
561
|
+
}
|
|
562
|
+
static names() {
|
|
563
|
+
return {
|
|
564
|
+
resourceName: 'ResourceName',
|
|
565
|
+
enableInternet: 'EnableInternet',
|
|
566
|
+
enableIntranet: 'EnableIntranet',
|
|
567
|
+
instanceType: 'InstanceType',
|
|
568
|
+
name: 'Name',
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
static types() {
|
|
572
|
+
return {
|
|
573
|
+
resourceName: 'string',
|
|
574
|
+
enableInternet: 'boolean',
|
|
575
|
+
enableIntranet: 'boolean',
|
|
576
|
+
instanceType: 'string',
|
|
577
|
+
name: 'string',
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
exports.CreateGatewayRequest = CreateGatewayRequest;
|
|
582
|
+
class CreateGatewayResponseBody extends $tea.Model {
|
|
583
|
+
constructor(map) {
|
|
584
|
+
super(map);
|
|
585
|
+
}
|
|
586
|
+
static names() {
|
|
587
|
+
return {
|
|
588
|
+
clusterId: 'ClusterId',
|
|
589
|
+
gatewayId: 'GatewayId',
|
|
590
|
+
message: 'Message',
|
|
591
|
+
requestId: 'RequestId',
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
static types() {
|
|
595
|
+
return {
|
|
596
|
+
clusterId: 'string',
|
|
597
|
+
gatewayId: 'string',
|
|
598
|
+
message: 'string',
|
|
599
|
+
requestId: 'string',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
exports.CreateGatewayResponseBody = CreateGatewayResponseBody;
|
|
604
|
+
class CreateGatewayResponse extends $tea.Model {
|
|
605
|
+
constructor(map) {
|
|
606
|
+
super(map);
|
|
607
|
+
}
|
|
608
|
+
static names() {
|
|
609
|
+
return {
|
|
610
|
+
headers: 'headers',
|
|
611
|
+
statusCode: 'statusCode',
|
|
612
|
+
body: 'body',
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
static types() {
|
|
616
|
+
return {
|
|
617
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
618
|
+
statusCode: 'number',
|
|
619
|
+
body: CreateGatewayResponseBody,
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
exports.CreateGatewayResponse = CreateGatewayResponse;
|
|
624
|
+
class CreateGatewayIntranetLinkedVpcRequest extends $tea.Model {
|
|
625
|
+
constructor(map) {
|
|
626
|
+
super(map);
|
|
627
|
+
}
|
|
628
|
+
static names() {
|
|
629
|
+
return {
|
|
630
|
+
vSwitchId: 'VSwitchId',
|
|
631
|
+
vpcId: 'VpcId',
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
static types() {
|
|
635
|
+
return {
|
|
636
|
+
vSwitchId: 'string',
|
|
637
|
+
vpcId: 'string',
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
exports.CreateGatewayIntranetLinkedVpcRequest = CreateGatewayIntranetLinkedVpcRequest;
|
|
642
|
+
class CreateGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
|
|
643
|
+
constructor(map) {
|
|
644
|
+
super(map);
|
|
645
|
+
}
|
|
646
|
+
static names() {
|
|
647
|
+
return {
|
|
648
|
+
gatewayId: 'GatewayId',
|
|
649
|
+
message: 'Message',
|
|
650
|
+
requestId: 'RequestId',
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
static types() {
|
|
654
|
+
return {
|
|
655
|
+
gatewayId: 'string',
|
|
656
|
+
message: 'string',
|
|
657
|
+
requestId: 'string',
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
exports.CreateGatewayIntranetLinkedVpcResponseBody = CreateGatewayIntranetLinkedVpcResponseBody;
|
|
662
|
+
class CreateGatewayIntranetLinkedVpcResponse extends $tea.Model {
|
|
663
|
+
constructor(map) {
|
|
664
|
+
super(map);
|
|
665
|
+
}
|
|
666
|
+
static names() {
|
|
667
|
+
return {
|
|
668
|
+
headers: 'headers',
|
|
669
|
+
statusCode: 'statusCode',
|
|
670
|
+
body: 'body',
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
static types() {
|
|
674
|
+
return {
|
|
675
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
676
|
+
statusCode: 'number',
|
|
677
|
+
body: CreateGatewayIntranetLinkedVpcResponseBody,
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
exports.CreateGatewayIntranetLinkedVpcResponse = CreateGatewayIntranetLinkedVpcResponse;
|
|
468
682
|
class CreateResourceRequest extends $tea.Model {
|
|
469
683
|
constructor(map) {
|
|
470
684
|
super(map);
|
|
@@ -475,11 +689,8 @@ class CreateResourceRequest extends $tea.Model {
|
|
|
475
689
|
chargeType: 'ChargeType',
|
|
476
690
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
477
691
|
ecsInstanceType: 'EcsInstanceType',
|
|
478
|
-
externalClusterId: 'ExternalClusterId',
|
|
479
|
-
nodeMatchLabels: 'NodeMatchLabels',
|
|
480
|
-
nodeTolerations: 'NodeTolerations',
|
|
481
692
|
resourceType: 'ResourceType',
|
|
482
|
-
|
|
693
|
+
selfManagedResourceOptions: 'SelfManagedResourceOptions',
|
|
483
694
|
systemDiskSize: 'SystemDiskSize',
|
|
484
695
|
zone: 'Zone',
|
|
485
696
|
};
|
|
@@ -490,11 +701,8 @@ class CreateResourceRequest extends $tea.Model {
|
|
|
490
701
|
chargeType: 'string',
|
|
491
702
|
ecsInstanceCount: 'number',
|
|
492
703
|
ecsInstanceType: 'string',
|
|
493
|
-
externalClusterId: 'string',
|
|
494
|
-
nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
495
|
-
nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestNodeTolerations },
|
|
496
704
|
resourceType: 'string',
|
|
497
|
-
|
|
705
|
+
selfManagedResourceOptions: CreateResourceRequestSelfManagedResourceOptions,
|
|
498
706
|
systemDiskSize: 'number',
|
|
499
707
|
zone: 'string',
|
|
500
708
|
};
|
|
@@ -679,6 +887,7 @@ class CreateServiceRequest extends $tea.Model {
|
|
|
679
887
|
return {
|
|
680
888
|
develop: 'Develop',
|
|
681
889
|
labels: 'Labels',
|
|
890
|
+
workspaceId: 'WorkspaceId',
|
|
682
891
|
body: 'body',
|
|
683
892
|
};
|
|
684
893
|
}
|
|
@@ -686,6 +895,7 @@ class CreateServiceRequest extends $tea.Model {
|
|
|
686
895
|
return {
|
|
687
896
|
develop: 'string',
|
|
688
897
|
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
898
|
+
workspaceId: 'string',
|
|
689
899
|
body: 'string',
|
|
690
900
|
};
|
|
691
901
|
}
|
|
@@ -699,6 +909,7 @@ class CreateServiceShrinkRequest extends $tea.Model {
|
|
|
699
909
|
return {
|
|
700
910
|
develop: 'Develop',
|
|
701
911
|
labelsShrink: 'Labels',
|
|
912
|
+
workspaceId: 'WorkspaceId',
|
|
702
913
|
body: 'body',
|
|
703
914
|
};
|
|
704
915
|
}
|
|
@@ -706,6 +917,7 @@ class CreateServiceShrinkRequest extends $tea.Model {
|
|
|
706
917
|
return {
|
|
707
918
|
develop: 'string',
|
|
708
919
|
labelsShrink: 'string',
|
|
920
|
+
workspaceId: 'string',
|
|
709
921
|
body: 'string',
|
|
710
922
|
};
|
|
711
923
|
}
|
|
@@ -969,6 +1181,104 @@ class DeleteBenchmarkTaskResponse extends $tea.Model {
|
|
|
969
1181
|
}
|
|
970
1182
|
}
|
|
971
1183
|
exports.DeleteBenchmarkTaskResponse = DeleteBenchmarkTaskResponse;
|
|
1184
|
+
class DeleteGatewayResponseBody extends $tea.Model {
|
|
1185
|
+
constructor(map) {
|
|
1186
|
+
super(map);
|
|
1187
|
+
}
|
|
1188
|
+
static names() {
|
|
1189
|
+
return {
|
|
1190
|
+
gatewayId: 'GatewayId',
|
|
1191
|
+
message: 'Message',
|
|
1192
|
+
requestId: 'RequestId',
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
static types() {
|
|
1196
|
+
return {
|
|
1197
|
+
gatewayId: 'string',
|
|
1198
|
+
message: 'string',
|
|
1199
|
+
requestId: 'string',
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
exports.DeleteGatewayResponseBody = DeleteGatewayResponseBody;
|
|
1204
|
+
class DeleteGatewayResponse extends $tea.Model {
|
|
1205
|
+
constructor(map) {
|
|
1206
|
+
super(map);
|
|
1207
|
+
}
|
|
1208
|
+
static names() {
|
|
1209
|
+
return {
|
|
1210
|
+
headers: 'headers',
|
|
1211
|
+
statusCode: 'statusCode',
|
|
1212
|
+
body: 'body',
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
static types() {
|
|
1216
|
+
return {
|
|
1217
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1218
|
+
statusCode: 'number',
|
|
1219
|
+
body: DeleteGatewayResponseBody,
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
exports.DeleteGatewayResponse = DeleteGatewayResponse;
|
|
1224
|
+
class DeleteGatewayIntranetLinkedVpcRequest extends $tea.Model {
|
|
1225
|
+
constructor(map) {
|
|
1226
|
+
super(map);
|
|
1227
|
+
}
|
|
1228
|
+
static names() {
|
|
1229
|
+
return {
|
|
1230
|
+
vSwitchId: 'VSwitchId',
|
|
1231
|
+
vpcId: 'VpcId',
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
static types() {
|
|
1235
|
+
return {
|
|
1236
|
+
vSwitchId: 'string',
|
|
1237
|
+
vpcId: 'string',
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
exports.DeleteGatewayIntranetLinkedVpcRequest = DeleteGatewayIntranetLinkedVpcRequest;
|
|
1242
|
+
class DeleteGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
|
|
1243
|
+
constructor(map) {
|
|
1244
|
+
super(map);
|
|
1245
|
+
}
|
|
1246
|
+
static names() {
|
|
1247
|
+
return {
|
|
1248
|
+
gatewayId: 'GatewayId',
|
|
1249
|
+
message: 'Message',
|
|
1250
|
+
requestId: 'RequestId',
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
static types() {
|
|
1254
|
+
return {
|
|
1255
|
+
gatewayId: 'string',
|
|
1256
|
+
message: 'string',
|
|
1257
|
+
requestId: 'string',
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
exports.DeleteGatewayIntranetLinkedVpcResponseBody = DeleteGatewayIntranetLinkedVpcResponseBody;
|
|
1262
|
+
class DeleteGatewayIntranetLinkedVpcResponse extends $tea.Model {
|
|
1263
|
+
constructor(map) {
|
|
1264
|
+
super(map);
|
|
1265
|
+
}
|
|
1266
|
+
static names() {
|
|
1267
|
+
return {
|
|
1268
|
+
headers: 'headers',
|
|
1269
|
+
statusCode: 'statusCode',
|
|
1270
|
+
body: 'body',
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
static types() {
|
|
1274
|
+
return {
|
|
1275
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1276
|
+
statusCode: 'number',
|
|
1277
|
+
body: DeleteGatewayIntranetLinkedVpcResponseBody,
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
exports.DeleteGatewayIntranetLinkedVpcResponse = DeleteGatewayIntranetLinkedVpcResponse;
|
|
972
1282
|
class DeleteResourceResponseBody extends $tea.Model {
|
|
973
1283
|
constructor(map) {
|
|
974
1284
|
super(map);
|
|
@@ -1514,8 +1824,76 @@ class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
|
|
|
1514
1824
|
};
|
|
1515
1825
|
}
|
|
1516
1826
|
}
|
|
1517
|
-
exports.DescribeBenchmarkTaskReportResponseBody = DescribeBenchmarkTaskReportResponseBody;
|
|
1518
|
-
class DescribeBenchmarkTaskReportResponse extends $tea.Model {
|
|
1827
|
+
exports.DescribeBenchmarkTaskReportResponseBody = DescribeBenchmarkTaskReportResponseBody;
|
|
1828
|
+
class DescribeBenchmarkTaskReportResponse extends $tea.Model {
|
|
1829
|
+
constructor(map) {
|
|
1830
|
+
super(map);
|
|
1831
|
+
}
|
|
1832
|
+
static names() {
|
|
1833
|
+
return {
|
|
1834
|
+
headers: 'headers',
|
|
1835
|
+
statusCode: 'statusCode',
|
|
1836
|
+
body: 'body',
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
static types() {
|
|
1840
|
+
return {
|
|
1841
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1842
|
+
statusCode: 'number',
|
|
1843
|
+
body: DescribeBenchmarkTaskReportResponseBody,
|
|
1844
|
+
};
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
exports.DescribeBenchmarkTaskReportResponse = DescribeBenchmarkTaskReportResponse;
|
|
1848
|
+
class DescribeGatewayResponseBody extends $tea.Model {
|
|
1849
|
+
constructor(map) {
|
|
1850
|
+
super(map);
|
|
1851
|
+
}
|
|
1852
|
+
static names() {
|
|
1853
|
+
return {
|
|
1854
|
+
callerUid: 'CallerUid',
|
|
1855
|
+
createTime: 'CreateTime',
|
|
1856
|
+
externalClusterId: 'ExternalClusterId',
|
|
1857
|
+
gatewayId: 'GatewayId',
|
|
1858
|
+
gatewayName: 'GatewayName',
|
|
1859
|
+
instanceType: 'InstanceType',
|
|
1860
|
+
internetAclPolicyList: 'InternetAclPolicyList',
|
|
1861
|
+
internetDomain: 'InternetDomain',
|
|
1862
|
+
internetEnabled: 'InternetEnabled',
|
|
1863
|
+
intranetDomain: 'IntranetDomain',
|
|
1864
|
+
intranetEnabled: 'IntranetEnabled',
|
|
1865
|
+
intranetLinkedVpcList: 'IntranetLinkedVpcList',
|
|
1866
|
+
parentUid: 'ParentUid',
|
|
1867
|
+
region: 'Region',
|
|
1868
|
+
requestId: 'RequestId',
|
|
1869
|
+
status: 'Status',
|
|
1870
|
+
updateTime: 'UpdateTime',
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1873
|
+
static types() {
|
|
1874
|
+
return {
|
|
1875
|
+
callerUid: 'string',
|
|
1876
|
+
createTime: 'string',
|
|
1877
|
+
externalClusterId: 'string',
|
|
1878
|
+
gatewayId: 'string',
|
|
1879
|
+
gatewayName: 'string',
|
|
1880
|
+
instanceType: 'string',
|
|
1881
|
+
internetAclPolicyList: { 'type': 'array', 'itemType': DescribeGatewayResponseBodyInternetAclPolicyList },
|
|
1882
|
+
internetDomain: 'string',
|
|
1883
|
+
internetEnabled: 'boolean',
|
|
1884
|
+
intranetDomain: 'string',
|
|
1885
|
+
intranetEnabled: 'boolean',
|
|
1886
|
+
intranetLinkedVpcList: { 'type': 'array', 'itemType': DescribeGatewayResponseBodyIntranetLinkedVpcList },
|
|
1887
|
+
parentUid: 'string',
|
|
1888
|
+
region: 'string',
|
|
1889
|
+
requestId: 'string',
|
|
1890
|
+
status: 'string',
|
|
1891
|
+
updateTime: 'string',
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
exports.DescribeGatewayResponseBody = DescribeGatewayResponseBody;
|
|
1896
|
+
class DescribeGatewayResponse extends $tea.Model {
|
|
1519
1897
|
constructor(map) {
|
|
1520
1898
|
super(map);
|
|
1521
1899
|
}
|
|
@@ -1530,11 +1908,11 @@ class DescribeBenchmarkTaskReportResponse extends $tea.Model {
|
|
|
1530
1908
|
return {
|
|
1531
1909
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1532
1910
|
statusCode: 'number',
|
|
1533
|
-
body:
|
|
1911
|
+
body: DescribeGatewayResponseBody,
|
|
1534
1912
|
};
|
|
1535
1913
|
}
|
|
1536
1914
|
}
|
|
1537
|
-
exports.
|
|
1915
|
+
exports.DescribeGatewayResponse = DescribeGatewayResponse;
|
|
1538
1916
|
class DescribeGroupResponse extends $tea.Model {
|
|
1539
1917
|
constructor(map) {
|
|
1540
1918
|
super(map);
|
|
@@ -2205,6 +2583,46 @@ class ListBenchmarkTaskResponse extends $tea.Model {
|
|
|
2205
2583
|
}
|
|
2206
2584
|
}
|
|
2207
2585
|
exports.ListBenchmarkTaskResponse = ListBenchmarkTaskResponse;
|
|
2586
|
+
class ListGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
|
|
2587
|
+
constructor(map) {
|
|
2588
|
+
super(map);
|
|
2589
|
+
}
|
|
2590
|
+
static names() {
|
|
2591
|
+
return {
|
|
2592
|
+
gatewayId: 'GatewayId',
|
|
2593
|
+
intranetLinkedVpcList: 'IntranetLinkedVpcList',
|
|
2594
|
+
requestId: 'RequestId',
|
|
2595
|
+
};
|
|
2596
|
+
}
|
|
2597
|
+
static types() {
|
|
2598
|
+
return {
|
|
2599
|
+
gatewayId: 'string',
|
|
2600
|
+
intranetLinkedVpcList: { 'type': 'array', 'itemType': ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList },
|
|
2601
|
+
requestId: 'string',
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
exports.ListGatewayIntranetLinkedVpcResponseBody = ListGatewayIntranetLinkedVpcResponseBody;
|
|
2606
|
+
class ListGatewayIntranetLinkedVpcResponse extends $tea.Model {
|
|
2607
|
+
constructor(map) {
|
|
2608
|
+
super(map);
|
|
2609
|
+
}
|
|
2610
|
+
static names() {
|
|
2611
|
+
return {
|
|
2612
|
+
headers: 'headers',
|
|
2613
|
+
statusCode: 'statusCode',
|
|
2614
|
+
body: 'body',
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
static types() {
|
|
2618
|
+
return {
|
|
2619
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2620
|
+
statusCode: 'number',
|
|
2621
|
+
body: ListGatewayIntranetLinkedVpcResponseBody,
|
|
2622
|
+
};
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
exports.ListGatewayIntranetLinkedVpcResponse = ListGatewayIntranetLinkedVpcResponse;
|
|
2208
2626
|
class ListGroupsRequest extends $tea.Model {
|
|
2209
2627
|
constructor(map) {
|
|
2210
2628
|
super(map);
|
|
@@ -2214,6 +2632,7 @@ class ListGroupsRequest extends $tea.Model {
|
|
|
2214
2632
|
filter: 'Filter',
|
|
2215
2633
|
pageNumber: 'PageNumber',
|
|
2216
2634
|
pageSize: 'PageSize',
|
|
2635
|
+
workspaceId: 'WorkspaceId',
|
|
2217
2636
|
};
|
|
2218
2637
|
}
|
|
2219
2638
|
static types() {
|
|
@@ -2221,6 +2640,7 @@ class ListGroupsRequest extends $tea.Model {
|
|
|
2221
2640
|
filter: 'string',
|
|
2222
2641
|
pageNumber: 'string',
|
|
2223
2642
|
pageSize: 'string',
|
|
2643
|
+
workspaceId: 'string',
|
|
2224
2644
|
};
|
|
2225
2645
|
}
|
|
2226
2646
|
}
|
|
@@ -2744,6 +3164,7 @@ class ListServicesRequest extends $tea.Model {
|
|
|
2744
3164
|
serviceType: 'ServiceType',
|
|
2745
3165
|
serviceUid: 'ServiceUid',
|
|
2746
3166
|
sort: 'Sort',
|
|
3167
|
+
workspaceId: 'WorkspaceId',
|
|
2747
3168
|
};
|
|
2748
3169
|
}
|
|
2749
3170
|
static types() {
|
|
@@ -2761,6 +3182,7 @@ class ListServicesRequest extends $tea.Model {
|
|
|
2761
3182
|
serviceType: 'string',
|
|
2762
3183
|
serviceUid: 'string',
|
|
2763
3184
|
sort: 'string',
|
|
3185
|
+
workspaceId: 'string',
|
|
2764
3186
|
};
|
|
2765
3187
|
}
|
|
2766
3188
|
}
|
|
@@ -2784,6 +3206,7 @@ class ListServicesShrinkRequest extends $tea.Model {
|
|
|
2784
3206
|
serviceType: 'ServiceType',
|
|
2785
3207
|
serviceUid: 'ServiceUid',
|
|
2786
3208
|
sort: 'Sort',
|
|
3209
|
+
workspaceId: 'WorkspaceId',
|
|
2787
3210
|
};
|
|
2788
3211
|
}
|
|
2789
3212
|
static types() {
|
|
@@ -2801,6 +3224,7 @@ class ListServicesShrinkRequest extends $tea.Model {
|
|
|
2801
3224
|
serviceType: 'string',
|
|
2802
3225
|
serviceUid: 'string',
|
|
2803
3226
|
sort: 'string',
|
|
3227
|
+
workspaceId: 'string',
|
|
2804
3228
|
};
|
|
2805
3229
|
}
|
|
2806
3230
|
}
|
|
@@ -3095,6 +3519,72 @@ class StopServiceResponse extends $tea.Model {
|
|
|
3095
3519
|
}
|
|
3096
3520
|
}
|
|
3097
3521
|
exports.StopServiceResponse = StopServiceResponse;
|
|
3522
|
+
class UpdateAppServiceRequest extends $tea.Model {
|
|
3523
|
+
constructor(map) {
|
|
3524
|
+
super(map);
|
|
3525
|
+
}
|
|
3526
|
+
static names() {
|
|
3527
|
+
return {
|
|
3528
|
+
quotaId: 'QuotaId',
|
|
3529
|
+
workspaceId: 'WorkspaceId',
|
|
3530
|
+
appType: 'AppType',
|
|
3531
|
+
appVersion: 'AppVersion',
|
|
3532
|
+
config: 'Config',
|
|
3533
|
+
replicas: 'Replicas',
|
|
3534
|
+
serviceSpec: 'ServiceSpec',
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
static types() {
|
|
3538
|
+
return {
|
|
3539
|
+
quotaId: 'string',
|
|
3540
|
+
workspaceId: 'string',
|
|
3541
|
+
appType: 'string',
|
|
3542
|
+
appVersion: 'string',
|
|
3543
|
+
config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3544
|
+
replicas: 'string',
|
|
3545
|
+
serviceSpec: 'string',
|
|
3546
|
+
};
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
exports.UpdateAppServiceRequest = UpdateAppServiceRequest;
|
|
3550
|
+
class UpdateAppServiceResponseBody extends $tea.Model {
|
|
3551
|
+
constructor(map) {
|
|
3552
|
+
super(map);
|
|
3553
|
+
}
|
|
3554
|
+
static names() {
|
|
3555
|
+
return {
|
|
3556
|
+
message: 'Message',
|
|
3557
|
+
requestId: 'RequestId',
|
|
3558
|
+
};
|
|
3559
|
+
}
|
|
3560
|
+
static types() {
|
|
3561
|
+
return {
|
|
3562
|
+
message: 'string',
|
|
3563
|
+
requestId: 'string',
|
|
3564
|
+
};
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
exports.UpdateAppServiceResponseBody = UpdateAppServiceResponseBody;
|
|
3568
|
+
class UpdateAppServiceResponse extends $tea.Model {
|
|
3569
|
+
constructor(map) {
|
|
3570
|
+
super(map);
|
|
3571
|
+
}
|
|
3572
|
+
static names() {
|
|
3573
|
+
return {
|
|
3574
|
+
headers: 'headers',
|
|
3575
|
+
statusCode: 'statusCode',
|
|
3576
|
+
body: 'body',
|
|
3577
|
+
};
|
|
3578
|
+
}
|
|
3579
|
+
static types() {
|
|
3580
|
+
return {
|
|
3581
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3582
|
+
statusCode: 'number',
|
|
3583
|
+
body: UpdateAppServiceResponseBody,
|
|
3584
|
+
};
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
exports.UpdateAppServiceResponse = UpdateAppServiceResponse;
|
|
3098
3588
|
class UpdateBenchmarkTaskRequest extends $tea.Model {
|
|
3099
3589
|
constructor(map) {
|
|
3100
3590
|
super(map);
|
|
@@ -3149,22 +3639,82 @@ class UpdateBenchmarkTaskResponse extends $tea.Model {
|
|
|
3149
3639
|
}
|
|
3150
3640
|
}
|
|
3151
3641
|
exports.UpdateBenchmarkTaskResponse = UpdateBenchmarkTaskResponse;
|
|
3642
|
+
class UpdateGatewayRequest extends $tea.Model {
|
|
3643
|
+
constructor(map) {
|
|
3644
|
+
super(map);
|
|
3645
|
+
}
|
|
3646
|
+
static names() {
|
|
3647
|
+
return {
|
|
3648
|
+
enableInternet: 'EnableInternet',
|
|
3649
|
+
enableIntranet: 'EnableIntranet',
|
|
3650
|
+
instanceType: 'InstanceType',
|
|
3651
|
+
name: 'Name',
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
static types() {
|
|
3655
|
+
return {
|
|
3656
|
+
enableInternet: 'boolean',
|
|
3657
|
+
enableIntranet: 'boolean',
|
|
3658
|
+
instanceType: 'string',
|
|
3659
|
+
name: 'string',
|
|
3660
|
+
};
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
exports.UpdateGatewayRequest = UpdateGatewayRequest;
|
|
3664
|
+
class UpdateGatewayResponseBody extends $tea.Model {
|
|
3665
|
+
constructor(map) {
|
|
3666
|
+
super(map);
|
|
3667
|
+
}
|
|
3668
|
+
static names() {
|
|
3669
|
+
return {
|
|
3670
|
+
gatewayId: 'GatewayId',
|
|
3671
|
+
message: 'Message',
|
|
3672
|
+
requestId: 'RequestId',
|
|
3673
|
+
};
|
|
3674
|
+
}
|
|
3675
|
+
static types() {
|
|
3676
|
+
return {
|
|
3677
|
+
gatewayId: 'string',
|
|
3678
|
+
message: 'string',
|
|
3679
|
+
requestId: 'string',
|
|
3680
|
+
};
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
exports.UpdateGatewayResponseBody = UpdateGatewayResponseBody;
|
|
3684
|
+
class UpdateGatewayResponse extends $tea.Model {
|
|
3685
|
+
constructor(map) {
|
|
3686
|
+
super(map);
|
|
3687
|
+
}
|
|
3688
|
+
static names() {
|
|
3689
|
+
return {
|
|
3690
|
+
headers: 'headers',
|
|
3691
|
+
statusCode: 'statusCode',
|
|
3692
|
+
body: 'body',
|
|
3693
|
+
};
|
|
3694
|
+
}
|
|
3695
|
+
static types() {
|
|
3696
|
+
return {
|
|
3697
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3698
|
+
statusCode: 'number',
|
|
3699
|
+
body: UpdateGatewayResponseBody,
|
|
3700
|
+
};
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
exports.UpdateGatewayResponse = UpdateGatewayResponse;
|
|
3152
3704
|
class UpdateResourceRequest extends $tea.Model {
|
|
3153
3705
|
constructor(map) {
|
|
3154
3706
|
super(map);
|
|
3155
3707
|
}
|
|
3156
3708
|
static names() {
|
|
3157
3709
|
return {
|
|
3158
|
-
nodeMatchLabels: 'NodeMatchLabels',
|
|
3159
|
-
nodeTolerations: 'NodeTolerations',
|
|
3160
3710
|
resourceName: 'ResourceName',
|
|
3711
|
+
selfManagedResourceOptions: 'SelfManagedResourceOptions',
|
|
3161
3712
|
};
|
|
3162
3713
|
}
|
|
3163
3714
|
static types() {
|
|
3164
3715
|
return {
|
|
3165
|
-
nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3166
|
-
nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestNodeTolerations },
|
|
3167
3716
|
resourceName: 'string',
|
|
3717
|
+
selfManagedResourceOptions: UpdateResourceRequestSelfManagedResourceOptions,
|
|
3168
3718
|
};
|
|
3169
3719
|
}
|
|
3170
3720
|
}
|
|
@@ -3495,6 +4045,60 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
|
|
|
3495
4045
|
}
|
|
3496
4046
|
}
|
|
3497
4047
|
exports.UpdateServiceCronScalerResponse = UpdateServiceCronScalerResponse;
|
|
4048
|
+
class UpdateServiceInstanceRequest extends $tea.Model {
|
|
4049
|
+
constructor(map) {
|
|
4050
|
+
super(map);
|
|
4051
|
+
}
|
|
4052
|
+
static names() {
|
|
4053
|
+
return {
|
|
4054
|
+
isolate: 'Isolate',
|
|
4055
|
+
};
|
|
4056
|
+
}
|
|
4057
|
+
static types() {
|
|
4058
|
+
return {
|
|
4059
|
+
isolate: 'boolean',
|
|
4060
|
+
};
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
exports.UpdateServiceInstanceRequest = UpdateServiceInstanceRequest;
|
|
4064
|
+
class UpdateServiceInstanceResponseBody extends $tea.Model {
|
|
4065
|
+
constructor(map) {
|
|
4066
|
+
super(map);
|
|
4067
|
+
}
|
|
4068
|
+
static names() {
|
|
4069
|
+
return {
|
|
4070
|
+
message: 'Message',
|
|
4071
|
+
requestId: 'RequestId',
|
|
4072
|
+
};
|
|
4073
|
+
}
|
|
4074
|
+
static types() {
|
|
4075
|
+
return {
|
|
4076
|
+
message: 'string',
|
|
4077
|
+
requestId: 'string',
|
|
4078
|
+
};
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
exports.UpdateServiceInstanceResponseBody = UpdateServiceInstanceResponseBody;
|
|
4082
|
+
class UpdateServiceInstanceResponse extends $tea.Model {
|
|
4083
|
+
constructor(map) {
|
|
4084
|
+
super(map);
|
|
4085
|
+
}
|
|
4086
|
+
static names() {
|
|
4087
|
+
return {
|
|
4088
|
+
headers: 'headers',
|
|
4089
|
+
statusCode: 'statusCode',
|
|
4090
|
+
body: 'body',
|
|
4091
|
+
};
|
|
4092
|
+
}
|
|
4093
|
+
static types() {
|
|
4094
|
+
return {
|
|
4095
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4096
|
+
statusCode: 'number',
|
|
4097
|
+
body: UpdateServiceInstanceResponseBody,
|
|
4098
|
+
};
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
exports.UpdateServiceInstanceResponse = UpdateServiceInstanceResponse;
|
|
3498
4102
|
class UpdateServiceLabelRequest extends $tea.Model {
|
|
3499
4103
|
constructor(map) {
|
|
3500
4104
|
super(map);
|
|
@@ -3731,7 +4335,7 @@ class ServiceLabels extends $tea.Model {
|
|
|
3731
4335
|
}
|
|
3732
4336
|
}
|
|
3733
4337
|
exports.ServiceLabels = ServiceLabels;
|
|
3734
|
-
class
|
|
4338
|
+
class CreateResourceRequestSelfManagedResourceOptionsNodeTolerations extends $tea.Model {
|
|
3735
4339
|
constructor(map) {
|
|
3736
4340
|
super(map);
|
|
3737
4341
|
}
|
|
@@ -3752,7 +4356,29 @@ class CreateResourceRequestNodeTolerations extends $tea.Model {
|
|
|
3752
4356
|
};
|
|
3753
4357
|
}
|
|
3754
4358
|
}
|
|
3755
|
-
exports.
|
|
4359
|
+
exports.CreateResourceRequestSelfManagedResourceOptionsNodeTolerations = CreateResourceRequestSelfManagedResourceOptionsNodeTolerations;
|
|
4360
|
+
class CreateResourceRequestSelfManagedResourceOptions extends $tea.Model {
|
|
4361
|
+
constructor(map) {
|
|
4362
|
+
super(map);
|
|
4363
|
+
}
|
|
4364
|
+
static names() {
|
|
4365
|
+
return {
|
|
4366
|
+
externalClusterId: 'ExternalClusterId',
|
|
4367
|
+
nodeMatchLabels: 'NodeMatchLabels',
|
|
4368
|
+
nodeTolerations: 'NodeTolerations',
|
|
4369
|
+
roleName: 'RoleName',
|
|
4370
|
+
};
|
|
4371
|
+
}
|
|
4372
|
+
static types() {
|
|
4373
|
+
return {
|
|
4374
|
+
externalClusterId: 'string',
|
|
4375
|
+
nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4376
|
+
nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestSelfManagedResourceOptionsNodeTolerations },
|
|
4377
|
+
roleName: 'string',
|
|
4378
|
+
};
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
exports.CreateResourceRequestSelfManagedResourceOptions = CreateResourceRequestSelfManagedResourceOptions;
|
|
3756
4382
|
class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
3757
4383
|
constructor(map) {
|
|
3758
4384
|
super(map);
|
|
@@ -3863,6 +4489,50 @@ class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
|
|
|
3863
4489
|
}
|
|
3864
4490
|
}
|
|
3865
4491
|
exports.CreateServiceCronScalerRequestScaleJobs = CreateServiceCronScalerRequestScaleJobs;
|
|
4492
|
+
class DescribeGatewayResponseBodyInternetAclPolicyList extends $tea.Model {
|
|
4493
|
+
constructor(map) {
|
|
4494
|
+
super(map);
|
|
4495
|
+
}
|
|
4496
|
+
static names() {
|
|
4497
|
+
return {
|
|
4498
|
+
comment: 'Comment',
|
|
4499
|
+
entry: 'Entry',
|
|
4500
|
+
status: 'Status',
|
|
4501
|
+
};
|
|
4502
|
+
}
|
|
4503
|
+
static types() {
|
|
4504
|
+
return {
|
|
4505
|
+
comment: 'string',
|
|
4506
|
+
entry: 'string',
|
|
4507
|
+
status: 'string',
|
|
4508
|
+
};
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
exports.DescribeGatewayResponseBodyInternetAclPolicyList = DescribeGatewayResponseBodyInternetAclPolicyList;
|
|
4512
|
+
class DescribeGatewayResponseBodyIntranetLinkedVpcList extends $tea.Model {
|
|
4513
|
+
constructor(map) {
|
|
4514
|
+
super(map);
|
|
4515
|
+
}
|
|
4516
|
+
static names() {
|
|
4517
|
+
return {
|
|
4518
|
+
ip: 'Ip',
|
|
4519
|
+
securityGroupId: 'SecurityGroupId',
|
|
4520
|
+
status: 'Status',
|
|
4521
|
+
vSwitchId: 'VSwitchId',
|
|
4522
|
+
vpcId: 'VpcId',
|
|
4523
|
+
};
|
|
4524
|
+
}
|
|
4525
|
+
static types() {
|
|
4526
|
+
return {
|
|
4527
|
+
ip: 'string',
|
|
4528
|
+
securityGroupId: 'string',
|
|
4529
|
+
status: 'string',
|
|
4530
|
+
vSwitchId: 'string',
|
|
4531
|
+
vpcId: 'string',
|
|
4532
|
+
};
|
|
4533
|
+
}
|
|
4534
|
+
}
|
|
4535
|
+
exports.DescribeGatewayResponseBodyIntranetLinkedVpcList = DescribeGatewayResponseBodyIntranetLinkedVpcList;
|
|
3866
4536
|
class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $tea.Model {
|
|
3867
4537
|
constructor(map) {
|
|
3868
4538
|
super(map);
|
|
@@ -4018,13 +4688,37 @@ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
|
4018
4688
|
region: 'string',
|
|
4019
4689
|
serviceName: 'string',
|
|
4020
4690
|
status: 'string',
|
|
4021
|
-
taskId: 'string',
|
|
4022
|
-
taskName: 'string',
|
|
4023
|
-
updateTime: 'string',
|
|
4691
|
+
taskId: 'string',
|
|
4692
|
+
taskName: 'string',
|
|
4693
|
+
updateTime: 'string',
|
|
4694
|
+
};
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
|
|
4698
|
+
class ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList extends $tea.Model {
|
|
4699
|
+
constructor(map) {
|
|
4700
|
+
super(map);
|
|
4701
|
+
}
|
|
4702
|
+
static names() {
|
|
4703
|
+
return {
|
|
4704
|
+
ip: 'Ip',
|
|
4705
|
+
securityGroupId: 'SecurityGroupId',
|
|
4706
|
+
status: 'Status',
|
|
4707
|
+
vSwitchId: 'VSwitchId',
|
|
4708
|
+
vpcId: 'VpcId',
|
|
4709
|
+
};
|
|
4710
|
+
}
|
|
4711
|
+
static types() {
|
|
4712
|
+
return {
|
|
4713
|
+
ip: 'string',
|
|
4714
|
+
securityGroupId: 'string',
|
|
4715
|
+
status: 'string',
|
|
4716
|
+
vSwitchId: 'string',
|
|
4717
|
+
vpcId: 'string',
|
|
4024
4718
|
};
|
|
4025
4719
|
}
|
|
4026
4720
|
}
|
|
4027
|
-
exports.
|
|
4721
|
+
exports.ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList = ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList;
|
|
4028
4722
|
class ListServiceVersionsResponseBodyVersions extends $tea.Model {
|
|
4029
4723
|
constructor(map) {
|
|
4030
4724
|
super(map);
|
|
@@ -4049,7 +4743,7 @@ class ListServiceVersionsResponseBodyVersions extends $tea.Model {
|
|
|
4049
4743
|
}
|
|
4050
4744
|
}
|
|
4051
4745
|
exports.ListServiceVersionsResponseBodyVersions = ListServiceVersionsResponseBodyVersions;
|
|
4052
|
-
class
|
|
4746
|
+
class UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations extends $tea.Model {
|
|
4053
4747
|
constructor(map) {
|
|
4054
4748
|
super(map);
|
|
4055
4749
|
}
|
|
@@ -4070,7 +4764,25 @@ class UpdateResourceRequestNodeTolerations extends $tea.Model {
|
|
|
4070
4764
|
};
|
|
4071
4765
|
}
|
|
4072
4766
|
}
|
|
4073
|
-
exports.
|
|
4767
|
+
exports.UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations = UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations;
|
|
4768
|
+
class UpdateResourceRequestSelfManagedResourceOptions extends $tea.Model {
|
|
4769
|
+
constructor(map) {
|
|
4770
|
+
super(map);
|
|
4771
|
+
}
|
|
4772
|
+
static names() {
|
|
4773
|
+
return {
|
|
4774
|
+
nodeMatchLabels: 'NodeMatchLabels',
|
|
4775
|
+
nodeTolerations: 'NodeTolerations',
|
|
4776
|
+
};
|
|
4777
|
+
}
|
|
4778
|
+
static types() {
|
|
4779
|
+
return {
|
|
4780
|
+
nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4781
|
+
nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations },
|
|
4782
|
+
};
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
exports.UpdateResourceRequestSelfManagedResourceOptions = UpdateResourceRequestSelfManagedResourceOptions;
|
|
4074
4786
|
class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
4075
4787
|
constructor(map) {
|
|
4076
4788
|
super(map);
|
|
@@ -4236,6 +4948,57 @@ class Client extends openapi_client_1.default {
|
|
|
4236
4948
|
let headers = {};
|
|
4237
4949
|
return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4238
4950
|
}
|
|
4951
|
+
async createAppServiceWithOptions(request, headers, runtime) {
|
|
4952
|
+
tea_util_1.default.validateModel(request);
|
|
4953
|
+
let query = {};
|
|
4954
|
+
if (!tea_util_1.default.isUnset(request.quotaId)) {
|
|
4955
|
+
query["QuotaId"] = request.quotaId;
|
|
4956
|
+
}
|
|
4957
|
+
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
4958
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
4959
|
+
}
|
|
4960
|
+
let body = {};
|
|
4961
|
+
if (!tea_util_1.default.isUnset(request.appType)) {
|
|
4962
|
+
body["AppType"] = request.appType;
|
|
4963
|
+
}
|
|
4964
|
+
if (!tea_util_1.default.isUnset(request.appVersion)) {
|
|
4965
|
+
body["AppVersion"] = request.appVersion;
|
|
4966
|
+
}
|
|
4967
|
+
if (!tea_util_1.default.isUnset(request.config)) {
|
|
4968
|
+
body["Config"] = request.config;
|
|
4969
|
+
}
|
|
4970
|
+
if (!tea_util_1.default.isUnset(request.replicas)) {
|
|
4971
|
+
body["Replicas"] = request.replicas;
|
|
4972
|
+
}
|
|
4973
|
+
if (!tea_util_1.default.isUnset(request.serviceName)) {
|
|
4974
|
+
body["ServiceName"] = request.serviceName;
|
|
4975
|
+
}
|
|
4976
|
+
if (!tea_util_1.default.isUnset(request.serviceSpec)) {
|
|
4977
|
+
body["ServiceSpec"] = request.serviceSpec;
|
|
4978
|
+
}
|
|
4979
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4980
|
+
headers: headers,
|
|
4981
|
+
query: openapi_util_1.default.query(query),
|
|
4982
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4983
|
+
});
|
|
4984
|
+
let params = new $OpenApi.Params({
|
|
4985
|
+
action: "CreateAppService",
|
|
4986
|
+
version: "2021-07-01",
|
|
4987
|
+
protocol: "HTTPS",
|
|
4988
|
+
pathname: `/api/v2/app_services`,
|
|
4989
|
+
method: "POST",
|
|
4990
|
+
authType: "AK",
|
|
4991
|
+
style: "ROA",
|
|
4992
|
+
reqBodyType: "json",
|
|
4993
|
+
bodyType: "json",
|
|
4994
|
+
});
|
|
4995
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAppServiceResponse({}));
|
|
4996
|
+
}
|
|
4997
|
+
async createAppService(request) {
|
|
4998
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4999
|
+
let headers = {};
|
|
5000
|
+
return await this.createAppServiceWithOptions(request, headers, runtime);
|
|
5001
|
+
}
|
|
4239
5002
|
async createBenchmarkTaskWithOptions(request, headers, runtime) {
|
|
4240
5003
|
tea_util_1.default.validateModel(request);
|
|
4241
5004
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -4260,6 +5023,79 @@ class Client extends openapi_client_1.default {
|
|
|
4260
5023
|
let headers = {};
|
|
4261
5024
|
return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
|
|
4262
5025
|
}
|
|
5026
|
+
async createGatewayWithOptions(request, headers, runtime) {
|
|
5027
|
+
tea_util_1.default.validateModel(request);
|
|
5028
|
+
let query = {};
|
|
5029
|
+
if (!tea_util_1.default.isUnset(request.resourceName)) {
|
|
5030
|
+
query["ResourceName"] = request.resourceName;
|
|
5031
|
+
}
|
|
5032
|
+
let body = {};
|
|
5033
|
+
if (!tea_util_1.default.isUnset(request.enableInternet)) {
|
|
5034
|
+
body["EnableInternet"] = request.enableInternet;
|
|
5035
|
+
}
|
|
5036
|
+
if (!tea_util_1.default.isUnset(request.enableIntranet)) {
|
|
5037
|
+
body["EnableIntranet"] = request.enableIntranet;
|
|
5038
|
+
}
|
|
5039
|
+
if (!tea_util_1.default.isUnset(request.instanceType)) {
|
|
5040
|
+
body["InstanceType"] = request.instanceType;
|
|
5041
|
+
}
|
|
5042
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
5043
|
+
body["Name"] = request.name;
|
|
5044
|
+
}
|
|
5045
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5046
|
+
headers: headers,
|
|
5047
|
+
query: openapi_util_1.default.query(query),
|
|
5048
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
5049
|
+
});
|
|
5050
|
+
let params = new $OpenApi.Params({
|
|
5051
|
+
action: "CreateGateway",
|
|
5052
|
+
version: "2021-07-01",
|
|
5053
|
+
protocol: "HTTPS",
|
|
5054
|
+
pathname: `/api/v2/gateways`,
|
|
5055
|
+
method: "POST",
|
|
5056
|
+
authType: "AK",
|
|
5057
|
+
style: "ROA",
|
|
5058
|
+
reqBodyType: "json",
|
|
5059
|
+
bodyType: "json",
|
|
5060
|
+
});
|
|
5061
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateGatewayResponse({}));
|
|
5062
|
+
}
|
|
5063
|
+
async createGateway(request) {
|
|
5064
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5065
|
+
let headers = {};
|
|
5066
|
+
return await this.createGatewayWithOptions(request, headers, runtime);
|
|
5067
|
+
}
|
|
5068
|
+
async createGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime) {
|
|
5069
|
+
tea_util_1.default.validateModel(request);
|
|
5070
|
+
let query = {};
|
|
5071
|
+
if (!tea_util_1.default.isUnset(request.vSwitchId)) {
|
|
5072
|
+
query["VSwitchId"] = request.vSwitchId;
|
|
5073
|
+
}
|
|
5074
|
+
if (!tea_util_1.default.isUnset(request.vpcId)) {
|
|
5075
|
+
query["VpcId"] = request.vpcId;
|
|
5076
|
+
}
|
|
5077
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5078
|
+
headers: headers,
|
|
5079
|
+
query: openapi_util_1.default.query(query),
|
|
5080
|
+
});
|
|
5081
|
+
let params = new $OpenApi.Params({
|
|
5082
|
+
action: "CreateGatewayIntranetLinkedVpc",
|
|
5083
|
+
version: "2021-07-01",
|
|
5084
|
+
protocol: "HTTPS",
|
|
5085
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
|
|
5086
|
+
method: "POST",
|
|
5087
|
+
authType: "AK",
|
|
5088
|
+
style: "ROA",
|
|
5089
|
+
reqBodyType: "json",
|
|
5090
|
+
bodyType: "json",
|
|
5091
|
+
});
|
|
5092
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateGatewayIntranetLinkedVpcResponse({}));
|
|
5093
|
+
}
|
|
5094
|
+
async createGatewayIntranetLinkedVpc(ClusterId, GatewayId, request) {
|
|
5095
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5096
|
+
let headers = {};
|
|
5097
|
+
return await this.createGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
|
|
5098
|
+
}
|
|
4263
5099
|
async createResourceWithOptions(request, headers, runtime) {
|
|
4264
5100
|
tea_util_1.default.validateModel(request);
|
|
4265
5101
|
let body = {};
|
|
@@ -4275,20 +5111,11 @@ class Client extends openapi_client_1.default {
|
|
|
4275
5111
|
if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
|
|
4276
5112
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
4277
5113
|
}
|
|
4278
|
-
if (!tea_util_1.default.isUnset(request.externalClusterId)) {
|
|
4279
|
-
body["ExternalClusterId"] = request.externalClusterId;
|
|
4280
|
-
}
|
|
4281
|
-
if (!tea_util_1.default.isUnset(request.nodeMatchLabels)) {
|
|
4282
|
-
body["NodeMatchLabels"] = request.nodeMatchLabels;
|
|
4283
|
-
}
|
|
4284
|
-
if (!tea_util_1.default.isUnset(request.nodeTolerations)) {
|
|
4285
|
-
body["NodeTolerations"] = request.nodeTolerations;
|
|
4286
|
-
}
|
|
4287
5114
|
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
4288
5115
|
body["ResourceType"] = request.resourceType;
|
|
4289
5116
|
}
|
|
4290
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4291
|
-
body["
|
|
5117
|
+
if (!tea_util_1.default.isUnset(request.selfManagedResourceOptions)) {
|
|
5118
|
+
body["SelfManagedResourceOptions"] = request.selfManagedResourceOptions;
|
|
4292
5119
|
}
|
|
4293
5120
|
if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
|
|
4294
5121
|
body["SystemDiskSize"] = request.systemDiskSize;
|
|
@@ -4409,6 +5236,9 @@ class Client extends openapi_client_1.default {
|
|
|
4409
5236
|
if (!tea_util_1.default.isUnset(request.labelsShrink)) {
|
|
4410
5237
|
query["Labels"] = request.labelsShrink;
|
|
4411
5238
|
}
|
|
5239
|
+
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
5240
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
5241
|
+
}
|
|
4412
5242
|
let req = new $OpenApi.OpenApiRequest({
|
|
4413
5243
|
headers: headers,
|
|
4414
5244
|
query: openapi_util_1.default.query(query),
|
|
@@ -4553,6 +5383,59 @@ class Client extends openapi_client_1.default {
|
|
|
4553
5383
|
let headers = {};
|
|
4554
5384
|
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
4555
5385
|
}
|
|
5386
|
+
async deleteGatewayWithOptions(ClusterId, GatewayId, headers, runtime) {
|
|
5387
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5388
|
+
headers: headers,
|
|
5389
|
+
});
|
|
5390
|
+
let params = new $OpenApi.Params({
|
|
5391
|
+
action: "DeleteGateway",
|
|
5392
|
+
version: "2021-07-01",
|
|
5393
|
+
protocol: "HTTPS",
|
|
5394
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}`,
|
|
5395
|
+
method: "DELETE",
|
|
5396
|
+
authType: "AK",
|
|
5397
|
+
style: "ROA",
|
|
5398
|
+
reqBodyType: "json",
|
|
5399
|
+
bodyType: "json",
|
|
5400
|
+
});
|
|
5401
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteGatewayResponse({}));
|
|
5402
|
+
}
|
|
5403
|
+
async deleteGateway(ClusterId, GatewayId) {
|
|
5404
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5405
|
+
let headers = {};
|
|
5406
|
+
return await this.deleteGatewayWithOptions(ClusterId, GatewayId, headers, runtime);
|
|
5407
|
+
}
|
|
5408
|
+
async deleteGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime) {
|
|
5409
|
+
tea_util_1.default.validateModel(request);
|
|
5410
|
+
let query = {};
|
|
5411
|
+
if (!tea_util_1.default.isUnset(request.vSwitchId)) {
|
|
5412
|
+
query["VSwitchId"] = request.vSwitchId;
|
|
5413
|
+
}
|
|
5414
|
+
if (!tea_util_1.default.isUnset(request.vpcId)) {
|
|
5415
|
+
query["VpcId"] = request.vpcId;
|
|
5416
|
+
}
|
|
5417
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5418
|
+
headers: headers,
|
|
5419
|
+
query: openapi_util_1.default.query(query),
|
|
5420
|
+
});
|
|
5421
|
+
let params = new $OpenApi.Params({
|
|
5422
|
+
action: "DeleteGatewayIntranetLinkedVpc",
|
|
5423
|
+
version: "2021-07-01",
|
|
5424
|
+
protocol: "HTTPS",
|
|
5425
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
|
|
5426
|
+
method: "DELETE",
|
|
5427
|
+
authType: "AK",
|
|
5428
|
+
style: "ROA",
|
|
5429
|
+
reqBodyType: "json",
|
|
5430
|
+
bodyType: "json",
|
|
5431
|
+
});
|
|
5432
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteGatewayIntranetLinkedVpcResponse({}));
|
|
5433
|
+
}
|
|
5434
|
+
async deleteGatewayIntranetLinkedVpc(ClusterId, GatewayId, request) {
|
|
5435
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5436
|
+
let headers = {};
|
|
5437
|
+
return await this.deleteGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
|
|
5438
|
+
}
|
|
4556
5439
|
async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
4557
5440
|
let req = new $OpenApi.OpenApiRequest({
|
|
4558
5441
|
headers: headers,
|
|
@@ -4855,6 +5738,28 @@ class Client extends openapi_client_1.default {
|
|
|
4855
5738
|
let headers = {};
|
|
4856
5739
|
return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
4857
5740
|
}
|
|
5741
|
+
async describeGatewayWithOptions(ClusterId, GatewayId, headers, runtime) {
|
|
5742
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5743
|
+
headers: headers,
|
|
5744
|
+
});
|
|
5745
|
+
let params = new $OpenApi.Params({
|
|
5746
|
+
action: "DescribeGateway",
|
|
5747
|
+
version: "2021-07-01",
|
|
5748
|
+
protocol: "HTTPS",
|
|
5749
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}`,
|
|
5750
|
+
method: "GET",
|
|
5751
|
+
authType: "AK",
|
|
5752
|
+
style: "ROA",
|
|
5753
|
+
reqBodyType: "json",
|
|
5754
|
+
bodyType: "json",
|
|
5755
|
+
});
|
|
5756
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeGatewayResponse({}));
|
|
5757
|
+
}
|
|
5758
|
+
async describeGateway(ClusterId, GatewayId) {
|
|
5759
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5760
|
+
let headers = {};
|
|
5761
|
+
return await this.describeGatewayWithOptions(ClusterId, GatewayId, headers, runtime);
|
|
5762
|
+
}
|
|
4858
5763
|
async describeGroupWithOptions(ClusterId, GroupName, headers, runtime) {
|
|
4859
5764
|
let req = new $OpenApi.OpenApiRequest({
|
|
4860
5765
|
headers: headers,
|
|
@@ -5235,6 +6140,28 @@ class Client extends openapi_client_1.default {
|
|
|
5235
6140
|
let headers = {};
|
|
5236
6141
|
return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
|
|
5237
6142
|
}
|
|
6143
|
+
async listGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, headers, runtime) {
|
|
6144
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6145
|
+
headers: headers,
|
|
6146
|
+
});
|
|
6147
|
+
let params = new $OpenApi.Params({
|
|
6148
|
+
action: "ListGatewayIntranetLinkedVpc",
|
|
6149
|
+
version: "2021-07-01",
|
|
6150
|
+
protocol: "HTTPS",
|
|
6151
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
|
|
6152
|
+
method: "GET",
|
|
6153
|
+
authType: "AK",
|
|
6154
|
+
style: "ROA",
|
|
6155
|
+
reqBodyType: "json",
|
|
6156
|
+
bodyType: "json",
|
|
6157
|
+
});
|
|
6158
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListGatewayIntranetLinkedVpcResponse({}));
|
|
6159
|
+
}
|
|
6160
|
+
async listGatewayIntranetLinkedVpc(ClusterId, GatewayId) {
|
|
6161
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6162
|
+
let headers = {};
|
|
6163
|
+
return await this.listGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, headers, runtime);
|
|
6164
|
+
}
|
|
5238
6165
|
async listGroupsWithOptions(request, headers, runtime) {
|
|
5239
6166
|
tea_util_1.default.validateModel(request);
|
|
5240
6167
|
let query = {};
|
|
@@ -5247,6 +6174,9 @@ class Client extends openapi_client_1.default {
|
|
|
5247
6174
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
5248
6175
|
query["PageSize"] = request.pageSize;
|
|
5249
6176
|
}
|
|
6177
|
+
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
6178
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
6179
|
+
}
|
|
5250
6180
|
let req = new $OpenApi.OpenApiRequest({
|
|
5251
6181
|
headers: headers,
|
|
5252
6182
|
query: openapi_util_1.default.query(query),
|
|
@@ -5590,6 +6520,9 @@ class Client extends openapi_client_1.default {
|
|
|
5590
6520
|
if (!tea_util_1.default.isUnset(request.sort)) {
|
|
5591
6521
|
query["Sort"] = request.sort;
|
|
5592
6522
|
}
|
|
6523
|
+
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
6524
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
6525
|
+
}
|
|
5593
6526
|
let req = new $OpenApi.OpenApiRequest({
|
|
5594
6527
|
headers: headers,
|
|
5595
6528
|
query: openapi_util_1.default.query(query),
|
|
@@ -5753,6 +6686,54 @@ class Client extends openapi_client_1.default {
|
|
|
5753
6686
|
let headers = {};
|
|
5754
6687
|
return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
5755
6688
|
}
|
|
6689
|
+
async updateAppServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
6690
|
+
tea_util_1.default.validateModel(request);
|
|
6691
|
+
let query = {};
|
|
6692
|
+
if (!tea_util_1.default.isUnset(request.quotaId)) {
|
|
6693
|
+
query["QuotaId"] = request.quotaId;
|
|
6694
|
+
}
|
|
6695
|
+
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
6696
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
6697
|
+
}
|
|
6698
|
+
let body = {};
|
|
6699
|
+
if (!tea_util_1.default.isUnset(request.appType)) {
|
|
6700
|
+
body["AppType"] = request.appType;
|
|
6701
|
+
}
|
|
6702
|
+
if (!tea_util_1.default.isUnset(request.appVersion)) {
|
|
6703
|
+
body["AppVersion"] = request.appVersion;
|
|
6704
|
+
}
|
|
6705
|
+
if (!tea_util_1.default.isUnset(request.config)) {
|
|
6706
|
+
body["Config"] = request.config;
|
|
6707
|
+
}
|
|
6708
|
+
if (!tea_util_1.default.isUnset(request.replicas)) {
|
|
6709
|
+
body["Replicas"] = request.replicas;
|
|
6710
|
+
}
|
|
6711
|
+
if (!tea_util_1.default.isUnset(request.serviceSpec)) {
|
|
6712
|
+
body["ServiceSpec"] = request.serviceSpec;
|
|
6713
|
+
}
|
|
6714
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6715
|
+
headers: headers,
|
|
6716
|
+
query: openapi_util_1.default.query(query),
|
|
6717
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6718
|
+
});
|
|
6719
|
+
let params = new $OpenApi.Params({
|
|
6720
|
+
action: "UpdateAppService",
|
|
6721
|
+
version: "2021-07-01",
|
|
6722
|
+
protocol: "HTTPS",
|
|
6723
|
+
pathname: `/api/v2/app_services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}`,
|
|
6724
|
+
method: "PUT",
|
|
6725
|
+
authType: "AK",
|
|
6726
|
+
style: "ROA",
|
|
6727
|
+
reqBodyType: "json",
|
|
6728
|
+
bodyType: "json",
|
|
6729
|
+
});
|
|
6730
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateAppServiceResponse({}));
|
|
6731
|
+
}
|
|
6732
|
+
async updateAppService(ClusterId, ServiceName, request) {
|
|
6733
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6734
|
+
let headers = {};
|
|
6735
|
+
return await this.updateAppServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
6736
|
+
}
|
|
5756
6737
|
async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
|
|
5757
6738
|
tea_util_1.default.validateModel(request);
|
|
5758
6739
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -5777,18 +6758,52 @@ class Client extends openapi_client_1.default {
|
|
|
5777
6758
|
let headers = {};
|
|
5778
6759
|
return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
5779
6760
|
}
|
|
5780
|
-
async
|
|
6761
|
+
async updateGatewayWithOptions(GatewayId, ClusterId, request, headers, runtime) {
|
|
5781
6762
|
tea_util_1.default.validateModel(request);
|
|
5782
6763
|
let body = {};
|
|
5783
|
-
if (!tea_util_1.default.isUnset(request.
|
|
5784
|
-
body["
|
|
6764
|
+
if (!tea_util_1.default.isUnset(request.enableInternet)) {
|
|
6765
|
+
body["EnableInternet"] = request.enableInternet;
|
|
5785
6766
|
}
|
|
5786
|
-
if (!tea_util_1.default.isUnset(request.
|
|
5787
|
-
body["
|
|
6767
|
+
if (!tea_util_1.default.isUnset(request.enableIntranet)) {
|
|
6768
|
+
body["EnableIntranet"] = request.enableIntranet;
|
|
5788
6769
|
}
|
|
6770
|
+
if (!tea_util_1.default.isUnset(request.instanceType)) {
|
|
6771
|
+
body["InstanceType"] = request.instanceType;
|
|
6772
|
+
}
|
|
6773
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
6774
|
+
body["Name"] = request.name;
|
|
6775
|
+
}
|
|
6776
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6777
|
+
headers: headers,
|
|
6778
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6779
|
+
});
|
|
6780
|
+
let params = new $OpenApi.Params({
|
|
6781
|
+
action: "UpdateGateway",
|
|
6782
|
+
version: "2021-07-01",
|
|
6783
|
+
protocol: "HTTPS",
|
|
6784
|
+
pathname: `/api/v2/gateways/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GatewayId)}`,
|
|
6785
|
+
method: "PUT",
|
|
6786
|
+
authType: "AK",
|
|
6787
|
+
style: "ROA",
|
|
6788
|
+
reqBodyType: "json",
|
|
6789
|
+
bodyType: "json",
|
|
6790
|
+
});
|
|
6791
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateGatewayResponse({}));
|
|
6792
|
+
}
|
|
6793
|
+
async updateGateway(GatewayId, ClusterId, request) {
|
|
6794
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6795
|
+
let headers = {};
|
|
6796
|
+
return await this.updateGatewayWithOptions(GatewayId, ClusterId, request, headers, runtime);
|
|
6797
|
+
}
|
|
6798
|
+
async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
6799
|
+
tea_util_1.default.validateModel(request);
|
|
6800
|
+
let body = {};
|
|
5789
6801
|
if (!tea_util_1.default.isUnset(request.resourceName)) {
|
|
5790
6802
|
body["ResourceName"] = request.resourceName;
|
|
5791
6803
|
}
|
|
6804
|
+
if (!tea_util_1.default.isUnset(request.selfManagedResourceOptions)) {
|
|
6805
|
+
body["SelfManagedResourceOptions"] = request.selfManagedResourceOptions;
|
|
6806
|
+
}
|
|
5792
6807
|
let req = new $OpenApi.OpenApiRequest({
|
|
5793
6808
|
headers: headers,
|
|
5794
6809
|
body: openapi_util_1.default.parseToMap(body),
|
|
@@ -5968,6 +6983,34 @@ class Client extends openapi_client_1.default {
|
|
|
5968
6983
|
let headers = {};
|
|
5969
6984
|
return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5970
6985
|
}
|
|
6986
|
+
async updateServiceInstanceWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime) {
|
|
6987
|
+
tea_util_1.default.validateModel(request);
|
|
6988
|
+
let body = {};
|
|
6989
|
+
if (!tea_util_1.default.isUnset(request.isolate)) {
|
|
6990
|
+
body["Isolate"] = request.isolate;
|
|
6991
|
+
}
|
|
6992
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6993
|
+
headers: headers,
|
|
6994
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6995
|
+
});
|
|
6996
|
+
let params = new $OpenApi.Params({
|
|
6997
|
+
action: "UpdateServiceInstance",
|
|
6998
|
+
version: "2021-07-01",
|
|
6999
|
+
protocol: "HTTPS",
|
|
7000
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances/${openapi_util_1.default.getEncodeParam(InstanceName)}`,
|
|
7001
|
+
method: "PUT",
|
|
7002
|
+
authType: "AK",
|
|
7003
|
+
style: "ROA",
|
|
7004
|
+
reqBodyType: "json",
|
|
7005
|
+
bodyType: "json",
|
|
7006
|
+
});
|
|
7007
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceInstanceResponse({}));
|
|
7008
|
+
}
|
|
7009
|
+
async updateServiceInstance(ClusterId, ServiceName, InstanceName, request) {
|
|
7010
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7011
|
+
let headers = {};
|
|
7012
|
+
return await this.updateServiceInstanceWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime);
|
|
7013
|
+
}
|
|
5971
7014
|
async updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
5972
7015
|
tea_util_1.default.validateModel(request);
|
|
5973
7016
|
let body = {};
|