@alicloud/cs20151215 7.2.5 → 7.2.6

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 (62) hide show
  1. package/dist/client.d.ts +72 -72
  2. package/dist/client.js +82 -72
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AttachInstancesToNodePoolRequest.d.ts +3 -13
  5. package/dist/models/AttachInstancesToNodePoolRequest.js.map +1 -1
  6. package/dist/models/CleanClusterUserPermissionsRequest.d.ts +1 -1
  7. package/dist/models/CleanUserPermissionsRequest.d.ts +2 -2
  8. package/dist/models/CleanUserPermissionsShrinkRequest.d.ts +2 -2
  9. package/dist/models/CreateClusterRequest.d.ts +305 -392
  10. package/dist/models/CreateClusterRequest.js.map +1 -1
  11. package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
  12. package/dist/models/DeleteClusterNodesRequest.js +2 -0
  13. package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
  14. package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
  15. package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
  16. package/dist/models/DescribeClusterDetailResponseBody.d.ts +80 -77
  17. package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
  18. package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
  19. package/dist/models/DescribeClustersForRegionResponseBody.d.ts +18 -12
  20. package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
  21. package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +22 -15
  22. package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
  23. package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +23 -17
  24. package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
  25. package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
  26. package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
  27. package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
  28. package/dist/models/ModifyClusterRequest.d.ts +106 -99
  29. package/dist/models/ModifyClusterRequest.js.map +1 -1
  30. package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
  31. package/dist/models/RemoveNodePoolNodesRequest.d.ts +18 -11
  32. package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
  33. package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
  34. package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +18 -11
  35. package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
  36. package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
  37. package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
  38. package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
  39. package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
  40. package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
  41. package/package.json +2 -1
  42. package/src/client.ts +84 -72
  43. package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
  44. package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
  45. package/src/models/CleanUserPermissionsRequest.ts +2 -2
  46. package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
  47. package/src/models/CreateClusterRequest.ts +305 -392
  48. package/src/models/DeleteClusterNodesRequest.ts +17 -7
  49. package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
  50. package/src/models/DescribeClusterDetailResponseBody.ts +80 -77
  51. package/src/models/DescribeClustersForRegionRequest.ts +14 -14
  52. package/src/models/DescribeClustersForRegionResponseBody.ts +18 -12
  53. package/src/models/DescribeKubernetesVersionMetadataRequest.ts +22 -15
  54. package/src/models/DescribeKubernetesVersionMetadataResponse.ts +23 -17
  55. package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
  56. package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
  57. package/src/models/ModifyClusterRequest.ts +106 -99
  58. package/src/models/ModifyClusterResponseBody.ts +2 -2
  59. package/src/models/RemoveNodePoolNodesRequest.ts +20 -11
  60. package/src/models/RemoveNodePoolNodesShrinkRequest.ts +20 -11
  61. package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
  62. package/src/models/UpdateUserPermissionsRequest.ts +22 -22
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class RemoveNodePoolNodesRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to remove the nodes concurrently. Valid values:
9
- *
10
- * - true: removes the nodes from the scaling group concurrently.
11
- * - false: removes the nodes from the scaling group sequentially.
8
+ * Specifies whether to remove nodes concurrently. Valid values:
9
+ * - true: Nodes are removed from the scaling group concurrently.
10
+ * - false: Nodes are removed from the scaling group sequentially.
12
11
  *
13
12
  * Default value: false.
14
13
  *
@@ -19,8 +18,8 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
19
18
  /**
20
19
  * @remarks
21
20
  * Specifies whether to drain the nodes. Valid values:
22
- * - true: drains the nodes.
23
- * - false: does not drain the nodes.
21
+ * - true: Drain the nodes.
22
+ * - false: Do not drain the nodes.
24
23
  *
25
24
  * @example
26
25
  * true
@@ -28,14 +27,22 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
28
27
  drainNode?: boolean;
29
28
  /**
30
29
  * @remarks
31
- * The list of instances to remove.
30
+ * The drain timeout period in seconds. Valid values: (0, 1800]. Default value: 1800. This parameter takes effect only when drain_node is set to true.
31
+ *
32
+ * @example
33
+ * 600
34
+ */
35
+ drainTimeoutSeconds?: number;
36
+ /**
37
+ * @remarks
38
+ * The list of instances to be removed.
32
39
  */
