@alicloud/eas20210701 6.5.0 → 6.6.1

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
@@ -280,17 +280,17 @@ export class CreateResourceRequestSelfManagedResourceOptions extends $dara.Model
280
280
  externalClusterId?: string;
281
281
  /**
282
282
  * @remarks
283
- * The tag key-value pairs for nodes.
283
+ * The tag key-value pairs of the node.
284
284
  */
285
285
  nodeMatchLabels?: { [key: string]: string };
286
286
  /**
287
287
  * @remarks
288
- * Tolerations for nodes.
288
+ * The tolerations for the node taint.
289
289
  */
290
290
  nodeTolerations?: CreateResourceRequestSelfManagedResourceOptionsNodeTolerations[];
291
291
  /**
292
292
  * @remarks
293
- * The name of the RAM user to which the permissions on Elastic Algorithm Service of Platform for AI (PAI-EAS) are granted.
293
+ * The name of the RAM user to which the permissions on Elastic Algorithm Service (EAS) of Platform for AI (PAI) are granted.
294
294
  *
295
295
  * @example
296
296
  * clusterrole
@@ -508,7 +508,7 @@ export class CreateServiceAutoScalerRequestScaleStrategies extends $dara.Model {
508
508
  *
509
509
  * * If you set metricName to qps, scale-out is triggered when the average qps for a single instance is greater than this threshold.
510
510
  * * If you set metricName to cpu, scale-out is triggered when the average cpu utilization for a single instance is greater than this threshold.
511
- * * If you set metricName to gpu, scale-out is triggered when the average cpu utilization for a single instance is greater than this threshold.
511
+ * * If you set metricName to gpu, scale-out is triggered when the average gpu utilization for a single instance is greater than this threshold.
512
512
  *
513
513
  * This parameter is required.
514
514
  *
@@ -608,7 +608,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
608
608
  instanceType?: string;
609
609
  /**
610
610
  * @remarks
611
- * The priority of resource scheduling. A greater number specifies a higher priority.
611
+ * The priority of resource scheduling. A greater number indicates a higher priority.
612
612
  *
613
613
  * @example
614
614
  * 6
@@ -616,7 +616,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
616
616
  priority?: number;
617
617
  /**
618
618
  * @remarks
619
- * Lingjun Resource Quota ID.
619
+ * The ID of the Lingjun resource quota.
620
620
  *
621
621
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
622
622
  *
@@ -626,7 +626,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
626
626
  quotaId?: string;
627
627
  /**
628
628
  * @remarks
629
- * The region where the resource resides.
629
+ * The region in which the resource resides.
630
630
  *
631
631
  * @example
632
632
  * cn-hangzhou
@@ -634,7 +634,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
634
634
  region?: string;
635
635
  /**
636
636
  * @remarks
637
- * The ID of the dedicated resource group. For information about how to query the ID of a dedicated resource group, see [ListResources](https://help.aliyun.com/document_detail/412133.html).
637
+ * The ID of the dedicated resource group. For information about how to obtain the ID of a dedicated resource group, see [ListResources](https://help.aliyun.com/document_detail/412133.html).
638
638
  *
639
639
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
640
640
  *
@@ -646,7 +646,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
646
646
  * @remarks
647
647
  * The maximum price of preemptible instances in a public resource group.
648
648
  *
649
- * > If you do not set this value, preemptible instances are not used.
649
+ * > If you leave this parameter empty, preemptible instances are not used.
650
650
  *
651
651
  * @example
652
652
  * 10.05
@@ -856,6 +856,188 @@ export class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
856
856
  }
857
857
  }
858
858
 
859
+ export class DescribeMachineSpecResponseBodyInstanceMetas extends $dara.Model {
860
+ /**
861
+ * @remarks
862
+ * The number of CPU cores in the instance type.
863
+ *
864
+ * @example
865
+ * 32
866
+ */
867
+ CPU?: number;
868
+ /**
869
+ * @remarks
870
+ * The GPU type in the instance type. If the instance type is not a GPU-based instance type, this parameter does not exist.
871
+ *
872
+ * @example
873
+ * GU30
874
+ */
875
+ GPU?: string;
876
+ /**
877
+ * @remarks
878
+ * The number of GPUs in the instance type.
879
+ *
880
+ * @example
881
+ * 1
882
+ */
883
+ GPUAmount?: number;
884
+ /**
885
+ * @remarks
886
+ * The GPU memory in the instance type. Unit: GB.
887
+ *
888
+ * @example
889
+ * 24
890
+ */
891
+ GPUMemory?: number;
892
+ /**
893
+ * @remarks
894
+ * The name of the instance type.
895
+ *
896
+ * @example
897
+ * ml.gu7i.c32m188.1-gu30
898
+ */
899
+ instanceType?: string;
900
+ /**
901
+ * @remarks
902
+ * Indicates whether the instance type is available.
903
+ *
904
+ * @example
905
+ * true
906
+ */
907
+ isAvailable?: boolean;
908
+ /**
909
+ * @remarks
910
+ * The memory size in the instance type. Unit: GB.
911
+ *
912
+ * @example
913
+ * 188
914
+ */
915
+ memory?: number;
916
+ /**
917
+ * @remarks
918
+ * The minimum discount that can be accepted when the preemptible instance type does not include a usage duration. 0.1 indicates one fold. If this parameter is not returned, the bidding feature is not supported.
919
+ *
920
+ * @example
921
+ * 0.1
922
+ */
923
+ nonProtectSpotDiscount?: number;
924
+ /**
925
+ * @remarks
926
+ * The minimum discount that can be accepted when the preemptible instance type has the 1-hour protection duration. 0.1 indicates one fold. If this parameter is not returned, the bidding feature is not supported.
927
+ *
928
+ * @example
929
+ * 0.12
930
+ */
931
+ spotDiscount?: number;
932
+ /**
933
+ * @remarks
934
+ * The inventory status of the instance type.
935
+ *
936
+ * Valid values:
937
+ *
938
+ * * WithStock
939
+ * * ClosedWithStock
940
+ * * NoStock
941
+ *
942
+ * @example
943
+ * WithStock
944
+ */
945
+ stockStatus?: string;
946
+ /**
947
+ * @remarks
948
+ * The source of the instance type.
949
+ *
950
+ * Valid values:
951
+ *
952
+ * * ECS
953
+ * * BareMetal
954
+ * * Lingjun
955
+ *
956
+ * @example
957
+ * ECS
958
+ */
959
+ vendor?: string;
960
+ static names(): { [key: string]: string } {
961
+ return {
962
+ CPU: 'CPU',
963
+ GPU: 'GPU',
964
+ GPUAmount: 'GPUAmount',
965
+ GPUMemory: 'GPUMemory',
966
+ instanceType: 'InstanceType',
967
+ isAvailable: 'IsAvailable',
968
+ memory: 'Memory',
969
+ nonProtectSpotDiscount: 'NonProtectSpotDiscount',
970
+ spotDiscount: 'SpotDiscount',
971
+ stockStatus: 'StockStatus',
972
+ vendor: 'Vendor',
973
+ };
974
+ }
975
+
976
+ static types(): { [key: string]: any } {
977
+ return {
978
+ CPU: 'number',
979
+ GPU: 'string',
980
+ GPUAmount: 'number',
981
+ GPUMemory: 'number',
982
+ instanceType: 'string',
983
+ isAvailable: 'boolean',
984
+ memory: 'number',
985
+ nonProtectSpotDiscount: 'number',
986
+ spotDiscount: 'number',
987
+ stockStatus: 'string',
988
+ vendor: 'string',
989
+ };
990
+ }
991
+
992
+ validate() {
993
+ super.validate();
994
+ }
995
+
996
+ constructor(map?: { [key: string]: any }) {
997
+ super(map);
998
+ }
999
+ }
1000
+
1001
+ export class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
1002
+ /**
1003
+ * @remarks
1004
+ * Valid values:
1005
+ *
1006
+ * @example
1007
+ * 1
1008
+ */
1009
+ CPU?: number;
1010
+ /**
1011
+ * @remarks
1012
+ * The optional values for memory when CPU is set to a specific value as above.
1013
+ */
1014
+ memory?: number[];
1015
+ static names(): { [key: string]: string } {
1016
+ return {
1017
+ CPU: 'CPU',
1018
+ memory: 'Memory',
1019
+ };
1020
+ }
1021
+
1022
+ static types(): { [key: string]: any } {
1023
+ return {
1024
+ CPU: 'number',
1025
+ memory: { 'type': 'array', 'itemType': 'number' },
1026
+ };
1027
+ }
1028
+
1029
+ validate() {
1030
+ if(Array.isArray(this.memory)) {
1031
+ $dara.Model.validateArray(this.memory);
1032
+ }
1033
+ super.validate();
1034
+ }
1035
+
1036
+ constructor(map?: { [key: string]: any }) {
1037
+ super(map);
1038
+ }
1039
+ }
1040
+
859
1041
  export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
