@alicloud/eas20210701 6.5.0 → 6.6.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
@@ -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,136 @@ export class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
856
856
  }
857
857
  }
858
858
 
859
+ export class DescribeMachineSpecResponseBodyInstanceMetas extends $dara.Model {
860
+ /**
861
+ * @example
862
+ * 32
863
+ */
864
+ CPU?: number;
865
+ /**
866
+ * @example
867
+ * GU30
868
+ */
869
+ GPU?: string;
870
+ /**
871
+ * @example
872
+ * 1
873
+ */
874
+ GPUAmount?: number;
875
+ /**
876
+ * @example
877
+ * 24
878
+ */
879
+ GPUMemory?: number;
880
+ /**
881
+ * @example
882
+ * ml.gu7i.c32m188.1-gu30
883
+ */
884
+ instanceType?: string;
885
+ /**
886
+ * @example
887
+ * true
888
+ */
889
+ isAvailable?: boolean;
890
+ /**
891
+ * @example
892
+ * 188
893
+ */
894
+ memory?: number;
895
+ /**
896
+ * @example
897
+ * 0.1
898
+ */
899
+ nonProtectSpotDiscount?: number;
900
+ /**
901
+ * @example
902
+ * 0.12
903
+ */
904
+ spotDiscount?: number;
905
+ /**
906
+ * @example
907
+ * WithStock
908
+ */
909
+ stockStatus?: string;
910
+ /**
911
+ * @example
912
+ * ECS
913
+ */
914
+ vendor?: string;
915
+ static names(): { [key: string]: string } {
916
+ return {
917
+ CPU: 'CPU',
918
+ GPU: 'GPU',
919
+ GPUAmount: 'GPUAmount',
920
+ GPUMemory: 'GPUMemory',
921
+ instanceType: 'InstanceType',
922
+ isAvailable: 'IsAvailable',
923
+ memory: 'Memory',
924
+ nonProtectSpotDiscount: 'NonProtectSpotDiscount',
925
+ spotDiscount: 'SpotDiscount',
926
+ stockStatus: 'StockStatus',
927
+ vendor: 'Vendor',
928
+ };
929
+ }
930
+
931
+ static types(): { [key: string]: any } {
932
+ return {
933
+ CPU: 'number',
934
+ GPU: 'string',
935
+ GPUAmount: 'number',
936
+ GPUMemory: 'number',
937
+ instanceType: 'string',
938
+ isAvailable: 'boolean',
939
+ memory: 'number',
940
+ nonProtectSpotDiscount: 'number',
941
+ spotDiscount: 'number',
942
+ stockStatus: 'string',
943
+ vendor: 'string',
944
+ };
945
+ }
946
+
947
+ validate() {
948
+ super.validate();
949
+ }
950
+
951
+ constructor(map?: { [key: string]: any }) {
952
+ super(map);
953
+ }
954
+ }
955
+
956
+ export class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
957
+ /**
958
+ * @example
959
+ * 1
960
+ */
961
+ CPU?: number;
962
+ memory?: number[];
963
+ static names(): { [key: string]: string } {
964
+ return {
965
+ CPU: 'CPU',
966
+ memory: 'Memory',
967
+ };
968
+ }
969
+
970
+ static types(): { [key: string]: any } {
971
+ return {
972
+ CPU: 'number',
973
+ memory: { 'type': 'array', 'itemType': 'number' },
974
+ };
975
+ }
976
+
977
+ validate() {
978
+ if(Array.isArray(this.memory)) {
979
+ $dara.Model.validateArray(this.memory);
980
+ }
981
+ super.validate();
982
+ }
983
+
984
+ constructor(map?: { [key: string]: any }) {
985
+ super(map);
986
+ }
987
+ }
988
+
859
989
  export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
860
990
  /**
861
991
  * @remarks
@@ -2372,6 +2502,13 @@ export class ListVirtualResourceResponseBodyVirtualResources extends $dara.Model
2372
2502
  * 2024-10-16T17:52:49Z
2373
2503
  */
