@alicloud/eas20210701 6.4.1 → 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
@@ -5,6 +5,32 @@ import OpenApi from '@alicloud/openapi-core';
5
5
  import { OpenApiUtil, $OpenApiUtil } from '@alicloud/openapi-core';
6
6
  import * as $dara from '@darabonba/typescript';
7
7
 
8
+ export class ResourceInstanceLabels extends $dara.Model {
9
+ labelKey?: string;
10
+ labelValue?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ labelKey: 'LabelKey',
14
+ labelValue: 'LabelValue',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ labelKey: 'string',
21
+ labelValue: 'string',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ super.validate();
27
+ }
28
+
29
+ constructor(map?: { [key: string]: any }) {
30
+ super(map);
31
+ }
32
+ }
33
+
8
34
  export class ServiceLabels extends $dara.Model {
9
35
  labelKey?: string;
10
36
  labelValue?: string;
@@ -254,17 +280,17 @@ export class CreateResourceRequestSelfManagedResourceOptions extends $dara.Model
254
280
  externalClusterId?: string;
255
281
  /**
256
282
  * @remarks
257
- * The tag key-value pairs for nodes.
283
+ * The tag key-value pairs of the node.
258
284
  */
259
285
  nodeMatchLabels?: { [key: string]: string };
260
286
  /**
261
287
  * @remarks
262
- * Tolerations for nodes.
288
+ * The tolerations for the node taint.
263
289
  */
264
290
  nodeTolerations?: CreateResourceRequestSelfManagedResourceOptionsNodeTolerations[];
265
291
  /**
266
292
  * @remarks
267
- * 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.
268
294
  *
269
295
  * @example
270
296
  * clusterrole
@@ -482,7 +508,7 @@ export class CreateServiceAutoScalerRequestScaleStrategies extends $dara.Model {
482
508
  *
483
509
  * * If you set metricName to qps, scale-out is triggered when the average qps for a single instance is greater than this threshold.
484
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.
485
- * * 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.
486
512
  *
487
513
  * This parameter is required.
488
514
  *
@@ -582,7 +608,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
582
608
  instanceType?: string;
583
609
  /**
584
610
  * @remarks
585
- * 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.
586
612
  *
587
613
  * @example
588
614
  * 6
@@ -590,7 +616,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
590
616
  priority?: number;
591
617
  /**
592
618
  * @remarks
593
- * Lingjun Resource Quota ID.
619
+ * The ID of the Lingjun resource quota.
594
620
  *
595
621
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
596
622
  *
@@ -600,7 +626,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
600
626
  quotaId?: string;
601
627
  /**
602
628
  * @remarks
603
- * The region where the resource resides.
629
+ * The region in which the resource resides.
604
630
  *
605
631
  * @example
606
632
  * cn-hangzhou
@@ -608,7 +634,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
608
634
  region?: string;
609
635
  /**
610
636
  * @remarks
611
- * 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).
612
638
  *
613
639
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
614
640
  *
@@ -620,7 +646,7 @@ export class CreateVirtualResourceRequestResources extends $dara.Model {
620
646
  * @remarks
621
647
  * The maximum price of preemptible instances in a public resource group.
622
648
  *
623
- * > If you do not set this value, preemptible instances are not used.
649
+ * > If you leave this parameter empty, preemptible instances are not used.
624
650
  *
625
651
  * @example
626
652
  * 10.05
@@ -830,6 +856,136 @@ export class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
830
856
  }
831
857
  }
832
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
+
833
989
  export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
834
990
  /**
835
991
  * @remarks
@@ -2346,6 +2502,13 @@ export class ListVirtualResourceResponseBodyVirtualResources extends $dara.Model
2346
2502
  * 2024-10-16T17:52:49Z
2347
2503
  */
2348
2504
  createTime?: string;
2505
+ /**
2506
+ * @remarks
2507
+ * The number of deployed services.
2508
+ *
2509
+ * @example
2510
+ * 1
2511
+ */
2349
2512
  serviceCount?: number;
2350
2513
  /**
2351
2514
  * @remarks
@@ -2784,7 +2947,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2784
2947
  instanceType?: string;
2785
2948
  /**
2786
2949
  * @remarks
2787
- * 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.
2788
2951
  *
2789
2952
  * @example
2790
2953
  * 6
@@ -2792,7 +2955,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2792
2955
  priority?: number;
2793
2956
  /**
2794
2957
  * @remarks
2795
- * The Lingjun resource quota ID.
2958
+ * The ID of the Lingjun resource quota.
2796
2959
  *
2797
2960
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2798
2961
  *
@@ -2802,7 +2965,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2802
2965
  quotaId?: string;
2803
2966
  /**
2804
2967
  * @remarks
2805
- * The region where the resource resides.
2968
+ * The region in which the resource resides.
2806
2969
  *
2807
2970
  * @example
2808
2971
  * cn-hangzhou
@@ -2810,7 +2973,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2810
2973
  region?: string;
2811
2974
  /**
2812
2975
  * @remarks
2813
- * 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).
2814
2977
  *
2815
2978
  * > You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.
2816
2979
  *
@@ -2822,7 +2985,7 @@ export class UpdateVirtualResourceRequestResources extends $dara.Model {
2822
2985
  * @remarks
2823
2986
  * The maximum price of preemptible instances in a public resource group.
2824
2987
  *
2825
- * > If you do not specify this parameter, preemptible instances are not used.
2988
+ * > If you leave this parameter empty, preemptible instances are not used.
2826
2989
  *
2827
2990
  * @example
2828
2991
  * 10.05
@@ -3200,6 +3363,7 @@ export class ResourceInstance extends $dara.Model {
3200
3363
  instanceUsedGpu?: number;
3201
3364
  instanceUsedGpuMemory?: string;
3202
3365
  instanceUsedMemory?: string;
3366
+ labels?: ResourceInstanceLabels[];
3203
3367
  region?: string;
3204
3368
  resourceId?: string;
3205
3369
  zone?: string;
@@ -3225,6 +3389,7 @@ export class ResourceInstance extends $dara.Model {
3225
3389
  instanceUsedGpu: 'InstanceUsedGpu',
3226
3390
  instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
3227
3391
  instanceUsedMemory: 'InstanceUsedMemory',
3392
+ labels: 'Labels',
3228
3393
  region: 'Region',
3229
3394
  resourceId: 'ResourceId',
3230
3395
  zone: 'Zone',
@@ -3253,6 +3418,7 @@ export class ResourceInstance extends $dara.Model {
3253
3418
  instanceUsedGpu: 'number',
3254
3419
  instanceUsedGpuMemory: 'string',
3255
3420
  instanceUsedMemory: 'string',
3421
+ labels: { 'type': 'array', 'itemType': ResourceInstanceLabels },
3256
3422
  region: 'string',
3257
3423
  resourceId: 'string',
3258
3424
  zone: 'string',
@@ -3260,6 +3426,9 @@ export class ResourceInstance extends $dara.Model {
3260
3426
  }
3261
3427
 
3262
3428
  validate() {
3429
+ if(Array.isArray(this.labels)) {
3430
+ $dara.Model.validateArray(this.labels);
3431
+ }
3263
3432
  super.validate();
3264
3433
  }
3265
3434
 
@@ -4999,6 +5168,11 @@ export class CreateResourceRequest extends $dara.Model {
4999
5168
  * ecs.c6.8xlarge
5000
5169
  */
5001
5170
  ecsInstanceType?: string;
5171
+ /**
5172
+ * @remarks
5173
+ * The custom tag.
5174
+ */
5175
+ labels?: { [key: string]: string };
5002
5176
  /**
5003
5177
  * @remarks
5004
5178
  * The type of the resource group. Valid values:
@@ -5039,6 +5213,7 @@ export class CreateResourceRequest extends $dara.Model {
5039
5213
  chargeType: 'ChargeType',
5040
5214
  ecsInstanceCount: 'EcsInstanceCount',
5041
5215
  ecsInstanceType: 'EcsInstanceType',
5216
+ labels: 'Labels',
5042
5217
  resourceType: 'ResourceType',
5043
5218
  selfManagedResourceOptions: 'SelfManagedResourceOptions',
5044
5219
  systemDiskSize: 'SystemDiskSize',
@@ -5052,6 +5227,7 @@ export class CreateResourceRequest extends $dara.Model {
5052
5227
  chargeType: 'string',
5053
5228
  ecsInstanceCount: 'number',
5054
5229
  ecsInstanceType: 'string',
5230
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5055
5231
  resourceType: 'string',
5056
5232
  selfManagedResourceOptions: CreateResourceRequestSelfManagedResourceOptions,
5057
5233
  systemDiskSize: 'number',
@@ -5060,6 +5236,9 @@ export class CreateResourceRequest extends $dara.Model {
5060
5236
  }
5061
5237
 
5062
5238
  validate() {
5239
+ if(this.labels) {
5240
+ $dara.Model.validateMap(this.labels);
5241
+ }
5063
5242
  if(this.selfManagedResourceOptions && typeof (this.selfManagedResourceOptions as any).validate === 'function') {
5064
5243
  (this.selfManagedResourceOptions as any).validate();
5065
5244
  }
@@ -5231,6 +5410,11 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5231
5410
  * ecs.s6-c1m2.xlarge
5232
5411
  */
5233
5412
  ecsInstanceType?: string;
5413
+ /**
5414
+ * @remarks
5415
+ * The custom service tag.
5416
+ */
5417
+ labels?: { [key: string]: string };
5234
5418
  /**
5235
5419
  * @remarks
5236
5420
  * The size of the system disk. Unit: GiB. Valid values: 200 to 2000. Default value: 200.
@@ -5261,6 +5445,7 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5261
5445
  chargeType: 'ChargeType',
5262
5446
  ecsInstanceCount: 'EcsInstanceCount',
5263
5447
  ecsInstanceType: 'EcsInstanceType',
5448
+ labels: 'Labels',
5264
5449
  systemDiskSize: 'SystemDiskSize',
5265
5450
  userData: 'UserData',
5266
5451
  zone: 'Zone',
@@ -5273,6 +5458,7 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5273
5458
  chargeType: 'string',
5274
5459
  ecsInstanceCount: 'number',
5275
5460
  ecsInstanceType: 'string',
5461
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5276
5462
  systemDiskSize: 'number',
5277
5463
  userData: 'string',
5278
5464
  zone: 'string',
@@ -5280,6 +5466,9 @@ export class CreateResourceInstancesRequest extends $dara.Model {
5280
5466
  }
5281
5467
 
5282
5468
  validate() {
5469
+ if(this.labels) {
5470
+ $dara.Model.validateMap(this.labels);
5471
+ }
5283
5472
  super.validate();
5284
5473
  }
5285
5474
 
@@ -6284,10 +6473,17 @@ export class CreateServiceMirrorResponse extends $dara.Model {
6284
6473
  }
6285
6474
 
6286
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
+ */
6287
6483
  disableSpotProtectionPeriod?: boolean;
6288
6484
  /**
6289
6485
  * @remarks
6290
- * The list of resources in the virtual resource group.
6486
+ * The resources in the virtual resource group.
6291
6487
  */
6292
6488
  resources?: CreateVirtualResourceRequestResources[];
6293
6489
  /**
@@ -7170,41 +7366,45 @@ export class DeleteResourceDLinkResponse extends $dara.Model {
7170
7366
  }
7171
7367
  }
7172
7368
 
7173
- export class DeleteResourceInstancesRequest extends $dara.Model {
7369
+ export class DeleteResourceInstanceLabelRequest extends $dara.Model {
7174
7370
  /**
7175
7371
  * @remarks
7176
- * Specifies whether to delete all the instances that fail to be created. Valid values:
7177
- *
7178
- * * true
7179
- * * false
7180
- *
7181
- * @example
7182
- * true
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.
7183
7373
  */
7184
- allFailed?: boolean;
7374
+ allInstances?: boolean;
7185
7375
  /**
7186
7376
  * @remarks
7187
- * The instances. Separate multiple instances with commas (,), such as `instanceId1,instanceId2`. For more information about how to query the instances, see [ListResourceInstances](https://help.aliyun.com/document_detail/412129.html).
7188
- *
7189
- * @example
7190
- * eas-i-xxxxxxx,eas-i-xxxxxxx
7377
+ * The instance IDs.
7191
7378
  */
7192
- instanceList?: string;
7379
+ instanceIds?: string[];
7380
+ /**
7381
+ * @remarks
7382
+ * The keys of the tags that you want to delete.
7383
+ */
7384
+ keys?: string[];
7193
7385
  static names(): { [key: string]: string } {
7194
7386
  return {
7195
- allFailed: 'AllFailed',
7196
- instanceList: 'InstanceList',
7387
+ allInstances: 'AllInstances',
7388
+ instanceIds: 'InstanceIds',
7389
+ keys: 'Keys',
7197
7390
  };
7198
7391
  }
7199
7392
 
7200
7393
  static types(): { [key: string]: any } {
7201
7394
  return {
7202
- allFailed: 'boolean',
7203
- instanceList: 'string',
7395
+ allInstances: 'boolean',
7396
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
7397
+ keys: { 'type': 'array', 'itemType': 'string' },
7204
7398
  };
7205
7399
  }
7206
7400
 
7207
7401
  validate() {
7402
+ if(Array.isArray(this.instanceIds)) {
7403
+ $dara.Model.validateArray(this.instanceIds);
7404
+ }
7405
+ if(Array.isArray(this.keys)) {
7406
+ $dara.Model.validateArray(this.keys);
7407
+ }
7208
7408
  super.validate();
7209
7409
  }
7210
7410
 
@@ -7213,13 +7413,54 @@ export class DeleteResourceInstancesRequest extends $dara.Model {
7213
7413
  }
7214
7414
  }