860
1042
  /**
861
1043
  * @remarks
@@ -2053,6 +2235,7 @@ export class ListGatewayDomainsResponseBodyCustomDomains extends $dara.Model {
2053
2235
  }
2054
2236
 
2055
2237
  export class ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList extends $dara.Model {
2238
+ authoritativeDnsEnabled?: boolean;
2056
2239
  /**
2057
2240
  * @remarks
2058
2241
  * The IP address.
@@ -2121,6 +2304,7 @@ export class ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList exten
2121
2304
  vpcId?: string;
2122
2305
  static names(): { [key: string]: string } {
2123
2306
  return {
2307
+ authoritativeDnsEnabled: 'AuthoritativeDnsEnabled',
2124
2308
  ip: 'Ip',
2125
2309
  securityGroupId: 'SecurityGroupId',
2126
2310
  status: 'Status',
@@ -2131,6 +2315,7 @@ export class ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList exten
2131
2315
 
2132
2316
  static types(): { [key: string]: any } {
2133
2317
  return {
2318
+ authoritativeDnsEnabled: 'boolean',
2134
2319
  ip: 'string',
2135
2320
  securityGroupId: 'string',
2136
2321
  status: 'string',
@@ -2372,6 +2557,13 @@ export class ListVirtualResourceResponseBodyVirtualResources extends $dara.Model
2372
2557
  * 2024-10-16T17:52:49Z
2373
2558
  */
2374
2559
  createTime?: string;
2560
+ /**
2561
+ * @remarks
2562
+ * The number of deployed services.
2563
+ *
2564
+ * @example
2565
+ * 1
2566
+ */
2375
2567
  serviceCount?: number;