2374
2504
  createTime?: string;
2505
+ /**
2506
+ * @remarks
2507
+ * The number of deployed services.
2508
+ *
2509
+ * @example
2510
+ * 1
2511
+ */
2375
2512
  serviceCount?: number;
2376
2513
  /**
2377
2514
  * @remarks
@@ -2810,7 +2947,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2810
2947
  instanceType?: string;
2811
2948
  /**
2812
2949
  * @remarks
2813
- * The priority of resource scheduling. A greater number specifies a higher priority.
2950
+ * The priority of resource scheduling. A greater number indicates a higher priority.
2814
2951
  *
2815
2952
  * @example
2816
2953
  * 6
@@ -2818,7 +2955,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2818
2955
  priority?: number;
2819
2956
  /**
2820
2957
  * @remarks
2821
- * The Lingjun resource quota ID.
2958
+ * The ID of the Lingjun resource quota.
2822
2959
  *
2823
2960
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2824
2961
  *
@@ -2828,7 +2965,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2828
2965
  quotaId?: string;
2829
2966
  /**
2830
2967
  * @remarks
2831
- * The region where the resource resides.
2968
+ * The region in which the resource resides.
2832
2969
  *
2833
2970
  * @example
2834
2971
  * cn-hangzhou
@@ -2836,7 +2973,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2836
2973
  region?: string;
2837
2974
  /**
2838
2975
  * @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).
2976
+ * 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
2977
  *
2841
2978
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2842
2979
  *
@@ -2848,7 +2985,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2848
2985
  * @remarks
2849
2986
  * The maximum price of preemptible instances in a public resource group.
2850
2987
  *
2851
- * > If you do not specify this parameter, preemptible instances are not used.
2988
+ * > If you leave this parameter empty, preemptible instances are not used.
2852
2989
  *
2853
2990
  * @example
2854
2991
  * 10.05
@@ -5031,6 +5168,10 @@ export class CreateResourceRequest extends $dara.Model {
5031
5168
  * ecs.c6.8xlarge
5032
5169
  */
5033
5170
  ecsInstanceType?: string;
5171
+ /**
5172
+ * @remarks
5173
+ * The custom tag.
5174
+ */
5034
5175
  labels?: { [key: string]: string };
5035
5176
  /**
5036
5177
  * @remarks
@@ -5269,6 +5410,10 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5269
5410
  * ecs.s6-c1m2.xlarge
5270
5411
  */
5271
5412
  ecsInstanceType?: string;
5413
+ /**
5414
+ * @remarks
5415
+ * The custom service tag.
5416
+ */
5272
5417
  labels?: { [key: string]: string };
5273
5418
  /**
5274
5419
  * @remarks
@@ -6328,10 +6473,17 @@ export class CreateServiceMirrorResponse extends $dara.Model {
6328
6473
  }
6329
6474
 
6330
6475
  export class CreateVirtualResourceRequest extends $dara.Model {
6476
+ /**
6477
+ * @remarks
6478
+ * Specifies whether to disable the retention period of preemptible instances.
6479
+ *
6480
+ * @example
6481
+ * true
6482
+ */
6331
6483
  disableSpotProtectionPeriod?: boolean;
6332
6484
  /**
6333
6485
  * @remarks
6334
- * The list of resources in the virtual resource group.
6486
+ * The resources in the virtual resource group.
6335
6487
  */
6336
6488
  resources?: CreateVirtualResourceRequestResources[];
6337
6489
  /**
@@ -7215,8 +7367,20 @@ export class DeleteResourceDLinkResponse extends $dara.Model {
7215
7367
  }
7216
7368
 
7217
7369
  export class DeleteResourceInstanceLabelRequest extends $dara.Model {
7370
+ /**
7371
+ * @remarks
7372
+ * 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.
7373
+ */
7218
7374
  allInstances?: boolean;
7375
+ /**
7376
+ * @remarks
7377
+ * The instance IDs.
7378
+ */
7219
7379
  instanceIds?: string[];
