@alicloud/cs20151215 7.0.5 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/client.d.ts +104 -2
  2. package/dist/client.js +285 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterRequest.d.ts +345 -70
  5. package/dist/models/CreateClusterRequest.js.map +1 -1
  6. package/dist/models/CreateNodePoolComponentInstancesRequest.d.ts +100 -0
  7. package/dist/models/CreateNodePoolComponentInstancesRequest.js +144 -0
  8. package/dist/models/CreateNodePoolComponentInstancesRequest.js.map +1 -0
  9. package/dist/models/CreateNodePoolComponentInstancesResponse.d.ts +19 -0
  10. package/dist/models/CreateNodePoolComponentInstancesResponse.js +69 -0
  11. package/dist/models/CreateNodePoolComponentInstancesResponse.js.map +1 -0
  12. package/dist/models/CreateNodePoolComponentInstancesResponseBody.d.ts +28 -0
  13. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js +62 -0
  14. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js.map +1 -0
  15. package/dist/models/DeleteNodePoolComponentInstanceRequest.d.ts +38 -0
  16. package/dist/models/DeleteNodePoolComponentInstanceRequest.js +69 -0
  17. package/dist/models/DeleteNodePoolComponentInstanceRequest.js.map +1 -0
  18. package/dist/models/DeleteNodePoolComponentInstanceResponse.d.ts +19 -0
  19. package/dist/models/DeleteNodePoolComponentInstanceResponse.js +69 -0
  20. package/dist/models/DeleteNodePoolComponentInstanceResponse.js.map +1 -0
  21. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.d.ts +28 -0
  22. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js +62 -0
  23. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js.map +1 -0
  24. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.d.ts +38 -0
  25. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js +66 -0
  26. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js.map +1 -0
  27. package/dist/models/ListNodePoolComponentInstancesRequest.d.ts +23 -0
  28. package/dist/models/ListNodePoolComponentInstancesRequest.js +60 -0
  29. package/dist/models/ListNodePoolComponentInstancesRequest.js.map +1 -0
  30. package/dist/models/ListNodePoolComponentInstancesResponse.d.ts +19 -0
  31. package/dist/models/ListNodePoolComponentInstancesResponse.js +69 -0
  32. package/dist/models/ListNodePoolComponentInstancesResponse.js.map +1 -0
  33. package/dist/models/ListNodePoolComponentInstancesResponseBody.d.ts +76 -0
  34. package/dist/models/ListNodePoolComponentInstancesResponseBody.js +117 -0
  35. package/dist/models/ListNodePoolComponentInstancesResponseBody.js.map +1 -0
  36. package/dist/models/ListNodePoolComponentsRequest.d.ts +48 -0
  37. package/dist/models/ListNodePoolComponentsRequest.js +73 -0
  38. package/dist/models/ListNodePoolComponentsRequest.js.map +1 -0
  39. package/dist/models/ListNodePoolComponentsResponse.d.ts +19 -0
  40. package/dist/models/ListNodePoolComponentsResponse.js +69 -0
  41. package/dist/models/ListNodePoolComponentsResponse.js.map +1 -0
  42. package/dist/models/ListNodePoolComponentsResponseBody.d.ts +51 -0
  43. package/dist/models/ListNodePoolComponentsResponseBody.js +88 -0
  44. package/dist/models/ListNodePoolComponentsResponseBody.js.map +1 -0
  45. package/dist/models/ListNodePoolComponentsShrinkRequest.d.ts +48 -0
  46. package/dist/models/ListNodePoolComponentsShrinkRequest.js +70 -0
  47. package/dist/models/ListNodePoolComponentsShrinkRequest.js.map +1 -0
  48. package/dist/models/Nodepool.d.ts +65 -46
  49. package/dist/models/Nodepool.js +6 -0
  50. package/dist/models/Nodepool.js.map +1 -1
  51. package/dist/models/UpdateNodePoolComponentInstanceRequest.d.ts +77 -0
  52. package/dist/models/UpdateNodePoolComponentInstanceRequest.js +122 -0
  53. package/dist/models/UpdateNodePoolComponentInstanceRequest.js.map +1 -0
  54. package/dist/models/UpdateNodePoolComponentInstanceResponse.d.ts +19 -0
  55. package/dist/models/UpdateNodePoolComponentInstanceResponse.js +69 -0
  56. package/dist/models/UpdateNodePoolComponentInstanceResponse.js.map +1 -0
  57. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.d.ts +28 -0
  58. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js +62 -0
  59. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js.map +1 -0
  60. package/dist/models/model.d.ts +25 -0
  61. package/dist/models/model.js +63 -12
  62. package/dist/models/model.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/client.ts +319 -2
  65. package/src/models/CreateClusterRequest.ts +345 -70
  66. package/src/models/CreateNodePoolComponentInstancesRequest.ts +170 -0
  67. package/src/models/CreateNodePoolComponentInstancesResponse.ts +40 -0
  68. package/src/models/CreateNodePoolComponentInstancesResponseBody.ts +45 -0
  69. package/src/models/DeleteNodePoolComponentInstanceRequest.ts +62 -0
  70. package/src/models/DeleteNodePoolComponentInstanceResponse.ts +40 -0
  71. package/src/models/DeleteNodePoolComponentInstanceResponseBody.ts +45 -0
  72. package/src/models/DeleteNodePoolComponentInstanceShrinkRequest.ts +59 -0
  73. package/src/models/ListNodePoolComponentInstancesRequest.ts +38 -0
  74. package/src/models/ListNodePoolComponentInstancesResponse.ts +40 -0
  75. package/src/models/ListNodePoolComponentInstancesResponseBody.ts +128 -0
  76. package/src/models/ListNodePoolComponentsRequest.ts +76 -0
  77. package/src/models/ListNodePoolComponentsResponse.ts +40 -0
  78. package/src/models/ListNodePoolComponentsResponseBody.ts +85 -0
  79. package/src/models/ListNodePoolComponentsShrinkRequest.ts +73 -0
  80. package/src/models/Nodepool.ts +70 -46
  81. package/src/models/UpdateNodePoolComponentInstanceRequest.ts +134 -0
  82. package/src/models/UpdateNodePoolComponentInstanceResponse.ts +40 -0
  83. package/src/models/UpdateNodePoolComponentInstanceResponseBody.ts +45 -0
  84. package/src/models/model.ts +25 -0
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListNodePoolComponentsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * aliyun_3_x64_20G_container_optimized_alibase_20250629.vhd
9
+ */
10
+ imageId?: string;
11
+ /**
12
+ * @example
13
+ * AliyunLinux3
14
+ */
15
+ imageType?: string;
16
+ /**
17
+ * @example
18
+ * ["ecs.c6.xlarge"]
19
+ */
20
+ instanceTypes?: string[];
21
+ /**
22
+ * @example
23
+ * 10
24
+ */
25
+ maxResults?: number;
26
+ /**
27
+ * @example
28
+ * 5c0a1c0f91c14c6****
29
+ */
30
+ nextToken?: string;
31
+ /**
32
+ * @example
33
+ * np1855b102ac434f5990d87b77a****
34
+ */
35
+ nodepoolId?: string;
36
+ /**
37
+ * @example
38
+ * ess
39
+ */
40
+ nodepoolType?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ imageId: 'image_id',
44
+ imageType: 'image_type',
45
+ instanceTypes: 'instance_types',
46
+ maxResults: 'max_results',
47
+ nextToken: 'next_token',
48
+ nodepoolId: 'nodepool_id',
49
+ nodepoolType: 'nodepool_type',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ imageId: 'string',
56
+ imageType: 'string',
57
+ instanceTypes: { 'type': 'array', 'itemType': 'string' },
58
+ maxResults: 'number',
59
+ nextToken: 'string',
60
+ nodepoolId: 'string',
61
+ nodepoolType: 'string',
62
+ };
63
+ }
64
+
65
+ validate() {
66
+ if(Array.isArray(this.instanceTypes)) {
67
+ $dara.Model.validateArray(this.instanceTypes);
68
+ }
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListNodePoolComponentsResponseBody } from "./ListNodePoolComponentsResponseBody";
4
+
5
+
6
+ export class ListNodePoolComponentsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListNodePoolComponentsResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ListNodePoolComponentsResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,85 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListNodePoolComponentsResponseBodyComponents extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * "{\\"$schema\\": \\"\\",\\"properties\\": {}"
9
+ */
10
+ configSchema?: string;
11
+ /**
12
+ * @example
13
+ * kubelet
14
+ */
15
+ name?: string;
16
+ /**
17
+ * @example
18
+ * 1.28.9-aliyun.1
19
+ */
20
+ version?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ configSchema: 'config_schema',
24
+ name: 'name',
25
+ version: 'version',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ configSchema: 'string',
32
+ name: 'string',
33
+ version: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class ListNodePoolComponentsResponseBody extends $dara.Model {
47
+ components?: ListNodePoolComponentsResponseBodyComponents[];
48
+ /**
49
+ * @example
50
+ * 10
51
+ */
52
+ maxResults?: number;
53
+ /**
54
+ * @example
55
+ * 5c0a1c0f91c14c6****
56
+ */
57
+ nextToken?: string;
58
+ static names(): { [key: string]: string } {
59
+ return {
60
+ components: 'components',
61
+ maxResults: 'max_results',
62
+ nextToken: 'next_token',
63
+ };
64
+ }
65
+
66
+ static types(): { [key: string]: any } {
67
+ return {
68
+ components: { 'type': 'array', 'itemType': ListNodePoolComponentsResponseBodyComponents },
69
+ maxResults: 'number',
70
+ nextToken: 'string',
71
+ };
72
+ }
73
+
74
+ validate() {
75
+ if(Array.isArray(this.components)) {
76
+ $dara.Model.validateArray(this.components);
77
+ }
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
@@ -0,0 +1,73 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListNodePoolComponentsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * aliyun_3_x64_20G_container_optimized_alibase_20250629.vhd
9
+ */
10
+ imageId?: string;
11
+ /**
12
+ * @example
13
+ * AliyunLinux3
14
+ */
15
+ imageType?: string;
16
+ /**
17
+ * @example
18
+ * ["ecs.c6.xlarge"]
19
+ */
20
+ instanceTypesShrink?: string;
21
+ /**
22
+ * @example
23
+ * 10
24
+ */
25
+ maxResults?: number;
26
+ /**
27
+ * @example
28
+ * 5c0a1c0f91c14c6****
29
+ */
30
+ nextToken?: string;
31
+ /**
32
+ * @example
33
+ * np1855b102ac434f5990d87b77a****
34
+ */
35
+ nodepoolId?: string;
36
+ /**
37
+ * @example
38
+ * ess
39
+ */
40
+ nodepoolType?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ imageId: 'image_id',
44
+ imageType: 'image_type',
45
+ instanceTypesShrink: 'instance_types',
46
+ maxResults: 'max_results',
47
+ nextToken: 'next_token',
48
+ nodepoolId: 'nodepool_id',
49
+ nodepoolType: 'nodepool_type',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ imageId: 'string',
56
+ imageType: 'string',
57
+ instanceTypesShrink: 'string',
58
+ maxResults: 'number',
59
+ nextToken: 'string',
60
+ nodepoolId: 'string',
61
+ nodepoolType: 'string',
62
+ };
63
+ }
64
+
65
+ validate() {
66
+ super.validate();
67
+ }
68
+
69
+ constructor(map?: { [key: string]: any }) {
70
+ super(map);
71
+ }
72
+ }
73
+
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
  import { DataDisk } from "./DataDisk";