2376
2568
  /**
2377
2569
  * @remarks
@@ -2810,7 +3002,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2810
3002
  instanceType?: string;
2811
3003
  /**
2812
3004
  * @remarks
2813
- * The priority of resource scheduling. A greater number specifies a higher priority.
3005
+ * The priority of resource scheduling. A greater number indicates a higher priority.
2814
3006
  *
2815
3007
  * @example
2816
3008
  * 6
@@ -2818,7 +3010,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2818
3010
  priority?: number;
2819
3011
  /**
2820
3012
  * @remarks
2821
- * The Lingjun resource quota ID.
3013
+ * The ID of the Lingjun resource quota.
2822
3014
  *
2823
3015
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2824
3016
  *
@@ -2828,7 +3020,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2828
3020
  quotaId?: string;
2829
3021
  /**
2830
3022
  * @remarks
2831
- * The region where the resource resides.
3023
+ * The region in which the resource resides.
2832
3024
  *
2833
3025
  * @example
2834
3026
  * cn-hangzhou
@@ -2836,7 +3028,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2836
3028
  region?: string;
2837
3029
  /**
2838
3030
  * @remarks
2839
- * The ID of the dedicated resource group. For information about how to query the ID of a dedicated resource group, see [ListResources](https://help.aliyun.com/document_detail/412133.html).
3031
+ * The ID of the dedicated resource group. For information about how to obtain the ID of a dedicated resource group, see [ListResources](https://help.aliyun.com/document_detail/412133.html).
2840
3032
  *
2841
3033
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2842
3034
  *
@@ -2848,7 +3040,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2848
3040
  * @remarks
2849
3041
  * The maximum price of preemptible instances in a public resource group.
2850
3042
  *
2851
- * > If you do not specify this parameter, preemptible instances are not used.
3043
+ * > If you leave this parameter empty, preemptible instances are not used.
2852
3044
  *
2853
3045
  * @example
2854
3046
  * 10.05
@@ -4700,6 +4892,7 @@ export class CreateGatewayResponse extends $dara.Model {
4700
4892
  }
4701
4893
 
4702
4894
  export class CreateGatewayIntranetLinkedVpcRequest extends $dara.Model {
4895
+ enableAuthoritativeDns?: boolean;
4703
4896
  /**
4704
4897
  * @remarks
4705
4898
  * The vSwitch ID.
@@ -4718,6 +4911,7 @@ export class CreateGatewayIntranetLinkedVpcRequest extends $dara.Model {
4718
4911
  vpcId?: string;
4719
4912
  static names(): { [key: string]: string } {
4720
4913
  return {
4914
+ enableAuthoritativeDns: 'EnableAuthoritativeDns',
4721
4915
  vSwitchId: 'VSwitchId',
4722
4916
  vpcId: 'VpcId',
4723
4917
  };
@@ -4725,6 +4919,7 @@ export class CreateGatewayIntranetLinkedVpcRequest extends $dara.Model {
4725
4919
 
4726
4920
  static types(): { [key: string]: any } {
4727
4921
  return {
4922
+ enableAuthoritativeDns: 'boolean',
4728
4923
  vSwitchId: 'string',
4729
4924
  vpcId: 'string',
4730
4925
  };
@@ -5031,6 +5226,10 @@ export class CreateResourceRequest extends $dara.Model {
5031
5226
  * ecs.c6.8xlarge
5032
5227
  */
5033
5228
  ecsInstanceType?: string;
5229
+ /**
5230
+ * @remarks
5231
+ * The custom tag.
5232
+ */
5034
5233
  labels?: { [key: string]: string };
5035
5234
  /**
5036
5235
  * @remarks
@@ -5269,6 +5468,10 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5269
5468
  * ecs.s6-c1m2.xlarge
5270
5469
  */
5271
5470
  ecsInstanceType?: string;
5471
+ /**
5472
+ * @remarks
5473
+ * The custom service tag.
5474
+ */
5272
5475
  labels?: { [key: string]: string };
5273
5476
  /**
5274
5477
  * @remarks
@@ -6328,10 +6531,17 @@ export class CreateServiceMirrorResponse extends $dara.Model {
6328
6531
  }
6329
6532
 
6330
6533
  export class CreateVirtualResourceRequest extends $dara.Model {
6534
+ /**
6535
+ * @remarks
6536
+ * Specifies whether to disable the retention period of preemptible instances.
6537
+ *
6538
+ * @example
6539
+ * true
6540
+ */
6331
6541
  disableSpotProtectionPeriod?: boolean;
6332
6542
  /**
6333
6543
  * @remarks
6334
- * The list of resources in the virtual resource group.
6544
+ * The resources in the virtual resource group.
6335
6545
  */
6336
6546
  resources?: CreateVirtualResourceRequestResources[];
6337
6547
  /**
@@ -7215,8 +7425,20 @@ export class DeleteResourceDLinkResponse extends $dara.Model {
7215
7425
  }
7216
7426
 
7217
7427
  export class DeleteResourceInstanceLabelRequest extends $dara.Model {
7428
+ /**
7429
+ * @remarks
7430
+ * Specifies whether the delete operation takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.
7431
+ */
7218
7432
  allInstances?: boolean;
7433
+ /**
7434
+ * @remarks
7435
+ * The instance IDs.
7436
+ */
7219
7437
  instanceIds?: string[];
7438
+ /**
7439
+ * @remarks
7440
+ * The keys of the tags that you want to delete.
7441
+ */
7220
7442
  keys?: string[];
