@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.
- package/dist/client.d.ts +104 -2
- package/dist/client.js +285 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +345 -70
- package/dist/models/CreateClusterRequest.js.map +1 -1
- 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/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/Nodepool.d.ts +65 -46
- package/dist/models/Nodepool.js +6 -0
- package/dist/models/Nodepool.js.map +1 -1
- 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/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 +319 -2
- package/src/models/CreateClusterRequest.ts +345 -70
- 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/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/Nodepool.ts +70 -46
- package/src/models/UpdateNodePoolComponentInstanceRequest.ts +134 -0
- package/src/models/UpdateNodePoolComponentInstanceResponse.ts +40 -0
- package/src/models/UpdateNodePoolComponentInstanceResponseBody.ts +45 -0
- package/src/models/model.ts +25 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateNodePoolComponentInstancesRequestComponentsConfig 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 CreateNodePoolComponentInstancesRequestComponents extends $dara.Model {
|
|
36
|
+
config?: CreateNodePoolComponentInstancesRequestComponentsConfig;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* This parameter is required.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* kubelet
|
|
43
|
+
*/
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* This parameter is required.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* 1.33.3-aliyun.1
|
|
51
|
+
*/
|
|
52
|
+
version?: string;
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
config: 'config',
|
|
56
|
+
name: 'name',
|
|
57
|
+
version: 'version',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static types(): { [key: string]: any } {
|
|
62
|
+
return {
|
|
63
|
+
config: CreateNodePoolComponentInstancesRequestComponentsConfig,
|
|
64
|
+
name: 'string',
|
|
65
|
+
version: 'string',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
validate() {
|
|
70
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
71
|
+
(this.config as any).validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class CreateNodePoolComponentInstancesRequestRollingPolicy extends $dara.Model {
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* 10
|
|
85
|
+
*/
|
|
86
|
+
batchInterval?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @example
|
|
89
|
+
* 0
|
|
90
|
+
*/
|
|
91
|
+
maxFailedNodes?: number;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* 1
|
|
95
|
+
*/
|
|
96
|
+
maxParallelism?: number;
|
|
97
|
+
/**
|
|
98
|
+
* @example
|
|
99
|
+
* NotPause
|
|
100
|
+
*/
|
|
101
|
+
pausePolicy?: string;
|
|
102
|
+
static names(): { [key: string]: string } {
|
|
103
|
+
return {
|
|
104
|
+
batchInterval: 'batch_interval',
|
|
105
|
+
maxFailedNodes: 'max_failed_nodes',
|
|
106
|
+
maxParallelism: 'max_parallelism',
|
|
107
|
+
pausePolicy: 'pause_policy',
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static types(): { [key: string]: any } {
|
|
112
|
+
return {
|
|
113
|
+
batchInterval: 'number',
|
|
114
|
+
maxFailedNodes: 'number',
|
|
115
|
+
maxParallelism: 'number',
|
|
116
|
+
pausePolicy: 'string',
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
validate() {
|
|
121
|
+
super.validate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
constructor(map?: { [key: string]: any }) {
|
|
125
|
+
super(map);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class CreateNodePoolComponentInstancesRequest extends $dara.Model {
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* This parameter is required.
|
|
133
|
+
*/
|
|
134
|
+
components?: CreateNodePoolComponentInstancesRequestComponents[];
|
|
135
|
+
nodeNames?: string[];
|
|
136
|
+
rollingPolicy?: CreateNodePoolComponentInstancesRequestRollingPolicy;
|
|
137
|
+
static names(): { [key: string]: string } {
|
|
138
|
+
return {
|
|
139
|
+
components: 'components',
|
|
140
|
+
nodeNames: 'node_names',
|
|
141
|
+
rollingPolicy: 'rolling_policy',
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static types(): { [key: string]: any } {
|
|
146
|
+
return {
|
|
147
|
+
components: { 'type': 'array', 'itemType': CreateNodePoolComponentInstancesRequestComponents },
|
|
148
|
+
nodeNames: { 'type': 'array', 'itemType': 'string' },
|
|
149
|
+
rollingPolicy: CreateNodePoolComponentInstancesRequestRollingPolicy,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(Array.isArray(this.components)) {
|
|
155
|
+
$dara.Model.validateArray(this.components);
|
|
156
|
+
}
|
|
157
|
+
if(Array.isArray(this.nodeNames)) {
|
|
158
|
+
$dara.Model.validateArray(this.nodeNames);
|
|
159
|
+
}
|
|
160
|
+
if(this.rollingPolicy && typeof (this.rollingPolicy as any).validate === 'function') {
|
|
161
|
+
(this.rollingPolicy as any).validate();
|
|
162
|
+
}
|
|
163
|
+
super.validate();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
constructor(map?: { [key: string]: any }) {
|
|
167
|
+
super(map);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateNodePoolComponentInstancesResponseBody } from "./CreateNodePoolComponentInstancesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateNodePoolComponentInstancesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateNodePoolComponentInstancesResponseBody;
|
|
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: CreateNodePoolComponentInstancesResponseBody,
|
|
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 CreateNodePoolComponentInstancesResponseBody 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
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteNodePoolComponentInstanceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 10
|
|
9
|
+
*/
|
|
10
|
+
batchInterval?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 0
|
|
14
|
+
*/
|
|
15
|
+
maxFailedNodes?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 1
|
|
19
|
+
*/
|
|
20
|
+
maxParallelism?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ["cn-hangzhou.10.91.xx.xx"]
|
|
24
|
+
*/
|
|
25
|
+
nodeNames?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* NotPause
|
|
29
|
+
*/
|
|
30
|
+
pausePolicy?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
batchInterval: 'batch_interval',
|
|
34
|
+
maxFailedNodes: 'max_failed_nodes',
|
|
35
|
+
maxParallelism: 'max_parallelism',
|
|
36
|
+
nodeNames: 'node_names',
|
|
37
|
+
pausePolicy: 'pause_policy',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
batchInterval: 'number',
|
|
44
|
+
maxFailedNodes: 'number',
|
|
45
|
+
maxParallelism: 'number',
|
|
46
|
+
nodeNames: { 'type': 'array', 'itemType': 'string' },
|
|
47
|
+
pausePolicy: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
if(Array.isArray(this.nodeNames)) {
|
|
53
|
+
$dara.Model.validateArray(this.nodeNames);
|
|
54
|
+
}
|
|
55
|
+
super.validate();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
constructor(map?: { [key: string]: any }) {
|
|
59
|
+
super(map);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteNodePoolComponentInstanceResponseBody } from "./DeleteNodePoolComponentInstanceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteNodePoolComponentInstanceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteNodePoolComponentInstanceResponseBody;
|
|
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: DeleteNodePoolComponentInstanceResponseBody,
|
|
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 DeleteNodePoolComponentInstanceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* c846d7d529e34413c9ab1****
|
|
9
|
+
*/
|
|
10
|
+
clusterId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* EB022AB1-4CF7-5BB6-B44A-38****
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* T-696de321273bb00****
|
|
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
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteNodePoolComponentInstanceShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 10
|
|
9
|
+
*/
|
|
10
|
+
batchInterval?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 0
|
|
14
|
+
*/
|
|
15
|
+
maxFailedNodes?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 1
|
|
19
|
+
*/
|
|
20
|
+
maxParallelism?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ["cn-hangzhou.10.91.xx.xx"]
|
|
24
|
+
*/
|
|
25
|
+
nodeNamesShrink?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* NotPause
|
|
29
|
+
*/
|
|
30
|
+
pausePolicy?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
batchInterval: 'batch_interval',
|
|
34
|
+
maxFailedNodes: 'max_failed_nodes',
|
|
35
|
+
maxParallelism: 'max_parallelism',
|
|
36
|
+
nodeNamesShrink: 'node_names',
|
|
37
|
+
pausePolicy: 'pause_policy',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
batchInterval: 'number',
|
|
44
|
+
maxFailedNodes: 'number',
|
|
45
|
+
maxParallelism: 'number',
|
|
46
|
+
nodeNamesShrink: 'string',
|
|
47
|
+
pausePolicy: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListNodePoolComponentInstancesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 10
|
|
9
|
+
*/
|
|
10
|
+
maxResults?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 5c0a1c0f91c14c6****
|
|
14
|
+
*/
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
maxResults: 'max_results',
|
|
19
|
+
nextToken: 'next_token',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
maxResults: 'number',
|
|
26
|
+
nextToken: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListNodePoolComponentInstancesResponseBody } from "./ListNodePoolComponentInstancesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListNodePoolComponentInstancesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListNodePoolComponentInstancesResponseBody;
|
|
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: ListNodePoolComponentInstancesResponseBody,
|
|
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,128 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListNodePoolComponentInstancesResponseBodyComponentInstancesConfig 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 ListNodePoolComponentInstancesResponseBodyComponentInstances extends $dara.Model {
|
|
36
|
+
config?: ListNodePoolComponentInstancesResponseBodyComponentInstancesConfig;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* 1
|
|
40
|
+
*/
|
|
41
|
+
configRevision?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* kubelet
|
|
45
|
+
*/
|
|
46
|
+
name?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* active
|
|
50
|
+
*/
|
|
51
|
+
state?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* 1.33.3-aliyun.1
|
|
55
|
+
*/
|
|
56
|
+
version?: string;
|
|
57
|
+
static names(): { [key: string]: string } {
|
|
58
|
+
return {
|
|
59
|
+
config: 'config',
|
|
60
|
+
configRevision: 'config_revision',
|
|
61
|
+
name: 'name',
|
|
62
|
+
state: 'state',
|
|
63
|
+
version: 'version',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
config: ListNodePoolComponentInstancesResponseBodyComponentInstancesConfig,
|
|
70
|
+
configRevision: 'string',
|
|
71
|
+
name: 'string',
|
|
72
|
+
state: 'string',
|
|
73
|
+
version: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
79
|
+
(this.config as any).validate();
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class ListNodePoolComponentInstancesResponseBody extends $dara.Model {
|
|
90
|
+
componentInstances?: ListNodePoolComponentInstancesResponseBodyComponentInstances[];
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* 10
|
|
94
|
+
*/
|
|
95
|
+
maxResults?: number;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* 5c0a1c0f91c14c6****
|
|
99
|
+
*/
|
|
100
|
+
nextToken?: string;
|
|
101
|
+
static names(): { [key: string]: string } {
|
|
102
|
+
return {
|
|
103
|
+
componentInstances: 'component_instances',
|
|
104
|
+
maxResults: 'max_results',
|
|
105
|
+
nextToken: 'next_token',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static types(): { [key: string]: any } {
|
|
110
|
+
return {
|
|
111
|
+
componentInstances: { 'type': 'array', 'itemType': ListNodePoolComponentInstancesResponseBodyComponentInstances },
|
|
112
|
+
maxResults: 'number',
|
|
113
|
+
nextToken: 'string',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(Array.isArray(this.componentInstances)) {
|
|
119
|
+
$dara.Model.validateArray(this.componentInstances);
|
|
120
|
+
}
|
|
121
|
+
super.validate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
constructor(map?: { [key: string]: any }) {
|
|
125
|
+
super(map);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|