@alicloud/cs20151215 7.2.4 → 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 (88) hide show
  1. package/dist/client.d.ts +88 -88
  2. package/dist/client.js +107 -88
  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/CreateClusterNodePoolRequest.d.ts +214 -163
  10. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  11. package/dist/models/CreateClusterRequest.d.ts +310 -392
  12. package/dist/models/CreateClusterRequest.js +2 -0
  13. package/dist/models/CreateClusterRequest.js.map +1 -1
  14. package/dist/models/DeleteClusterNodepoolRequest.d.ts +3 -1
  15. package/dist/models/DeleteClusterNodepoolRequest.js.map +1 -1
  16. package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
  17. package/dist/models/DeleteClusterNodesRequest.js +2 -0
  18. package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
  19. package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
  20. package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
  21. package/dist/models/DescribeClusterDetailResponseBody.d.ts +85 -77
  22. package/dist/models/DescribeClusterDetailResponseBody.js +2 -0
  23. package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
  24. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +172 -176
  25. package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
  26. package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
  27. package/dist/models/DescribeClustersForRegionResponseBody.d.ts +23 -12
  28. package/dist/models/DescribeClustersForRegionResponseBody.js +2 -0
  29. package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
  30. package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +27 -15
  31. package/dist/models/DescribeKubernetesVersionMetadataRequest.js +2 -0
  32. package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
  33. package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +70 -54
  34. package/dist/models/DescribeKubernetesVersionMetadataResponse.js +20 -16
  35. package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
  36. package/dist/models/ListNodePoolComponentInstanceNodesRequest.d.ts +1 -1
  37. package/dist/models/ListNodePoolComponentInstanceNodesResponseBody.d.ts +2 -2
  38. package/dist/models/ListNodePoolComponentInstanceNodesShrinkRequest.d.ts +1 -1
  39. package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
  40. package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
  41. package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
  42. package/dist/models/ModifyClusterNodePoolRequest.d.ts +210 -235
  43. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  44. package/dist/models/ModifyClusterRequest.d.ts +111 -99
  45. package/dist/models/ModifyClusterRequest.js +2 -0
  46. package/dist/models/ModifyClusterRequest.js.map +1 -1
  47. package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
  48. package/dist/models/RemoveNodePoolNodesRequest.d.ts +19 -11
  49. package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
  50. package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
  51. package/dist/models/RemoveNodePoolNodesResponseBody.d.ts +2 -2
  52. package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +19 -11
  53. package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
  54. package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
  55. package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
  56. package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
  57. package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
  58. package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
  59. package/package.json +2 -1
  60. package/src/client.ts +112 -88
  61. package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
  62. package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
  63. package/src/models/CleanUserPermissionsRequest.ts +2 -2
  64. package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
  65. package/src/models/CreateClusterNodePoolRequest.ts +214 -163
  66. package/src/models/CreateClusterRequest.ts +312 -392
  67. package/src/models/DeleteClusterNodepoolRequest.ts +3 -1
  68. package/src/models/DeleteClusterNodesRequest.ts +17 -7
  69. package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
  70. package/src/models/DescribeClusterDetailResponseBody.ts +87 -77
  71. package/src/models/DescribeClusterNodePoolsResponseBody.ts +172 -176
  72. package/src/models/DescribeClustersForRegionRequest.ts +14 -14
  73. package/src/models/DescribeClustersForRegionResponseBody.ts +25 -12
  74. package/src/models/DescribeKubernetesVersionMetadataRequest.ts +29 -15
  75. package/src/models/DescribeKubernetesVersionMetadataResponse.ts +90 -70
  76. package/src/models/ListNodePoolComponentInstanceNodesRequest.ts +1 -1
  77. package/src/models/ListNodePoolComponentInstanceNodesResponseBody.ts +2 -2
  78. package/src/models/ListNodePoolComponentInstanceNodesShrinkRequest.ts +1 -1
  79. package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
  80. package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
  81. package/src/models/ModifyClusterNodePoolRequest.ts +210 -235
  82. package/src/models/ModifyClusterRequest.ts +113 -99
  83. package/src/models/ModifyClusterResponseBody.ts +2 -2
  84. package/src/models/RemoveNodePoolNodesRequest.ts +21 -11
  85. package/src/models/RemoveNodePoolNodesResponseBody.ts +2 -2
  86. package/src/models/RemoveNodePoolNodesShrinkRequest.ts +21 -11
  87. package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
  88. package/src/models/UpdateUserPermissionsRequest.ts +22 -22
@@ -5,11 +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
- *
12
- * - 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.
13
11
  *
14
12
  * Default value: false.
15
13
  *
