@alicloud/cs20151215 7.0.4 → 7.1.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/dist/client.d.ts +120 -42
- package/dist/client.js +332 -71
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterNodePoolRequest.d.ts +123 -366
- package/dist/models/CreateClusterNodePoolRequest.js +2 -0
- package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +119 -621
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/CreateClusterResponseBody.d.ts +3 -3
- package/dist/models/CreateNodePoolComponentInstancesRequest.d.ts +100 -0
- package/dist/models/CreateNodePoolComponentInstancesRequest.js +144 -0
- package/dist/models/CreateNodePoolComponentInstancesRequest.js.map +1 -0
- package/dist/models/CreateNodePoolComponentInstancesResponse.d.ts +19 -0
- package/dist/models/CreateNodePoolComponentInstancesResponse.js +69 -0
- package/dist/models/CreateNodePoolComponentInstancesResponse.js.map +1 -0
- package/dist/models/CreateNodePoolComponentInstancesResponseBody.d.ts +28 -0
- package/dist/models/CreateNodePoolComponentInstancesResponseBody.js +62 -0
- package/dist/models/CreateNodePoolComponentInstancesResponseBody.js.map +1 -0
- package/dist/models/DeleteNodePoolComponentInstanceRequest.d.ts +38 -0
- package/dist/models/DeleteNodePoolComponentInstanceRequest.js +69 -0
- package/dist/models/DeleteNodePoolComponentInstanceRequest.js.map +1 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponse.d.ts +19 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponse.js +69 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponse.js.map +1 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponseBody.d.ts +28 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js +62 -0
- package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js.map +1 -0
- package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.d.ts +38 -0
- package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js +66 -0
- package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js.map +1 -0
- package/dist/models/DescribeAddonRequest.d.ts +7 -18
- package/dist/models/DescribeAddonRequest.js.map +1 -1
- package/dist/models/DescribeAddonResponseBody.d.ts +12 -12
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +159 -228
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +2 -0
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +121 -240
- package/dist/models/DescribeClusterNodePoolsResponseBody.js +2 -0
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/InstallNodePoolComponentsRequest.d.ts +12 -4
- package/dist/models/InstallNodePoolComponentsRequest.js +2 -0
- package/dist/models/InstallNodePoolComponentsRequest.js.map +1 -1
- package/dist/models/ListNodePoolComponentInstancesRequest.d.ts +23 -0
- package/dist/models/ListNodePoolComponentInstancesRequest.js +60 -0
- package/dist/models/ListNodePoolComponentInstancesRequest.js.map +1 -0
- package/dist/models/ListNodePoolComponentInstancesResponse.d.ts +19 -0
- package/dist/models/ListNodePoolComponentInstancesResponse.js +69 -0
- package/dist/models/ListNodePoolComponentInstancesResponse.js.map +1 -0
- package/dist/models/ListNodePoolComponentInstancesResponseBody.d.ts +76 -0
- package/dist/models/ListNodePoolComponentInstancesResponseBody.js +117 -0
- package/dist/models/ListNodePoolComponentInstancesResponseBody.js.map +1 -0
- package/dist/models/ListNodePoolComponentsRequest.d.ts +48 -0
- package/dist/models/ListNodePoolComponentsRequest.js +73 -0
- package/dist/models/ListNodePoolComponentsRequest.js.map +1 -0
- package/dist/models/ListNodePoolComponentsResponse.d.ts +19 -0
- package/dist/models/ListNodePoolComponentsResponse.js +69 -0
- package/dist/models/ListNodePoolComponentsResponse.js.map +1 -0
- package/dist/models/ListNodePoolComponentsResponseBody.d.ts +51 -0
- package/dist/models/ListNodePoolComponentsResponseBody.js +88 -0
- package/dist/models/ListNodePoolComponentsResponseBody.js.map +1 -0
- package/dist/models/ListNodePoolComponentsShrinkRequest.d.ts +48 -0
- package/dist/models/ListNodePoolComponentsShrinkRequest.js +70 -0
- package/dist/models/ListNodePoolComponentsShrinkRequest.js.map +1 -0
- package/dist/models/MaintenanceWindow.d.ts +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +99 -257
- package/dist/models/ModifyClusterNodePoolRequest.js +2 -0
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/ModifyNodePoolNodeConfigRequest.d.ts +9 -1
- package/dist/models/ModifyNodePoolNodeConfigRequest.js +2 -0
- package/dist/models/ModifyNodePoolNodeConfigRequest.js.map +1 -1
- package/dist/models/Nodepool.d.ts +70 -195
- package/dist/models/Nodepool.js.map +1 -1
- package/dist/models/Runtime.d.ts +2 -2
- package/dist/models/UpdateNodePoolComponentInstanceRequest.d.ts +77 -0
- package/dist/models/UpdateNodePoolComponentInstanceRequest.js +122 -0
- package/dist/models/UpdateNodePoolComponentInstanceRequest.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponse.d.ts +19 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponse.js +69 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponse.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponseBody.d.ts +28 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js +62 -0
- package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentRequest.d.ts +12 -4
- package/dist/models/UpdateNodePoolComponentRequest.js +2 -0
- package/dist/models/UpdateNodePoolComponentRequest.js.map +1 -1
- package/dist/models/UpgradeClusterNodepoolRequest.d.ts +23 -11
- package/dist/models/UpgradeClusterNodepoolRequest.js +2 -0
- package/dist/models/UpgradeClusterNodepoolRequest.js.map +1 -1
- package/dist/models/model.d.ts +25 -0
- package/dist/models/model.js +63 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +366 -71
- package/src/models/CreateClusterNodePoolRequest.ts +126 -367
- package/src/models/CreateClusterRequest.ts +119 -621
- package/src/models/CreateClusterResponseBody.ts +3 -3
- package/src/models/CreateNodePoolComponentInstancesRequest.ts +170 -0
- package/src/models/CreateNodePoolComponentInstancesResponse.ts +40 -0
- package/src/models/CreateNodePoolComponentInstancesResponseBody.ts +45 -0
- package/src/models/DeleteNodePoolComponentInstanceRequest.ts +62 -0
- package/src/models/DeleteNodePoolComponentInstanceResponse.ts +40 -0
- package/src/models/DeleteNodePoolComponentInstanceResponseBody.ts +45 -0
- package/src/models/DeleteNodePoolComponentInstanceShrinkRequest.ts +59 -0
- package/src/models/DescribeAddonRequest.ts +7 -18
- package/src/models/DescribeAddonResponseBody.ts +12 -12
- package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +161 -228
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +123 -240
- package/src/models/InstallNodePoolComponentsRequest.ts +14 -4
- package/src/models/ListNodePoolComponentInstancesRequest.ts +38 -0
- package/src/models/ListNodePoolComponentInstancesResponse.ts +40 -0
- package/src/models/ListNodePoolComponentInstancesResponseBody.ts +128 -0
- package/src/models/ListNodePoolComponentsRequest.ts +76 -0
- package/src/models/ListNodePoolComponentsResponse.ts +40 -0
- package/src/models/ListNodePoolComponentsResponseBody.ts +85 -0
- package/src/models/ListNodePoolComponentsShrinkRequest.ts +73 -0
- package/src/models/MaintenanceWindow.ts +1 -1
- package/src/models/ModifyClusterNodePoolRequest.ts +101 -257
- package/src/models/ModifyNodePoolNodeConfigRequest.ts +11 -1
- package/src/models/Nodepool.ts +70 -195
- package/src/models/Runtime.ts +2 -2
- package/src/models/UpdateNodePoolComponentInstanceRequest.ts +134 -0
- package/src/models/UpdateNodePoolComponentInstanceResponse.ts +40 -0
- package/src/models/UpdateNodePoolComponentInstanceResponseBody.ts +45 -0
- package/src/models/UpdateNodePoolComponentRequest.ts +14 -4
- package/src/models/UpgradeClusterNodepoolRequest.ts +25 -11
- package/src/models/model.ts +25 -0
package/src/models/Runtime.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Runtime extends $dara.Model {
|
|
|
14
14
|
* Default value: `containerd`.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
*
|
|
17
|
+
* docker
|
|
18
18
|
*/
|
|
19
19
|
name?: string;
|
|
20
20
|
/**
|
|
@@ -24,7 +24,7 @@ export class Runtime extends $dara.Model {
|
|
|
24
24
|
* For more information about the changes to Sandboxed-Container, see [Sandboxed-Container release notes](https://help.aliyun.com/document_detail/160312.html).
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
*
|
|
27
|
+
* 19.03.5
|
|
28
28
|
*/
|
|
29
29
|
version?: string;
|
|
30
30
|
static names(): { [key: string]: string } {
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateNodePoolComponentInstanceRequestConfig extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* {"cpuManagerPolicy":"static"}
|
|
9
|
+
*/
|
|
10
|
+
customConfig?: { [key: string]: any };
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
customConfig: 'custom_config',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
customConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
if(this.customConfig) {
|
|
25
|
+
$dara.Model.validateMap(this.customConfig);
|
|
26
|
+
}
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class UpdateNodePoolComponentInstanceRequestRollingPolicy extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 10
|
|
39
|
+
*/
|
|
40
|
+
batchInterval?: number;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 0
|
|
44
|
+
*/
|
|
45
|
+
maxFailedNodes?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 1
|
|
49
|
+
*/
|
|
50
|
+
maxParallelism?: number;
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* NotPause
|
|
54
|
+
*/
|
|
55
|
+
pausePolicy?: string;
|
|
56
|
+
static names(): { [key: string]: string } {
|
|
57
|
+
return {
|
|
58
|
+
batchInterval: 'batch_interval',
|
|
59
|
+
maxFailedNodes: 'max_failed_nodes',
|
|
60
|
+
maxParallelism: 'max_parallelism',
|
|
61
|
+
pausePolicy: 'pause_policy',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
batchInterval: 'number',
|
|
68
|
+
maxFailedNodes: 'number',
|
|
69
|
+
maxParallelism: 'number',
|
|
70
|
+
pausePolicy: 'string',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
validate() {
|
|
75
|
+
super.validate();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
constructor(map?: { [key: string]: any }) {
|
|
79
|
+
super(map);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class UpdateNodePoolComponentInstanceRequest extends $dara.Model {
|
|
84
|
+
config?: UpdateNodePoolComponentInstanceRequestConfig;
|
|
85
|
+
/**
|
|
86
|
+
* @example
|
|
87
|
+
* false
|
|
88
|
+
*/
|
|
89
|
+
disableRolling?: boolean;
|
|
90
|
+
nodeNames?: string[];
|
|
91
|
+
rollingPolicy?: UpdateNodePoolComponentInstanceRequestRollingPolicy;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* 1.33.3-aliyun.1
|
|
95
|
+
*/
|
|
96
|
+
version?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
config: 'config',
|
|
100
|
+
disableRolling: 'disable_rolling',
|
|
101
|
+
nodeNames: 'node_names',
|
|
102
|
+
rollingPolicy: 'rolling_policy',
|
|
103
|
+
version: 'version',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
config: UpdateNodePoolComponentInstanceRequestConfig,
|
|
110
|
+
disableRolling: 'boolean',
|
|
111
|
+
nodeNames: { 'type': 'array', 'itemType': 'string' },
|
|
112
|
+
rollingPolicy: UpdateNodePoolComponentInstanceRequestRollingPolicy,
|
|
113
|
+
version: 'string',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
119
|
+
(this.config as any).validate();
|
|
120
|
+
}
|
|
121
|
+
if(Array.isArray(this.nodeNames)) {
|
|
122
|
+
$dara.Model.validateArray(this.nodeNames);
|
|
123
|
+
}
|
|
124
|
+
if(this.rollingPolicy && typeof (this.rollingPolicy as any).validate === 'function') {
|
|
125
|
+
(this.rollingPolicy as any).validate();
|
|
126
|
+
}
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { UpdateNodePoolComponentInstanceResponseBody } from "./UpdateNodePoolComponentInstanceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class UpdateNodePoolComponentInstanceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: UpdateNodePoolComponentInstanceResponseBody;
|
|
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: UpdateNodePoolComponentInstanceResponseBody,
|
|
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,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateNodePoolComponentInstanceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* c2230fxxxxx
|
|
9
|
+
*/
|
|
10
|
+
clusterId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* xxxx
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* T-xxxx
|
|
19
|
+
*/
|
|
20
|
+
taskId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
clusterId: 'cluster_id',
|
|
24
|
+
requestId: 'request_id',
|
|
25
|
+
taskId: 'task_id',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
clusterId: 'string',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
taskId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -38,12 +38,20 @@ export class UpdateNodePoolComponentRequestConfig extends $dara.Model {
|
|
|
38
38
|
export class UpdateNodePoolComponentRequestRollingPolicy extends $dara.Model {
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
* The interval between batches during the upgrade
|
|
41
|
+
* The interval between batches during the upgrade. Unit: seconds.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* 0
|
|
45
45
|
*/
|
|
46
46
|
batchInterval?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The maximum number of nodes that are allowed to fail during the rolling update. Default value: 0, which indicates that the task fails if any node fails. If the value is greater than 0, the task fails and stops when the cumulative number of failed nodes exceeds this value.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* 0
|
|
53
|
+
*/
|
|
54
|
+
maxFailedNodes?: number;
|
|
47
55
|
/**
|
|
48
56
|
* @remarks
|
|
49
57
|
* The maximum number of nodes that can be updated in parallel per batch. Default value: 1.
|
|
@@ -63,6 +71,7 @@ export class UpdateNodePoolComponentRequestRollingPolicy extends $dara.Model {
|
|
|
63
71
|
static names(): { [key: string]: string } {
|
|
64
72
|
return {
|
|
65
73
|
batchInterval: 'batchInterval',
|
|
74
|
+
maxFailedNodes: 'maxFailedNodes',
|
|
66
75
|
maxParallelism: 'maxParallelism',
|
|
67
76
|
pausePolicy: 'pausePolicy',
|
|
68
77
|
};
|
|
@@ -71,6 +80,7 @@ export class UpdateNodePoolComponentRequestRollingPolicy extends $dara.Model {
|
|
|
71
80
|
static types(): { [key: string]: any } {
|
|
72
81
|
return {
|
|
73
82
|
batchInterval: 'number',
|
|
83
|
+
maxFailedNodes: 'number',
|
|
74
84
|
maxParallelism: 'number',
|
|
75
85
|
pausePolicy: 'string',
|
|
76
86
|
};
|
|
@@ -88,12 +98,12 @@ export class UpdateNodePoolComponentRequestRollingPolicy extends $dara.Model {
|
|
|
88
98
|
export class UpdateNodePoolComponentRequest extends $dara.Model {
|
|
89
99
|
/**
|
|
90
100
|
* @remarks
|
|
91
|
-
* The node component
|
|
101
|
+
* The configuration of the node component.
|
|
92
102
|
*/
|
|
93
103
|
config?: UpdateNodePoolComponentRequestConfig;
|
|
94
104
|
/**
|
|
95
105
|
* @remarks
|
|
96
|
-
* Specifies whether to disable rolling
|
|
106
|
+
* Specifies whether to disable rolling. Default value: false. If set to false, updating the baseline configuration triggers a rolling update of nodes.
|
|
97
107
|
*/
|
|
98
108
|
disableRolling?: boolean;
|
|
99
109
|
/**
|
|
@@ -111,7 +121,7 @@ export class UpdateNodePoolComponentRequest extends $dara.Model {
|
|
|
111
121
|
nodeNames?: string[];
|
|
112
122
|
/**
|
|
113
123
|
* @remarks
|
|
114
|
-
* The rolling update
|
|
124
|
+
* The rolling update policy.
|
|
115
125
|
*/
|
|
116
126
|
rollingPolicy?: UpdateNodePoolComponentRequestRollingPolicy;
|
|
117
127
|
/**
|
|
@@ -5,11 +5,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The interval between batches
|
|
8
|
+
* The upgrade interval between batches. This parameter takes effect only when the pause policy is set to `NotPause`.
|
|
9
9
|
*
|
|
10
10
|
* Valid values: [5,120]. Unit: minutes.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* This parameter can be set to 0, which indicates no interval between batches.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* 5
|
|
@@ -17,7 +17,15 @@ export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
|
17
17
|
batchInterval?: number;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* The maximum number of nodes that
|
|
20
|
+
* The maximum number of nodes that are allowed to fail during the rolling update. Default value: 0, which indicates that the task fails if any node fails. If the value is greater than 0, the task fails and stops when the cumulative number of failed nodes exceeds this value.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 0
|
|
24
|
+
*/
|
|
25
|
+
maxFailedNodes?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The maximum number of nodes that can be updated in parallel per batch. Node pool updates are performed in batches.
|
|
21
29
|
*
|
|
22
30
|
* Valid values: [1,10].
|
|
23
31
|
*
|
|
@@ -30,9 +38,9 @@ export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
|
30
38
|
/**
|
|
31
39
|
* @remarks
|
|
32
40
|
* The automatic pause policy during node upgrades. Valid values:
|
|
33
|
-
* - FirstBatch:
|
|
34
|
-
* - EveryBatch:
|
|
35
|
-
* - NotPause:
|
|
41
|
+
* - FirstBatch: Pauses after the first batch is complete.
|
|
42
|
+
* - EveryBatch: Pauses after each batch is complete.
|
|
43
|
+
* - NotPause: Does not pause.
|
|
36
44
|
*
|
|
37
45
|
* @example
|
|
38
46
|
* NotPause
|
|
@@ -41,6 +49,7 @@ export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
|
41
49
|
static names(): { [key: string]: string } {
|
|
42
50
|
return {
|
|
43
51
|
batchInterval: 'batch_interval',
|
|
52
|
+
maxFailedNodes: 'max_failed_nodes',
|
|
44
53
|
maxParallelism: 'max_parallelism',
|
|
45
54
|
pausePolicy: 'pause_policy',
|
|
46
55
|
};
|
|
@@ -49,6 +58,7 @@ export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
|
49
58
|
static types(): { [key: string]: any } {
|
|
50
59
|
return {
|
|
51
60
|
batchInterval: 'number',
|
|
61
|
+
maxFailedNodes: 'number',
|
|
52
62
|
maxParallelism: 'number',
|
|
53
63
|
pausePolicy: 'string',
|
|
54
64
|
};
|
|
@@ -64,6 +74,10 @@ export class UpgradeClusterNodepoolRequestRollingPolicy extends $dara.Model {
|
|
|
64
74
|
}
|
|
65
75
|
|
|
66
76
|
export class UpgradeClusterNodepoolRequest extends $dara.Model {
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* Specifies whether to ignore warning-level pre-checks.
|
|
80
|
+
*/
|
|
67
81
|
ignoreWarningCheck?: boolean;
|
|
68
82
|
/**
|
|
69
83
|
* @remarks
|
|
@@ -75,7 +89,7 @@ export class UpgradeClusterNodepoolRequest extends $dara.Model {
|
|
|
75
89
|
imageId?: string;
|
|
76
90
|
/**
|
|
77
91
|
* @remarks
|
|
78
|
-
* The Kubernetes version of the node. You can call [DescribeKubernetesVersionMetadata](https://help.aliyun.com/document_detail/2667899.html) to obtain the current cluster version information from
|
|
92
|
+
* The Kubernetes version of the node. You can call [DescribeKubernetesVersionMetadata](https://help.aliyun.com/document_detail/2667899.html) to obtain the current cluster version information from `KubernetesVersion`.
|
|
79
93
|
*
|
|
80
94
|
* @example
|
|
81
95
|
* 1.32.1-aliyun.1
|
|
@@ -83,7 +97,7 @@ export class UpgradeClusterNodepoolRequest extends $dara.Model {
|
|
|
83
97
|
kubernetesVersion?: string;
|
|
84
98
|
/**
|
|
85
99
|
* @remarks
|
|
86
|
-
* The list of nodes to upgrade. If
|
|
100
|
+
* The list of nodes to upgrade. If not specified, all nodes in the node pool are upgraded by default.
|
|
87
101
|
*/
|
|
88
102
|
nodeNames?: string[];
|
|
89
103
|
/**
|
|
@@ -109,9 +123,9 @@ export class UpgradeClusterNodepoolRequest extends $dara.Model {
|
|
|
109
123
|
runtimeVersion?: string;
|
|
110
124
|
/**
|
|
111
125
|
* @remarks
|
|
112
|
-
* Specifies whether to use
|
|
113
|
-
* - true: Uses
|
|
114
|
-
* - false: Does not use
|
|
126
|
+
* Specifies whether to use disk replacement for the upgrade. Valid values:
|
|
127
|
+
* - true: Uses disk replacement to upgrade the node pool. ACK reinitializes the nodes based on the current node pool configurations, such as logon method, labels, taints, operating system image, and runtime version.
|
|
128
|
+
* - false: Does not use disk replacement.
|
|
115
129
|
*
|
|
116
130
|
* Default value: false.
|
|
117
131
|
*
|
package/src/models/model.ts
CHANGED
|
@@ -59,6 +59,9 @@ export { CreateClusterNodePoolRequestScalingGroupSpotPriceLimit } from './Create
|
|
|
59
59
|
export { CreateClusterNodePoolRequestScalingGroupTags } from './CreateClusterNodePoolRequest';
|
|
60
60
|
export { CreateClusterNodePoolRequestScalingGroup } from './CreateClusterNodePoolRequest';
|
|
61
61
|
export { CreateClusterNodePoolRequestTeeConfig } from './CreateClusterNodePoolRequest';
|
|
62
|
+
export { CreateNodePoolComponentInstancesRequestComponentsConfig } from './CreateNodePoolComponentInstancesRequest';
|
|
63
|
+
export { CreateNodePoolComponentInstancesRequestComponents } from './CreateNodePoolComponentInstancesRequest';
|
|
64
|
+
export { CreateNodePoolComponentInstancesRequestRollingPolicy } from './CreateNodePoolComponentInstancesRequest';
|
|
62
65
|
export { DeleteAlertContactResponseBodyResult } from './DeleteAlertContactResponse';
|
|
63
66
|
export { DeleteAlertContactResponseBody } from './DeleteAlertContactResponse';
|
|
64
67
|
export { DeleteAlertContactGroupResponseBody } from './DeleteAlertContactGroupResponse';
|
|
@@ -213,6 +216,9 @@ export { ListClusterInspectReportsResponseBodyReports } from './ListClusterInspe
|
|
|
213
216
|
export { ListClusterKubeconfigStatesResponseBodyPage } from './ListClusterKubeconfigStatesResponseBody';
|
|
214
217
|
export { ListClusterKubeconfigStatesResponseBodyStatesCloudServiceRoles } from './ListClusterKubeconfigStatesResponseBody';
|
|
215
218
|
export { ListClusterKubeconfigStatesResponseBodyStates } from './ListClusterKubeconfigStatesResponseBody';
|
|
219
|
+
export { ListNodePoolComponentInstancesResponseBodyComponentInstancesConfig } from './ListNodePoolComponentInstancesResponseBody';
|
|
220
|
+
export { ListNodePoolComponentInstancesResponseBodyComponentInstances } from './ListNodePoolComponentInstancesResponseBody';
|
|
221
|
+
export { ListNodePoolComponentsResponseBodyComponents } from './ListNodePoolComponentsResponseBody';
|
|
216
222
|
export { ListOperationPlansResponseBodyPlans } from './ListOperationPlansResponseBody';
|
|
217
223
|
export { ListOperationPlansForRegionResponseBodyPlansStateReason } from './ListOperationPlansForRegionResponseBody';
|
|
218
224
|
export { ListOperationPlansForRegionResponseBodyPlans } from './ListOperationPlansForRegionResponseBody';
|
|
@@ -255,6 +261,8 @@ export { ScaleOutClusterRequestWorkerDataDisks } from './ScaleOutClusterRequest'
|
|
|
255
261
|
export { UnInstallClusterAddonsRequestAddons } from './UnInstallClusterAddonsRequest';
|
|
256
262
|
export { UpdateNodePoolComponentRequestConfig } from './UpdateNodePoolComponentRequest';
|
|
257
263
|
export { UpdateNodePoolComponentRequestRollingPolicy } from './UpdateNodePoolComponentRequest';
|
|
264
|
+
export { UpdateNodePoolComponentInstanceRequestConfig } from './UpdateNodePoolComponentInstanceRequest';
|
|
265
|
+
export { UpdateNodePoolComponentInstanceRequestRollingPolicy } from './UpdateNodePoolComponentInstanceRequest';
|
|
258
266
|
export { UpdateUserPermissionsRequestBody } from './UpdateUserPermissionsRequest';
|
|
259
267
|
export { UpgradeClusterRequestRollingPolicy } from './UpgradeClusterRequest';
|
|
260
268
|
export { UpgradeClusterAddonsRequestBody } from './UpgradeClusterAddonsRequest';
|
|
@@ -317,6 +325,9 @@ export { CreateClusterNodePoolResponse } from './CreateClusterNodePoolResponse';
|
|
|
317
325
|
export { CreateKubernetesTriggerRequest } from './CreateKubernetesTriggerRequest';
|
|
318
326
|
export { CreateKubernetesTriggerResponseBody } from './CreateKubernetesTriggerResponseBody';
|
|
319
327
|
export { CreateKubernetesTriggerResponse } from './CreateKubernetesTriggerResponse';
|
|
328
|
+
export { CreateNodePoolComponentInstancesRequest } from './CreateNodePoolComponentInstancesRequest';
|
|
329
|
+
export { CreateNodePoolComponentInstancesResponseBody } from './CreateNodePoolComponentInstancesResponseBody';
|
|
330
|
+
export { CreateNodePoolComponentInstancesResponse } from './CreateNodePoolComponentInstancesResponse';
|
|
320
331
|
export { CreateTemplateRequest } from './CreateTemplateRequest';
|
|
321
332
|
export { CreateTemplateResponseBody } from './CreateTemplateResponseBody';
|
|
322
333
|
export { CreateTemplateResponse } from './CreateTemplateResponse';
|
|
@@ -344,6 +355,10 @@ export { DeleteClusterNodesRequest } from './DeleteClusterNodesRequest';
|
|
|
344
355
|
export { DeleteClusterNodesResponseBody } from './DeleteClusterNodesResponseBody';
|
|
345
356
|
export { DeleteClusterNodesResponse } from './DeleteClusterNodesResponse';
|
|
346
357
|
export { DeleteKubernetesTriggerResponse } from './DeleteKubernetesTriggerResponse';
|
|
358
|
+
export { DeleteNodePoolComponentInstanceRequest } from './DeleteNodePoolComponentInstanceRequest';
|
|
359
|
+
export { DeleteNodePoolComponentInstanceShrinkRequest } from './DeleteNodePoolComponentInstanceShrinkRequest';
|
|
360
|
+
export { DeleteNodePoolComponentInstanceResponseBody } from './DeleteNodePoolComponentInstanceResponseBody';
|
|
361
|
+
export { DeleteNodePoolComponentInstanceResponse } from './DeleteNodePoolComponentInstanceResponse';
|
|
347
362
|
export { DeletePolicyInstanceRequest } from './DeletePolicyInstanceRequest';
|
|
348
363
|
export { DeletePolicyInstanceResponseBody } from './DeletePolicyInstanceResponseBody';
|
|
349
364
|
export { DeletePolicyInstanceResponse } from './DeletePolicyInstanceResponse';
|
|
@@ -501,6 +516,13 @@ export { ListClusterInspectReportsResponse } from './ListClusterInspectReportsRe
|
|
|
501
516
|
export { ListClusterKubeconfigStatesRequest } from './ListClusterKubeconfigStatesRequest';
|
|
502
517
|
export { ListClusterKubeconfigStatesResponseBody } from './ListClusterKubeconfigStatesResponseBody';
|
|
503
518
|
export { ListClusterKubeconfigStatesResponse } from './ListClusterKubeconfigStatesResponse';
|
|
519
|
+
export { ListNodePoolComponentInstancesRequest } from './ListNodePoolComponentInstancesRequest';
|
|
520
|
+
export { ListNodePoolComponentInstancesResponseBody } from './ListNodePoolComponentInstancesResponseBody';
|
|
521
|
+
export { ListNodePoolComponentInstancesResponse } from './ListNodePoolComponentInstancesResponse';
|
|
522
|
+
export { ListNodePoolComponentsRequest } from './ListNodePoolComponentsRequest';
|
|
523
|
+
export { ListNodePoolComponentsShrinkRequest } from './ListNodePoolComponentsShrinkRequest';
|
|
524
|
+
export { ListNodePoolComponentsResponseBody } from './ListNodePoolComponentsResponseBody';
|
|
525
|
+
export { ListNodePoolComponentsResponse } from './ListNodePoolComponentsResponse';
|
|
504
526
|
export { ListOperationPlansRequest } from './ListOperationPlansRequest';
|
|
505
527
|
export { ListOperationPlansResponseBody } from './ListOperationPlansResponseBody';
|
|
506
528
|
export { ListOperationPlansResponse } from './ListOperationPlansResponse';
|
|
@@ -610,6 +632,9 @@ export { UpdateKMSEncryptionResponse } from './UpdateKmsencryptionResponse';
|
|
|
610
632
|
export { UpdateNodePoolComponentRequest } from './UpdateNodePoolComponentRequest';
|
|
611
633
|
export { UpdateNodePoolComponentResponseBody } from './UpdateNodePoolComponentResponseBody';
|
|
612
634
|
export { UpdateNodePoolComponentResponse } from './UpdateNodePoolComponentResponse';
|
|
635
|
+
export { UpdateNodePoolComponentInstanceRequest } from './UpdateNodePoolComponentInstanceRequest';
|
|
636
|
+
export { UpdateNodePoolComponentInstanceResponseBody } from './UpdateNodePoolComponentInstanceResponseBody';
|
|
637
|
+
export { UpdateNodePoolComponentInstanceResponse } from './UpdateNodePoolComponentInstanceResponse';
|
|
613
638
|
export { UpdateResourcesDeleteProtectionRequest } from './UpdateResourcesDeleteProtectionRequest';
|
|
614
639
|
export { UpdateResourcesDeleteProtectionResponseBody } from './UpdateResourcesDeleteProtectionResponseBody';
|
|
615
640
|
export { UpdateResourcesDeleteProtectionResponse } from './UpdateResourcesDeleteProtectionResponse';
|