7380
+ /**
7381
+ * @remarks
7382
+ * The keys of the tags that you want to delete.
7383
+ */
7220
7384
  keys?: string[];
7221
7385
  static names(): { [key: string]: string } {
7222
7386
  return {
@@ -7250,8 +7414,20 @@ export class DeleteResourceInstanceLabelRequest extends $dara.Model {
7250
7414
  }
7251
7415
 
7252
7416
  export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
7417
+ /**
7418
+ * @remarks
7419
+ * 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.
7420
+ */
7253
7421
  allInstances?: boolean;
7422
+ /**
7423
+ * @remarks
7424
+ * The instance IDs.
7425
+ */
7254
7426
  instanceIdsShrink?: string;
7427
+ /**
7428
+ * @remarks
7429
+ * The keys of the tags that you want to delete.
7430
+ */
7255
7431
  keysShrink?: string;
7256
7432
  static names(): { [key: string]: string } {
7257
7433
  return {
@@ -7280,11 +7456,17 @@ export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
7280
7456
 
7281
7457
  export class DeleteResourceInstanceLabelResponseBody extends $dara.Model {
7282
7458
  /**
7459
+ * @remarks
7460
+ * The message.
7461
+ *
7283
7462
  * @example
7284
7463
  * success
7285
7464
  */
7286
7465
  message?: string;
7287
7466
  /**
7467
+ * @remarks
7468
+ * The request ID.
7469
+ *
7288
7470
  * @example
7289
7471
  * 40325405-579C-4D82********
7290
7472
  */
@@ -8709,6 +8891,13 @@ export class DescribeGatewayResponseBody extends $dara.Model {
8709
8891
  * 40325405-579C-4D82****
8710
8892
  */
8711
8893
  requestId?: string;
8894
+ /**
8895
+ * @remarks
8896
+ * Indicates whether the HTTP to HTTPS redirection is enabled.
8897
+ *
8898
+ * @example
8899
+ * true
8900
+ */
8712
8901
  SSLRedirectionEnabled?: boolean;
8713
8902
  /**
8714
8903
  * @remarks
@@ -8872,6 +9061,9 @@ export class DescribeGroupEndpointsResponseBody extends $dara.Model {
8872
9061
  /**
8873
9062
  * @remarks
8874
9063
  * The response message.
9064
+ *
9065
+ * @example
9066
+ * Execution successful.
8875
9067
  */
8876
9068
  message?: string;
8877
9069
  /**
@@ -8947,6 +9139,135 @@ export class DescribeGroupEndpointsResponse extends $dara.Model {
8947
9139
  }
8948
9140
  }
8949
9141
 
9142
+ export class DescribeMachineSpecRequest extends $dara.Model {
9143
+ /**
9144
+ * @deprecated
9145
+ */
9146
+ instanceTypes?: string[];
9147
+ static names(): { [key: string]: string } {
9148
+ return {
9149
+ instanceTypes: 'InstanceTypes',
9150
+ };
9151
+ }
9152
+
9153
+ static types(): { [key: string]: any } {
9154
+ return {
9155
+ instanceTypes: { 'type': 'array', 'itemType': 'string' },
9156
+ };
9157
+ }
9158
+
9159
+ validate() {
9160
+ if(Array.isArray(this.instanceTypes)) {
9161
+ $dara.Model.validateArray(this.instanceTypes);
9162
+ }
9163
+ super.validate();
9164
+ }
9165
+
9166
+ constructor(map?: { [key: string]: any }) {
9167
+ super(map);
9168
+ }
9169
+ }
9170
+
9171
+ export class DescribeMachineSpecShrinkRequest extends $dara.Model {
9172
+ /**
9173
+ * @deprecated
9174
+ */
9175
+ instanceTypesShrink?: string;
9176
+ static names(): { [key: string]: string } {
9177
+ return {
9178
+ instanceTypesShrink: 'InstanceTypes',
9179
+ };
9180
+ }
9181
+
9182
+ static types(): { [key: string]: any } {
9183
+ return {
9184
+ instanceTypesShrink: 'string',
9185
+ };
9186
+ }
9187
+
9188
+ validate() {
9189
+ super.validate();
9190
+ }
9191
+
9192
+ constructor(map?: { [key: string]: any }) {
9193
+ super(map);
9194
+ }
9195
+ }
9196
+
9197
+ export class DescribeMachineSpecResponseBody extends $dara.Model {
9198
+ instanceMetas?: DescribeMachineSpecResponseBodyInstanceMetas[];
9199
+ /**
9200
+ * @example
9201
+ * 40325405-579C-4D82***
9202
+ */
9203
+ requestId?: string;
9204
+ types?: DescribeMachineSpecResponseBodyTypes[];
9205
+ static names(): { [key: string]: string } {
9206
+ return {
9207
+ instanceMetas: 'InstanceMetas',
9208
+ requestId: 'RequestId',
9209
+ types: 'Types',
9210
+ };
9211
+ }
9212
+
9213
+ static types(): { [key: string]: any } {
9214
+ return {
9215
+ instanceMetas: { 'type': 'array', 'itemType': DescribeMachineSpecResponseBodyInstanceMetas },
9216
+ requestId: 'string',
9217
+ types: { 'type': 'array', 'itemType': DescribeMachineSpecResponseBodyTypes },
9218
+ };
9219
+ }
9220
+
9221
+ validate() {
9222
+ if(Array.isArray(this.instanceMetas)) {
9223
+ $dara.Model.validateArray(this.instanceMetas);
9224
+ }
9225
+ if(Array.isArray(this.types)) {
9226
+ $dara.Model.validateArray(this.types);
9227
+ }
9228
+ super.validate();
9229
+ }
9230
+
9231
+ constructor(map?: { [key: string]: any }) {
9232
+ super(map);
9233
+ }
9234
+ }
9235
+
9236
+ export class DescribeMachineSpecResponse extends $dara.Model {
9237
+ headers?: { [key: string]: string };
9238
+ statusCode?: number;
9239
+ body?: DescribeMachineSpecResponseBody;
9240
+ static names(): { [key: string]: string } {
9241
+ return {
9242
+ headers: 'headers',
9243
+ statusCode: 'statusCode',
9244
+ body: 'body',
9245
+ };
9246
+ }
9247
+
9248
+ static types(): { [key: string]: any } {
9249
+ return {
9250
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9251
+ statusCode: 'number',
9252
+ body: DescribeMachineSpecResponseBody,
9253
+ };
9254
+ }
9255
+
9256
+ validate() {
9257
+ if(this.headers) {
9258
+ $dara.Model.validateMap(this.headers);
9259
+ }
9260
+ if(this.body && typeof (this.body as any).validate === 'function') {
9261
+ (this.body as any).validate();
9262
+ }
9263
+ super.validate();
9264
+ }
9265
+
9266
+ constructor(map?: { [key: string]: any }) {
9267
+ super(map);
9268
+ }
9269
+ }
9270
+
8950
9271
  export class DescribeResourceResponseBody extends $dara.Model {
8951
9272
  /**
8952
9273
  * @remarks
@@ -8964,6 +9285,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8964
9285
  * 16
8965
9286
  */
8966
9287
  cpuCount?: number;
9288
+ /**
9289
+ * @remarks
9290
+ * The number of vCPUs that is used.
9291
+ *
9292
+ * @example
9293
+ * 8
9294
+ */
8967
9295
  cpuUsed?: number;
8968
9296
  /**
8969
9297
  * @remarks
@@ -8989,6 +9317,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8989
9317
  * 1
8990
9318
  */
8991
9319
  gpuCount?: number;
9320
+ /**
9321
+ * @remarks
9322
+ * The number of GPUs that is used.
9323
+ *
9324
+ * @example
9325
+ * 2
9326
+ */
8992
9327
  gpuUsed?: number;
8993
9328
  /**
8994
9329
  * @remarks
@@ -8998,7 +9333,21 @@ export class DescribeResourceResponseBody extends $dara.Model {
8998
9333
  * 4
8999
9334
  */
9000
9335
  instanceCount?: number;
9336
+ /**
9337
+ * @remarks
9338
+ * The total memory size. Unit: MB.
9339
+ *
9340
+ * @example
9341
+ * 8192
9342
+ */
9001
9343
  memory?: number;
9344
+ /**
9345
+ * @remarks
9346
+ * The size of memory that is used. Unit: MB.
9347
+ *
9348
+ * @example
9349
+ * 2048
9350
+ */
9002
9351
  memoryUsed?: number;
9003
9352
  /**
9004
9353
  * @remarks
@@ -9753,6 +10102,9 @@ export class DescribeServiceEndpointsResponseBody extends $dara.Model {
9753
10102
  /**
9754
10103
  * @remarks
9755
10104
  * The returned message.
10105
+ *
10106
+ * @example
10107
+ * Execution successful.
9756
10108
  */
9757
10109
  message?: string;
9758
10110
  /**
@@ -10675,6 +11027,13 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10675
11027
  * 2024-10-16T17:52:49Z
10676
11028
  */
10677
11029
  createTime?: string;
11030
+ /**
11031
+ * @remarks
11032
+ * Indicates whether the retention period of preemptible instances was disabled.
11033
+ *
11034
+ * @example
11035
+ * true
11036
+ */
10678
11037
  disableSpotProtectionPeriod?: boolean;
10679
11038
  /**
10680
11039
  * @remarks
@@ -10689,6 +11048,13 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10689
11048
  * The list of resources in the virtual resource group.
10690
11049
  */
10691
11050
  resources?: DescribeVirtualResourceResponseBodyResources[];
11051
+ /**
11052
+ * @remarks
11053
+ * The number of deployed services.
11054
+ *
11055
+ * @example
11056
+ * 1
11057
+ */
10692
11058
  serviceCount?: number;
10693
11059
  /**
10694
11060
  * @remarks
@@ -12051,6 +12417,13 @@ export class ListResourceInstanceWorkerRequest extends $dara.Model {
12051
12417
  * 20
12052
12418
  */
12053
12419
  pageSize?: number;
12420
+ /**
12421
+ * @remarks
12422
+ * The worker name.
12423
+ *
12424
+ * @example
12425
+ * test-fd95xxxxx-xxxxxx
12426
+ */
12054
12427
  workerName?: string;
12055
12428
  static names(): { [key: string]: string } {
12056
12429
  return {
@@ -12330,6 +12703,10 @@ export class ListResourceInstancesRequest extends $dara.Model {
12330
12703
  * Ready
12331
12704
  */
12332
12705
  instanceStatus?: string;
12706
+ /**
12707
+ * @remarks
12708
+ * The tag.
12709
+ */
12333
12710
  label?: { [key: string]: string };
12334
12711
  /**
12335
12712
  * @remarks
@@ -12633,6 +13010,10 @@ export class ListResourceInstancesShrinkRequest extends $dara.Model {
12633
13010
  * Ready
12634
13011
  */
12635
13012
  instanceStatus?: string;
13013
+ /**
13014
+ * @remarks
13015
+ * The tag.
13016
+ */
12636
13017
  labelShrink?: string;
12637
13018
  /**
12638
13019
  * @remarks
@@ -13036,6 +13417,16 @@ export class ListResourceServicesResponse extends $dara.Model {
13036
13417
  }
13037
13418
 
13038
13419
  export class ListResourcesRequest extends $dara.Model {
13420
+ /**
13421
+ * @remarks
13422
+ * The sorting order. Valid values:
13423
+ *
13424
+ * * Desc
13425
+ * * Asc
13426
+ *
13427
+ * @example
13428
+ * Desc
13429
+ */
13039
13430
  order?: string;
13040
13431
  /**
13041
13432
  * @remarks
@@ -13069,6 +13460,13 @@ export class ListResourcesRequest extends $dara.Model {
13069
13460
  * MyResource
13070
13461
  */
13071
13462
  resourceName?: string;
13463
+ /**
13464
+ * @remarks
13465
+ * The resource group status.
13466
+ *
13467
+ * @example
13468
+ * ResourceReady
13469
+ */
13072
13470
  resourceStatus?: string;
13073
13471
  /**
13074
13472
  * @remarks
@@ -13081,6 +13479,26 @@ export class ListResourcesRequest extends $dara.Model {
13081
13479
  * Dedicated
13082
13480
  */
13083
13481
  resourceType?: string;
13482
+ /**
13483
+ * @remarks
13484
+ * The condition by which the results are sorted. By default, the query results are sorted by the timestamp type in descending order.
13485
+ *
13486
+ * Valid values:
13487
+ *
13488
+ * * PrePaidInstanceCount
13489
+ * * CpuCount
13490
+ * * Memory
13491
+ * * CreateTime
13492
+ * * PostPaidInstanceCount
13493
+ * * MemoryUsed
13494
+ * * GpuCount
13495
+ * * GpuUsed
13496
+ * * CpuUsed
13497
+ * * ServiceCount
13498
+ *
13499
+ * @example
13500
+ * CreateTime
13501
+ */
13084
13502
  sort?: string;
13085
13503
  static names(): { [key: string]: string } {
13086
13504
  return {
@@ -14873,7 +15291,7 @@ export class ListVirtualResourceResponseBody extends $dara.Model {
14873
15291
  totalCount?: number;
14874
15292
  /**
14875
15293
  * @remarks
14876
- * The list of virtual resource groups.
15294
+ * The virtual resource groups.
14877
15295
  */
14878
15296
  virtualResources?: ListVirtualResourceResponseBodyVirtualResources[];
14879
15297
  static names(): { [key: string]: string } {
@@ -15814,37 +16232,41 @@ export class UpdateGatewayRequest extends $dara.Model {
15814
16232
  * Valid values:
15815
16233
  *
15816
16234
  * * true
15817
- *
15818
- * <!-- -->
15819
- *
15820
- * <!-- -->
15821
- *
15822
- * <!-- -->
15823
- *
15824
16235
  * * false
15825
16236
  *
15826
- * <!-- -->
15827
- *
15828
- * <!-- -->
15829
- *
15830
- * <!-- -->
15831
- *
15832
16237
  * @example
15833
16238
  * false
15834
16239
  */
15835
16240
  enableInternet?: boolean;
15836
16241
  /**
15837
16242
  * @remarks
15838
- * Specifies whether to enable internal network access. Default value: true.
16243
+ * Specifies whether to enable private access. Default value: true.
16244
+ *
16245
+ * Valid values:
16246
+ *
16247
+ * * true
16248
+ * * false
15839
16249
  *
15840
16250
  * @example
15841
16251
  * true
15842
16252
  */
15843
16253
  enableIntranet?: boolean;
16254
+ /**
16255
+ * @remarks
16256
+ * Specifies whether to enable HTTP to HTTPS redirection. Default value: false.
16257
+ *
16258
+ * @example
16259
+ * false
16260
+ */
15844
16261
  enableSSLRedirection?: boolean;
15845
16262
  /**
15846
16263
  * @remarks
15847
- * The instance type used for the private gateway.
16264
+ * The instance type used by the private gateway. Valid values:
16265
+ *
16266
+ * * 2c4g
16267
+ * * 4c8g
16268
+ * * 8c16g
16269
+ * * 16c32g
15848
16270
  *
15849
16271
  * @example
15850
16272
  * ecs.c6.4xlarge
@@ -15852,7 +16274,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15852
16274
  instanceType?: string;
15853
16275
  /**
15854
16276
  * @remarks
15855
- * Indicates whether it is the default private gateway.
16277
+ * Specifies whether it is the default private gateway.
15856
16278
  *
15857
16279
  * @example
15858
16280
  * true
@@ -15860,7 +16282,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15860
16282
  isDefault?: boolean;
15861
16283
  /**
15862
16284
  * @remarks
15863
- * The private gateway alias.
16285
+ * The alias of the private gateway.
15864
16286
  *
15865
16287
  * @example
15866
16288
  * mygateway1
@@ -16379,11 +16801,22 @@ export class UpdateResourceInstanceResponse extends $dara.Model {
16379
16801
 
16380
16802
  export class UpdateResourceInstanceLabelRequest extends $dara.Model {
16381
16803
  /**
16804
+ * @remarks
16805
+ * 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.
16806
+ *
16382
16807
  * @example
16383
16808
  * false
16384
16809
  */
16385
16810
  allInstances?: boolean;
16811
+ /**
16812
+ * @remarks
16813
+ * The instance IDs.
16814
+ */
16386
16815
  instanceIds?: string[];
16816
+ /**
16817
+ * @remarks
16818
+ * The custom tag.
16819
+ */
16387
16820
  labels?: { [key: string]: string };
16388
16821
  static names(): { [key: string]: string } {
16389
16822
  return {
@@ -16418,11 +16851,22 @@ export class UpdateResourceInstanceLabelRequest extends $dara.Model {
16418
16851
 
16419
16852
  export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
16420
16853
  /**
16854
+ * @remarks
16855
+ * 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.
16856
+ *
16421
16857
  * @example
16422
16858
  * false
16423
16859
  */
16424
16860
  allInstances?: boolean;
16861
+ /**
16862
+ * @remarks
16863
+ * The instance IDs.
16864
+ */
16425
16865
  instanceIdsShrink?: string;
16866
+ /**
16867
+ * @remarks
16868
+ * The custom tag.
16869
+ */
16426
16870
  labels?: { [key: string]: string };
16427
16871
  static names(): { [key: string]: string } {
16428
16872
  return {
@@ -16454,13 +16898,16 @@ export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
16454
16898
 
16455
16899
  export class UpdateResourceInstanceLabelResponseBody extends $dara.Model {
16456
16900
  /**
16901
+ * @remarks
16902
+ * The message.
16903
+ *
16457
16904
  * @example
16458
16905
  * Success
16459
16906
  */
16460
16907
  message?: string;
16461
16908
  /**
16462
16909
  * @remarks
16463
- * Id of the request
16910
+ * The request ID.
16464
16911
  *
16465
16912
  * @example
16466
16913
  * 40325405-579C-4D82****
@@ -17449,17 +17896,24 @@ export class UpdateServiceVersionResponse extends $dara.Model {
17449
17896
  }
17450
17897
 
17451
17898
  export class UpdateVirtualResourceRequest extends $dara.Model {
17899
+ /**
17900
+ * @remarks
17901
+ * Specifies whether to disable the retention period of preemptible instances.
17902
+ *
17903
+ * @example
17904
+ * true
17905
+ */
17452
17906
  disableSpotProtectionPeriod?: boolean;
17453
17907
  /**
17454
17908
  * @remarks
17455
- * The list of resources in the virtual resource group.
17909
+ * The resources in the virtual resource group.
17456
17910
  *
17457
- * > If you specify this parameter, previous data are overwritten.
17911
+ * > If you specify this parameter, previous data is overwritten.
17458
17912
  */
17459
17913
  resources?: UpdateVirtualResourceRequestResources[];
17460
17914
  /**
17461
17915
  * @remarks
17462
- * The new name for the virtual resource group.
17916
+ * The new name of the virtual resource group.
17463
17917
  *
17464
17918
  * @example
17465
17919
  * NewMyVirtualResource
@@ -18994,7 +19448,7 @@ export default class Client extends OpenApi {
18994
19448
  }
18995
19449
 
18996
19450
  /**
18997
- * 删除资源组实例标签
19451
+ * Deletes the tags of an instance in a resource group.
18998
19452
  *
18999
19453
  * @param tmpReq - DeleteResourceInstanceLabelRequest
19000
19454
  * @param headers - map
@@ -19050,7 +19504,7 @@ export default class Client extends OpenApi {
19050
19504
  }
19051
19505
 
19052
19506
  /**
19053
- * 删除资源组实例标签
19507
+ * Deletes the tags of an instance in a resource group.
19054
19508
  *
19055
19509
  * @param request - DeleteResourceInstanceLabelRequest
19056
19510
  * @returns DeleteResourceInstanceLabelResponse
@@ -19679,6 +20133,62 @@ export default class Client extends OpenApi {
19679
20133
  return await this.describeGroupEndpointsWithOptions(ClusterId, GroupName, headers, runtime);
19680
20134
  }
19681
20135
 
20136
+ /**
20137
+ * 查询可用机器规格
20138
+ *
20139
+ * @param tmpReq - DescribeMachineSpecRequest
20140
+ * @param headers - map
20141
+ * @param runtime - runtime options for this request RuntimeOptions
20142
+ * @returns DescribeMachineSpecResponse
20143
+ */
20144
+ async describeMachineSpecWithOptions(tmpReq: DescribeMachineSpecRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DescribeMachineSpecResponse> {
20145
+ tmpReq.validate();
20146
+ let request = new DescribeMachineSpecShrinkRequest({ });
20147
+ OpenApiUtil.convert(tmpReq, request);
20148
+ if (!$dara.isNull(tmpReq.instanceTypes)) {
20149
+ request.instanceTypesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceTypes, "InstanceTypes", "simple");
20150
+ }
20151
+
20152
+ let query : {[key: string ]: any} = { };
20153
+ if (!$dara.isNull(request.instanceTypesShrink)) {
20154
+ query["InstanceTypes"] = request.instanceTypesShrink;
20155
+ }
20156
+
20157
+ let req = new $OpenApiUtil.OpenApiRequest({
20158
+ headers: headers,
20159
+ query: OpenApiUtil.query(query),
20160
+ });
20161
+ let params = new $OpenApiUtil.Params({
20162
+ action: "DescribeMachineSpec",
20163
+ version: "2021-07-01",
20164
+ protocol: "HTTPS",
20165
+ pathname: `/api/v2/public/instance_types`,
20166
+ method: "GET",
20167
+ authType: "AK",
20168
+ style: "ROA",
20169
+ reqBodyType: "json",
20170
+ bodyType: "json",
20171
+ });
20172
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
20173
+ return $dara.cast<DescribeMachineSpecResponse>(await this.callApi(params, req, runtime), new DescribeMachineSpecResponse({}));
20174
+ } else {
20175
+ return $dara.cast<DescribeMachineSpecResponse>(await this.execute(params, req, runtime), new DescribeMachineSpecResponse({}));
20176
+ }
20177
+
20178
+ }
20179
+
20180
+ /**
20181
+ * 查询可用机器规格
20182
+ *
20183
+ * @param request - DescribeMachineSpecRequest
20184
+ * @returns DescribeMachineSpecResponse
20185
+ */
20186
+ async describeMachineSpec(request: DescribeMachineSpecRequest): Promise<DescribeMachineSpecResponse> {
20187
+ let runtime = new $dara.RuntimeOptions({ });
20188
+ let headers : {[key: string ]: string} = { };
20189
+ return await this.describeMachineSpecWithOptions(request, headers, runtime);
20190
+ }
20191
+
19682
20192
  /**
19683
20193
  * Queries the information about a resource group.
19684
20194
  *
@@ -22261,7 +22771,7 @@ export default class Client extends OpenApi {
22261
22771
  }
22262
22772
 
22263
22773
  /**
22264
- * 更新资源组实例标签
22774
+ * Updates the tag of an instance in a resource group.
22265
22775
  *
22266
22776
  * @param tmpReq - UpdateResourceInstanceLabelRequest
22267
22777
  * @param headers - map
@@ -22315,7 +22825,7 @@ export default class Client extends OpenApi {
22315
22825
  }
22316
22826
 
22317
22827
  /**
22318
- * 更新资源组实例标签
22828
+ * Updates the tag of an instance in a resource group.
22319
22829
  *
22320
22830
  * @param request - UpdateResourceInstanceLabelRequest
22321
22831
  * @returns UpdateResourceInstanceLabelResponse