4
4
  import { DiskInit } from "./DiskInit";
5
5
  import { InstanceMetadataOptions } from "./InstanceMetadataOptions";
6
+ import { InstancePatterns } from "./InstancePatterns";
6
7
  import { KubeletConfig } from "./KubeletConfig";
7
8
  import { Tag } from "./Tag";
8
9
  import { Taint } from "./Taint";
@@ -48,7 +49,7 @@ export class NodepoolAutoScaling extends $dara.Model {
48
49
  * @remarks
49
50
  * **[Deprecated]**
50
51
  *
51
- * Specifies whether to associate an elastic IP address (EIP). Valid values:
52
+ * Specifies whether to associate an Elastic IP Address (EIP). Valid values:
52
53
  *
53
54
  * - `true`: Associates an EIP.
54
55
  * - `false`: Does not associate an EIP.
@@ -226,7 +227,7 @@ export class NodepoolKubernetesConfig extends $dara.Model {
226
227
  cpuPolicy?: string;
227
228
  /**
228
229
  * @remarks
229
- * The node labels. Labels are added to the nodes in the Kubernetes cluster.
230
+ * The node labels. Adds labels to Kubernetes cluster nodes.
230
231
  */
231
232
  labels?: Tag[];
232
233
  /**
@@ -241,7 +242,7 @@ export class NodepoolKubernetesConfig extends $dara.Model {
241
242
  * @remarks
242
243
  * The container runtime. Valid values:
243
244
  * - `containerd`: Recommended. Supported by all cluster versions.
244
- * - `Sandboxed-Container.runv`: Sandboxed container runtime that provides higher isolation. Supported by clusters of version 1.24 and earlier.
245
+ * - `Sandboxed-Container.runv`: Sandboxed container that provides higher isolation. Supported by clusters of version 1.24 and earlier.
245
246
  * - `docker`: Supported by clusters of version 1.22 and earlier.
246
247
  *
247
248
  * Default value: `containerd`
@@ -269,7 +270,7 @@ export class NodepoolKubernetesConfig extends $dara.Model {
269
270
  taints?: Taint[];
270
271
  /**
271
272
  * @remarks
272
- * The custom data for nodes.
273
+ * The node custom data.
273
274
  *
274
275
  * @example
275
276
  * MXM=
@@ -318,11 +319,17 @@ export class NodepoolKubernetesConfig extends $dara.Model {
318
319
 
319
320
  export class NodepoolManagementAutoRepairPolicy extends $dara.Model {
320
321
  /**
322
+ * @remarks
323
+ * The maximum number of parallel repairs. When a large number of abnormal nodes exist in the node pool, this specifies the maximum number or percentage of nodes that can be repaired simultaneously. Supports a number (such as 5, valid range: 1 to 100000) or a percentage (such as 10%, valid range: 1% to 100%). Default value: 1.
324
+ *
321
325
  * @example
322
326
  * 5
323
327
  */
324
328
  maxParallelRepairingNodes?: string;
325
329
  /**
330
+ * @remarks
331
+ * The self-healing circuit breaker threshold. When the number or percentage of faulty nodes exceeds this threshold, self-healing enters a circuit breaker state and stops initiating new repair actions. Supports a number (such as 10, valid range: 1 to 100000) or a percentage (such as 20%, valid range: 1% to 100%). Default value: 100%.
332
+ *
326
333
  * @example
327
334
  * 20%
328
335
  */
@@ -363,7 +370,7 @@ export class NodepoolManagementAutoRepairPolicy extends $dara.Model {
363
370
  export class NodepoolManagementAutoUpgradePolicy extends $dara.Model {
364
371
  /**
365
372
  * @remarks
366
- * Specifies whether to allow automatic kubelet upgrade.
373
+ * Specifies whether to allow auto upgrade of kubelet.
367
374
  *
368
375
  * @example
369
376
  * true
@@ -401,7 +408,7 @@ export class NodepoolManagementAutoVulFixPolicy extends $dara.Model {
401
408
  restartNode?: boolean;
402
409
  /**
403
410
  * @remarks
404
- * The vulnerability levels that are allowed for automatic fix, separated by commas.
411
+ * The vulnerability levels allowed for auto fix, separated by commas.
405
412
  *
406
413
  * @example
407
414
  * asap,nntf
@@ -457,7 +464,7 @@ export class NodepoolManagementUpgradeConfig extends $dara.Model {
457
464
  surge?: number;
458
465
  /**
459
466
  * @remarks
460
- * The percentage of extra nodes. You can set either this parameter or `surge`.
467
+ * The percentage of extra nodes. This parameter is mutually exclusive with `surge`.
461
468
  *
462
469
  * @example
463
470
  * 0
@@ -493,15 +500,12 @@ export class NodepoolManagementUpgradeConfig extends $dara.Model {
493
500
  export class NodepoolManagement extends $dara.Model {
494
501
  /**
495
502
  * @remarks
496
- * Specifies whether to enable node self-healing ECS fault detection.
503
+ * Specifies whether to enable self-healing ECS fault detection for nodes.
497
504
  */
498
505
  autoFaultDiagnosis?: boolean;
499
506
  /**
500
507
  * @remarks
501
- * Specifies whether to enable automatic repair. This parameter takes effect only when `enable=true`.
502
- *
503
- * - `true`: Enables automatic repair.
504
- * - `false`: Disables automatic repair.
508
+ * Specifies whether to enable auto repair. This parameter takes effect only when `enable=true`.
505
509
  *
506
510
  * @example
507
511
  * false
@@ -612,7 +616,7 @@ export class NodepoolManagement extends $dara.Model {
612
616
  export class NodepoolNodeComponentsConfig extends $dara.Model {
613
617
  /**
614
618
  * @remarks
615
- * The custom configuration of node components.
619
+ * The custom configuration of the node component.
616
620
  *
617
621
  * @example
618
622
  * {"cpuManagerPolicy":"static"}
@@ -658,7 +662,7 @@ export class NodepoolNodeComponents extends $dara.Model {
658
662
  name?: string;
659
663
  /**
660
664
  * @remarks
661
- * The node component version.
665
+ * The version of the node component.
662
666
  *
663
667
  * @example
664
668
  * 1.33.3-aliyun.1
@@ -815,9 +819,9 @@ export class NodepoolScalingGroupPrivatePoolOptions extends $dara.Model {
815
819
  id?: string;
816
820
  /**
817
821
  * @remarks
818
- * The type of the private node pool. Specifies the private pool capacity option for instance startup. After an elasticity assurance or capacity reservation takes effect, a private pool is generated for instances to use during startup. Valid values:
822
+ * The type of the private node pool. The private pool capacity option for instance startup. After an elasticity assurance or capacity reservation takes effect, a private pool capacity is generated for instances to select during startup. Valid values:
819
823
  *
820
- * - `Open`: open mode. The instance automatically matches open private pool capacity. If no matching private pool capacity is available, public pool resources are used to start the instance.
824
+ * - `Open`: open mode. The system automatically matches open private pool capacity. If no matching private pool capacity is available, public pool resources are used to start the instance.
821
825
  *
822
826
  * - `Target`: targeted mode. The instance is started using the specified private pool capacity. If the specified private pool capacity is unavailable, the instance fails to start.
823
827
  *
@@ -858,12 +862,11 @@ export class NodepoolScalingGroupResourcePoolOptions extends $dara.Model {
858
862
  privatePoolIds?: string[];
859
863
  /**
860
864
  * @remarks
861
- * The resource pool strategy used when creating instances. Resource pools include private pools generated after Elasticity Assurance or Capacity Reservation takes effect, as well as public pools, which are available for instance startup. Valid values:
865
+ * The resource pool strategy used when instances are created. Resource pools include private pools generated after Elasticity Assurance or Capacity Reservation takes effect, as well as public pools, for instances to select from during startup. Valid values:
862
866
  *
863
- * PrivatePoolFirst: private pool first. When this strategy is selected, if resource_pool_options.private_pool_ids is specified, the specified private pools are used preferentially. If no private pool is specified or the specified private pool has insufficient capacity, open-type private pools are automatically matched. If no eligible private pool is available, the public pool is used to create instances.
864
- * PrivatePoolOnly: private pool only. When this strategy is selected, resource_pool_options.private_pool_ids must be specified. If the specified private pool has insufficient capacity, the instance fails to start.
867
+ * PrivatePoolFirst: private pool first. When this strategy is selected, if resource_pool_options.private_pool_ids is specified, the specified private pools are used preferentially. If no private pools are specified or the specified private pools have insufficient capacity, open-type private pools are automatically matched. If no eligible private pools are available, instances are created from the public pool.
868
+ * PrivatePoolOnly: private pool only. When this strategy is selected, resource_pool_options.private_pool_ids must be specified. If the specified private pools have insufficient capacity, instance startup fails.
865
869
  * None: no resource pool strategy is used.
866
- *
867
870
  * Default value: None.
868
871
  *
869
872
  * @example
@@ -987,7 +990,7 @@ export class NodepoolScalingGroup extends $dara.Model {
987
990
  autoRenew?: boolean;
988
991
  /**
989
992
  * @remarks
990
- * The auto-renewal epoch for the node pool. This parameter takes effect and is required only when `instance_charge_type` is set to `PrePaid`.
993
+ * The auto-renewal period for the node pool. This parameter takes effect only when `instance_charge_type` is set to `PrePaid`, and is required in that case.
991
994
  *
992
995
  * @example
993
996
  * 0
@@ -1011,7 +1014,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1011
1014
  cpuOptions?: NodepoolScalingGroupCpuOptions;
1012
1015
  /**
1013
1016
  * @remarks
1014
- * The data cloud disk configuration for nodes in the node pool.
1017
+ * The data cloud disk configuration for node pool nodes.
1015
1018
  */
1016
1019
  dataDisks?: DataDisk[];
1017
1020
  /**
@@ -1062,7 +1065,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1062
1065
  imageType?: string;
1063
1066
  /**
1064
1067
  * @remarks
1065
- * The billing method for nodes in the node pool. Valid values:
1068
+ * The billing method for node pool nodes. Valid values:
1066
1069
  *
1067
1070
  * This parameter is required.
1068
1071
  *
@@ -1072,9 +1075,14 @@ export class NodepoolScalingGroup extends $dara.Model {
1072
1075
  instanceChargeType?: string;
1073
1076
  /**
1074
1077
  * @remarks
1075
- * The metadata access configuration for ECS instances.
1078
+ * The ECS instance metadata access configuration.
1076
1079
  */
1077
1080
  instanceMetadataOptions?: InstanceMetadataOptions;
1081
+ /**
1082
+ * @remarks
1083
+ * The instance attributes.
1084
+ */
1085
+ instancePatterns?: InstancePatterns[];
1078
1086
  /**
1079
1087
  * @remarks
1080
1088
  * The instance types.
@@ -1100,7 +1108,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1100
1108
  internetMaxBandwidthOut?: number;
1101
1109
  /**
1102
1110
  * @remarks
1103
- * The key pair name. Specify either this parameter or `login_password`.
1111
+ * The key pair name. Choose either this or `login_password`.
1104
1112
  *
1105
1113
  * @example
1106
1114
  * np-key
@@ -1108,12 +1116,12 @@ export class NodepoolScalingGroup extends $dara.Model {
1108
1116
  keyPair?: string;
1109
1117
  /**
1110
1118
  * @remarks
1111
- * Specifies whether to log on to scaled-out ECS instances as a non-root user.
1119
+ * Specifies whether scaled-out ECS instances use non-root user logon.
1112
1120
  */
1113
1121
  loginAsNonRoot?: boolean;
1114
1122
  /**
1115
1123
  * @remarks
1116
- * The SSH logon password. Specify either this parameter or `key_pair`. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
1124
+ * The SSH logon password. Choose either this or `key_pair`. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
1117
1125
  *
1118
1126
  * @example
1119
1127
  * Hello1234
@@ -1123,13 +1131,13 @@ export class NodepoolScalingGroup extends $dara.Model {
1123
1131
  * @remarks
1124
1132
  * The multi-zone scaling policy for ECS instances in the scaling group. Valid values:
1125
1133
  *
1126
- * - `PRIORITY`: Scales based on the vSwitches (VSwitchIds.N) you define. When ECS instances cannot be created in the zone of a higher-priority vSwitch, the next-priority vSwitch is automatically used to create ECS instances.
1134
+ * - `PRIORITY`: Scales ECS instances based on the virtual switches (VSwitchIds.N) that you define. When ECS instances cannot be created in the zone of the highest-priority vSwitch, the system automatically uses the next-priority vSwitch to create ECS instances.
1127
1135
  *
1128
- * - `COST_OPTIMIZED`: Attempts to create instances in order from the lowest to the highest vCPU unit price. When the scaling configuration specifies multiple instance types with the spot billing method, spot instances are created first. You can use the `CompensateWithOnDemand` parameter to specify whether to automatically attempt to create pay-as-you-go instances when spot instances cannot be created due to insufficient inventory.
1136
+ * - `COST_OPTIMIZED`: Attempts to create ECS instances in ascending order of vCPU unit price. When the scaling configuration specifies multiple instance types with the spot billing method, spot instances are created first. You can use the `CompensateWithOnDemand` parameter to specify whether to automatically attempt to create pay-as-you-go instances when spot instances cannot be created due to insufficient inventory.
1129
1137
  *
1130
- * >`COST_OPTIMIZED` takes effect only when the scaling configuration specifies multiple instance types or uses spot instances.
1138
+ * >`COST_OPTIMIZED` takes effect only when multiple instance types are specified in the scaling configuration or spot instances are selected.
1131
1139
  *
1132
- * - `BALANCE`: Evenly distributes ECS instances across the multiple zones specified in the scaling group. If zones become unbalanced due to insufficient inventory, you can use the RebalanceInstances API operation to rebalance resources. For more information, see [RebalanceInstances](https://help.aliyun.com/document_detail/71516.html).
1140
+ * - `BALANCE`: Evenly distributes ECS instances across the multiple zones specified in the scaling group. If zones become unbalanced due to insufficient inventory, you can call the RebalanceInstances operation to rebalance resources. For more information, see [RebalanceInstances](https://help.aliyun.com/document_detail/71516.html).
1133
1141
  *
1134
1142
  * Default value: `PRIORITY`.
1135
1143
  *
@@ -1139,7 +1147,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1139
1147
  multiAzPolicy?: string;
1140
1148
  /**
1141
1149
  * @remarks
1142
- * The minimum number of pay-as-you-go instances required in the scaling group. Valid values: [0,1000]. When the number of pay-as-you-go instances is less than this value, pay-as-you-go instances are created first.
1150
+ * The minimum number of pay-as-you-go instances required in the scaling group. Valid values: [0,1000]. If the number of pay-as-you-go instances is less than this value, pay-as-you-go instances are created first.
1143
1151
  *
1144
1152
  * @example
1145
1153
  * 0
@@ -1155,7 +1163,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1155
1163
  onDemandPercentageAboveBaseCapacity?: number;
1156
1164
  /**
1157
1165
  * @remarks
1158
- * The subscription duration for nodes in the node pool. This parameter takes effect and is required only when `instance_charge_type` is set to `PrePaid`. Valid values: when `period_unit` is set to Month, the valid values of `period` are: {1, 2, 3, 6, 12}.
1166
+ * The subscription duration for node pool nodes. This parameter takes effect only when `instance_charge_type` is set to `PrePaid`, and is required in that case. Valid values: when `period_unit` is set to Month, valid values for `period` are: {1, 2, 3, 6, 12}.
1159
1167
  *
1160
1168
  * @example
1161
1169
  * 0
@@ -1163,7 +1171,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1163
1171
  period?: number;
1164
1172
  /**
1165
1173
  * @remarks
1166
- * The billing period unit for nodes in the node pool. This parameter must be specified when `instance_charge_type` is set to `PrePaid`.
1174
+ * The billing period unit for node pool nodes. This parameter must be specified when `instance_charge_type` is set to `PrePaid`.
1167
1175
  *
1168
1176
  * @example
1169
1177
  * Month
@@ -1186,7 +1194,8 @@ export class NodepoolScalingGroup extends $dara.Model {
1186
1194
  privatePoolOptions?: NodepoolScalingGroupPrivatePoolOptions;
1187
1195
  /**
1188
1196
  * @remarks
1189
- * The Worker RAM role name.
1197
+ * The RAM role name for worker nodes.
1198
+ * >Notice: This parameter is supported only when you create a node pool for ACK managed clusters of version 1.22 or later.
1190
1199
  *
1191
1200
  * @example
1192
1201
  * example-role
@@ -1204,7 +1213,12 @@ export class NodepoolScalingGroup extends $dara.Model {
1204
1213
  resourcePoolOptions?: NodepoolScalingGroupResourcePoolOptions;
1205
1214
  /**
1206
1215
  * @remarks
1207
- * The scaling group mode. Valid values:
1216
+ * The scaling mode of the scaling group. Valid values:
1217
+ *
1218
+ * - `release`: standard mode. The scaling group scales in or out by creating or releasing ECS instances based on resource usage.
1219
+ * - `recycle`: swift mode. The scaling group scales in or out by creating, stopping, or starting ECS instances, which improves the speed of subsequent scaling operations. Stopped instances are not charged for compute resources but are still charged for storage resources, except for instances that use local disks.
1220
+ *
1221
+ * Default value: `release`.
1208
1222
  *
1209
1223
  * @example
1210
1224
  * release
@@ -1212,7 +1226,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1212
1226
  scalingPolicy?: string;
1213
1227
  /**
1214
1228
  * @remarks
1215
- * The security group ID of the node pool. Specify either this parameter or `security_group_ids`. We recommend that you use `security_group_ids`.
1229
+ * The security group ID of the node pool. Use either this parameter or `security_group_ids`. We recommend that you use `security_group_ids`.
1216
1230
  *
1217
1231
  * @example
1218
1232
  * sg-2zeihch86ooz9io4****
@@ -1220,7 +1234,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1220
1234
  securityGroupId?: string;
1221
1235
  /**
1222
1236
  * @remarks
1223
- * The list of security group IDs. Specify either this parameter or `security_group_id`. We recommend that you use `security_group_ids`. If both `security_group_id` and `security_group_ids` are specified, `security_group_ids` takes precedence.
1237
+ * The list of security group IDs. Use either this parameter or `security_group_id`. We recommend that you use `security_group_ids`. If both `security_group_id` and `security_group_ids` are specified, `security_group_ids` takes precedence.
1224
1238
  */
1225
1239
  securityGroupIds?: string[];
1226
1240
  /**
@@ -1233,7 +1247,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1233
1247
  spotInstancePools?: number;
1234
1248
  /**
1235
1249
  * @remarks
1236
- * Specifies whether to enable supplementation of spot instances. If enabled, when the system sends a notification that a spot instance will be reclaimed, the scaling group attempts to create a new instance to replace the spot instance that will be reclaimed. Valid values:
1250
+ * Specifies whether to enable supplementing spot instances. If enabled, when the system receives a notification that a spot instance will be reclaimed, the scaling group attempts to create a new instance to replace the spot instance that will be reclaimed. Valid values:
1237
1251
  *
1238
1252
  * @example
1239
1253
  * false
@@ -1241,12 +1255,17 @@ export class NodepoolScalingGroup extends $dara.Model {
1241
1255
  spotInstanceRemedy?: boolean;
1242
1256
  /**
1243
1257
  * @remarks
1244
- * The price range configuration for a single spot instance type.
1258
+ * The price limit configurations for a single spot instance of the current instance type.
1245
1259
  */
1246
1260
  spotPriceLimit?: NodepoolScalingGroupSpotPriceLimit[];
1247
1261
  /**
1248
1262
  * @remarks
1249
- * The spot instance type. Valid values:
1263
+ * The type of the spot instance. Valid values:
1264
+ * - NoSpot: non-spot instance.
1265
+ * - SpotWithPriceLimit: sets a maximum price for the spot instance.
1266
+ * - SpotAsPriceGo: the system automatically bids at the current market price.
1267
+ *
1268
+ * For more information, see [Spot instances](https://help.aliyun.com/document_detail/157759.html).
1250
1269
  *
1251
1270
  * @example
1252
1271
  * NoSpot
@@ -1254,7 +1273,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1254
1273
  spotStrategy?: string;
1255
1274
  /**
1256
1275
  * @remarks
1257
- * Specifies whether to enable burst (I/O burst) for the node system cloud disk. Valid values:
1276
+ * Specifies whether to enable burst (performance burst) for the node system cloud disk. Valid values:
1258
1277
  *
1259
1278
  * @example
1260
1279
  * true
@@ -1349,6 +1368,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1349
1368
  imageType: 'image_type',
1350
1369
  instanceChargeType: 'instance_charge_type',
1351
1370
  instanceMetadataOptions: 'instance_metadata_options',
1371
+ instancePatterns: 'instance_patterns',
1352
1372
  instanceTypes: 'instance_types',
1353
1373
  internetChargeType: 'internet_charge_type',
1354
1374
  internetMaxBandwidthOut: 'internet_max_bandwidth_out',
@@ -1400,6 +1420,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1400
1420
  imageType: 'string',
1401
1421
  instanceChargeType: 'string',
1402
1422
  instanceMetadataOptions: InstanceMetadataOptions,
1423
+ instancePatterns: { 'type': 'array', 'itemType': InstancePatterns },
1403
1424
  instanceTypes: { 'type': 'array', 'itemType': 'string' },
1404
1425
  internetChargeType: 'string',
1405
1426
  internetMaxBandwidthOut: 'number',
@@ -1450,6 +1471,9 @@ export class NodepoolScalingGroup extends $dara.Model {
1450
1471
  if(this.instanceMetadataOptions && typeof (this.instanceMetadataOptions as any).validate === 'function') {
1451
1472
  (this.instanceMetadataOptions as any).validate();
1452
1473
  }
1474
+ if(Array.isArray(this.instancePatterns)) {
1475
+ $dara.Model.validateArray(this.instancePatterns);
1476
+ }
1453
1477
  if(Array.isArray(this.instanceTypes)) {
1454
1478
  $dara.Model.validateArray(this.instanceTypes);
1455
1479
  }
@@ -1488,7 +1512,7 @@ export class NodepoolScalingGroup extends $dara.Model {
1488
1512
  export class NodepoolTeeConfig extends $dara.Model {
1489
1513
  /**
1490
1514
  * @remarks
1491
- * Indicates whether the node pool is a confidential computing node pool.
1515
+ * Specifies whether this is a confidential computing node pool.
1492
1516
  *
1493
1517
  * This parameter is required.
1494
1518
  *
@@ -1542,7 +1566,7 @@ export class Nodepool extends $dara.Model {
1542
1566
  interconnectConfig?: NodepoolInterconnectConfig;
1543
1567
  /**
1544
1568
  * @remarks
1545
- * The network type of the edge node pool. This parameter is valid only for node pools whose `type` is `edge`. Valid values:
1569
+ * The network type of the edge node pool. This value is meaningful only for node pools whose `type` is `edge`. Valid values:
1546
1570
  *
1547
1571
  * @example
1548
1572
  * basic
@@ -1560,7 +1584,7 @@ export class Nodepool extends $dara.Model {
1560
1584
  management?: NodepoolManagement;
1561
1585
  /**
1562
1586
  * @remarks
1563
- * The maximum number of nodes allowed in the edge node pool. The value must be greater than or equal to 0. A value of 0 indicates no additional limit (only limited by the maximum number of nodes the cluster can accommodate, with no additional limit on the node pool itself). Edge node pools typically have a value greater than 0. ESS-type node pools and default edge-type node pools have a value of 0.
1587
+ * The maximum number of nodes allowed in the edge node pool. This parameter must be greater than or equal to 0. A value of 0 indicates no additional limit (limited only by the maximum number of nodes the cluster can contain, with no additional limit on the node pool itself). Edge node pools typically have a value greater than 0. ESS type node pools and default edge type node pools have a value of 0.
1564
1588
  *
1565
1589
  * @example
1566
1590
  * 10
@@ -1583,7 +1607,7 @@ export class Nodepool extends $dara.Model {
1583
1607
  nodepoolInfo?: NodepoolNodepoolInfo;
1584
1608
  /**
1585
1609
  * @remarks
1586
- * The scaling group configuration for the node pool.
1610
+ * The node pool scaling group configuration.
1587
1611
  */
1588
1612
  scalingGroup?: NodepoolScalingGroup;
1589
1613
  /**