33
40
  instanceIds?: string[];
34
41
  /**
35
42
  * @remarks
36
43
  * **[Deprecated]**
37
44
  *
38
- * The list of nodes to remove.
45
+ * The list of nodes to be removed.
39
46
  *
40
47
  * >Danger: This parameter is deprecated. Use `instance_ids` instead.</danger>
41
48
  *
@@ -45,10 +52,10 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
45
52
  /**
46
53
  * @remarks
47
54
  * Specifies whether automatic release the nodes. Valid values:
48
- * - true: releases the nodes.
49
- * - false: does not release the nodes.
55
+ * - true: Release the nodes.
56
+ * - false: Do not release the nodes.
50
57
  *
51
- * Subscription nodes are not automatically released when you remove them. Automatic release subscription nodes, [change the billing method of the nodes from subscription to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the ECS console.
58
+ * Removing nodes does not automatically release subscription nodes. Automatic release subscription nodes, [change the billing method of the nodes from subscription to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1), and then log on to the ECS console automatic release them.
52
59
  *
53
60
  * @example
54
61
  * true
@@ -58,6 +65,7 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
58
65
  return {
59
66
  concurrency: 'concurrency',
60
67
  drainNode: 'drain_node',
68
+ drainTimeoutSeconds: 'drain_timeout_seconds',
61
69
  instanceIds: 'instance_ids',
62
70
  nodes: 'nodes',
63
71
  releaseNode: 'release_node',
@@ -68,6 +76,7 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
68
76
  return {
69
77
  concurrency: 'boolean',
70
78
  drainNode: 'boolean',
79
+ drainTimeoutSeconds: 'number',
71
80
  instanceIds: { 'type': 'array', 'itemType': 'string' },
72
81
  nodes: { 'type': 'array', 'itemType': 'string' },
73
82
  releaseNode: 'boolean',
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to remove the nodes concurrently. Valid values:
9
- *
10
- * - true: removes the nodes from the scaling group concurrently.
11
- * - false: removes the nodes from the scaling group sequentially.
8
+ * Specifies whether to remove nodes concurrently. Valid values:
9
+ * - true: Nodes are removed from the scaling group concurrently.
10
+ * - false: Nodes are removed from the scaling group sequentially.
12
11
  *
13
12
  * Default value: false.
14
13
  *
@@ -19,8 +18,8 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
19
18
  /**
20
19
  * @remarks
21
20
  * Specifies whether to drain the nodes. Valid values:
22
- * - true: drains the nodes.
23
- * - false: does not drain the nodes.
21
+ * - true: Drain the nodes.
22
+ * - false: Do not drain the nodes.
24
23
  *
25
24
  * @example
26
25
  * true
@@ -28,14 +27,22 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
28
27
  drainNode?: boolean;
29
28
  /**
30
29
  * @remarks
31
- * The list of instances to remove.
30
+ * The drain timeout period in seconds. Valid values: (0, 1800]. Default value: 1800. This parameter takes effect only when drain_node is set to true.
31
+ *
32
+ * @example
33
+ * 600
34
+ */
35
+ drainTimeoutSeconds?: number;
36
+ /**
37
+ * @remarks
38
+ * The list of instances to be removed.
32
39
  */
33
40
  instanceIdsShrink?: string;