7215
7415
 
7216
- export class DeleteResourceInstancesResponseBody extends $dara.Model {
7416
+ export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
7217
7417
  /**
7218
7418
  * @remarks
7219
- * The returned message.
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
+ */
7421
+ allInstances?: boolean;
7422
+ /**
7423
+ * @remarks
7424
+ * The instance IDs.
7425
+ */
7426
+ instanceIdsShrink?: string;
7427
+ /**
7428
+ * @remarks
7429
+ * The keys of the tags that you want to delete.
7430
+ */
7431
+ keysShrink?: string;
7432
+ static names(): { [key: string]: string } {
7433
+ return {
7434
+ allInstances: 'AllInstances',
7435
+ instanceIdsShrink: 'InstanceIds',
7436
+ keysShrink: 'Keys',
7437
+ };
7438
+ }
7439
+
7440
+ static types(): { [key: string]: any } {
7441
+ return {
7442
+ allInstances: 'boolean',
7443
+ instanceIdsShrink: 'string',
7444
+ keysShrink: 'string',
7445
+ };
7446
+ }
7447
+
7448
+ validate() {
7449
+ super.validate();
7450
+ }
7451
+
7452
+ constructor(map?: { [key: string]: any }) {
7453
+ super(map);
7454
+ }
7455
+ }
7456
+
7457
+ export class DeleteResourceInstanceLabelResponseBody extends $dara.Model {
7458
+ /**
7459
+ * @remarks
7460
+ * The message.
7220
7461
  *
7221
7462
  * @example
7222
- * Instances eas-i-011227132046,eas-i-011227132046 are deleting
7463
+ * success
7223
7464
  */
7224
7465
  message?: string;
7225
7466
  /**
@@ -7227,7 +7468,7 @@ export class DeleteResourceInstancesResponseBody extends $dara.Model {
7227
7468
  * The request ID.
7228
7469
  *
7229
7470
  * @example
7230
- * 40325405-579C-4D82****
7471
+ * 40325405-579C-4D82********
7231
7472
  */
7232
7473
  requestId?: string;
7233
7474
  static names(): { [key: string]: string } {
@@ -7253,10 +7494,10 @@ export class DeleteResourceInstancesResponseBody extends $dara.Model {
7253
7494
  }
7254
7495
  }
7255
7496
 
7256
- export class DeleteResourceInstancesResponse extends $dara.Model {
7497
+ export class DeleteResourceInstanceLabelResponse extends $dara.Model {
7257
7498
  headers?: { [key: string]: string };
7258
7499
  statusCode?: number;
7259
- body?: DeleteResourceInstancesResponseBody;
7500
+ body?: DeleteResourceInstanceLabelResponseBody;
7260
7501
  static names(): { [key: string]: string } {
7261
7502
  return {
7262
7503
  headers: 'headers',
@@ -7269,7 +7510,7 @@ export class DeleteResourceInstancesResponse extends $dara.Model {
7269
7510
  return {
7270
7511
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7271
7512
  statusCode: 'number',
7272
- body: DeleteResourceInstancesResponseBody,
7513
+ body: DeleteResourceInstanceLabelResponseBody,
7273
7514
  };
7274
7515
  }
7275
7516
 
@@ -7288,34 +7529,37 @@ export class DeleteResourceInstancesResponse extends $dara.Model {
7288
7529
  }
7289
7530
  }
7290
7531
 
7291
- export class DeleteResourceLogResponseBody extends $dara.Model {
7532
+ export class DeleteResourceInstancesRequest extends $dara.Model {
7292
7533
  /**
7293
7534
  * @remarks
7294
- * The returned message.
7535
+ * Specifies whether to delete all the instances that fail to be created. Valid values:
7536
+ *
7537
+ * * true
7538
+ * * false
7295
7539
  *
7296
7540
  * @example
7297
- * Log service for resource [eas-r-asdasdasd] is deleting
7541
+ * true
7298
7542
  */
7299
- message?: string;
7543
+ allFailed?: boolean;
7300
7544
  /**
7301
7545
  * @remarks
7302
- * The request ID.
7546
+ * The instances. Separate multiple instances with commas (,), such as `instanceId1,instanceId2`. For more information about how to query the instances, see [ListResourceInstances](https://help.aliyun.com/document_detail/412129.html).
7303
7547
  *
7304
7548
  * @example
7305
- * 40325405-579C-4D82****
7549
+ * eas-i-xxxxxxx,eas-i-xxxxxxx
7306
7550
  */
7307
- requestId?: string;
7551
+ instanceList?: string;
7308
7552
  static names(): { [key: string]: string } {
7309
7553
  return {
7310
- message: 'Message',
7311
- requestId: 'RequestId',
7554
+ allFailed: 'AllFailed',
7555
+ instanceList: 'InstanceList',
7312
7556
  };
7313
7557
  }
7314
7558
 
7315
7559
  static types(): { [key: string]: any } {
7316
7560
  return {
7317
- message: 'string',
7318
- requestId: 'string',
7561
+ allFailed: 'boolean',
7562
+ instanceList: 'string',
7319
7563
  };
7320
7564
  }
7321
7565
 
@@ -7328,8 +7572,123 @@ export class DeleteResourceLogResponseBody extends $dara.Model {
7328
7572
  }
7329
7573
  }
7330
7574
 
7331
- export class DeleteResourceLogResponse extends $dara.Model {
7332
- headers?: { [key: string]: string };
7575
+ export class DeleteResourceInstancesResponseBody extends $dara.Model {
7576
+ /**
7577
+ * @remarks
7578
+ * The returned message.
7579
+ *
7580
+ * @example
7581
+ * Instances eas-i-011227132046,eas-i-011227132046 are deleting
7582
+ */
7583
+ message?: string;
7584
+ /**
7585
+ * @remarks
7586
+ * The request ID.
7587
+ *
7588
+ * @example
7589
+ * 40325405-579C-4D82****
7590
+ */
7591
+ requestId?: string;
7592
+ static names(): { [key: string]: string } {
7593
+ return {
7594
+ message: 'Message',
7595
+ requestId: 'RequestId',
7596
+ };
7597
+ }
7598
+
7599
+ static types(): { [key: string]: any } {
7600
+ return {
7601
+ message: 'string',
7602
+ requestId: 'string',
7603
+ };
7604
+ }
7605
+
7606
+ validate() {
7607
+ super.validate();
7608
+ }
7609
+
7610
+ constructor(map?: { [key: string]: any }) {
7611
+ super(map);
7612
+ }
7613
+ }
7614
+
7615
+ export class DeleteResourceInstancesResponse extends $dara.Model {
7616
+ headers?: { [key: string]: string };
7617
+ statusCode?: number;
7618
+ body?: DeleteResourceInstancesResponseBody;
7619
+ static names(): { [key: string]: string } {
7620
+ return {
7621
+ headers: 'headers',
7622
+ statusCode: 'statusCode',
7623
+ body: 'body',
7624
+ };
7625
+ }
7626
+
7627
+ static types(): { [key: string]: any } {
7628
+ return {
7629
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7630
+ statusCode: 'number',
7631
+ body: DeleteResourceInstancesResponseBody,
7632
+ };
7633
+ }
7634
+
7635
+ validate() {
7636
+ if(this.headers) {
7637
+ $dara.Model.validateMap(this.headers);
7638
+ }
7639
+ if(this.body && typeof (this.body as any).validate === 'function') {
7640
+ (this.body as any).validate();
7641
+ }
7642
+ super.validate();
7643
+ }
7644
+
7645
+ constructor(map?: { [key: string]: any }) {
7646
+ super(map);
7647
+ }
7648
+ }
7649
+
7650
+ export class DeleteResourceLogResponseBody extends $dara.Model {
7651
+ /**
7652
+ * @remarks
7653
+ * The returned message.
7654
+ *
7655
+ * @example
7656
+ * Log service for resource [eas-r-asdasdasd] is deleting
7657
+ */
7658
+ message?: string;
7659
+ /**
7660
+ * @remarks
7661
+ * The request ID.
7662
+ *
7663
+ * @example
7664
+ * 40325405-579C-4D82****
7665
+ */
7666
+ requestId?: string;
7667
+ static names(): { [key: string]: string } {
7668
+ return {
7669
+ message: 'Message',
7670
+ requestId: 'RequestId',
7671
+ };
7672
+ }
7673
+
7674
+ static types(): { [key: string]: any } {
7675
+ return {
7676
+ message: 'string',
7677
+ requestId: 'string',
7678
+ };
7679
+ }
7680
+
7681
+ validate() {
7682
+ super.validate();
7683
+ }
7684
+
7685
+ constructor(map?: { [key: string]: any }) {
7686
+ super(map);
7687
+ }
7688
+ }
7689
+
7690
+ export class DeleteResourceLogResponse extends $dara.Model {
7691
+ headers?: { [key: string]: string };
7333
7692
  statusCode?: number;
7334
7693
  body?: DeleteResourceLogResponseBody;
7335
7694
  static names(): { [key: string]: string } {
@@ -8532,6 +8891,13 @@ export class DescribeGatewayResponseBody extends $dara.Model {
8532
8891
  * 40325405-579C-4D82****
8533
8892
  */
8534
8893
  requestId?: string;
8894
+ /**
8895
+ * @remarks
8896
+ * Indicates whether the HTTP to HTTPS redirection is enabled.
8897
+ *
8898
+ * @example
8899
+ * true
8900
+ */
8535
8901
  SSLRedirectionEnabled?: boolean;
8536
8902
  /**
8537
8903
  * @remarks
@@ -8695,6 +9061,9 @@ export class DescribeGroupEndpointsResponseBody extends $dara.Model {
8695
9061
  /**
8696
9062
  * @remarks
8697
9063
  * The response message.
9064
+ *
9065
+ * @example
9066
+ * Execution successful.
8698
9067
  */
8699
9068
  message?: string;
8700
9069
  /**
@@ -8770,6 +9139,135 @@ export class DescribeGroupEndpointsResponse extends $dara.Model {
8770
9139
  }
8771
9140
  }
8772
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
+
8773
9271
  export class DescribeResourceResponseBody extends $dara.Model {
8774
9272
  /**
8775
9273
  * @remarks
@@ -8787,6 +9285,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8787
9285
  * 16
8788
9286
  */
8789
9287
  cpuCount?: number;
9288
+ /**
9289
+ * @remarks
9290
+ * The number of vCPUs that is used.
9291
+ *
9292
+ * @example
9293
+ * 8
9294
+ */
8790
9295
  cpuUsed?: number;
8791
9296
  /**
8792
9297
  * @remarks
@@ -8812,6 +9317,13 @@ export class DescribeResourceResponseBody extends $dara.Model {
8812
9317
  * 1
8813
9318
  */
8814
9319
  gpuCount?: number;
9320
+ /**
9321
+ * @remarks
9322
+ * The number of GPUs that is used.
9323
+ *
9324
+ * @example
9325
+ * 2
9326
+ */
8815
9327
  gpuUsed?: number;
8816
9328
  /**
8817
9329
  * @remarks
@@ -8821,7 +9333,21 @@ export class DescribeResourceResponseBody extends $dara.Model {
8821
9333
  * 4
8822
9334
  */
8823
9335
  instanceCount?: number;
9336
+ /**
9337
+ * @remarks
9338
+ * The total memory size. Unit: MB.
9339
+ *
9340
+ * @example
9341
+ * 8192
9342
+ */
8824
9343
  memory?: number;
9344
+ /**
9345
+ * @remarks
9346
+ * The size of memory that is used. Unit: MB.
9347
+ *
9348
+ * @example
9349
+ * 2048
9350
+ */
8825
9351
  memoryUsed?: number;
8826
9352
  /**
8827
9353
  * @remarks
@@ -9576,6 +10102,9 @@ export class DescribeServiceEndpointsResponseBody extends $dara.Model {
9576
10102
  /**
9577
10103
  * @remarks
9578
10104
  * The returned message.
10105
+ *
10106
+ * @example
10107
+ * Execution successful.
9579
10108
  */
9580
10109
  message?: string;
9581
10110
  /**
@@ -10498,10 +11027,17 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10498
11027
  * 2024-10-16T17:52:49Z
10499
11028
  */
10500
11029
  createTime?: string;
10501
- disableSpotProtectionPeriod?: boolean;
10502
11030
  /**
10503
11031
  * @remarks
10504
- * The ID of the request.
11032
+ * Indicates whether the retention period of preemptible instances was disabled.
11033
+ *
11034
+ * @example
11035
+ * true
11036
+ */
11037
+ disableSpotProtectionPeriod?: boolean;
11038
+ /**
11039
+ * @remarks
11040
+ * The ID of the request.
10505
11041
  *
10506
11042
  * @example
10507
11043
  * 40325405-579C-4D82****
@@ -10512,6 +11048,13 @@ export class DescribeVirtualResourceResponseBody extends $dara.Model {
10512
11048
  * The list of resources in the virtual resource group.
10513
11049
  */
10514
11050
  resources?: DescribeVirtualResourceResponseBodyResources[];
11051
+ /**
11052
+ * @remarks
11053
+ * The number of deployed services.
11054
+ *
11055
+ * @example
11056
+ * 1
11057
+ */
10515
11058
  serviceCount?: number;
10516
11059
  /**
10517
11060
  * @remarks
@@ -11874,6 +12417,13 @@ export class ListResourceInstanceWorkerRequest extends $dara.Model {
11874
12417
  * 20
11875
12418
  */
11876
12419
  pageSize?: number;
12420
+ /**
12421
+ * @remarks
12422
+ * The worker name.
12423
+ *
12424
+ * @example
12425
+ * test-fd95xxxxx-xxxxxx
12426
+ */
11877
12427
  workerName?: string;
11878
12428
  static names(): { [key: string]: string } {
11879
12429
  return {
@@ -11935,67 +12485,374 @@ export class ListResourceInstanceWorkerResponseBody extends $dara.Model {
11935
12485
  * The total number of entries returned.
11936
12486
  *
11937
12487
  * @example
11938
- * 1
12488
+ * 1
12489
+ */
12490
+ totalCount?: number;
12491
+ static names(): { [key: string]: string } {
12492
+ return {
12493
+ pageNumber: 'PageNumber',
12494
+ pageSize: 'PageSize',
12495
+ pods: 'Pods',
12496
+ requestId: 'RequestId',
12497
+ totalCount: 'TotalCount',
12498
+ };
12499
+ }
12500
+
12501
+ static types(): { [key: string]: any } {
12502
+ return {
12503
+ pageNumber: 'number',
12504
+ pageSize: 'number',
12505
+ pods: { 'type': 'array', 'itemType': ResourceInstanceWorker },
12506
+ requestId: 'string',
12507
+ totalCount: 'number',
12508
+ };
12509
+ }
12510
+
12511
+ validate() {
12512
+ if(Array.isArray(this.pods)) {
12513
+ $dara.Model.validateArray(this.pods);
12514
+ }
12515
+ super.validate();
12516
+ }
12517
+
12518
+ constructor(map?: { [key: string]: any }) {
12519
+ super(map);
12520
+ }
12521
+ }
12522
+
12523
+ export class ListResourceInstanceWorkerResponse extends $dara.Model {
12524
+ headers?: { [key: string]: string };
12525
+ statusCode?: number;
12526
+ body?: ListResourceInstanceWorkerResponseBody;
12527
+ static names(): { [key: string]: string } {
12528
+ return {
12529
+ headers: 'headers',
12530
+ statusCode: 'statusCode',
12531
+ body: 'body',
12532
+ };
12533
+ }
12534
+
12535
+ static types(): { [key: string]: any } {
12536
+ return {
12537
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
12538
+ statusCode: 'number',
12539
+ body: ListResourceInstanceWorkerResponseBody,
12540
+ };
12541
+ }
12542
+
12543
+ validate() {
12544
+ if(this.headers) {
12545
+ $dara.Model.validateMap(this.headers);
12546
+ }
12547
+ if(this.body && typeof (this.body as any).validate === 'function') {
12548
+ (this.body as any).validate();
12549
+ }
12550
+ super.validate();
12551
+ }
12552
+
12553
+ constructor(map?: { [key: string]: any }) {
12554
+ super(map);
12555
+ }
12556
+ }
12557
+
12558
+ export class ListResourceInstancesRequest extends $dara.Model {
12559
+ /**
12560
+ * @remarks
12561
+ * The billing method of the instance. Valid values:
12562
+ *
12563
+ * * PrePaid: subscription.
12564
+ * * PostPaid: pay-as-you-go.
12565
+ *
12566
+ * @example
12567
+ * PrePaid
12568
+ */
12569
+ chargeType?: string;
12570
+ /**
12571
+ * @remarks
12572
+ * The keyword used to query instances. Instances can be queried by instance ID or instance IP address.
12573
+ *
12574
+ * @example
12575
+ * 10.224.xx.xx
12576
+ */
12577
+ filter?: string;
12578
+ /**
12579
+ * @remarks
12580
+ * The IP address of the instance.
12581
+ *
12582
+ * @example
12583
+ * 10.224.xx.xx
12584
+ */
12585
+ instanceIP?: string;
12586
+ /**
12587
+ * @remarks
12588
+ * The instance ID. For more information about how to query the instance ID, see [ListResourceInstances](https://help.aliyun.com/document_detail/412129.html).
12589
+ *
12590
+ * @example
12591
+ * i-bp1jd6x3uotsv****
12592
+ */
12593
+ instanceId?: string;
12594
+ /**
12595
+ * @remarks
12596
+ * The instance name.
12597
+ *
12598
+ * @example
12599
+ * e-xxxx***
12600
+ */
12601
+ instanceName?: string;
12602
+ /**
12603
+ * @remarks
12604
+ * The instance state.
12605
+ *
12606
+ * Valid values:
12607
+ *
12608
+ * * Ready-SchedulingDisabled
12609
+ *
12610
+ * <!-- -->
12611
+ *
12612
+ * :
12613
+ *
12614
+ * <!-- -->
12615
+ *
12616
+ * The instance is available but unschedulable
12617
+ *
12618
+ * <!-- -->
12619
+ *
12620
+ * .
12621
+ *
12622
+ * * Ready
12623
+ *
12624
+ * <!-- -->
12625
+ *
12626
+ * : The instance
12627
+ *
12628
+ * <!-- -->
12629
+ *
12630
+ * is running
12631
+ *
12632
+ * <!-- -->
12633
+ *
12634
+ * .
12635
+ *
12636
+ * * NotReady
12637
+ *
12638
+ * <!-- -->
12639
+ *
12640
+ * : The instance is unready.
12641
+ *
12642
+ * <!-- -->
12643
+ *
12644
+ * <!-- -->
12645
+ *
12646
+ * * Stopped
12647
+ *
12648
+ * <!-- -->
12649
+ *
12650
+ * : The instance has stopped.
12651
+ *
12652
+ * <!-- -->
12653
+ *
12654
+ * <!-- -->
12655
+ *
12656
+ * * NotReady-SchedulingDisabled
12657
+ *
12658
+ * <!-- -->
12659
+ *
12660
+ * :
12661
+ *
12662
+ * <!-- -->
12663
+ *
12664
+ * The instance is unavailable and unschedulable
12665
+ *
12666
+ * <!-- -->
12667
+ *
12668
+ * .
12669
+ *
12670
+ * * Attaching
12671
+ *
12672
+ * <!-- -->
12673
+ *
12674
+ * : The instance
12675
+ *
12676
+ * <!-- -->
12677
+ *
12678
+ * is starting
12679
+ *
12680
+ * <!-- -->
12681
+ *
12682
+ * .
12683
+ *
12684
+ * * Deleting
12685
+ *
12686
+ * <!-- -->
12687
+ *
12688
+ * : The instance is being deleted.
12689
+ *
12690
+ * <!-- -->
12691
+ *
12692
+ * <!-- -->
12693
+ *
12694
+ * * CreateFailed: The instance failed to be created.
12695
+ *
12696
+ * <!-- -->
12697
+ *
12698
+ * <!-- -->
12699
+ *
12700
+ * <!-- -->
12701
+ *
12702
+ * @example
12703
+ * Ready
12704
+ */
12705
+ instanceStatus?: string;
12706
+ /**
12707
+ * @remarks
12708
+ * The tag.
12709
+ */
12710
+ label?: { [key: string]: string };
12711
+ /**
12712
+ * @remarks
12713
+ * The sorting order.
12714
+ *
12715
+ * Valid values:
12716
+ *
12717
+ * * asc: The instances are sorted in ascending order.
12718
+ *
12719
+ * <!-- -->
12720
+ *
12721
+ * <!-- -->
12722
+ *
12723
+ * <!-- -->
12724
+ *
12725
+ * * desc
12726
+ *
12727
+ * <!-- -->
12728
+ *
12729
+ * : The instances are sorted in descending order.
12730
+ *
12731
+ * <!-- -->
12732
+ *
12733
+ * <!-- -->
12734
+ *
12735
+ * @example
12736
+ * desc
12737
+ */
12738
+ order?: string;
12739
+ /**
12740
+ * @remarks
12741
+ * The page number. Pages start from page 1. Default value: 1.
12742
+ *
12743
+ * @example
12744
+ * 1
12745
+ */
12746
+ pageNumber?: number;
12747
+ /**
12748
+ * @remarks
12749
+ * The number of entries per page. Default value: 100.
12750
+ *
12751
+ * @example
12752
+ * 20
12753
+ */
12754
+ pageSize?: number;
12755
+ /**
12756
+ * @remarks
12757
+ * The field that you use to sort the query results.
12758
+ *
12759
+ * Valid values:
12760
+ *
12761
+ * * CreateTime
12762
+ *
12763
+ * <!-- -->
12764
+ *
12765
+ * : The instances are sorted based on the time when the instances were created.
12766
+ *
12767
+ * <!-- -->
12768
+ *
12769
+ * <!-- -->
12770
+ *
12771
+ * * MemoryUsed
12772
+ *
12773
+ * <!-- -->
12774
+ *
12775
+ * :
12776
+ *
12777
+ * <!-- -->
12778
+ *
12779
+ * The instances are sorted based on the memory usage of the instances
12780
+ *
12781
+ * <!-- -->
12782
+ *
12783
+ * .
12784
+ *
12785
+ * * GpuUsed
12786
+ *
12787
+ * <!-- -->
12788
+ *
12789
+ * : The instances are sorted based on the
12790
+ *
12791
+ * <!-- -->
12792
+ *
12793
+ * GPU usage of the instances.
12794
+ *
12795
+ * <!-- -->
12796
+ *
12797
+ * * ExpireTime: The instances are sorted based on the time when the instances expired.
12798
+ *
12799
+ * <!-- -->
12800
+ *
12801
+ * <!-- -->
12802
+ *
12803
+ * <!-- -->
12804
+ *
12805
+ * * CpuUsed
12806
+ *
12807
+ * <!-- -->
12808
+ *
12809
+ * :
12810
+ *
12811
+ * <!-- -->
12812
+ *
12813
+ * The instances are sorted based on the CPU utilization of the instances.
12814
+ *
12815
+ * <!-- -->
12816
+ *
12817
+ * @example
12818
+ * CreateTime
11939
12819
  */
11940
- totalCount?: number;
12820
+ sort?: string;
11941
12821
  static names(): { [key: string]: string } {
11942
12822
  return {
12823
+ chargeType: 'ChargeType',
12824
+ filter: 'Filter',
12825
+ instanceIP: 'InstanceIP',
12826
+ instanceId: 'InstanceId',
12827
+ instanceName: 'InstanceName',
12828
+ instanceStatus: 'InstanceStatus',
12829
+ label: 'Label',
12830
+ order: 'Order',
11943
12831
  pageNumber: 'PageNumber',
11944
12832
  pageSize: 'PageSize',
11945
- pods: 'Pods',
11946
- requestId: 'RequestId',
11947
- totalCount: 'TotalCount',
12833
+ sort: 'Sort',
11948
12834
  };
11949
12835
  }
11950
12836
 
11951
12837
  static types(): { [key: string]: any } {
11952
12838
  return {
12839
+ chargeType: 'string',
12840
+ filter: 'string',
12841
+ instanceIP: 'string',
12842
+ instanceId: 'string',
12843
+ instanceName: 'string',
12844
+ instanceStatus: 'string',
12845
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
12846
+ order: 'string',
11953
12847
  pageNumber: 'number',
11954
12848
  pageSize: 'number',
11955
- pods: { 'type': 'array', 'itemType': ResourceInstanceWorker },
11956
- requestId: 'string',
11957
- totalCount: 'number',
11958
- };
11959
- }
11960
-
11961
- validate() {
11962
- if(Array.isArray(this.pods)) {
11963
- $dara.Model.validateArray(this.pods);
11964
- }
11965
- super.validate();
11966
- }
11967
-
11968
- constructor(map?: { [key: string]: any }) {
11969
- super(map);
11970
- }
11971
- }
11972
-
11973
- export class ListResourceInstanceWorkerResponse extends $dara.Model {
11974
- headers?: { [key: string]: string };
11975
- statusCode?: number;
11976
- body?: ListResourceInstanceWorkerResponseBody;
11977
- static names(): { [key: string]: string } {
11978
- return {
11979
- headers: 'headers',
11980
- statusCode: 'statusCode',
11981
- body: 'body',
11982
- };
11983
- }
11984
-
11985
- static types(): { [key: string]: any } {
11986
- return {
11987
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
11988
- statusCode: 'number',
11989
- body: ListResourceInstanceWorkerResponseBody,
12849
+ sort: 'string',
11990
12850
  };
11991
12851
  }
11992
12852
 
11993
12853
  validate() {
11994
- if(this.headers) {
11995
- $dara.Model.validateMap(this.headers);
11996
- }
11997
- if(this.body && typeof (this.body as any).validate === 'function') {
11998
- (this.body as any).validate();
12854
+ if(this.label) {
12855
+ $dara.Model.validateMap(this.label);
11999
12856
  }
12000
12857
  super.validate();
12001
12858
  }
@@ -12005,7 +12862,7 @@ export class ListResourceInstanceWorkerResponse extends $dara.Model {
12005
12862
  }
12006
12863
  }
12007
12864
 
12008
- export class ListResourceInstancesRequest extends $dara.Model {
12865
+ export class ListResourceInstancesShrinkRequest extends $dara.Model {
12009
12866
  /**
12010
12867
  * @remarks
12011
12868
  * The billing method of the instance. Valid values:
@@ -12153,6 +13010,11 @@ export class ListResourceInstancesRequest extends $dara.Model {
12153
13010
  * Ready
12154
13011
  */
12155
13012
  instanceStatus?: string;
13013
+ /**
13014
+ * @remarks
13015
+ * The tag.
13016
+ */
13017
+ labelShrink?: string;
12156
13018
  /**
12157
13019
  * @remarks
12158
13020
  * The sorting order.
@@ -12271,6 +13133,7 @@ export class ListResourceInstancesRequest extends $dara.Model {
12271
13133
  instanceId: 'InstanceId',
12272
13134
  instanceName: 'InstanceName',
12273
13135
  instanceStatus: 'InstanceStatus',
13136
+ labelShrink: 'Label',
12274
13137
  order: 'Order',
12275
13138
  pageNumber: 'PageNumber',
12276
13139
  pageSize: 'PageSize',
@@ -12286,6 +13149,7 @@ export class ListResourceInstancesRequest extends $dara.Model {
12286
13149
  instanceId: 'string',
12287
13150
  instanceName: 'string',
12288
13151
  instanceStatus: 'string',
13152
+ labelShrink: 'string',
12289
13153
  order: 'string',
12290
13154
  pageNumber: 'number',
12291
13155
  pageSize: 'number',
@@ -12553,6 +13417,16 @@ export class ListResourceServicesResponse extends $dara.Model {
12553
13417
  }
12554
13418
 
12555
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
+ */
12556
13430
  order?: string;
12557
13431
  /**
12558
13432
  * @remarks
@@ -12586,6 +13460,13 @@ export class ListResourcesRequest extends $dara.Model {
12586
13460
  * MyResource
12587
13461
  */
12588
13462
  resourceName?: string;
13463
+ /**
13464
+ * @remarks
13465
+ * The resource group status.
13466
+ *
13467
+ * @example
13468
+ * ResourceReady
13469
+ */
12589
13470
  resourceStatus?: string;
12590
13471
  /**
12591
13472
  * @remarks
@@ -12598,6 +13479,26 @@ export class ListResourcesRequest extends $dara.Model {
12598
13479
  * Dedicated
12599
13480
  */
12600
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
+ */
12601
13502
  sort?: string;
12602
13503
  static names(): { [key: string]: string } {
12603
13504
  return {
@@ -14390,7 +15291,7 @@ export class ListVirtualResourceResponseBody extends $dara.Model {
14390
15291
  totalCount?: number;
14391
15292
  /**
14392
15293
  * @remarks
14393
- * The list of virtual resource groups.
15294
+ * The virtual resource groups.
14394
15295
  */
14395
15296
  virtualResources?: ListVirtualResourceResponseBodyVirtualResources[];
14396
15297
  static names(): { [key: string]: string } {
@@ -15331,37 +16232,41 @@ export class UpdateGatewayRequest extends $dara.Model {
15331
16232
  * Valid values:
15332
16233
  *
15333
16234
  * * true
15334
- *
15335
- * <!-- -->
15336
- *
15337
- * <!-- -->
15338
- *
15339
- * <!-- -->
15340
- *
15341
16235
  * * false
15342
16236
  *
15343
- * <!-- -->
15344
- *
15345
- * <!-- -->
15346
- *
15347
- * <!-- -->
15348
- *
15349
16237
  * @example
15350
16238
  * false
15351
16239
  */
15352
16240
  enableInternet?: boolean;
15353
16241
  /**
15354
16242
  * @remarks
15355
- * 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
15356
16249
  *
15357
16250
  * @example
15358
16251
  * true
15359
16252
  */
15360
16253
  enableIntranet?: boolean;
16254
+ /**
16255
+ * @remarks
16256
+ * Specifies whether to enable HTTP to HTTPS redirection. Default value: false.
16257
+ *
16258
+ * @example
16259
+ * false
16260
+ */
15361
16261
  enableSSLRedirection?: boolean;
15362
16262
  /**
15363
16263
  * @remarks
15364
- * 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
15365
16270
  *
15366
16271
  * @example
15367
16272
  * ecs.c6.4xlarge
@@ -15369,7 +16274,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15369
16274
  instanceType?: string;
15370
16275
  /**
15371
16276
  * @remarks
15372
- * Indicates whether it is the default private gateway.
16277
+ * Specifies whether it is the default private gateway.
15373
16278
  *
15374
16279
  * @example
15375
16280
  * true
@@ -15377,7 +16282,7 @@ export class UpdateGatewayRequest extends $dara.Model {
15377
16282
  isDefault?: boolean;
15378
16283
  /**
15379
16284
  * @remarks
15380
- * The private gateway alias.
16285
+ * The alias of the private gateway.
15381
16286
  *
15382
16287
  * @example
15383
16288
  * mygateway1
@@ -15738,10 +16643,131 @@ export class UpdateResourceDLinkResponseBody extends $dara.Model {
15738
16643
  }
15739
16644
  }
15740
16645
 
15741
- export class UpdateResourceDLinkResponse extends $dara.Model {
16646
+ export class UpdateResourceDLinkResponse extends $dara.Model {
16647
+ headers?: { [key: string]: string };
16648
+ statusCode?: number;
16649
+ body?: UpdateResourceDLinkResponseBody;
16650
+ static names(): { [key: string]: string } {
16651
+ return {
16652
+ headers: 'headers',
16653
+ statusCode: 'statusCode',
16654
+ body: 'body',
16655
+ };
16656
+ }
16657
+
16658
+ static types(): { [key: string]: any } {
16659
+ return {
16660
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16661
+ statusCode: 'number',
16662
+ body: UpdateResourceDLinkResponseBody,
16663
+ };
16664
+ }
16665
+
16666
+ validate() {
16667
+ if(this.headers) {
16668
+ $dara.Model.validateMap(this.headers);
16669
+ }
16670
+ if(this.body && typeof (this.body as any).validate === 'function') {
16671
+ (this.body as any).validate();
16672
+ }
16673
+ super.validate();
16674
+ }
16675
+
16676
+ constructor(map?: { [key: string]: any }) {
16677
+ super(map);
16678
+ }
16679
+ }
16680
+
16681
+ export class UpdateResourceInstanceRequest extends $dara.Model {
16682
+ /**
16683
+ * @remarks
16684
+ * The operation that updates the scheduling state of the instance in a dedicated resource group. Valid values:
16685
+ *
16686
+ * * Uncordon: allows scheduling the service to this instance.
16687
+ * * Cordon: prohibits scheduling the service to this instance.
16688
+ * * Drain: evicts the service that has been scheduled to this instance.
16689
+ *
16690
+ * This parameter is required.
16691
+ *
16692
+ * @example
16693
+ * Cordon
16694
+ */
16695
+ action?: string;
16696
+ static names(): { [key: string]: string } {
16697
+ return {
16698
+ action: 'Action',
16699
+ };
16700
+ }
16701
+
16702
+ static types(): { [key: string]: any } {
16703
+ return {
16704
+ action: 'string',
16705
+ };
16706
+ }
16707
+
16708
+ validate() {
16709
+ super.validate();
16710
+ }
16711
+
16712
+ constructor(map?: { [key: string]: any }) {
16713
+ super(map);
16714
+ }
16715
+ }
16716
+
16717
+ export class UpdateResourceInstanceResponseBody extends $dara.Model {
16718
+ /**
16719
+ * @remarks
16720
+ * The instance ID.
16721
+ *
16722
+ * @example
16723
+ * eas-i-asdasdasd
16724
+ */
16725
+ instanceId?: string;
16726
+ /**
16727
+ * @remarks
16728
+ * The request ID.
16729
+ *
16730
+ * @example
16731
+ * 40325405-579C-4D82****
16732
+ */
16733
+ requestId?: string;
16734
+ /**
16735
+ * @remarks
16736
+ * The ID of the resource group.
16737
+ *
16738
+ * @example
16739
+ * eas-r-asdasdasd
16740
+ */
16741
+ resourceId?: string;
16742
+ static names(): { [key: string]: string } {
16743
+ return {
16744
+ instanceId: 'InstanceId',
16745
+ requestId: 'RequestId',
16746
+ resourceId: 'ResourceId',
16747
+ };
16748
+ }
16749
+
16750
+ static types(): { [key: string]: any } {
16751
+ return {
16752
+ instanceId: 'string',
16753
+ requestId: 'string',
16754
+ resourceId: 'string',
16755
+ };
16756
+ }
16757
+
16758
+ validate() {
16759
+ super.validate();
16760
+ }
16761
+
16762
+ constructor(map?: { [key: string]: any }) {
16763
+ super(map);
16764
+ }
16765
+ }
16766
+
16767
+ export class UpdateResourceInstanceResponse extends $dara.Model {
15742
16768
  headers?: { [key: string]: string };
15743
16769
  statusCode?: number;
15744
- body?: UpdateResourceDLinkResponseBody;
16770
+ body?: UpdateResourceInstanceResponseBody;
15745
16771
  static names(): { [key: string]: string } {
15746
16772
  return {
15747
16773
  headers: 'headers',
@@ -15754,7 +16780,7 @@ export class UpdateResourceDLinkResponse extends $dara.Model {
15754
16780
  return {
15755
16781
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
15756
16782
  statusCode: 'number',
15757
- body: UpdateResourceDLinkResponseBody,
16783
+ body: UpdateResourceInstanceResponseBody,
15758
16784
  };
15759
16785
  }
15760
16786
 
@@ -15773,34 +16799,48 @@ export class UpdateResourceDLinkResponse extends $dara.Model {
15773
16799
  }
15774
16800
  }
15775
16801
 
15776
- export class UpdateResourceInstanceRequest extends $dara.Model {
16802
+ export class UpdateResourceInstanceLabelRequest extends $dara.Model {
15777
16803
  /**
15778
16804
  * @remarks
15779
- * The operation that updates the scheduling state of the instance in a dedicated resource group. Valid values:
15780
- *
15781
- * * Uncordon: allows scheduling the service to this instance.
15782
- * * Cordon: prohibits scheduling the service to this instance.
15783
- * * Drain: evicts the service that has been scheduled to this instance.
15784
- *
15785
- * This parameter is required.
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.
15786
16806
  *
15787
16807
  * @example
15788
- * Cordon
16808
+ * false
15789
16809
  */
15790
- action?: string;
16810
+ allInstances?: boolean;
16811
+ /**
16812
+ * @remarks
16813
+ * The instance IDs.
16814
+ */
16815
+ instanceIds?: string[];
16816
+ /**
16817
+ * @remarks
16818
+ * The custom tag.
16819
+ */
16820
+ labels?: { [key: string]: string };
15791
16821
  static names(): { [key: string]: string } {
15792
16822
  return {
15793
- action: 'Action',
16823
+ allInstances: 'AllInstances',
16824
+ instanceIds: 'InstanceIds',
16825
+ labels: 'Labels',
15794
16826
  };
15795
16827
  }
15796
16828
 
15797
16829
  static types(): { [key: string]: any } {
15798
16830
  return {
15799
- action: 'string',
16831
+ allInstances: 'boolean',
16832
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
16833
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
15800
16834
  };
15801
16835
  }
15802
16836
 
15803
16837
  validate() {
16838
+ if(Array.isArray(this.instanceIds)) {
16839
+ $dara.Model.validateArray(this.instanceIds);
16840
+ }
16841
+ if(this.labels) {
16842
+ $dara.Model.validateMap(this.labels);
16843
+ }
15804
16844
  super.validate();
15805
16845
  }
15806
16846
 
@@ -15809,44 +16849,81 @@ export class UpdateResourceInstanceRequest extends $dara.Model {
15809
16849
  }
15810
16850
  }
15811
16851
 
15812
- export class UpdateResourceInstanceResponseBody extends $dara.Model {
16852
+ export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
15813
16853
  /**
15814
16854
  * @remarks
15815
- * The instance ID.
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.
15816
16856
  *
15817
16857
  * @example
15818
- * eas-i-asdasdasd
16858
+ * false
15819
16859
  */
15820
- instanceId?: string;
16860
+ allInstances?: boolean;
15821
16861
  /**
15822
16862
  * @remarks
15823
- * The request ID.
16863
+ * The instance IDs.
16864
+ */
16865
+ instanceIdsShrink?: string;
16866
+ /**
16867
+ * @remarks
16868
+ * The custom tag.
16869
+ */
16870
+ labels?: { [key: string]: string };
16871
+ static names(): { [key: string]: string } {
16872
+ return {
16873
+ allInstances: 'AllInstances',
16874
+ instanceIdsShrink: 'InstanceIds',
16875
+ labels: 'Labels',
16876
+ };
16877
+ }
16878
+
16879
+ static types(): { [key: string]: any } {
16880
+ return {
16881
+ allInstances: 'boolean',
16882
+ instanceIdsShrink: 'string',
16883
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16884
+ };
16885
+ }
16886
+
16887
+ validate() {
16888
+ if(this.labels) {
16889
+ $dara.Model.validateMap(this.labels);
16890
+ }
16891
+ super.validate();
16892
+ }
16893
+
16894
+ constructor(map?: { [key: string]: any }) {
16895
+ super(map);
16896
+ }
16897
+ }
16898
+
16899
+ export class UpdateResourceInstanceLabelResponseBody extends $dara.Model {
16900
+ /**
16901
+ * @remarks
16902
+ * The message.
15824
16903
  *
15825
16904
  * @example
15826
- * 40325405-579C-4D82****
16905
+ * Success
15827
16906
  */
15828
- requestId?: string;
16907
+ message?: string;
15829
16908
  /**
15830
16909
  * @remarks
15831
- * The ID of the resource group.
16910
+ * The request ID.
15832
16911
  *
15833
16912
  * @example
15834
- * eas-r-asdasdasd
16913
+ * 40325405-579C-4D82****
15835
16914
  */
15836
- resourceId?: string;
16915
+ requestId?: string;
15837
16916
  static names(): { [key: string]: string } {
15838
16917
  return {
15839
- instanceId: 'InstanceId',
16918
+ message: 'Message',
15840
16919
  requestId: 'RequestId',
15841
- resourceId: 'ResourceId',
15842
16920
  };
15843
16921
  }
15844
16922
 
15845
16923
  static types(): { [key: string]: any } {
15846
16924
  return {
15847
- instanceId: 'string',
16925
+ message: 'string',
15848
16926
  requestId: 'string',
15849
- resourceId: 'string',
15850
16927
  };
15851
16928
  }
15852
16929
 
@@ -15859,10 +16936,10 @@ export class UpdateResourceInstanceResponseBody extends $dara.Model {
15859
16936
  }
15860
16937
  }
15861
16938
 
15862
- export class UpdateResourceInstanceResponse extends $dara.Model {
16939
+ export class UpdateResourceInstanceLabelResponse extends $dara.Model {
15863
16940
  headers?: { [key: string]: string };
15864
16941
  statusCode?: number;
15865
- body?: UpdateResourceInstanceResponseBody;
16942
+ body?: UpdateResourceInstanceLabelResponseBody;
15866
16943
  static names(): { [key: string]: string } {
15867
16944
  return {
15868
16945
  headers: 'headers',
@@ -15875,7 +16952,7 @@ export class UpdateResourceInstanceResponse extends $dara.Model {
15875
16952
  return {
15876
16953
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
15877
16954
  statusCode: 'number',
15878
- body: UpdateResourceInstanceResponseBody,
16955
+ body: UpdateResourceInstanceLabelResponseBody,
15879
16956
  };
15880
16957
  }
15881
16958
 
@@ -16819,17 +17896,24 @@ export class UpdateServiceVersionResponse extends $dara.Model {
16819
17896
  }
16820
17897
 
16821
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
+ */
16822
17906
  disableSpotProtectionPeriod?: boolean;
16823
17907
  /**
16824
17908
  * @remarks
16825
- * The list of resources in the virtual resource group.
17909
+ * The resources in the virtual resource group.
16826
17910
  *
16827
- * > If you specify this parameter, previous data are overwritten.
17911
+ * > If you specify this parameter, previous data is overwritten.
16828
17912
  */
16829
17913
  resources?: UpdateVirtualResourceRequestResources[];
16830
17914
  /**
16831
17915
  * @remarks
16832
- * The new name for the virtual resource group.
17916
+ * The new name of the virtual resource group.
16833
17917
  *
16834
17918
  * @example
16835
17919
  * NewMyVirtualResource
@@ -17540,6 +18624,10 @@ export default class Client extends OpenApi {
17540
18624
  body["EcsInstanceType"] = request.ecsInstanceType;
17541
18625
  }
17542
18626
 
18627
+ if (!$dara.isNull(request.labels)) {
18628
+ body["Labels"] = request.labels;
18629
+ }
18630
+
17543
18631
  if (!$dara.isNull(request.resourceType)) {
17544
18632
  body["ResourceType"] = request.resourceType;
17545
18633
  }
@@ -17621,6 +18709,10 @@ export default class Client extends OpenApi {
17621
18709
  body["EcsInstanceType"] = request.ecsInstanceType;
17622
18710
  }
17623
18711
 
18712
+ if (!$dara.isNull(request.labels)) {
18713
+ body["Labels"] = request.labels;
18714
+ }
18715
+
17624
18716
  if (!$dara.isNull(request.systemDiskSize)) {
17625
18717
  body["SystemDiskSize"] = request.systemDiskSize;
17626
18718
  }
@@ -18355,6 +19447,74 @@ export default class Client extends OpenApi {
18355
19447
  return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
18356
19448
  }
18357
19449
 
19450
+ /**
19451
+ * Deletes the tags of an instance in a resource group.
19452
+ *
19453
+ * @param tmpReq - DeleteResourceInstanceLabelRequest
19454
+ * @param headers - map
19455
+ * @param runtime - runtime options for this request RuntimeOptions
19456
+ * @returns DeleteResourceInstanceLabelResponse
19457
+ */
19458
+ async deleteResourceInstanceLabelWithOptions(ClusterId: string, ResourceId: string, tmpReq: DeleteResourceInstanceLabelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DeleteResourceInstanceLabelResponse> {
19459
+ tmpReq.validate();
19460
+ let request = new DeleteResourceInstanceLabelShrinkRequest({ });
19461
+ OpenApiUtil.convert(tmpReq, request);
19462
+ if (!$dara.isNull(tmpReq.instanceIds)) {
19463
+ request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "InstanceIds", "simple");
19464
+ }
19465
+
19466
+ if (!$dara.isNull(tmpReq.keys)) {
19467
+ request.keysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
19468
+ }
19469
+
19470
+ let query : {[key: string ]: any} = { };
19471
+ if (!$dara.isNull(request.allInstances)) {
19472
+ query["AllInstances"] = request.allInstances;
19473
+ }
19474
+
19475
+ if (!$dara.isNull(request.instanceIdsShrink)) {
19476
+ query["InstanceIds"] = request.instanceIdsShrink;
19477
+ }
19478
+
19479
+ if (!$dara.isNull(request.keysShrink)) {
19480
+ query["Keys"] = request.keysShrink;
19481
+ }
19482
+
19483
+ let req = new $OpenApiUtil.OpenApiRequest({
19484
+ headers: headers,
19485
+ query: OpenApiUtil.query(query),
19486
+ });
19487
+ let params = new $OpenApiUtil.Params({
19488
+ action: "DeleteResourceInstanceLabel",
19489
+ version: "2021-07-01",
19490
+ protocol: "HTTPS",
19491
+ pathname: `/api/v2/resources/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ResourceId)}/label`,
19492
+ method: "DELETE",
19493
+ authType: "AK",
19494
+ style: "ROA",
19495
+ reqBodyType: "json",
19496
+ bodyType: "json",
19497
+ });
19498
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
19499
+ return $dara.cast<DeleteResourceInstanceLabelResponse>(await this.callApi(params, req, runtime), new DeleteResourceInstanceLabelResponse({}));
19500
+ } else {
19501
+ return $dara.cast<DeleteResourceInstanceLabelResponse>(await this.execute(params, req, runtime), new DeleteResourceInstanceLabelResponse({}));
19502
+ }
19503
+
19504
+ }
19505
+
19506
+ /**
19507
+ * Deletes the tags of an instance in a resource group.
19508
+ *
19509
+ * @param request - DeleteResourceInstanceLabelRequest
19510
+ * @returns DeleteResourceInstanceLabelResponse
19511
+ */
19512
+ async deleteResourceInstanceLabel(ClusterId: string, ResourceId: string, request: DeleteResourceInstanceLabelRequest): Promise<DeleteResourceInstanceLabelResponse> {
19513
+ let runtime = new $dara.RuntimeOptions({ });
19514
+ let headers : {[key: string ]: string} = { };
19515
+ return await this.deleteResourceInstanceLabelWithOptions(ClusterId, ResourceId, request, headers, runtime);
19516
+ }
19517
+
18358
19518
  /**
18359
19519
  * Deletes instances in a dedicated resource group. You can delete only pay-as-you-go instances as a regular user.
18360
19520
  *
@@ -18973,6 +20133,62 @@ export default class Client extends OpenApi {
18973
20133
  return await this.describeGroupEndpointsWithOptions(ClusterId, GroupName, headers, runtime);
18974
20134
  }
18975
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
+
18976
20192
  /**
18977
20193
  * Queries the information about a resource group.
18978
20194
  *
@@ -20254,13 +21470,19 @@ export default class Client extends OpenApi {
20254
21470
  /**
20255
21471
  * Queries a list of instances in a dedicated resource group.
20256
21472
  *
20257
- * @param request - ListResourceInstancesRequest
21473
+ * @param tmpReq - ListResourceInstancesRequest
20258
21474
  * @param headers - map
20259
21475
  * @param runtime - runtime options for this request RuntimeOptions
20260
21476
  * @returns ListResourceInstancesResponse
20261
21477
  */
20262
- async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<ListResourceInstancesResponse> {
20263
- request.validate();
21478
+ async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, tmpReq: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<ListResourceInstancesResponse> {
21479
+ tmpReq.validate();
21480
+ let request = new ListResourceInstancesShrinkRequest({ });
21481
+ OpenApiUtil.convert(tmpReq, request);
21482
+ if (!$dara.isNull(tmpReq.label)) {
21483
+ request.labelShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
21484
+ }
21485
+
20264
21486
  let query : {[key: string ]: any} = { };
20265
21487
  if (!$dara.isNull(request.chargeType)) {
20266
21488
  query["ChargeType"] = request.chargeType;
@@ -20286,6 +21508,10 @@ export default class Client extends OpenApi {
20286
21508
  query["InstanceStatus"] = request.instanceStatus;
20287
21509
  }
20288
21510
 
21511
+ if (!$dara.isNull(request.labelShrink)) {
21512
+ query["Label"] = request.labelShrink;
21513
+ }
21514
+
20289
21515
  if (!$dara.isNull(request.order)) {
20290
21516
  query["Order"] = request.order;
20291
21517
  }
@@ -21544,6 +22770,72 @@ export default class Client extends OpenApi {
21544
22770
  return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
21545
22771
  }
21546
22772
 
22773
+ /**
22774
+ * Updates the tag of an instance in a resource group.
22775
+ *
22776
+ * @param tmpReq - UpdateResourceInstanceLabelRequest
22777
+ * @param headers - map
22778
+ * @param runtime - runtime options for this request RuntimeOptions
22779
+ * @returns UpdateResourceInstanceLabelResponse
22780
+ */
22781
+ async updateResourceInstanceLabelWithOptions(ClusterId: string, ResourceId: string, tmpReq: UpdateResourceInstanceLabelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<UpdateResourceInstanceLabelResponse> {
22782
+ tmpReq.validate();
22783
+ let request = new UpdateResourceInstanceLabelShrinkRequest({ });
22784
+ OpenApiUtil.convert(tmpReq, request);
22785
+ if (!$dara.isNull(tmpReq.instanceIds)) {
22786
+ request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "InstanceIds", "simple");
22787
+ }
22788
+
22789
+ let query : {[key: string ]: any} = { };
22790
+ if (!$dara.isNull(request.allInstances)) {
22791
+ query["AllInstances"] = request.allInstances;
22792
+ }
22793
+
22794
+ if (!$dara.isNull(request.instanceIdsShrink)) {
22795
+ query["InstanceIds"] = request.instanceIdsShrink;
22796
+ }
22797
+
22798
+ let body : {[key: string ]: any} = { };
22799
+ if (!$dara.isNull(request.labels)) {
22800
+ body["Labels"] = request.labels;
22801
+ }
22802
+
22803
+ let req = new $OpenApiUtil.OpenApiRequest({
22804
+ headers: headers,
22805
+ query: OpenApiUtil.query(query),
22806
+ body: OpenApiUtil.parseToMap(body),
22807
+ });
22808
+ let params = new $OpenApiUtil.Params({
22809
+ action: "UpdateResourceInstanceLabel",
22810
+ version: "2021-07-01",
22811
+ protocol: "HTTPS",
22812
+ pathname: `/api/v2/resources/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ResourceId)}/label`,
22813
+ method: "PUT",
22814
+ authType: "AK",
22815
+ style: "ROA",
22816
+ reqBodyType: "json",
22817
+ bodyType: "json",
22818
+ });
22819
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
22820
+ return $dara.cast<UpdateResourceInstanceLabelResponse>(await this.callApi(params, req, runtime), new UpdateResourceInstanceLabelResponse({}));
22821
+ } else {
22822
+ return $dara.cast<UpdateResourceInstanceLabelResponse>(await this.execute(params, req, runtime), new UpdateResourceInstanceLabelResponse({}));
22823
+ }
22824
+
22825
+ }
22826
+
22827
+ /**
22828
+ * Updates the tag of an instance in a resource group.
22829
+ *
22830
+ * @param request - UpdateResourceInstanceLabelRequest
22831
+ * @returns UpdateResourceInstanceLabelResponse
22832
+ */
22833
+ async updateResourceInstanceLabel(ClusterId: string, ResourceId: string, request: UpdateResourceInstanceLabelRequest): Promise<UpdateResourceInstanceLabelResponse> {
22834
+ let runtime = new $dara.RuntimeOptions({ });
22835
+ let headers : {[key: string ]: string} = { };
22836
+ return await this.updateResourceInstanceLabelWithOptions(ClusterId, ResourceId, request, headers, runtime);
22837
+ }
22838
+
21547
22839
  /**
21548
22840
  * Updates a model or processor of a service. If only the metadata.instance field is updated, manual scaling can be performed.
21549
22841
  *