7221
7443
  static names(): { [key: string]: string } {
7222
7444
  return {
@@ -7250,8 +7472,20 @@ export class DeleteResourceInstanceLabelRequest extends $dara.Model {
7250
7472
  }
7251
7473
 
7252
7474
  export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
7475
+ /**
7476
+ * @remarks
7477
+ * Specifies whether the delete operation takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.
7478
+ */
7253
7479
  allInstances?: boolean;
7480
+ /**
7481
+ * @remarks
7482
+ * The instance IDs.
7483
+ */
7254
7484
  instanceIdsShrink?: string;
7485
+ /**
7486
+ * @remarks
7487
+ * The keys of the tags that you want to delete.
7488
+ */
7255
7489
  keysShrink?: string;
7256
7490
  static names(): { [key: string]: string } {
7257
7491
  return {
@@ -7280,11 +7514,17 @@ export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
7280
7514
 
7281
7515
  export class DeleteResourceInstanceLabelResponseBody extends $dara.Model {
7282
7516
  /**
7517
+ * @remarks
7518
+ * The message.
7519
+ *
7283
7520
  * @example
7284
7521
  * success
7285
7522
  */
7286
7523
  message?: string;
7287
7524
  /**
7525
+ * @remarks
7526
+ * The request ID.
7527
+ *
7288
7528
  * @example
7289
7529
  * 40325405-579C-4D82********
7290
7530
  */
@@ -8709,6 +8949,13 @@ export class DescribeGatewayResponseBody extends $dara.Model {
8709
8949
  * 40325405-579C-4D82****
8710
8950
  */
8711
8951
  requestId?: string;
8952
+ /**
8953
+ * @remarks
8954
+ * Indicates whether the HTTP to HTTPS redirection is enabled.
8955
+ *
8956
+ * @example
8957
+ * true
8958
+ */
8712
8959
  SSLRedirectionEnabled?: boolean;
8713
8960
  /**
8714
8961
  * @remarks
@@ -8872,6 +9119,9 @@ export class DescribeGroupEndpointsResponseBody extends $dara.Model {
8872
9119
  /**
8873
9120
  * @remarks
8874
9121
  * The response message.
9122
+ *
9123
+ * @example
9124
+ * Execution successful.
8875
9125
  */
8876
9126
  message?: string;
8877
9127
  /**
@@ -8947,6 +9197,152 @@ export class DescribeGroupEndpointsResponse extends $dara.Model {
8947
9197
  }
8948
9198
  }
8949
9199
 
9200
+ export class DescribeMachineSpecRequest extends $dara.Model {
9201
+ /**
9202
+ * @remarks
9203
+ * This parameter is deprecated.
9204
+ *
9205
+ * @deprecated
9206
+ */
9207
+ instanceTypes?: string[];
9208
+ static names(): { [key: string]: string } {
9209
+ return {
9210
+ instanceTypes: 'InstanceTypes',
9211
+ };
9212
+ }
9213
+
9214
+ static types(): { [key: string]: any } {
9215
+ return {
9216
+ instanceTypes: { 'type': 'array', 'itemType': 'string' },
9217
+ };
9218
+ }
9219
+
9220
+ validate() {
9221
+ if(Array.isArray(this.instanceTypes)) {
9222
+ $dara.Model.validateArray(this.instanceTypes);
9223
+ }
9224
+ super.validate();
9225
+ }
9226
+
9227
+ constructor(map?: { [key: string]: any }) {
9228
+ super(map);
9229
+ }
9230
+ }
9231
+
9232
+ export class DescribeMachineSpecShrinkRequest extends $dara.Model {
9233
+ /**
9234
+ * @remarks
9235
+ * This parameter is deprecated.
9236
+ *
9237
+ * @deprecated
9238
+ */
9239
+ instanceTypesShrink?: string;
9240
+ static names(): { [key: string]: string } {
9241
+ return {
9242
+ instanceTypesShrink: 'InstanceTypes',
9243
+ };
9244
+ }
9245
+
9246
+ static types(): { [key: string]: any } {
9247
+ return {
9248
+ instanceTypesShrink: 'string',
9249
+ };
9250
+ }
9251
+
9252
+ validate() {
9253
+ super.validate();
9254
+ }
9255
+
9256
+ constructor(map?: { [key: string]: any }) {
9257
+ super(map);
9258
+ }
9259
+ }
9260
+
9261
+ export class DescribeMachineSpecResponseBody extends $dara.Model {
9262
+ /**
9263
+ * @remarks
9264
+ * The instance types when the resources are specified.
9265
+ */
9266
+ instanceMetas?: DescribeMachineSpecResponseBodyInstanceMetas[];
9267
+ /**
9268
+ * @remarks
9269
+ * The request ID.
9270
+ *
9271
+ * @example
9272
+ * 40325405-579C-4D82***
9273
+ */
9274
+ requestId?: string;
9275
+ /**
9276
+ * @remarks
9277
+ * The values that can be supported when the number of CPUs and memory size are specified for deployment.
9278
+ */
9279
+ types?: DescribeMachineSpecResponseBodyTypes[];
9280
+ static names(): { [key: string]: string } {
9281
+ return {
9282
+ instanceMetas: 'InstanceMetas',
9283
+ requestId: 'RequestId',
9284
+ types: 'Types',
9285
+ };
9286
+ }
9287
+
9288
+ static types(): { [key: string]: any } {
9289
+ return {
9290
+ instanceMetas: { 'type': 'array', 'itemType': DescribeMachineSpecResponseBodyInstanceMetas },
9291
+ requestId: 'string',
9292
+ types: { 'type': 'array', 'itemType': DescribeMachineSpecResponseBodyTypes },
9293
+ };
9294
+ }
9295
+
9296
+ validate() {
9297
+ if(Array.isArray(this.instanceMetas)) {
9298
+ $dara.Model.validateArray(this.instanceMetas);
9299
+ }
9300
+ if(Array.isArray(this.types)) {
9301
+ $dara.Model.validateArray(this.types);
9302
+ }
9303
+ super.validate();
9304
+ }
9305
+
9306
+ constructor(map?: { [key: string]: any }) {
9307
+ super(map);
9308
+ }
9309
+ }
9310
+
9311
+ export class DescribeMachineSpecResponse extends $dara.Model {
9312
+ headers?: { [key: string]: string };
9313
+ statusCode?: number;
9314
+ body?: DescribeMachineSpecResponseBody;
9315
+ static names(): { [key: string]: string } {
9316
+ return {
9317
+ headers: 'headers',
9318
+ statusCode: 'statusCode',
9319
+ body: 'body',
9320
+ };
9321
+ }
9322
+
9323
+ static types(): { [key: string]: any } {
9324
+ return {
9325
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9326
+ statusCode: 'number',
9327
+ body: DescribeMachineSpecResponseBody,
9328
+ };
9329
+ }
9330
+
9331
+ validate() {
9332
+ if(this.headers) {
9333
+ $dara.Model.validateMap(this.headers);
9334
+ }
9335
+ if(this.body && typeof (this.body as any).validate === 'function') {
9336
+ (this.body as any).validate();
9337
+ }
9338
+ super.validate();
9339
+ }
9340
+
9341
+ constructor(map?: { [key: string]: any }) {
9342
+ super(map);
9343
+ }
9344
+ }
9345
+
8950
9346
  export class DescribeResourceResponseBody extends $dara.Model {
8951
9347
  /**
8952
9348
  * @remarks
@@ -8964,6 +9360,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8964
9360
  * 16
8965
9361
  */
8966
9362
  cpuCount?: number;
9363
+ /**
9364
+ * @remarks
9365
+ * The number of vCPUs that is used.
9366
+ *
9367
+ * @example
9368
+ * 8
9369
+ */
8967
9370
  cpuUsed?: number;
8968
9371
  /**
8969
9372
  * @remarks
@@ -8989,6 +9392,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8989
9392
  * 1
8990
9393
  */
8991
9394
  gpuCount?: number;
9395
+ /**
9396
+ * @remarks
9397
+ * The number of GPUs that is used.
9398
+ *
9399
+ * @example
9400
+ * 2
9401
+ */
8992
9402
  gpuUsed?: number;
8993
9403
  /**
8994
9404
  * @remarks
@@ -8998,7 +9408,21 @@ export class DescribeResourceResponseBody extends $dara.Model {
8998
9408
  * 4
8999
9409
  */
9000
9410
  instanceCount?: number;
9411
+ /**
9412
+ * @remarks
9413
+ * The total memory size. Unit: MB.
9414
+ *
9415
+ * @example
9416
+ * 8192
9417
+ */
9001
9418
  memory?: number;
9419
+ /**
9420
+ * @remarks
9421
+ * The size of memory that is used. Unit: MB.
9422
+ *
9423
+ * @example
9424
+ * 2048
9425
+ */
9002
9426
  memoryUsed?: number;
9003
9427
  /**
9004
9428
  * @remarks
@@ -9753,6 +10177,9 @@ export class DescribeServiceEndpointsResponseBody extends $dara.Model {
9753
10177
  /**
9754
10178
  * @remarks
9755
10179
  * The returned message.
10180
+ *
10181
+ * @example
10182
+ * Execution successful.
9756
10183
  */
9757
10184
  message?: string;
9758
10185
  /**
@@ -10675,6 +11102,13 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10675
11102
  * 2024-10-16T17:52:49Z
10676
11103
  */
10677
11104
  createTime?: string;
11105
+ /**
11106
+ * @remarks
11107
+ * Indicates whether the retention period of preemptible instances was disabled.
11108
+ *
11109
+ * @example
11110
+ * true
11111
+ */
10678
11112
  disableSpotProtectionPeriod?: boolean;
10679
11113
  /**
10680
11114
  * @remarks
@@ -10689,6 +11123,13 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10689
11123
  * The list of resources in the virtual resource group.
10690
11124
  */
10691
11125
  resources?: DescribeVirtualResourceResponseBodyResources[];
11126
+ /**
11127
+ * @remarks
11128
+ * The number of deployed services.
11129
+ *
11130
+ * @example
11131
+ * 1
11132
+ */
10692
11133
  serviceCount?: number;
10693
11134
  /**
10694
11135
  * @remarks
@@ -12051,6 +12492,13 @@ export class ListResourceInstanceWorkerRequest extends $dara.Model {
12051
12492
  * 20
12052
12493
  */
12053
12494
  pageSize?: number;
12495
+ /**
12496
+ * @remarks
12497
+ * The worker name.
12498
+ *
12499
+ * @example
12500
+ * test-fd95xxxxx-xxxxxx
12501
+ */
12054
12502
  workerName?: string;
12055
12503
  static names(): { [key: string]: string } {
12056
12504
  return {
@@ -12330,6 +12778,10 @@ export class ListResourceInstancesRequest extends $dara.Model {
12330
12778
  * Ready
12331
12779
  */
12332
12780
  instanceStatus?: string;
12781
+ /**
12782
+ * @remarks
12783
+ * The tag.
12784
+ */
12333
12785
  label?: { [key: string]: string };
12334
12786
  /**
12335
12787
  * @remarks
@@ -12633,6 +13085,10 @@ export class ListResourceInstancesShrinkRequest extends $dara.Model {
12633
13085
  * Ready
12634
13086
  */
12635
13087
  instanceStatus?: string;
13088
+ /**
13089
+ * @remarks
13090
+ * The tag.
13091
+ */
12636
13092
  labelShrink?: string;
12637
13093
  /**
12638
13094
  * @remarks
@@ -13036,6 +13492,16 @@ export class ListResourceServicesResponse extends $dara.Model {
13036
13492
  }
13037
13493
 
13038
13494
  export class ListResourcesRequest extends $dara.Model {
13495
+ /**
13496
+ * @remarks
13497
+ * The sorting order. Valid values:
13498
+ *
13499
+ * * Desc
13500
+ * * Asc
13501
+ *
13502
+ * @example
13503
+ * Desc
13504
+ */
13039
13505
  order?: string;
13040
13506
  /**
13041
13507
  * @remarks
@@ -13069,6 +13535,13 @@ export class ListResourcesRequest extends $dara.Model {
13069
13535
  * MyResource
13070
13536
  */
13071
13537
  resourceName?: string;
13538
+ /**
13539
+ * @remarks
13540
+ * The resource group status.
13541
+ *
13542
+ * @example
13543
+ * ResourceReady
13544
+ */
13072
13545
  resourceStatus?: string;
13073
13546
  /**
13074
13547
  * @remarks
@@ -13081,6 +13554,26 @@ export class ListResourcesRequest extends $dara.Model {
13081
13554
  * Dedicated
13082
13555
  */
13083
13556
  resourceType?: string;
13557
+ /**
13558
+ * @remarks
13559
+ * The condition by which the results are sorted. By default, the query results are sorted by the timestamp type in descending order.
13560
+ *
13561
+ * Valid values:
13562
+ *
13563
+ * * PrePaidInstanceCount
13564
+ * * CpuCount
13565
+ * * Memory
13566
+ * * CreateTime
13567
+ * * PostPaidInstanceCount
13568
+ * * MemoryUsed
13569
+ * * GpuCount
13570
+ * * GpuUsed
13571
+ * * CpuUsed
13572
+ * * ServiceCount
13573
+ *
13574
+ * @example
13575
+ * CreateTime
13576
+ */
13084
13577
  sort?: string;
13085
13578
  static names(): { [key: string]: string } {
13086
13579
  return {
@@ -13902,6 +14395,7 @@ export class ListServicesRequest extends $dara.Model {
13902
14395
  * eas-r-hd0qwy8cxxxx
13903
14396
  */
13904
14397
  resourceName?: string;
14398
+ resourceType?: string;
13905
14399
  /**
13906
14400
  * @remarks
13907
14401
  * The server role.
@@ -14167,6 +14661,7 @@ export class ListServicesRequest extends $dara.Model {
14167
14661
  parentServiceUid: 'ParentServiceUid',
14168
14662
  quotaId: 'QuotaId',
14169
14663
  resourceName: 'ResourceName',
14664
+ resourceType: 'ResourceType',
14170
14665
  role: 'Role',
14171
14666
  serviceName: 'ServiceName',
14172
14667
  serviceStatus: 'ServiceStatus',
@@ -14189,6 +14684,7 @@ export class ListServicesRequest extends $dara.Model {
14189
14684
  parentServiceUid: 'string',
14190
14685
  quotaId: 'string',
14191
14686
  resourceName: 'string',
14687
+ resourceType: 'string',
14192
14688
  role: 'string',
14193
14689
  serviceName: 'string',
14194
14690
  serviceStatus: 'string',
@@ -14292,6 +14788,7 @@ export class ListServicesShrinkRequest extends $dara.Model {
14292
14788
  * eas-r-hd0qwy8cxxxx
14293
14789
  */
14294
14790
  resourceName?: string;
14791
+ resourceType?: string;
14295
14792
  /**
14296
14793
  * @remarks
14297
14794
  * The server role.
@@ -14557,6 +15054,7 @@ export class ListServicesShrinkRequest extends $dara.Model {
14557
15054
  parentServiceUid: 'ParentServiceUid',
14558
15055
  quotaId: 'QuotaId',
14559
15056
  resourceName: 'ResourceName',
15057
+ resourceType: 'ResourceType',
14560
15058
  role: 'Role',
14561
15059
  serviceName: 'ServiceName',
14562
15060
  serviceStatus: 'ServiceStatus',
@@ -14579,6 +15077,7 @@ export class ListServicesShrinkRequest extends $dara.Model {
14579
15077
  parentServiceUid: 'string',
14580
15078
  quotaId: 'string',
14581
15079
  resourceName: 'string',
15080
+ resourceType: 'string',
14582
15081
  role: 'string',
14583
15082
  serviceName: 'string',
14584
15083
  serviceStatus: 'string',
@@ -14873,7 +15372,7 @@ export class ListVirtualResourceResponseBody extends $dara.Model {
14873
15372
  totalCount?: number;
14874
15373
  /**
14875
15374
  * @remarks
14876
- * The list of virtual resource groups.
15375
+ * The virtual resource groups.
14877
15376
  */
14878
15377
  virtualResources?: ListVirtualResourceResponseBodyVirtualResources[];
14879
15378
  static names(): { [key: string]: string } {
@@ -15628,7 +16127,7 @@ export class UpdateAppServiceResponseBody extends $dara.Model {
15628
16127
  * The returned message.
15629
16128
  *
15630
16129
  * @example
15631
- * Succee
16130
+ * Success
15632
16131
  */
15633
16132
  message?: string;
15634
16133
  /**
@@ -15814,37 +16313,41 @@ export class UpdateGatewayRequest extends $dara.Model {
15814
16313
  * Valid values:
15815
16314
  *
15816
16315
  * * true
15817
- *
15818
- * <!-- -->
15819
- *
15820
- * <!-- -->
15821
- *
15822
- * <!-- -->
15823
- *
15824
16316
  * * false
15825
16317
  *
15826
- * <!-- -->
15827
- *
15828
- * <!-- -->
15829
- *
15830
- * <!-- -->
15831
- *
15832
16318
  * @example
15833
16319
  * false
15834
16320
  */
15835
16321
  enableInternet?: boolean;
15836
16322
  /**
15837
16323
  * @remarks
15838
- * Specifies whether to enable internal network access. Default value: true.
16324
+ * Specifies whether to enable private access. Default value: true.
16325
+ *
16326
+ * Valid values:
16327
+ *
16328
+ * * true
16329
+ * * false
15839
16330
  *
15840
16331
  * @example
15841
16332
  * true
15842
16333
  */
15843
16334
  enableIntranet?: boolean;
16335
+ /**
16336
+ * @remarks
16337
+ * Specifies whether to enable HTTP to HTTPS redirection. Default value: false.
16338
+ *
16339
+ * @example
16340
+ * false
16341
+ */
15844
16342
  enableSSLRedirection?: boolean;
15845
16343
  /**
15846
16344
  * @remarks
15847
- * The instance type used for the private gateway.
16345
+ * The instance type used by the private gateway. Valid values:
16346
+ *
16347
+ * * 2c4g
16348
+ * * 4c8g
16349
+ * * 8c16g
16350
+ * * 16c32g
15848
16351
  *
15849
16352
  * @example
15850
16353
  * ecs.c6.4xlarge
@@ -15852,7 +16355,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15852
16355
  instanceType?: string;
15853
16356
  /**
15854
16357
  * @remarks
15855
- * Indicates whether it is the default private gateway.
16358
+ * Specifies whether it is the default private gateway.
15856
16359
  *
15857
16360
  * @example
15858
16361
  * true
@@ -15860,7 +16363,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15860
16363
  isDefault?: boolean;
15861
16364
  /**
15862
16365
  * @remarks
15863
- * The private gateway alias.
16366
+ * The alias of the private gateway.
15864
16367
  *
15865
16368
  * @example
15866
16369
  * mygateway1
@@ -16379,11 +16882,22 @@ export class UpdateResourceInstanceResponse extends $dara.Model {
16379
16882
 
16380
16883
  export class UpdateResourceInstanceLabelRequest extends $dara.Model {
16381
16884
  /**
16885
+ * @remarks
16886
+ * Specifies whether the modification takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.
16887
+ *
16382
16888
  * @example
16383
16889
  * false
16384
16890
  */
16385
16891
  allInstances?: boolean;
16892
+ /**
16893
+ * @remarks
16894
+ * The instance IDs.
16895
+ */
16386
16896
  instanceIds?: string[];
16897
+ /**
16898
+ * @remarks
16899
+ * The custom tag.
16900
+ */
16387
16901
  labels?: { [key: string]: string };
16388
16902
  static names(): { [key: string]: string } {
16389
16903
  return {
@@ -16418,11 +16932,22 @@ export class UpdateResourceInstanceLabelRequest extends $dara.Model {
16418
16932
 
16419
16933
  export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
16420
16934
  /**
16935
+ * @remarks
16936
+ * Specifies whether the modification takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.
16937
+ *
16421
16938
  * @example
16422
16939
  * false
16423
16940
  */
16424
16941
  allInstances?: boolean;
16942
+ /**
16943
+ * @remarks
16944
+ * The instance IDs.
16945
+ */
16425
16946
  instanceIdsShrink?: string;
16947
+ /**
16948
+ * @remarks
16949
+ * The custom tag.
16950
+ */
16426
16951
  labels?: { [key: string]: string };
16427
16952
  static names(): { [key: string]: string } {
16428
16953
  return {
@@ -16454,13 +16979,16 @@ export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
16454
16979
 
16455
16980
  export class UpdateResourceInstanceLabelResponseBody extends $dara.Model {
16456
16981
  /**
16982
+ * @remarks
16983
+ * The message.
16984
+ *
16457
16985
  * @example
16458
16986
  * Success
16459
16987
  */
16460
16988
  message?: string;
16461
16989
  /**
16462
16990
  * @remarks
16463
- * Id of the request
16991
+ * The request ID.
16464
16992
  *
16465
16993
  * @example
16466
16994
  * 40325405-579C-4D82****
@@ -17449,17 +17977,24 @@ export class UpdateServiceVersionResponse extends $dara.Model {
17449
17977
  }
17450
17978
 
17451
17979
  export class UpdateVirtualResourceRequest extends $dara.Model {
17980
+ /**
17981
+ * @remarks
17982
+ * Specifies whether to disable the retention period of preemptible instances.
17983
+ *
17984
+ * @example
17985
+ * true
17986
+ */
17452
17987
  disableSpotProtectionPeriod?: boolean;
17453
17988
  /**
17454
17989
  * @remarks
17455
- * The list of resources in the virtual resource group.
17990
+ * The resources in the virtual resource group.
17456
17991
  *
17457
- * > If you specify this parameter, previous data are overwritten.
17992
+ * > If you specify this parameter, previous data is overwritten.
17458
17993
  */
17459
17994
  resources?: UpdateVirtualResourceRequestResources[];
17460
17995
  /**
17461
17996
  * @remarks
17462
- * The new name for the virtual resource group.
17997
+ * The new name of the virtual resource group.
17463
17998
  *
17464
17999
  * @example
17465
18000
  * NewMyVirtualResource
@@ -18037,6 +18572,10 @@ export default class Client extends OpenApi {
18037
18572
  async createGatewayIntranetLinkedVpcWithOptions(ClusterId: string, GatewayId: string, request: CreateGatewayIntranetLinkedVpcRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<CreateGatewayIntranetLinkedVpcResponse> {
18038
18573
  request.validate();
18039
18574
  let query : {[key: string ]: any} = { };
18575
+ if (!$dara.isNull(request.enableAuthoritativeDns)) {
18576
+ query["EnableAuthoritativeDns"] = request.enableAuthoritativeDns;
18577
+ }
18578
+
18040
18579
  if (!$dara.isNull(request.vSwitchId)) {
18041
18580
  query["VSwitchId"] = request.vSwitchId;
18042
18581
  }
@@ -18994,7 +19533,7 @@ export default class Client extends OpenApi {
18994
19533
  }
18995
19534
 
18996
19535
  /**
18997
- * 删除资源组实例标签
19536
+ * Deletes the tags of an instance in a resource group.
18998
19537
  *
18999
19538
  * @param tmpReq - DeleteResourceInstanceLabelRequest
19000
19539
  * @param headers - map
@@ -19050,7 +19589,7 @@ export default class Client extends OpenApi {
19050
19589
  }
19051
19590
 
19052
19591
  /**
19053
- * 删除资源组实例标签
19592
+ * Deletes the tags of an instance in a resource group.
19054
19593
  *
19055
19594
  * @param request - DeleteResourceInstanceLabelRequest
19056
19595
  * @returns DeleteResourceInstanceLabelResponse
@@ -19679,6 +20218,62 @@ export default class Client extends OpenApi {
19679
20218
  return await this.describeGroupEndpointsWithOptions(ClusterId, GroupName, headers, runtime);
19680
20219
  }
19681
20220
 
20221
+ /**
20222
+ * Queries a list of instance types for an available instance in a shared resource group.
20223
+ *
20224
+ * @param tmpReq - DescribeMachineSpecRequest
20225
+ * @param headers - map
20226
+ * @param runtime - runtime options for this request RuntimeOptions
20227
+ * @returns DescribeMachineSpecResponse
20228
+ */
20229
+ async describeMachineSpecWithOptions(tmpReq: DescribeMachineSpecRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DescribeMachineSpecResponse> {
20230
+ tmpReq.validate();
20231
+ let request = new DescribeMachineSpecShrinkRequest({ });
20232
+ OpenApiUtil.convert(tmpReq, request);
20233
+ if (!$dara.isNull(tmpReq.instanceTypes)) {
20234
+ request.instanceTypesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceTypes, "InstanceTypes", "simple");
20235
+ }
20236
+
20237
+ let query : {[key: string ]: any} = { };
20238
+ if (!$dara.isNull(request.instanceTypesShrink)) {
20239
+ query["InstanceTypes"] = request.instanceTypesShrink;
20240
+ }
20241
+
20242
+ let req = new $OpenApiUtil.OpenApiRequest({
20243
+ headers: headers,
20244
+ query: OpenApiUtil.query(query),
20245
+ });
20246
+ let params = new $OpenApiUtil.Params({
20247
+ action: "DescribeMachineSpec",
20248
+ version: "2021-07-01",
20249
+ protocol: "HTTPS",
20250
+ pathname: `/api/v2/public/instance_types`,
20251
+ method: "GET",
20252
+ authType: "AK",
20253
+ style: "ROA",
20254
+ reqBodyType: "json",
20255
+ bodyType: "json",
20256
+ });
20257
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
20258
+ return $dara.cast<DescribeMachineSpecResponse>(await this.callApi(params, req, runtime), new DescribeMachineSpecResponse({}));
20259
+ } else {
20260
+ return $dara.cast<DescribeMachineSpecResponse>(await this.execute(params, req, runtime), new DescribeMachineSpecResponse({}));
20261
+ }
20262
+
20263
+ }
20264
+
20265
+ /**
20266
+ * Queries a list of instance types for an available instance in a shared resource group.
20267
+ *
20268
+ * @param request - DescribeMachineSpecRequest
20269
+ * @returns DescribeMachineSpecResponse
20270
+ */
20271
+ async describeMachineSpec(request: DescribeMachineSpecRequest): Promise<DescribeMachineSpecResponse> {
20272
+ let runtime = new $dara.RuntimeOptions({ });
20273
+ let headers : {[key: string ]: string} = { };
20274
+ return await this.describeMachineSpecWithOptions(request, headers, runtime);
20275
+ }
20276
+
19682
20277
  /**
19683
20278
  * Queries the information about a resource group.
19684
20279
  *
@@ -21440,6 +22035,10 @@ export default class Client extends OpenApi {
21440
22035
  query["ResourceName"] = request.resourceName;
21441
22036
  }
21442
22037
 
22038
+ if (!$dara.isNull(request.resourceType)) {
22039
+ query["ResourceType"] = request.resourceType;
22040
+ }
22041
+
21443
22042
  if (!$dara.isNull(request.role)) {
21444
22043
  query["Role"] = request.role;
21445
22044
  }
@@ -22261,7 +22860,7 @@ export default class Client extends OpenApi {
22261
22860
  }
22262
22861
 
22263
22862
  /**
22264
- * 更新资源组实例标签
22863
+ * Updates the tag of an instance in a resource group.
22265
22864
  *
22266
22865
  * @param tmpReq - UpdateResourceInstanceLabelRequest
22267
22866
  * @param headers - map
@@ -22315,7 +22914,7 @@ export default class Client extends OpenApi {
22315
22914
  }
22316
22915
 
22317
22916
  /**
22318
- * 更新资源组实例标签
22917
+ * Updates the tag of an instance in a resource group.
22319
22918
  *
22320
22919
  * @param request - UpdateResourceInstanceLabelRequest
22321
22920
  * @returns UpdateResourceInstanceLabelResponse