@@ -20,13 +18,21 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
20
18
  /**
21
19
  * @remarks
22
20
  * Specifies whether to drain the nodes. Valid values:
23
- * - true: drains the nodes.
24
- * - false: does not drain the nodes.
21
+ * - true: Drain the nodes.
22
+ * - false: Do not drain the nodes.
25
23
  *
26
24
  * @example
27
25
  * true
28
26
  */
29
27
  drainNode?: boolean;
28
+ /**
29
+ * @remarks
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;
30
36
  /**
31
37
  * @remarks
32
38
  * The list of instances to be removed.
@@ -38,16 +44,18 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
38
44
  *
39
45
  * The list of nodes to be removed.
40
46
  *
41
- * >Danger: This parameter is deprecated. Use instance_ids instead.</danger>
47
+ * >Danger: This parameter is deprecated. Use `instance_ids` instead.</danger>
42
48
  *
43
49
  * @deprecated
44
50
  */
45
51
  nodes?: string[];
46
52
  /**
47
53
  * @remarks
48
- * Specifies whether to release the nodes. Valid values:
49
- * - true: releases the nodes.
50
- * - false: does not release the nodes.
54
+ * Specifies whether automatic release the nodes. Valid values:
55
+ * - true: Release the nodes.
56
+ * - false: Do not release the nodes.
57
+ *
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.
51
59
  *
52
60
  * @example
53
61
  * true
@@ -57,6 +65,7 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
57
65
  return {
58
66
  concurrency: 'concurrency',
59
67
  drainNode: 'drain_node',
68
+ drainTimeoutSeconds: 'drain_timeout_seconds',
60
69
  instanceIds: 'instance_ids',
61
70
  nodes: 'nodes',
62
71
  releaseNode: 'release_node',
@@ -67,6 +76,7 @@ export class RemoveNodePoolNodesRequest extends $dara.Model {
67
76
  return {
68
77
  concurrency: 'boolean',
69
78
  drainNode: 'boolean',
79
+ drainTimeoutSeconds: 'number',
70
80
  instanceIds: { 'type': 'array', 'itemType': 'string' },
71
81
  nodes: { 'type': 'array', 'itemType': 'string' },
72
82
  releaseNode: 'boolean',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class RemoveNodePoolNodesResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the request.
8
+ * The request ID.
9
9
  *
10
10
  * @example
11
11
  * A9891419-D125-4D89-AFCA-68846675****
@@ -13,7 +13,7 @@ export class RemoveNodePoolNodesResponseBody extends $dara.Model {
13
13
  requestId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The ID of the task.
16
+ * The task ID.
17
17
  *
18
18
  * @example
19
19
  * T-62a944794ee141074400****
@@ -5,11 +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
- *
12
- * - 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.
13
11
  *
14
12
  * Default value: false.
15
13
  *
@@ -20,13 +18,21 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
20
18
  /**
21
19
  * @remarks
22
20
  * Specifies whether to drain the nodes. Valid values:
23
- * - true: drains the nodes.
24
- * - false: does not drain the nodes.
21
+ * - true: Drain the nodes.
22
+ * - false: Do not drain the nodes.
25
23
  *
26
24
  * @example
27
25
  * true
28
26
  */
29
27
  drainNode?: boolean;
28
+ /**
29
+ * @remarks
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;
30
36
  /**
31
37
  * @remarks
32
38
  * The list of instances to be removed.
@@ -38,16 +44,18 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
38
44
  *
39
45
  * The list of nodes to be removed.
40
46
  *
41
- * >Danger: This parameter is deprecated. Use instance_ids instead.</danger>
47
+ * >Danger: This parameter is deprecated. Use `instance_ids` instead.</danger>
42
48
  *
43
49
  * @deprecated
44
50
  */
45
51
  nodesShrink?: string;
46
52
  /**
47
53
  * @remarks
48
- * Specifies whether to release the nodes. Valid values:
49
- * - true: releases the nodes.
50
- * - false: does not release the nodes.
54
+ * Specifies whether automatic release the nodes. Valid values:
55
+ * - true: Release the nodes.
56
+ * - false: Do not release the nodes.
57
+ *
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.
51
59
  *
52
60
  * @example
53
61
  * true
@@ -57,6 +65,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
57
65
  return {
58
66
  concurrency: 'concurrency',
59
67
  drainNode: 'drain_node',
68
+ drainTimeoutSeconds: 'drain_timeout_seconds',
60
69
  instanceIdsShrink: 'instance_ids',
61
70
  nodesShrink: 'nodes',
62
71
  releaseNode: 'release_node',
@@ -67,6 +76,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $dara.Model {
67
76
  return {
68
77
  concurrency: 'boolean',
69
78
  drainNode: 'boolean',
79
+ drainTimeoutSeconds: 'number',
70
80
  instanceIdsShrink: 'string',
71
81
  nodesShrink: 'string',
72
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
  *