@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/src/client.ts CHANGED
@@ -105,6 +105,7 @@ export class Instance extends $tea.Model {
105
105
  instanceName?: string;
106
106
  instancePort?: number;
107
107
  isSpot?: boolean;
108
+ isolated?: boolean;
108
109
  lastState?: { [key: string]: any }[];
109
110
  namespace?: string;
110
111
  originalAmount?: number;
@@ -127,6 +128,7 @@ export class Instance extends $tea.Model {
127
128
  instanceName: 'InstanceName',
128
129
  instancePort: 'InstancePort',
129
130
  isSpot: 'IsSpot',
131
+ isolated: 'Isolated',
130
132
  lastState: 'LastState',
131
133
  namespace: 'Namespace',
132
134
  originalAmount: 'OriginalAmount',
@@ -152,6 +154,7 @@ export class Instance extends $tea.Model {
152
154
  instanceName: 'string',
153
155
  instancePort: 'number',
154
156
  isSpot: 'boolean',
157
+ isolated: 'boolean',
155
158
  lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
156
159
  namespace: 'string',
157
160
  originalAmount: 'number',
@@ -370,6 +373,10 @@ export class ResourceInstanceWorker extends $tea.Model {
370
373
 
371
374
  export class Service extends $tea.Model {
372
375
  accessToken?: string;
376
+ appConfig?: string;
377
+ appSpecName?: string;
378
+ appType?: string;
379
+ appVersion?: string;
373
380
  callerUid?: string;
374
381
  cpu?: number;
375
382
  createTime?: string;
@@ -407,9 +414,14 @@ export class Service extends $tea.Model {
407
414
  totalInstance?: number;
408
415
  updateTime?: string;
409
416
  weight?: number;
417
+ workspaceId?: string;
410
418
  static names(): { [key: string]: string } {
411
419
  return {
412
420
  accessToken: 'AccessToken',
421
+ appConfig: 'AppConfig',
422
+ appSpecName: 'AppSpecName',
423
+ appType: 'AppType',
424
+ appVersion: 'AppVersion',
413
425
  callerUid: 'CallerUid',
414
426
  cpu: 'Cpu',
415
427
  createTime: 'CreateTime',
@@ -447,12 +459,17 @@ export class Service extends $tea.Model {
447
459
  totalInstance: 'TotalInstance',
448
460
  updateTime: 'UpdateTime',
449
461
  weight: 'Weight',
462
+ workspaceId: 'WorkspaceId',
450
463
  };
451
464
  }
452
465
 
453
466
  static types(): { [key: string]: any } {
454
467
  return {
455
468
  accessToken: 'string',
469
+ appConfig: 'string',
470
+ appSpecName: 'string',
471
+ appType: 'string',
472
+ appVersion: 'string',
456
473
  callerUid: 'string',
457
474
  cpu: 'number',
458
475
  createTime: 'string',
@@ -490,6 +507,7 @@ export class Service extends $tea.Model {
490
507
  totalInstance: 'number',
491
508
  updateTime: 'string',
492
509
  weight: 'number',
510
+ workspaceId: 'string',
493
511
  };
494
512
  }
495
513
 
@@ -545,6 +563,108 @@ export class CommitServiceResponse extends $tea.Model {
545
563
  }
546
564
  }
547
565
 
566
+ export class CreateAppServiceRequest extends $tea.Model {
567
+ quotaId?: string;
568
+ workspaceId?: string;
569
+ appType?: string;
570
+ appVersion?: string;
571
+ config?: { [key: string]: any };
572
+ replicas?: number;
573
+ serviceName?: string;
574
+ serviceSpec?: string;
575
+ static names(): { [key: string]: string } {
576
+ return {
577
+ quotaId: 'QuotaId',
578
+ workspaceId: 'WorkspaceId',
579
+ appType: 'AppType',
580
+ appVersion: 'AppVersion',
581
+ config: 'Config',
582
+ replicas: 'Replicas',
583
+ serviceName: 'ServiceName',
584
+ serviceSpec: 'ServiceSpec',
585
+ };
586
+ }
587
+
588
+ static types(): { [key: string]: any } {
589
+ return {
590
+ quotaId: 'string',
591
+ workspaceId: 'string',
592
+ appType: 'string',
593
+ appVersion: 'string',
594
+ config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
595
+ replicas: 'number',
596
+ serviceName: 'string',
597
+ serviceSpec: 'string',
598
+ };
599
+ }
600
+
601
+ constructor(map?: { [key: string]: any }) {
602
+ super(map);
603
+ }
604
+ }
605
+
606
+ export class CreateAppServiceResponseBody extends $tea.Model {
607
+ internetEndpoint?: string;
608
+ intranetEndpoint?: string;
609
+ region?: string;
610
+ requestId?: string;
611
+ serviceId?: string;
612
+ serviceName?: string;
613
+ status?: string;
614
+ static names(): { [key: string]: string } {
615
+ return {
616
+ internetEndpoint: 'InternetEndpoint',
617
+ intranetEndpoint: 'IntranetEndpoint',
618
+ region: 'Region',
619
+ requestId: 'RequestId',
620
+ serviceId: 'ServiceId',
621
+ serviceName: 'ServiceName',
622
+ status: 'Status',
623
+ };
624
+ }
625
+
626
+ static types(): { [key: string]: any } {
627
+ return {
628
+ internetEndpoint: 'string',
629
+ intranetEndpoint: 'string',
630
+ region: 'string',
631
+ requestId: 'string',
632
+ serviceId: 'string',
633
+ serviceName: 'string',
634
+ status: 'string',
635
+ };
636
+ }
637
+
638
+ constructor(map?: { [key: string]: any }) {
639
+ super(map);
640
+ }
641
+ }
642
+
643
+ export class CreateAppServiceResponse extends $tea.Model {
644
+ headers: { [key: string]: string };
645
+ statusCode: number;
646
+ body: CreateAppServiceResponseBody;
647
+ static names(): { [key: string]: string } {
648
+ return {
649
+ headers: 'headers',
650
+ statusCode: 'statusCode',
651
+ body: 'body',
652
+ };
653
+ }
654
+
655
+ static types(): { [key: string]: any } {
656
+ return {
657
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
658
+ statusCode: 'number',
659
+ body: CreateAppServiceResponseBody,
660
+ };
661
+ }
662
+
663
+ constructor(map?: { [key: string]: any }) {
664
+ super(map);
665
+ }
666
+ }
667
+
548
668
  export class CreateBenchmarkTaskRequest extends $tea.Model {
549
669
  body?: string;
550
670
  static names(): { [key: string]: string } {
@@ -617,16 +737,169 @@ export class CreateBenchmarkTaskResponse extends $tea.Model {
617
737
  }
618
738
  }
619
739
 
740
+ export class CreateGatewayRequest extends $tea.Model {
741
+ resourceName?: string;
742
+ enableInternet?: boolean;
743
+ enableIntranet?: boolean;
744
+ instanceType?: string;
745
+ name?: string;
746
+ static names(): { [key: string]: string } {
747
+ return {
748
+ resourceName: 'ResourceName',
749
+ enableInternet: 'EnableInternet',
750
+ enableIntranet: 'EnableIntranet',
751
+ instanceType: 'InstanceType',
752
+ name: 'Name',
753
+ };
754
+ }
755
+
756
+ static types(): { [key: string]: any } {
757
+ return {
758
+ resourceName: 'string',
759
+ enableInternet: 'boolean',
760
+ enableIntranet: 'boolean',
761
+ instanceType: 'string',
762
+ name: 'string',
763
+ };
764
+ }
765
+
766
+ constructor(map?: { [key: string]: any }) {
767
+ super(map);
768
+ }
769
+ }
770
+
771
+ export class CreateGatewayResponseBody extends $tea.Model {
772
+ clusterId?: string;
773
+ gatewayId?: string;
774
+ message?: string;
775
+ requestId?: string;
776
+ static names(): { [key: string]: string } {
777
+ return {
778
+ clusterId: 'ClusterId',
779
+ gatewayId: 'GatewayId',
780
+ message: 'Message',
781
+ requestId: 'RequestId',
782
+ };
783
+ }
784
+
785
+ static types(): { [key: string]: any } {
786
+ return {
787
+ clusterId: 'string',
788
+ gatewayId: 'string',
789
+ message: 'string',
790
+ requestId: 'string',
791
+ };
792
+ }
793
+
794
+ constructor(map?: { [key: string]: any }) {
795
+ super(map);
796
+ }
797
+ }
798
+
799
+ export class CreateGatewayResponse extends $tea.Model {
800
+ headers: { [key: string]: string };
801
+ statusCode: number;
802
+ body: CreateGatewayResponseBody;
803
+ static names(): { [key: string]: string } {
804
+ return {
805
+ headers: 'headers',
806
+ statusCode: 'statusCode',
807
+ body: 'body',
808
+ };
809
+ }
810
+
811
+ static types(): { [key: string]: any } {
812
+ return {
813
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
814
+ statusCode: 'number',
815
+ body: CreateGatewayResponseBody,
816
+ };
817
+ }
818
+
819
+ constructor(map?: { [key: string]: any }) {
820
+ super(map);
821
+ }
822
+ }
823
+
824
+ export class CreateGatewayIntranetLinkedVpcRequest extends $tea.Model {
825
+ vSwitchId?: string;
826
+ vpcId?: string;
827
+ static names(): { [key: string]: string } {
828
+ return {
829
+ vSwitchId: 'VSwitchId',
830
+ vpcId: 'VpcId',
831
+ };
832
+ }
833
+
834
+ static types(): { [key: string]: any } {
835
+ return {
836
+ vSwitchId: 'string',
837
+ vpcId: 'string',
838
+ };
839
+ }
840
+
841
+ constructor(map?: { [key: string]: any }) {
842
+ super(map);
843
+ }
844
+ }
845
+
846
+ export class CreateGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
847
+ gatewayId?: string;
848
+ message?: string;
849
+ requestId?: string;
850
+ static names(): { [key: string]: string } {
851
+ return {
852
+ gatewayId: 'GatewayId',
853
+ message: 'Message',
854
+ requestId: 'RequestId',
855
+ };
856
+ }
857
+
858
+ static types(): { [key: string]: any } {
859
+ return {
860
+ gatewayId: 'string',
861
+ message: 'string',
862
+ requestId: 'string',
863
+ };
864
+ }
865
+
866
+ constructor(map?: { [key: string]: any }) {
867
+ super(map);
868
+ }
869
+ }
870
+
871
+ export class CreateGatewayIntranetLinkedVpcResponse extends $tea.Model {
872
+ headers: { [key: string]: string };
873
+ statusCode: number;
874
+ body: CreateGatewayIntranetLinkedVpcResponseBody;
875
+ static names(): { [key: string]: string } {
876
+ return {
877
+ headers: 'headers',
878
+ statusCode: 'statusCode',
879
+ body: 'body',
880
+ };
881
+ }
882
+
883
+ static types(): { [key: string]: any } {
884
+ return {
885
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
886
+ statusCode: 'number',
887
+ body: CreateGatewayIntranetLinkedVpcResponseBody,
888
+ };
889
+ }
890
+
891
+ constructor(map?: { [key: string]: any }) {
892
+ super(map);
893
+ }
894
+ }
895
+
620
896
  export class CreateResourceRequest extends $tea.Model {
621
897
  autoRenewal?: boolean;
622
898
  chargeType?: string;
623
899
  ecsInstanceCount?: number;
624
900
  ecsInstanceType?: string;
625
- externalClusterId?: string;
626
- nodeMatchLabels?: { [key: string]: string };
627
- nodeTolerations?: CreateResourceRequestNodeTolerations[];
628
901
  resourceType?: string;
629
- roleName?: string;
902
+ selfManagedResourceOptions?: CreateResourceRequestSelfManagedResourceOptions;
630
903
  systemDiskSize?: number;
631
904
  zone?: string;
632
905
  static names(): { [key: string]: string } {
@@ -635,11 +908,8 @@ export class CreateResourceRequest extends $tea.Model {
635
908
  chargeType: 'ChargeType',
636
909
  ecsInstanceCount: 'EcsInstanceCount',
637
910
  ecsInstanceType: 'EcsInstanceType',
638
- externalClusterId: 'ExternalClusterId',
639
- nodeMatchLabels: 'NodeMatchLabels',
640
- nodeTolerations: 'NodeTolerations',
641
911
  resourceType: 'ResourceType',
642
- roleName: 'RoleName',
912
+ selfManagedResourceOptions: 'SelfManagedResourceOptions',
643
913
  systemDiskSize: 'SystemDiskSize',
644
914
  zone: 'Zone',
645
915
  };
@@ -651,11 +921,8 @@ export class CreateResourceRequest extends $tea.Model {
651
921
  chargeType: 'string',
652
922
  ecsInstanceCount: 'number',
653
923
  ecsInstanceType: 'string',
654
- externalClusterId: 'string',
655
- nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
656
- nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestNodeTolerations },
657
924
  resourceType: 'string',
658
- roleName: 'string',
925
+ selfManagedResourceOptions: CreateResourceRequestSelfManagedResourceOptions,
659
926
  systemDiskSize: 'number',
660
927
  zone: 'string',
661
928
  };
@@ -884,11 +1151,13 @@ export class CreateResourceLogResponse extends $tea.Model {
884
1151
  export class CreateServiceRequest extends $tea.Model {
885
1152
  develop?: string;
886
1153
  labels?: { [key: string]: string };
1154
+ workspaceId?: string;
887
1155
  body?: string;
888
1156
  static names(): { [key: string]: string } {
889
1157
  return {
890
1158
  develop: 'Develop',
891
1159
  labels: 'Labels',
1160
+ workspaceId: 'WorkspaceId',
892
1161
  body: 'body',
893
1162
  };
894
1163
  }
@@ -897,6 +1166,7 @@ export class CreateServiceRequest extends $tea.Model {
897
1166
  return {
898
1167
  develop: 'string',
899
1168
  labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1169
+ workspaceId: 'string',
900
1170
  body: 'string',
901
1171
  };
902
1172
  }
@@ -909,11 +1179,13 @@ export class CreateServiceRequest extends $tea.Model {
909
1179
  export class CreateServiceShrinkRequest extends $tea.Model {
910
1180
  develop?: string;
911
1181
  labelsShrink?: string;
1182
+ workspaceId?: string;
912
1183
  body?: string;
913
1184
  static names(): { [key: string]: string } {
914
1185
  return {
915
1186
  develop: 'Develop',
916
1187
  labelsShrink: 'Labels',
1188
+ workspaceId: 'WorkspaceId',
917
1189
  body: 'body',
918
1190
  };
919
1191
  }
@@ -922,6 +1194,7 @@ export class CreateServiceShrinkRequest extends $tea.Model {
922
1194
  return {
923
1195
  develop: 'string',
924
1196
  labelsShrink: 'string',
1197
+ workspaceId: 'string',
925
1198
  body: 'string',
926
1199
  };
927
1200
  }
@@ -1253,6 +1526,128 @@ export class DeleteBenchmarkTaskResponse extends $tea.Model {
1253
1526
  }
1254
1527
  }
1255
1528
 
1529
+ export class DeleteGatewayResponseBody extends $tea.Model {
1530
+ gatewayId?: string;
1531
+ message?: string;
1532
+ requestId?: string;
1533
+ static names(): { [key: string]: string } {
1534
+ return {
1535
+ gatewayId: 'GatewayId',
1536
+ message: 'Message',
1537
+ requestId: 'RequestId',
1538
+ };
1539
+ }
1540
+
1541
+ static types(): { [key: string]: any } {
1542
+ return {
1543
+ gatewayId: 'string',
1544
+ message: 'string',
1545
+ requestId: 'string',
1546
+ };
1547
+ }
1548
+
1549
+ constructor(map?: { [key: string]: any }) {
1550
+ super(map);
1551
+ }
1552
+ }
1553
+
1554
+ export class DeleteGatewayResponse extends $tea.Model {
1555
+ headers: { [key: string]: string };
1556
+ statusCode: number;
1557
+ body: DeleteGatewayResponseBody;
1558
+ static names(): { [key: string]: string } {
1559
+ return {
1560
+ headers: 'headers',
1561
+ statusCode: 'statusCode',
1562
+ body: 'body',
1563
+ };
1564
+ }
1565
+
1566
+ static types(): { [key: string]: any } {
1567
+ return {
1568
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1569
+ statusCode: 'number',
1570
+ body: DeleteGatewayResponseBody,
1571
+ };
1572
+ }
1573
+
1574
+ constructor(map?: { [key: string]: any }) {
1575
+ super(map);
1576
+ }
1577
+ }
1578
+
1579
+ export class DeleteGatewayIntranetLinkedVpcRequest extends $tea.Model {
1580
+ vSwitchId?: string;
1581
+ vpcId?: string;
1582
+ static names(): { [key: string]: string } {
1583
+ return {
1584
+ vSwitchId: 'VSwitchId',
1585
+ vpcId: 'VpcId',
1586
+ };
1587
+ }
1588
+
1589
+ static types(): { [key: string]: any } {
1590
+ return {
1591
+ vSwitchId: 'string',
1592
+ vpcId: 'string',
1593
+ };
1594
+ }
1595
+
1596
+ constructor(map?: { [key: string]: any }) {
1597
+ super(map);
1598
+ }
1599
+ }
1600
+
1601
+ export class DeleteGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
1602
+ gatewayId?: string;
1603
+ message?: string;
1604
+ requestId?: string;
1605
+ static names(): { [key: string]: string } {
1606
+ return {
1607
+ gatewayId: 'GatewayId',
1608
+ message: 'Message',
1609
+ requestId: 'RequestId',
1610
+ };
1611
+ }
1612
+
1613
+ static types(): { [key: string]: any } {
1614
+ return {
1615
+ gatewayId: 'string',
1616
+ message: 'string',
1617
+ requestId: 'string',
1618
+ };
1619
+ }
1620
+
1621
+ constructor(map?: { [key: string]: any }) {
1622
+ super(map);
1623
+ }
1624
+ }
1625
+
1626
+ export class DeleteGatewayIntranetLinkedVpcResponse extends $tea.Model {
1627
+ headers: { [key: string]: string };
1628
+ statusCode: number;
1629
+ body: DeleteGatewayIntranetLinkedVpcResponseBody;
1630
+ static names(): { [key: string]: string } {
1631
+ return {
1632
+ headers: 'headers',
1633
+ statusCode: 'statusCode',
1634
+ body: 'body',
1635
+ };
1636
+ }
1637
+
1638
+ static types(): { [key: string]: any } {
1639
+ return {
1640
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1641
+ statusCode: 'number',
1642
+ body: DeleteGatewayIntranetLinkedVpcResponseBody,
1643
+ };
1644
+ }
1645
+
1646
+ constructor(map?: { [key: string]: any }) {
1647
+ super(map);
1648
+ }
1649
+ }
1650
+
1256
1651
  export class DeleteResourceResponseBody extends $tea.Model {
1257
1652
  message?: string;
1258
1653
  requestId?: string;
@@ -1913,17 +2308,109 @@ export class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
1913
2308
  requestId?: string;
1914
2309
  static names(): { [key: string]: string } {
1915
2310
  return {
1916
- data: 'Data',
1917
- reportUrl: 'ReportUrl',
2311
+ data: 'Data',
2312
+ reportUrl: 'ReportUrl',
2313
+ requestId: 'RequestId',
2314
+ };
2315
+ }
2316
+
2317
+ static types(): { [key: string]: any } {
2318
+ return {
2319
+ data: 'any',
2320
+ reportUrl: 'string',
2321
+ requestId: 'string',
2322
+ };
2323
+ }
2324
+
2325
+ constructor(map?: { [key: string]: any }) {
2326
+ super(map);
2327
+ }
2328
+ }
2329
+
2330
+ export class DescribeBenchmarkTaskReportResponse extends $tea.Model {
2331
+ headers: { [key: string]: string };
2332
+ statusCode: number;
2333
+ body: DescribeBenchmarkTaskReportResponseBody;
2334
+ static names(): { [key: string]: string } {
2335
+ return {
2336
+ headers: 'headers',
2337
+ statusCode: 'statusCode',
2338
+ body: 'body',
2339
+ };
2340
+ }
2341
+
2342
+ static types(): { [key: string]: any } {
2343
+ return {
2344
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2345
+ statusCode: 'number',
2346
+ body: DescribeBenchmarkTaskReportResponseBody,
2347
+ };
2348
+ }
2349
+
2350
+ constructor(map?: { [key: string]: any }) {
2351
+ super(map);
2352
+ }
2353
+ }
2354
+
2355
+ export class DescribeGatewayResponseBody extends $tea.Model {
2356
+ callerUid?: string;
2357
+ createTime?: string;
2358
+ externalClusterId?: string;
2359
+ gatewayId?: string;
2360
+ gatewayName?: string;
2361
+ instanceType?: string;
2362
+ internetAclPolicyList?: DescribeGatewayResponseBodyInternetAclPolicyList[];
2363
+ internetDomain?: string;
2364
+ internetEnabled?: boolean;
2365
+ intranetDomain?: string;
2366
+ intranetEnabled?: boolean;
2367
+ intranetLinkedVpcList?: DescribeGatewayResponseBodyIntranetLinkedVpcList[];
2368
+ parentUid?: string;
2369
+ region?: string;
2370
+ requestId?: string;
2371
+ status?: string;
2372
+ updateTime?: string;
2373
+ static names(): { [key: string]: string } {
2374
+ return {
2375
+ callerUid: 'CallerUid',
2376
+ createTime: 'CreateTime',
2377
+ externalClusterId: 'ExternalClusterId',
2378
+ gatewayId: 'GatewayId',
2379
+ gatewayName: 'GatewayName',
2380
+ instanceType: 'InstanceType',
2381
+ internetAclPolicyList: 'InternetAclPolicyList',
2382
+ internetDomain: 'InternetDomain',
2383
+ internetEnabled: 'InternetEnabled',
2384
+ intranetDomain: 'IntranetDomain',
2385
+ intranetEnabled: 'IntranetEnabled',
2386
+ intranetLinkedVpcList: 'IntranetLinkedVpcList',
2387
+ parentUid: 'ParentUid',
2388
+ region: 'Region',
1918
2389
  requestId: 'RequestId',
2390
+ status: 'Status',
2391
+ updateTime: 'UpdateTime',
1919
2392
  };
1920
2393
  }
1921
2394
 
1922
2395
  static types(): { [key: string]: any } {
1923
2396
  return {
1924
- data: 'any',
1925
- reportUrl: 'string',
2397
+ callerUid: 'string',
2398
+ createTime: 'string',
2399
+ externalClusterId: 'string',
2400
+ gatewayId: 'string',
2401
+ gatewayName: 'string',
2402
+ instanceType: 'string',
2403
+ internetAclPolicyList: { 'type': 'array', 'itemType': DescribeGatewayResponseBodyInternetAclPolicyList },
2404
+ internetDomain: 'string',
2405
+ internetEnabled: 'boolean',
2406
+ intranetDomain: 'string',
2407
+ intranetEnabled: 'boolean',
2408
+ intranetLinkedVpcList: { 'type': 'array', 'itemType': DescribeGatewayResponseBodyIntranetLinkedVpcList },
2409
+ parentUid: 'string',
2410
+ region: 'string',
1926
2411
  requestId: 'string',
2412
+ status: 'string',
2413
+ updateTime: 'string',
1927
2414
  };
1928
2415
  }
1929
2416
 
@@ -1932,10 +2419,10 @@ export class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
1932
2419
  }
1933
2420
  }
1934
2421
 
1935
- export class DescribeBenchmarkTaskReportResponse extends $tea.Model {
2422
+ export class DescribeGatewayResponse extends $tea.Model {
1936
2423
  headers: { [key: string]: string };
1937
2424
  statusCode: number;
1938
- body: DescribeBenchmarkTaskReportResponseBody;
2425
+ body: DescribeGatewayResponseBody;
1939
2426
  static names(): { [key: string]: string } {
1940
2427
  return {
1941
2428
  headers: 'headers',
@@ -1948,7 +2435,7 @@ export class DescribeBenchmarkTaskReportResponse extends $tea.Model {
1948
2435
  return {
1949
2436
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1950
2437
  statusCode: 'number',
1951
- body: DescribeBenchmarkTaskReportResponseBody,
2438
+ body: DescribeGatewayResponseBody,
1952
2439
  };
1953
2440
  }
1954
2441
 
@@ -2812,15 +3299,67 @@ export class ListBenchmarkTaskResponse extends $tea.Model {
2812
3299
  }
2813
3300
  }
2814
3301
 
3302
+ export class ListGatewayIntranetLinkedVpcResponseBody extends $tea.Model {
3303
+ gatewayId?: string;
3304
+ intranetLinkedVpcList?: ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList[];
3305
+ requestId?: string;
3306
+ static names(): { [key: string]: string } {
3307
+ return {
3308
+ gatewayId: 'GatewayId',
3309
+ intranetLinkedVpcList: 'IntranetLinkedVpcList',
3310
+ requestId: 'RequestId',
3311
+ };
3312
+ }
3313
+
3314
+ static types(): { [key: string]: any } {
3315
+ return {
3316
+ gatewayId: 'string',
3317
+ intranetLinkedVpcList: { 'type': 'array', 'itemType': ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList },
3318
+ requestId: 'string',
3319
+ };
3320
+ }
3321
+
3322
+ constructor(map?: { [key: string]: any }) {
3323
+ super(map);
3324
+ }
3325
+ }
3326
+
3327
+ export class ListGatewayIntranetLinkedVpcResponse extends $tea.Model {
3328
+ headers: { [key: string]: string };
3329
+ statusCode: number;
3330
+ body: ListGatewayIntranetLinkedVpcResponseBody;
3331
+ static names(): { [key: string]: string } {
3332
+ return {
3333
+ headers: 'headers',
3334
+ statusCode: 'statusCode',
3335
+ body: 'body',
3336
+ };
3337
+ }
3338
+
3339
+ static types(): { [key: string]: any } {
3340
+ return {
3341
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3342
+ statusCode: 'number',
3343
+ body: ListGatewayIntranetLinkedVpcResponseBody,
3344
+ };
3345
+ }
3346
+
3347
+ constructor(map?: { [key: string]: any }) {
3348
+ super(map);
3349
+ }
3350
+ }
3351
+
2815
3352
  export class ListGroupsRequest extends $tea.Model {
2816
3353
  filter?: string;
2817
3354
  pageNumber?: string;
2818
3355
  pageSize?: string;
3356
+ workspaceId?: string;
2819
3357
  static names(): { [key: string]: string } {
2820
3358
  return {
2821
3359
  filter: 'Filter',
2822
3360
  pageNumber: 'PageNumber',
2823
3361
  pageSize: 'PageSize',
3362
+ workspaceId: 'WorkspaceId',
2824
3363
  };
2825
3364
  }
2826
3365
 
@@ -2829,6 +3368,7 @@ export class ListGroupsRequest extends $tea.Model {
2829
3368
  filter: 'string',
2830
3369
  pageNumber: 'string',
2831
3370
  pageSize: 'string',
3371
+ workspaceId: 'string',
2832
3372
  };
2833
3373
  }
2834
3374
 
@@ -3491,6 +4031,7 @@ export class ListServicesRequest extends $tea.Model {
3491
4031
  serviceType?: string;
3492
4032
  serviceUid?: string;
3493
4033
  sort?: string;
4034
+ workspaceId?: string;
3494
4035
  static names(): { [key: string]: string } {
3495
4036
  return {
3496
4037
  filter: 'Filter',
@@ -3506,6 +4047,7 @@ export class ListServicesRequest extends $tea.Model {
3506
4047
  serviceType: 'ServiceType',
3507
4048
  serviceUid: 'ServiceUid',
3508
4049
  sort: 'Sort',
4050
+ workspaceId: 'WorkspaceId',
3509
4051
  };
3510
4052
  }
3511
4053
 
@@ -3524,6 +4066,7 @@ export class ListServicesRequest extends $tea.Model {
3524
4066
  serviceType: 'string',
3525
4067
  serviceUid: 'string',
3526
4068
  sort: 'string',
4069
+ workspaceId: 'string',
3527
4070
  };
3528
4071
  }
3529
4072
 
@@ -3546,6 +4089,7 @@ export class ListServicesShrinkRequest extends $tea.Model {
3546
4089
  serviceType?: string;
3547
4090
  serviceUid?: string;
3548
4091
  sort?: string;
4092
+ workspaceId?: string;
3549
4093
  static names(): { [key: string]: string } {
3550
4094
  return {
3551
4095
  filter: 'Filter',
@@ -3561,6 +4105,7 @@ export class ListServicesShrinkRequest extends $tea.Model {
3561
4105
  serviceType: 'ServiceType',
3562
4106
  serviceUid: 'ServiceUid',
3563
4107
  sort: 'Sort',
4108
+ workspaceId: 'WorkspaceId',
3564
4109
  };
3565
4110
  }
3566
4111
 
@@ -3579,6 +4124,7 @@ export class ListServicesShrinkRequest extends $tea.Model {
3579
4124
  serviceType: 'string',
3580
4125
  serviceUid: 'string',
3581
4126
  sort: 'string',
4127
+ workspaceId: 'string',
3582
4128
  };
3583
4129
  }
3584
4130
 
@@ -3947,6 +4493,90 @@ export class StopServiceResponse extends $tea.Model {
3947
4493
  }
3948
4494
  }
3949
4495
 
4496
+ export class UpdateAppServiceRequest extends $tea.Model {
4497
+ quotaId?: string;
4498
+ workspaceId?: string;
4499
+ appType?: string;
4500
+ appVersion?: string;
4501
+ config?: { [key: string]: any };
4502
+ replicas?: string;
4503
+ serviceSpec?: string;
4504
+ static names(): { [key: string]: string } {
4505
+ return {
4506
+ quotaId: 'QuotaId',
4507
+ workspaceId: 'WorkspaceId',
4508
+ appType: 'AppType',
4509
+ appVersion: 'AppVersion',
4510
+ config: 'Config',
4511
+ replicas: 'Replicas',
4512
+ serviceSpec: 'ServiceSpec',
4513
+ };
4514
+ }
4515
+
4516
+ static types(): { [key: string]: any } {
4517
+ return {
4518
+ quotaId: 'string',
4519
+ workspaceId: 'string',
4520
+ appType: 'string',
4521
+ appVersion: 'string',
4522
+ config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
4523
+ replicas: 'string',
4524
+ serviceSpec: 'string',
4525
+ };
4526
+ }
4527
+
4528
+ constructor(map?: { [key: string]: any }) {
4529
+ super(map);
4530
+ }
4531
+ }
4532
+
4533
+ export class UpdateAppServiceResponseBody extends $tea.Model {
4534
+ message?: string;
4535
+ requestId?: string;
4536
+ static names(): { [key: string]: string } {
4537
+ return {
4538
+ message: 'Message',
4539
+ requestId: 'RequestId',
4540
+ };
4541
+ }
4542
+
4543
+ static types(): { [key: string]: any } {
4544
+ return {
4545
+ message: 'string',
4546
+ requestId: 'string',
4547
+ };
4548
+ }
4549
+
4550
+ constructor(map?: { [key: string]: any }) {
4551
+ super(map);
4552
+ }
4553
+ }
4554
+
4555
+ export class UpdateAppServiceResponse extends $tea.Model {
4556
+ headers: { [key: string]: string };
4557
+ statusCode: number;
4558
+ body: UpdateAppServiceResponseBody;
4559
+ static names(): { [key: string]: string } {
4560
+ return {
4561
+ headers: 'headers',
4562
+ statusCode: 'statusCode',
4563
+ body: 'body',
4564
+ };
4565
+ }
4566
+
4567
+ static types(): { [key: string]: any } {
4568
+ return {
4569
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4570
+ statusCode: 'number',
4571
+ body: UpdateAppServiceResponseBody,
4572
+ };
4573
+ }
4574
+
4575
+ constructor(map?: { [key: string]: any }) {
4576
+ super(map);
4577
+ }
4578
+ }
4579
+
3950
4580
  export class UpdateBenchmarkTaskRequest extends $tea.Model {
3951
4581
  body?: string;
3952
4582
  static names(): { [key: string]: string } {
@@ -4013,23 +4643,98 @@ export class UpdateBenchmarkTaskResponse extends $tea.Model {
4013
4643
  }
4014
4644
  }
4015
4645
 
4646
+ export class UpdateGatewayRequest extends $tea.Model {
4647
+ enableInternet?: boolean;
4648
+ enableIntranet?: boolean;
4649
+ instanceType?: string;
4650
+ name?: string;
4651
+ static names(): { [key: string]: string } {
4652
+ return {
4653
+ enableInternet: 'EnableInternet',
4654
+ enableIntranet: 'EnableIntranet',
4655
+ instanceType: 'InstanceType',
4656
+ name: 'Name',
4657
+ };
4658
+ }
4659
+
4660
+ static types(): { [key: string]: any } {
4661
+ return {
4662
+ enableInternet: 'boolean',
4663
+ enableIntranet: 'boolean',
4664
+ instanceType: 'string',
4665
+ name: 'string',
4666
+ };
4667
+ }
4668
+
4669
+ constructor(map?: { [key: string]: any }) {
4670
+ super(map);
4671
+ }
4672
+ }
4673
+
4674
+ export class UpdateGatewayResponseBody extends $tea.Model {
4675
+ gatewayId?: string;
4676
+ message?: string;
4677
+ requestId?: string;
4678
+ static names(): { [key: string]: string } {
4679
+ return {
4680
+ gatewayId: 'GatewayId',
4681
+ message: 'Message',
4682
+ requestId: 'RequestId',
4683
+ };
4684
+ }
4685
+
4686
+ static types(): { [key: string]: any } {
4687
+ return {
4688
+ gatewayId: 'string',
4689
+ message: 'string',
4690
+ requestId: 'string',
4691
+ };
4692
+ }
4693
+
4694
+ constructor(map?: { [key: string]: any }) {
4695
+ super(map);
4696
+ }
4697
+ }
4698
+
4699
+ export class UpdateGatewayResponse extends $tea.Model {
4700
+ headers: { [key: string]: string };
4701
+ statusCode: number;
4702
+ body: UpdateGatewayResponseBody;
4703
+ static names(): { [key: string]: string } {
4704
+ return {
4705
+ headers: 'headers',
4706
+ statusCode: 'statusCode',
4707
+ body: 'body',
4708
+ };
4709
+ }
4710
+
4711
+ static types(): { [key: string]: any } {
4712
+ return {
4713
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4714
+ statusCode: 'number',
4715
+ body: UpdateGatewayResponseBody,
4716
+ };
4717
+ }
4718
+
4719
+ constructor(map?: { [key: string]: any }) {
4720
+ super(map);
4721
+ }
4722
+ }
4723
+
4016
4724
  export class UpdateResourceRequest extends $tea.Model {
4017
- nodeMatchLabels?: { [key: string]: string };
4018
- nodeTolerations?: UpdateResourceRequestNodeTolerations[];
4019
4725
  resourceName?: string;
4726
+ selfManagedResourceOptions?: UpdateResourceRequestSelfManagedResourceOptions;
4020
4727
  static names(): { [key: string]: string } {
4021
4728
  return {
4022
- nodeMatchLabels: 'NodeMatchLabels',
4023
- nodeTolerations: 'NodeTolerations',
4024
4729
  resourceName: 'ResourceName',
4730
+ selfManagedResourceOptions: 'SelfManagedResourceOptions',
4025
4731
  };
4026
4732
  }
4027
4733
 
4028
4734
  static types(): { [key: string]: any } {
4029
4735
  return {
4030
- nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4031
- nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestNodeTolerations },
4032
4736
  resourceName: 'string',
4737
+ selfManagedResourceOptions: UpdateResourceRequestSelfManagedResourceOptions,
4033
4738
  };
4034
4739
  }
4035
4740
 
@@ -4385,8 +5090,74 @@ export class UpdateServiceCronScalerRequest extends $tea.Model {
4385
5090
 
4386
5091
  static types(): { [key: string]: any } {
4387
5092
  return {
4388
- excludeDates: { 'type': 'array', 'itemType': 'string' },
4389
- scaleJobs: { 'type': 'array', 'itemType': UpdateServiceCronScalerRequestScaleJobs },
5093
+ excludeDates: { 'type': 'array', 'itemType': 'string' },
5094
+ scaleJobs: { 'type': 'array', 'itemType': UpdateServiceCronScalerRequestScaleJobs },
5095
+ };
5096
+ }
5097
+
5098
+ constructor(map?: { [key: string]: any }) {
5099
+ super(map);
5100
+ }
5101
+ }
5102
+
5103
+ export class UpdateServiceCronScalerResponseBody extends $tea.Model {
5104
+ message?: string;
5105
+ requestId?: string;
5106
+ static names(): { [key: string]: string } {
5107
+ return {
5108
+ message: 'Message',
5109
+ requestId: 'RequestId',
5110
+ };
5111
+ }
5112
+
5113
+ static types(): { [key: string]: any } {
5114
+ return {
5115
+ message: 'string',
5116
+ requestId: 'string',
5117
+ };
5118
+ }
5119
+
5120
+ constructor(map?: { [key: string]: any }) {
5121
+ super(map);
5122
+ }
5123
+ }
5124
+
5125
+ export class UpdateServiceCronScalerResponse extends $tea.Model {
5126
+ headers: { [key: string]: string };
5127
+ statusCode: number;
5128
+ body: UpdateServiceCronScalerResponseBody;
5129
+ static names(): { [key: string]: string } {
5130
+ return {
5131
+ headers: 'headers',
5132
+ statusCode: 'statusCode',
5133
+ body: 'body',
5134
+ };
5135
+ }
5136
+
5137
+ static types(): { [key: string]: any } {
5138
+ return {
5139
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5140
+ statusCode: 'number',
5141
+ body: UpdateServiceCronScalerResponseBody,
5142
+ };
5143
+ }
5144
+
5145
+ constructor(map?: { [key: string]: any }) {
5146
+ super(map);
5147
+ }
5148
+ }
5149
+
5150
+ export class UpdateServiceInstanceRequest extends $tea.Model {
5151
+ isolate?: boolean;
5152
+ static names(): { [key: string]: string } {
5153
+ return {
5154
+ isolate: 'Isolate',
5155
+ };
5156
+ }
5157
+
5158
+ static types(): { [key: string]: any } {
5159
+ return {
5160
+ isolate: 'boolean',
4390
5161
  };
4391
5162
  }
4392
5163
 
@@ -4395,7 +5166,7 @@ export class UpdateServiceCronScalerRequest extends $tea.Model {
4395
5166
  }
4396
5167
  }
4397
5168
 
4398
- export class UpdateServiceCronScalerResponseBody extends $tea.Model {
5169
+ export class UpdateServiceInstanceResponseBody extends $tea.Model {
4399
5170
  message?: string;
4400
5171
  requestId?: string;
4401
5172
  static names(): { [key: string]: string } {
@@ -4417,10 +5188,10 @@ export class UpdateServiceCronScalerResponseBody extends $tea.Model {
4417
5188
  }
4418
5189
  }
4419
5190
 
4420
- export class UpdateServiceCronScalerResponse extends $tea.Model {
5191
+ export class UpdateServiceInstanceResponse extends $tea.Model {
4421
5192
  headers: { [key: string]: string };
4422
5193
  statusCode: number;
4423
- body: UpdateServiceCronScalerResponseBody;
5194
+ body: UpdateServiceInstanceResponseBody;
4424
5195
  static names(): { [key: string]: string } {
4425
5196
  return {
4426
5197
  headers: 'headers',
@@ -4433,7 +5204,7 @@ export class UpdateServiceCronScalerResponse extends $tea.Model {
4433
5204
  return {
4434
5205
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4435
5206
  statusCode: 'number',
4436
- body: UpdateServiceCronScalerResponseBody,
5207
+ body: UpdateServiceInstanceResponseBody,
4437
5208
  };
4438
5209
  }
4439
5210
 
@@ -4731,7 +5502,7 @@ export class ServiceLabels extends $tea.Model {
4731
5502
  }
4732
5503
  }
4733
5504
 
4734
- export class CreateResourceRequestNodeTolerations extends $tea.Model {
5505
+ export class CreateResourceRequestSelfManagedResourceOptionsNodeTolerations extends $tea.Model {
4735
5506
  effect?: string;
4736
5507
  key?: string;
4737
5508
  operator?: string;
@@ -4759,6 +5530,34 @@ export class CreateResourceRequestNodeTolerations extends $tea.Model {
4759
5530
  }
4760
5531
  }
4761
5532
 
5533
+ export class CreateResourceRequestSelfManagedResourceOptions extends $tea.Model {
5534
+ externalClusterId?: string;
5535
+ nodeMatchLabels?: { [key: string]: string };
5536
+ nodeTolerations?: CreateResourceRequestSelfManagedResourceOptionsNodeTolerations[];
5537
+ roleName?: string;
5538
+ static names(): { [key: string]: string } {
5539
+ return {
5540
+ externalClusterId: 'ExternalClusterId',
5541
+ nodeMatchLabels: 'NodeMatchLabels',
5542
+ nodeTolerations: 'NodeTolerations',
5543
+ roleName: 'RoleName',
5544
+ };
5545
+ }
5546
+
5547
+ static types(): { [key: string]: any } {
5548
+ return {
5549
+ externalClusterId: 'string',
5550
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5551
+ nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestSelfManagedResourceOptionsNodeTolerations },
5552
+ roleName: 'string',
5553
+ };
5554
+ }
5555
+
5556
+ constructor(map?: { [key: string]: any }) {
5557
+ super(map);
5558
+ }
5559
+ }
5560
+
4762
5561
  export class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4763
5562
  scaleDownGracePeriodSeconds?: number;
4764
5563
  scaleUpActivationReplicas?: number;
@@ -4894,6 +5693,62 @@ export class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
4894
5693
  }
4895
5694
  }
4896
5695
 
5696
+ export class DescribeGatewayResponseBodyInternetAclPolicyList extends $tea.Model {
5697
+ comment?: string;
5698
+ entry?: string;
5699
+ status?: string;
5700
+ static names(): { [key: string]: string } {
5701
+ return {
5702
+ comment: 'Comment',
5703
+ entry: 'Entry',
5704
+ status: 'Status',
5705
+ };
5706
+ }
5707
+
5708
+ static types(): { [key: string]: any } {
5709
+ return {
5710
+ comment: 'string',
5711
+ entry: 'string',
5712
+ status: 'string',
5713
+ };
5714
+ }
5715
+
5716
+ constructor(map?: { [key: string]: any }) {
5717
+ super(map);
5718
+ }
5719
+ }
5720
+
5721
+ export class DescribeGatewayResponseBodyIntranetLinkedVpcList extends $tea.Model {
5722
+ ip?: string;
5723
+ securityGroupId?: string;
5724
+ status?: string;
5725
+ vSwitchId?: string;
5726
+ vpcId?: string;
5727
+ static names(): { [key: string]: string } {
5728
+ return {
5729
+ ip: 'Ip',
5730
+ securityGroupId: 'SecurityGroupId',
5731
+ status: 'Status',
5732
+ vSwitchId: 'VSwitchId',
5733
+ vpcId: 'VpcId',
5734
+ };
5735
+ }
5736
+
5737
+ static types(): { [key: string]: any } {
5738
+ return {
5739
+ ip: 'string',
5740
+ securityGroupId: 'string',
5741
+ status: 'string',
5742
+ vSwitchId: 'string',
5743
+ vpcId: 'string',
5744
+ };
5745
+ }
5746
+
5747
+ constructor(map?: { [key: string]: any }) {
5748
+ super(map);
5749
+ }
5750
+ }
5751
+
4897
5752
  export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $tea.Model {
4898
5753
  metricName?: string;
4899
5754
  service?: string;
@@ -5102,6 +5957,37 @@ export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
5102
5957
  }
5103
5958
  }
5104
5959
 
5960
+ export class ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList extends $tea.Model {
5961
+ ip?: string;
5962
+ securityGroupId?: string;
5963
+ status?: string;
5964
+ vSwitchId?: string;
5965
+ vpcId?: string;
5966
+ static names(): { [key: string]: string } {
5967
+ return {
5968
+ ip: 'Ip',
5969
+ securityGroupId: 'SecurityGroupId',
5970
+ status: 'Status',
5971
+ vSwitchId: 'VSwitchId',
5972
+ vpcId: 'VpcId',
5973
+ };
5974
+ }
5975
+
5976
+ static types(): { [key: string]: any } {
5977
+ return {
5978
+ ip: 'string',
5979
+ securityGroupId: 'string',
5980
+ status: 'string',
5981
+ vSwitchId: 'string',
5982
+ vpcId: 'string',
5983
+ };
5984
+ }
5985
+
5986
+ constructor(map?: { [key: string]: any }) {
5987
+ super(map);
5988
+ }
5989
+ }
5990
+
5105
5991
  export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
5106
5992
  buildTime?: string;
5107
5993
  imageAvailable?: string;
@@ -5133,7 +6019,7 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
5133
6019
  }
5134
6020
  }
5135
6021
 
5136
- export class UpdateResourceRequestNodeTolerations extends $tea.Model {
6022
+ export class UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations extends $tea.Model {
5137
6023
  effect?: string;
5138
6024
  key?: string;
5139
6025
  operator?: string;
@@ -5161,6 +6047,28 @@ export class UpdateResourceRequestNodeTolerations extends $tea.Model {
5161
6047
  }
5162
6048
  }
5163
6049
 
6050
+ export class UpdateResourceRequestSelfManagedResourceOptions extends $tea.Model {
6051
+ nodeMatchLabels?: { [key: string]: string };
6052
+ nodeTolerations?: UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations[];
6053
+ static names(): { [key: string]: string } {
6054
+ return {
6055
+ nodeMatchLabels: 'NodeMatchLabels',
6056
+ nodeTolerations: 'NodeTolerations',
6057
+ };
6058
+ }
6059
+
6060
+ static types(): { [key: string]: any } {
6061
+ return {
6062
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6063
+ nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations },
6064
+ };
6065
+ }
6066
+
6067
+ constructor(map?: { [key: string]: any }) {
6068
+ super(map);
6069
+ }
6070
+ }
6071
+
5164
6072
  export class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
5165
6073
  scaleDownGracePeriodSeconds?: number;
5166
6074
  scaleUpActivationReplicas?: number;
@@ -5291,99 +6199,244 @@ export class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
5291
6199
  };
5292
6200
  }
5293
6201
 
5294
- constructor(map?: { [key: string]: any }) {
5295
- super(map);
6202
+ constructor(map?: { [key: string]: any }) {
6203
+ super(map);
6204
+ }
6205
+ }
6206
+
6207
+
6208
+ export default class Client extends OpenApi {
6209
+
6210
+ constructor(config: $OpenApi.Config) {
6211
+ super(config);
6212
+ this._endpointRule = "regional";
6213
+ this._endpointMap = {
6214
+ 'cn-beijing': "pai-eas.cn-beijing.aliyuncs.com",
6215
+ 'cn-zhangjiakou': "pai-eas.cn-zhangjiakou.aliyuncs.com",
6216
+ 'cn-hangzhou': "pai-eas.cn-hangzhou.aliyuncs.com",
6217
+ 'cn-shanghai': "pai-eas.cn-shanghai.aliyuncs.com",
6218
+ 'cn-shenzhen': "pai-eas.cn-shenzhen.aliyuncs.com",
6219
+ 'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
6220
+ 'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
6221
+ 'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
6222
+ 'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
6223
+ 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
6224
+ 'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
6225
+ 'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
6226
+ 'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
6227
+ 'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
6228
+ 'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
6229
+ };
6230
+ this.checkConfig(config);
6231
+ this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
6232
+ }
6233
+
6234
+
6235
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
6236
+ if (!Util.empty(endpoint)) {
6237
+ return endpoint;
6238
+ }
6239
+
6240
+ if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
6241
+ return endpointMap[regionId];
6242
+ }
6243
+
6244
+ return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
6245
+ }
6246
+
6247
+ async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
6248
+ let req = new $OpenApi.OpenApiRequest({
6249
+ headers: headers,
6250
+ });
6251
+ let params = new $OpenApi.Params({
6252
+ action: "CommitService",
6253
+ version: "2021-07-01",
6254
+ protocol: "HTTPS",
6255
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/commit`,
6256
+ method: "PUT",
6257
+ authType: "AK",
6258
+ style: "ROA",
6259
+ reqBodyType: "json",
6260
+ bodyType: "json",
6261
+ });
6262
+ return $tea.cast<CommitServiceResponse>(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
6263
+ }
6264
+
6265
+ async commitService(ClusterId: string, ServiceName: string): Promise<CommitServiceResponse> {
6266
+ let runtime = new $Util.RuntimeOptions({ });
6267
+ let headers : {[key: string ]: string} = { };
6268
+ return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6269
+ }
6270
+
6271
+ async createAppServiceWithOptions(request: CreateAppServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAppServiceResponse> {
6272
+ Util.validateModel(request);
6273
+ let query : {[key: string ]: any} = { };
6274
+ if (!Util.isUnset(request.quotaId)) {
6275
+ query["QuotaId"] = request.quotaId;
6276
+ }
6277
+
6278
+ if (!Util.isUnset(request.workspaceId)) {
6279
+ query["WorkspaceId"] = request.workspaceId;
6280
+ }
6281
+
6282
+ let body : {[key: string ]: any} = { };
6283
+ if (!Util.isUnset(request.appType)) {
6284
+ body["AppType"] = request.appType;
6285
+ }
6286
+
6287
+ if (!Util.isUnset(request.appVersion)) {
6288
+ body["AppVersion"] = request.appVersion;
6289
+ }
6290
+
6291
+ if (!Util.isUnset(request.config)) {
6292
+ body["Config"] = request.config;
6293
+ }
6294
+
6295
+ if (!Util.isUnset(request.replicas)) {
6296
+ body["Replicas"] = request.replicas;
6297
+ }
6298
+
6299
+ if (!Util.isUnset(request.serviceName)) {
6300
+ body["ServiceName"] = request.serviceName;
6301
+ }
6302
+
6303
+ if (!Util.isUnset(request.serviceSpec)) {
6304
+ body["ServiceSpec"] = request.serviceSpec;
6305
+ }
6306
+
6307
+ let req = new $OpenApi.OpenApiRequest({
6308
+ headers: headers,
6309
+ query: OpenApiUtil.query(query),
6310
+ body: OpenApiUtil.parseToMap(body),
6311
+ });
6312
+ let params = new $OpenApi.Params({
6313
+ action: "CreateAppService",
6314
+ version: "2021-07-01",
6315
+ protocol: "HTTPS",
6316
+ pathname: `/api/v2/app_services`,
6317
+ method: "POST",
6318
+ authType: "AK",
6319
+ style: "ROA",
6320
+ reqBodyType: "json",
6321
+ bodyType: "json",
6322
+ });
6323
+ return $tea.cast<CreateAppServiceResponse>(await this.callApi(params, req, runtime), new CreateAppServiceResponse({}));
6324
+ }
6325
+
6326
+ async createAppService(request: CreateAppServiceRequest): Promise<CreateAppServiceResponse> {
6327
+ let runtime = new $Util.RuntimeOptions({ });
6328
+ let headers : {[key: string ]: string} = { };
6329
+ return await this.createAppServiceWithOptions(request, headers, runtime);
6330
+ }
6331
+
6332
+ async createBenchmarkTaskWithOptions(request: CreateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateBenchmarkTaskResponse> {
6333
+ Util.validateModel(request);
6334
+ let req = new $OpenApi.OpenApiRequest({
6335
+ headers: headers,
6336
+ body: request.body,
6337
+ });
6338
+ let params = new $OpenApi.Params({
6339
+ action: "CreateBenchmarkTask",
6340
+ version: "2021-07-01",
6341
+ protocol: "HTTPS",
6342
+ pathname: `/api/v2/benchmark-tasks`,
6343
+ method: "POST",
6344
+ authType: "AK",
6345
+ style: "ROA",
6346
+ reqBodyType: "json",
6347
+ bodyType: "json",
6348
+ });
6349
+ return $tea.cast<CreateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
6350
+ }
6351
+
6352
+ async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
6353
+ let runtime = new $Util.RuntimeOptions({ });
6354
+ let headers : {[key: string ]: string} = { };
6355
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
5296
6356
  }
5297
- }
5298
6357
 
6358
+ async createGatewayWithOptions(request: CreateGatewayRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateGatewayResponse> {
6359
+ Util.validateModel(request);
6360
+ let query : {[key: string ]: any} = { };
6361
+ if (!Util.isUnset(request.resourceName)) {
6362
+ query["ResourceName"] = request.resourceName;
6363
+ }
5299
6364
 
5300
- export default class Client extends OpenApi {
5301
-
5302
- constructor(config: $OpenApi.Config) {
5303
- super(config);
5304
- this._endpointRule = "regional";
5305
- this._endpointMap = {
5306
- 'cn-beijing': "pai-eas.cn-beijing.aliyuncs.com",
5307
- 'cn-zhangjiakou': "pai-eas.cn-zhangjiakou.aliyuncs.com",
5308
- 'cn-hangzhou': "pai-eas.cn-hangzhou.aliyuncs.com",
5309
- 'cn-shanghai': "pai-eas.cn-shanghai.aliyuncs.com",
5310
- 'cn-shenzhen': "pai-eas.cn-shenzhen.aliyuncs.com",
5311
- 'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
5312
- 'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
5313
- 'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
5314
- 'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
5315
- 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
5316
- 'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
5317
- 'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
5318
- 'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
5319
- 'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
5320
- 'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
5321
- };
5322
- this.checkConfig(config);
5323
- this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
5324
- }
5325
-
6365
+ let body : {[key: string ]: any} = { };
6366
+ if (!Util.isUnset(request.enableInternet)) {
6367
+ body["EnableInternet"] = request.enableInternet;
6368
+ }
5326
6369
 
5327
- getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
5328
- if (!Util.empty(endpoint)) {
5329
- return endpoint;
6370
+ if (!Util.isUnset(request.enableIntranet)) {
6371
+ body["EnableIntranet"] = request.enableIntranet;
5330
6372
  }
5331
6373
 
5332
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
5333
- return endpointMap[regionId];
6374
+ if (!Util.isUnset(request.instanceType)) {
6375
+ body["InstanceType"] = request.instanceType;
5334
6376
  }
5335
6377
 
5336
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
5337
- }
6378
+ if (!Util.isUnset(request.name)) {
6379
+ body["Name"] = request.name;
6380
+ }
5338
6381
 
5339
- async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
5340
6382
  let req = new $OpenApi.OpenApiRequest({
5341
6383
  headers: headers,
6384
+ query: OpenApiUtil.query(query),
6385
+ body: OpenApiUtil.parseToMap(body),
5342
6386
  });
5343
6387
  let params = new $OpenApi.Params({
5344
- action: "CommitService",
6388
+ action: "CreateGateway",
5345
6389
  version: "2021-07-01",
5346
6390
  protocol: "HTTPS",
5347
- pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/commit`,
5348
- method: "PUT",
6391
+ pathname: `/api/v2/gateways`,
6392
+ method: "POST",
5349
6393
  authType: "AK",
5350
6394
  style: "ROA",
5351
6395
  reqBodyType: "json",
5352
6396
  bodyType: "json",
5353
6397
  });
5354
- return $tea.cast<CommitServiceResponse>(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
6398
+ return $tea.cast<CreateGatewayResponse>(await this.callApi(params, req, runtime), new CreateGatewayResponse({}));
5355
6399
  }
5356
6400
 
5357
- async commitService(ClusterId: string, ServiceName: string): Promise<CommitServiceResponse> {
6401
+ async createGateway(request: CreateGatewayRequest): Promise<CreateGatewayResponse> {
5358
6402
  let runtime = new $Util.RuntimeOptions({ });
5359
6403
  let headers : {[key: string ]: string} = { };
5360
- return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6404
+ return await this.createGatewayWithOptions(request, headers, runtime);
5361
6405
  }
5362
6406
 
5363
- async createBenchmarkTaskWithOptions(request: CreateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateBenchmarkTaskResponse> {
6407
+ async createGatewayIntranetLinkedVpcWithOptions(ClusterId: string, GatewayId: string, request: CreateGatewayIntranetLinkedVpcRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateGatewayIntranetLinkedVpcResponse> {
5364
6408
  Util.validateModel(request);
6409
+ let query : {[key: string ]: any} = { };
6410
+ if (!Util.isUnset(request.vSwitchId)) {
6411
+ query["VSwitchId"] = request.vSwitchId;
6412
+ }
6413
+
6414
+ if (!Util.isUnset(request.vpcId)) {
6415
+ query["VpcId"] = request.vpcId;
6416
+ }
6417
+
5365
6418
  let req = new $OpenApi.OpenApiRequest({
5366
6419
  headers: headers,
5367
- body: request.body,
6420
+ query: OpenApiUtil.query(query),
5368
6421
  });
5369
6422
  let params = new $OpenApi.Params({
5370
- action: "CreateBenchmarkTask",
6423
+ action: "CreateGatewayIntranetLinkedVpc",
5371
6424
  version: "2021-07-01",
5372
6425
  protocol: "HTTPS",
5373
- pathname: `/api/v2/benchmark-tasks`,
6426
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
5374
6427
  method: "POST",
5375
6428
  authType: "AK",
5376
6429
  style: "ROA",
5377
6430
  reqBodyType: "json",
5378
6431
  bodyType: "json",
5379
6432
  });
5380
- return $tea.cast<CreateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
6433
+ return $tea.cast<CreateGatewayIntranetLinkedVpcResponse>(await this.callApi(params, req, runtime), new CreateGatewayIntranetLinkedVpcResponse({}));
5381
6434
  }
5382
6435
 
5383
- async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
6436
+ async createGatewayIntranetLinkedVpc(ClusterId: string, GatewayId: string, request: CreateGatewayIntranetLinkedVpcRequest): Promise<CreateGatewayIntranetLinkedVpcResponse> {
5384
6437
  let runtime = new $Util.RuntimeOptions({ });
5385
6438
  let headers : {[key: string ]: string} = { };
5386
- return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
6439
+ return await this.createGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
5387
6440
  }
5388
6441
 
5389
6442
  async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
@@ -5405,24 +6458,12 @@ export default class Client extends OpenApi {
5405
6458
  body["EcsInstanceType"] = request.ecsInstanceType;
5406
6459
  }
5407
6460
 
5408
- if (!Util.isUnset(request.externalClusterId)) {
5409
- body["ExternalClusterId"] = request.externalClusterId;
5410
- }
5411
-
5412
- if (!Util.isUnset(request.nodeMatchLabels)) {
5413
- body["NodeMatchLabels"] = request.nodeMatchLabels;
5414
- }
5415
-
5416
- if (!Util.isUnset(request.nodeTolerations)) {
5417
- body["NodeTolerations"] = request.nodeTolerations;
5418
- }
5419
-
5420
6461
  if (!Util.isUnset(request.resourceType)) {
5421
6462
  body["ResourceType"] = request.resourceType;
5422
6463
  }
5423
6464
 
5424
- if (!Util.isUnset(request.roleName)) {
5425
- body["RoleName"] = request.roleName;
6465
+ if (!Util.isUnset(request.selfManagedResourceOptions)) {
6466
+ body["SelfManagedResourceOptions"] = request.selfManagedResourceOptions;
5426
6467
  }
5427
6468
 
5428
6469
  if (!Util.isUnset(request.systemDiskSize)) {
@@ -5564,6 +6605,10 @@ export default class Client extends OpenApi {
5564
6605
  query["Labels"] = request.labelsShrink;
5565
6606
  }
5566
6607
 
6608
+ if (!Util.isUnset(request.workspaceId)) {
6609
+ query["WorkspaceId"] = request.workspaceId;
6610
+ }
6611
+
5567
6612
  let req = new $OpenApi.OpenApiRequest({
5568
6613
  headers: headers,
5569
6614
  query: OpenApiUtil.query(query),
@@ -5726,6 +6771,65 @@ export default class Client extends OpenApi {
5726
6771
  return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5727
6772
  }
5728
6773
 
6774
+ async deleteGatewayWithOptions(ClusterId: string, GatewayId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteGatewayResponse> {
6775
+ let req = new $OpenApi.OpenApiRequest({
6776
+ headers: headers,
6777
+ });
6778
+ let params = new $OpenApi.Params({
6779
+ action: "DeleteGateway",
6780
+ version: "2021-07-01",
6781
+ protocol: "HTTPS",
6782
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}`,
6783
+ method: "DELETE",
6784
+ authType: "AK",
6785
+ style: "ROA",
6786
+ reqBodyType: "json",
6787
+ bodyType: "json",
6788
+ });
6789
+ return $tea.cast<DeleteGatewayResponse>(await this.callApi(params, req, runtime), new DeleteGatewayResponse({}));
6790
+ }
6791
+
6792
+ async deleteGateway(ClusterId: string, GatewayId: string): Promise<DeleteGatewayResponse> {
6793
+ let runtime = new $Util.RuntimeOptions({ });
6794
+ let headers : {[key: string ]: string} = { };
6795
+ return await this.deleteGatewayWithOptions(ClusterId, GatewayId, headers, runtime);
6796
+ }
6797
+
6798
+ async deleteGatewayIntranetLinkedVpcWithOptions(ClusterId: string, GatewayId: string, request: DeleteGatewayIntranetLinkedVpcRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteGatewayIntranetLinkedVpcResponse> {
6799
+ Util.validateModel(request);
6800
+ let query : {[key: string ]: any} = { };
6801
+ if (!Util.isUnset(request.vSwitchId)) {
6802
+ query["VSwitchId"] = request.vSwitchId;
6803
+ }
6804
+
6805
+ if (!Util.isUnset(request.vpcId)) {
6806
+ query["VpcId"] = request.vpcId;
6807
+ }
6808
+
6809
+ let req = new $OpenApi.OpenApiRequest({
6810
+ headers: headers,
6811
+ query: OpenApiUtil.query(query),
6812
+ });
6813
+ let params = new $OpenApi.Params({
6814
+ action: "DeleteGatewayIntranetLinkedVpc",
6815
+ version: "2021-07-01",
6816
+ protocol: "HTTPS",
6817
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
6818
+ method: "DELETE",
6819
+ authType: "AK",
6820
+ style: "ROA",
6821
+ reqBodyType: "json",
6822
+ bodyType: "json",
6823
+ });
6824
+ return $tea.cast<DeleteGatewayIntranetLinkedVpcResponse>(await this.callApi(params, req, runtime), new DeleteGatewayIntranetLinkedVpcResponse({}));
6825
+ }
6826
+
6827
+ async deleteGatewayIntranetLinkedVpc(ClusterId: string, GatewayId: string, request: DeleteGatewayIntranetLinkedVpcRequest): Promise<DeleteGatewayIntranetLinkedVpcResponse> {
6828
+ let runtime = new $Util.RuntimeOptions({ });
6829
+ let headers : {[key: string ]: string} = { };
6830
+ return await this.deleteGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
6831
+ }
6832
+
5729
6833
  async deleteResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceResponse> {
5730
6834
  let req = new $OpenApi.OpenApiRequest({
5731
6835
  headers: headers,
@@ -6060,6 +7164,30 @@ export default class Client extends OpenApi {
6060
7164
  return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
6061
7165
  }
6062
7166
 
7167
+ async describeGatewayWithOptions(ClusterId: string, GatewayId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeGatewayResponse> {
7168
+ let req = new $OpenApi.OpenApiRequest({
7169
+ headers: headers,
7170
+ });
7171
+ let params = new $OpenApi.Params({
7172
+ action: "DescribeGateway",
7173
+ version: "2021-07-01",
7174
+ protocol: "HTTPS",
7175
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}`,
7176
+ method: "GET",
7177
+ authType: "AK",
7178
+ style: "ROA",
7179
+ reqBodyType: "json",
7180
+ bodyType: "json",
7181
+ });
7182
+ return $tea.cast<DescribeGatewayResponse>(await this.callApi(params, req, runtime), new DescribeGatewayResponse({}));
7183
+ }
7184
+
7185
+ async describeGateway(ClusterId: string, GatewayId: string): Promise<DescribeGatewayResponse> {
7186
+ let runtime = new $Util.RuntimeOptions({ });
7187
+ let headers : {[key: string ]: string} = { };
7188
+ return await this.describeGatewayWithOptions(ClusterId, GatewayId, headers, runtime);
7189
+ }
7190
+
6063
7191
  async describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse> {
6064
7192
  let req = new $OpenApi.OpenApiRequest({
6065
7193
  headers: headers,
@@ -6488,6 +7616,30 @@ export default class Client extends OpenApi {
6488
7616
  return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
6489
7617
  }
6490
7618
 
7619
+ async listGatewayIntranetLinkedVpcWithOptions(ClusterId: string, GatewayId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListGatewayIntranetLinkedVpcResponse> {
7620
+ let req = new $OpenApi.OpenApiRequest({
7621
+ headers: headers,
7622
+ });
7623
+ let params = new $OpenApi.Params({
7624
+ action: "ListGatewayIntranetLinkedVpc",
7625
+ version: "2021-07-01",
7626
+ protocol: "HTTPS",
7627
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}/intranet_endpoint_linked_vpc`,
7628
+ method: "GET",
7629
+ authType: "AK",
7630
+ style: "ROA",
7631
+ reqBodyType: "json",
7632
+ bodyType: "json",
7633
+ });
7634
+ return $tea.cast<ListGatewayIntranetLinkedVpcResponse>(await this.callApi(params, req, runtime), new ListGatewayIntranetLinkedVpcResponse({}));
7635
+ }
7636
+
7637
+ async listGatewayIntranetLinkedVpc(ClusterId: string, GatewayId: string): Promise<ListGatewayIntranetLinkedVpcResponse> {
7638
+ let runtime = new $Util.RuntimeOptions({ });
7639
+ let headers : {[key: string ]: string} = { };
7640
+ return await this.listGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, headers, runtime);
7641
+ }
7642
+
6491
7643
  async listGroupsWithOptions(request: ListGroupsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse> {
6492
7644
  Util.validateModel(request);
6493
7645
  let query : {[key: string ]: any} = { };
@@ -6503,6 +7655,10 @@ export default class Client extends OpenApi {
6503
7655
  query["PageSize"] = request.pageSize;
6504
7656
  }
6505
7657
 
7658
+ if (!Util.isUnset(request.workspaceId)) {
7659
+ query["WorkspaceId"] = request.workspaceId;
7660
+ }
7661
+
6506
7662
  let req = new $OpenApi.OpenApiRequest({
6507
7663
  headers: headers,
6508
7664
  query: OpenApiUtil.query(query),
@@ -6910,6 +8066,10 @@ export default class Client extends OpenApi {
6910
8066
  query["Sort"] = request.sort;
6911
8067
  }
6912
8068
 
8069
+ if (!Util.isUnset(request.workspaceId)) {
8070
+ query["WorkspaceId"] = request.workspaceId;
8071
+ }
8072
+
6913
8073
  let req = new $OpenApi.OpenApiRequest({
6914
8074
  headers: headers,
6915
8075
  query: OpenApiUtil.query(query),
@@ -7089,6 +8249,63 @@ export default class Client extends OpenApi {
7089
8249
  return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
7090
8250
  }
7091
8251
 
8252
+ async updateAppServiceWithOptions(ClusterId: string, ServiceName: string, request: UpdateAppServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateAppServiceResponse> {
8253
+ Util.validateModel(request);
8254
+ let query : {[key: string ]: any} = { };
8255
+ if (!Util.isUnset(request.quotaId)) {
8256
+ query["QuotaId"] = request.quotaId;
8257
+ }
8258
+
8259
+ if (!Util.isUnset(request.workspaceId)) {
8260
+ query["WorkspaceId"] = request.workspaceId;
8261
+ }
8262
+
8263
+ let body : {[key: string ]: any} = { };
8264
+ if (!Util.isUnset(request.appType)) {
8265
+ body["AppType"] = request.appType;
8266
+ }
8267
+
8268
+ if (!Util.isUnset(request.appVersion)) {
8269
+ body["AppVersion"] = request.appVersion;
8270
+ }
8271
+
8272
+ if (!Util.isUnset(request.config)) {
8273
+ body["Config"] = request.config;
8274
+ }
8275
+
8276
+ if (!Util.isUnset(request.replicas)) {
8277
+ body["Replicas"] = request.replicas;
8278
+ }
8279
+
8280
+ if (!Util.isUnset(request.serviceSpec)) {
8281
+ body["ServiceSpec"] = request.serviceSpec;
8282
+ }
8283
+
8284
+ let req = new $OpenApi.OpenApiRequest({
8285
+ headers: headers,
8286
+ query: OpenApiUtil.query(query),
8287
+ body: OpenApiUtil.parseToMap(body),
8288
+ });
8289
+ let params = new $OpenApi.Params({
8290
+ action: "UpdateAppService",
8291
+ version: "2021-07-01",
8292
+ protocol: "HTTPS",
8293
+ pathname: `/api/v2/app_services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}`,
8294
+ method: "PUT",
8295
+ authType: "AK",
8296
+ style: "ROA",
8297
+ reqBodyType: "json",
8298
+ bodyType: "json",
8299
+ });
8300
+ return $tea.cast<UpdateAppServiceResponse>(await this.callApi(params, req, runtime), new UpdateAppServiceResponse({}));
8301
+ }
8302
+
8303
+ async updateAppService(ClusterId: string, ServiceName: string, request: UpdateAppServiceRequest): Promise<UpdateAppServiceResponse> {
8304
+ let runtime = new $Util.RuntimeOptions({ });
8305
+ let headers : {[key: string ]: string} = { };
8306
+ return await this.updateAppServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
8307
+ }
8308
+
7092
8309
  async updateBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateBenchmarkTaskResponse> {
7093
8310
  Util.validateModel(request);
7094
8311
  let req = new $OpenApi.OpenApiRequest({
@@ -7115,21 +8332,60 @@ export default class Client extends OpenApi {
7115
8332
  return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
7116
8333
  }
7117
8334
 
7118
- async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
8335
+ async updateGatewayWithOptions(GatewayId: string, ClusterId: string, request: UpdateGatewayRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateGatewayResponse> {
7119
8336
  Util.validateModel(request);
7120
8337
  let body : {[key: string ]: any} = { };
7121
- if (!Util.isUnset(request.nodeMatchLabels)) {
7122
- body["NodeMatchLabels"] = request.nodeMatchLabels;
8338
+ if (!Util.isUnset(request.enableInternet)) {
8339
+ body["EnableInternet"] = request.enableInternet;
8340
+ }
8341
+
8342
+ if (!Util.isUnset(request.enableIntranet)) {
8343
+ body["EnableIntranet"] = request.enableIntranet;
8344
+ }
8345
+
8346
+ if (!Util.isUnset(request.instanceType)) {
8347
+ body["InstanceType"] = request.instanceType;
7123
8348
  }
7124
8349
 
7125
- if (!Util.isUnset(request.nodeTolerations)) {
7126
- body["NodeTolerations"] = request.nodeTolerations;
8350
+ if (!Util.isUnset(request.name)) {
8351
+ body["Name"] = request.name;
7127
8352
  }
7128
8353
 
8354
+ let req = new $OpenApi.OpenApiRequest({
8355
+ headers: headers,
8356
+ body: OpenApiUtil.parseToMap(body),
8357
+ });
8358
+ let params = new $OpenApi.Params({
8359
+ action: "UpdateGateway",
8360
+ version: "2021-07-01",
8361
+ protocol: "HTTPS",
8362
+ pathname: `/api/v2/gateways/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(GatewayId)}`,
8363
+ method: "PUT",
8364
+ authType: "AK",
8365
+ style: "ROA",
8366
+ reqBodyType: "json",
8367
+ bodyType: "json",
8368
+ });
8369
+ return $tea.cast<UpdateGatewayResponse>(await this.callApi(params, req, runtime), new UpdateGatewayResponse({}));
8370
+ }
8371
+
8372
+ async updateGateway(GatewayId: string, ClusterId: string, request: UpdateGatewayRequest): Promise<UpdateGatewayResponse> {
8373
+ let runtime = new $Util.RuntimeOptions({ });
8374
+ let headers : {[key: string ]: string} = { };
8375
+ return await this.updateGatewayWithOptions(GatewayId, ClusterId, request, headers, runtime);
8376
+ }
8377
+
8378
+ async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
8379
+ Util.validateModel(request);
8380
+ let body : {[key: string ]: any} = { };
7129
8381
  if (!Util.isUnset(request.resourceName)) {
7130
8382
  body["ResourceName"] = request.resourceName;
7131
8383
  }
7132
8384
 
8385
+ if (!Util.isUnset(request.selfManagedResourceOptions)) {
8386
+ body["SelfManagedResourceOptions"] = request.selfManagedResourceOptions;
8387
+ }
8388
+
7133
8389
  let req = new $OpenApi.OpenApiRequest({
7134
8390
  headers: headers,
7135
8391
  body: OpenApiUtil.parseToMap(body),
@@ -7332,6 +8588,37 @@ export default class Client extends OpenApi {
7332
8588
  return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
7333
8589
  }
7334
8590
 
8591
+ async updateServiceInstanceWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, request: UpdateServiceInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceInstanceResponse> {
8592
+ Util.validateModel(request);
8593
+ let body : {[key: string ]: any} = { };
8594
+ if (!Util.isUnset(request.isolate)) {
8595
+ body["Isolate"] = request.isolate;
8596
+ }
8597
+
8598
+ let req = new $OpenApi.OpenApiRequest({
8599
+ headers: headers,
8600
+ body: OpenApiUtil.parseToMap(body),
8601
+ });
8602
+ let params = new $OpenApi.Params({
8603
+ action: "UpdateServiceInstance",
8604
+ version: "2021-07-01",
8605
+ protocol: "HTTPS",
8606
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}`,
8607
+ method: "PUT",
8608
+ authType: "AK",
8609
+ style: "ROA",
8610
+ reqBodyType: "json",
8611
+ bodyType: "json",
8612
+ });
8613
+ return $tea.cast<UpdateServiceInstanceResponse>(await this.callApi(params, req, runtime), new UpdateServiceInstanceResponse({}));
8614
+ }
8615
+
8616
+ async updateServiceInstance(ClusterId: string, ServiceName: string, InstanceName: string, request: UpdateServiceInstanceRequest): Promise<UpdateServiceInstanceResponse> {
8617
+ let runtime = new $Util.RuntimeOptions({ });
8618
+ let headers : {[key: string ]: string} = { };
8619
+ return await this.updateServiceInstanceWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime);
8620
+ }
8621
+
7335
8622
  async updateServiceLabelWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceLabelRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceLabelResponse> {
7336
8623
  Util.validateModel(request);
7337
8624
  let body : {[key: string ]: any} = { };