34
41
  /**
35
42
  * @remarks
36
43
  * **[Deprecated]**
37
44
  *
38
- * The list of nodes to remove.
45
+ * The list of nodes to be removed.
39
46
  *
40
47
  * >Danger: This parameter is deprecated. Use `instance_ids` instead.</danger>
41
48
  *
@@ -45,10 +52,10 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
45
52
  /**
46
53
  * @remarks
47
54
  * Specifies whether automatic release the nodes. Valid values:
48
- * - true: releases the nodes.
49
- * - false: does not release the nodes.
55
+ * - true: Release the nodes.
56
+ * - false: Do not release the nodes.
50
57
  *
51
- * Subscription nodes are not automatically released when you remove them. Automatic release subscription nodes, [change the billing method of the nodes from subscription to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the ECS console.
58
+ * Removing nodes does not automatically release subscription nodes. Automatic release subscription nodes, [change the billing method of the nodes from subscription to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1), and then log on to the ECS console automatic release them.
52
59
  *
53
60
  * @example
54
61
  * true
@@ -58,6 +65,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
58
65
  return {
59
66
  concurrency: 'concurrency',
60
67
  drainNode: 'drain_node',
68
+ drainTimeoutSeconds: 'drain_timeout_seconds',
61
69
  instanceIdsShrink: 'instance_ids',
62
70
  nodesShrink: 'nodes',
63
71
  releaseNode: 'release_node',
@@ -68,6 +76,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
68
76
  return {
69
77
  concurrency: 'boolean',
70
78
  drainNode: 'boolean',
79
+ drainTimeoutSeconds: 'number',
71
80
  instanceIdsShrink: 'string',
72
81
  nodesShrink: 'string',
73
82
  releaseNode: 'boolean',
@@ -6,7 +6,8 @@ export class UpdateClusterAuditLogConfigRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * Specifies whether to disable the cluster audit log feature. Valid values:
9
- * - false: enables the audit log feature or updates the audit log configurations.
9
+ * - false: enables the audit log feature or updates the audit log configuration.
10
+ *
10
11
  * - true: disables the audit log feature.
11
12
  *
12
13
  * @example
@@ -15,9 +16,9 @@ export class UpdateClusterAuditLogConfigRequest extends $dara.Model {
15
16
  disable?: boolean;
16
17
  /**
17
18
  * @remarks
18
- * The [SLS project](https://help.aliyun.com/document_detail/48873.html) where the [Logstore](https://help.aliyun.com/document_detail/48874.html) for cluster audit logs is located.
19
+ * The [SLS project](https://help.aliyun.com/document_detail/48873.html) where the [Logstore](https://help.aliyun.com/document_detail/48874.html) for cluster audit logs is stored.
19
20
  *
20
- * - The default value is k8s-log-{clusterid}.
21
+ * - Default value: k8s-log-{clusterid}.
21
22
  *
22
23
  * - After you enable the cluster audit log feature, a Logstore for cluster audit logs is created in the specified SLS project.
23
24
  *
@@ -5,9 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class UpdateUserPermissionsRequestBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the target cluster.
8
+ * The ID of the target cluster for authorization.
9
9
  *
10
- * This parameter is not required when the role_type parameter is set to all-clusters.
10
+ * This parameter is not required when the role_type parameter is set to `all-clusters`.
11
11
  *
12
12
  * @example
13
13
  * c796c60***
@@ -15,10 +15,10 @@ export class UpdateUserPermissionsRequestBody extends $dara.Model {
15
15
  cluster?: string;
16
16
  /**
17
17
  * @remarks
18
- * Specifies whether the authorization is custom. A custom authorization uses a custom ClusterRole name for the role_name parameter.
18
+ * Specifies whether the authorization is a custom authorization, which means the role_name parameter uses a custom ClusterRole name.
19
19
  *
20
- * Valid values:
21
20
  * - true: The authorized role is a custom cluster role.
21
+ *
22
22
  * - false: The authorized role is a preset cluster role.
23
23
  *
24
24
  * @example
@@ -27,10 +27,10 @@ export class UpdateUserPermissionsRequestBody extends $dara.Model {
27
27
  isCustom?: boolean;
28
28
  /**
29
29
  * @remarks
30
- * Specifies whether the authorized entity is a RAM role.
30
+ * Specifies whether the authorization is for a RAM role.
31
31
  *
32
- * Valid values:
33
32
  * - true: The authorization is for a RAM role.
33
+ *
34
34
  * - false: The authorization is for a Resource Access Management (RAM) user.
35
35
  *
36
36
  * @example
@@ -39,7 +39,7 @@ export class UpdateUserPermissionsRequestBody extends $dara.Model {
39
39
  isRamRole?: boolean;
40
40
  /**
41
41
  * @remarks
42
- * The namespace name. This parameter is empty by default for cluster-level authorization.
42
+ * The name of the namespace. This parameter is empty by default when the authorization is at the cluster level.
43
43
  *
44
44
  * @example
45
45
  * test
@@ -49,15 +49,16 @@ export class UpdateUserPermissionsRequestBody extends $dara.Model {
49
49
  * @remarks
50
50
  * The preset role name. Valid values:
51
51
  *
52
- * - admin: administrator.
53
- * - admin-view: read-only administrator.
54
- * - ops: O&M engineer.
55
- * - dev: developer.
56
- * - restricted: restricted user.
52
+ * - `admin`: administrator.
53
+ * - `admin-view`: read-only administrator.
54
+ * - `ops`: O&M engineer.
55
+ * - `dev`: developer.
56
+ * - `restricted`: restricted user.
57
57
  * - A custom ClusterRole name.
58
58
  *
59
- * > - The admin, admin-view, and ops roles do not support authorization at the **namespace level**.
60
- * > - The admin-view role does not support authorization at the **all-clusters level**.
59
+ *
60
+ * > - `admin`, `admin-view`, and `ops`: Authorization at the **namespace level** is not supported.
61
+ * > - `admin-view`: Authorization at the **all-clusters level** is not supported.
61
62
  *
62
63
  * @example
63
64
  * ops
@@ -67,9 +68,9 @@ export class UpdateUserPermissionsRequestBody extends $dara.Model {
67
68
  * @remarks
68
69
  * The authorization type. Valid values:
69
70
  *
70
- * - cluster: cluster level.
71
- * - namespace: namespace level.
72
- * - all-clusters: all-clusters level.
71
+ * - `cluster`: cluster level.
72
+ * - `namespace`: namespace level.
73
+ * - `all-clusters`: all-clusters level.
73
74
  *
74
75
  * @example
75
76
  * cluster
@@ -114,11 +115,10 @@ export class UpdateUserPermissionsRequest extends $dara.Model {
114
115
  body?: UpdateUserPermissionsRequestBody[];
115
116
  /**
116
117
  * @remarks
117
- * The authorization method. Valid values:
118
- *
119
- * - `apply`: Fully updates permissions. This operation overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations to be granted to the target RAM user or RAM role.
120
- * - `delete`: Deletes permissions. This operation deletes only the cluster authorization information specified in the request and does not affect other cluster permissions of the RAM user or RAM role.
121
- * - `patch`: Adds permissions. This operation adds only the cluster authorization information specified in the request and does not affect other cluster permissions of the RAM user or RAM role.
118
+ * The authorization mode. Valid values:
119
+ * - `apply`: Fully updates permissions. The operation to fully update the cluster authorization information of a RAM user or RAM role overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role.
120
+ * - `delete`: Deletes permissions. Only the cluster authorization information specified in the request is deleted. Other cluster permissions of the RAM user or RAM role are not affected.
121
+ * - `patch`: Adds permissions. Only the cluster authorization information specified in the request is added. Other cluster permissions of the RAM user or RAM role are not affected.
122
122
  *
123
123
  * Default value: `apply`.
124
124
  *