@alicloud/cs20151215 6.2.0 → 6.3.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.
Files changed (33) hide show
  1. package/dist/client.d.ts +36 -0
  2. package/dist/client.js +105 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/InstallNodePoolComponentsRequest.d.ts +84 -0
  5. package/dist/models/InstallNodePoolComponentsRequest.js +142 -0
  6. package/dist/models/InstallNodePoolComponentsRequest.js.map +1 -0
  7. package/dist/models/InstallNodePoolComponentsResponse.d.ts +19 -0
  8. package/dist/models/InstallNodePoolComponentsResponse.js +69 -0
  9. package/dist/models/InstallNodePoolComponentsResponse.js.map +1 -0
  10. package/dist/models/InstallNodePoolComponentsResponseBody.d.ts +28 -0
  11. package/dist/models/InstallNodePoolComponentsResponseBody.js +62 -0
  12. package/dist/models/InstallNodePoolComponentsResponseBody.js.map +1 -0
  13. package/dist/models/UpdateNodePoolComponentRequest.d.ts +69 -0
  14. package/dist/models/UpdateNodePoolComponentRequest.js +122 -0
  15. package/dist/models/UpdateNodePoolComponentRequest.js.map +1 -0
  16. package/dist/models/UpdateNodePoolComponentResponse.d.ts +19 -0
  17. package/dist/models/UpdateNodePoolComponentResponse.js +69 -0
  18. package/dist/models/UpdateNodePoolComponentResponse.js.map +1 -0
  19. package/dist/models/UpdateNodePoolComponentResponseBody.d.ts +31 -0
  20. package/dist/models/UpdateNodePoolComponentResponseBody.js +62 -0
  21. package/dist/models/UpdateNodePoolComponentResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +11 -0
  23. package/dist/models/model.js +31 -9
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +118 -0
  27. package/src/models/InstallNodePoolComponentsRequest.ts +152 -0
  28. package/src/models/InstallNodePoolComponentsResponse.ts +40 -0
  29. package/src/models/InstallNodePoolComponentsResponseBody.ts +45 -0
  30. package/src/models/UpdateNodePoolComponentRequest.ts +126 -0
  31. package/src/models/UpdateNodePoolComponentResponse.ts +40 -0
  32. package/src/models/UpdateNodePoolComponentResponseBody.ts +48 -0
  33. package/src/models/model.ts +11 -0
@@ -0,0 +1,152 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class InstallNodePoolComponentsRequestComponentsConfig extends $dara.Model {
6
+ customConfig?: { [key: string]: string };
7
+ static names(): { [key: string]: string } {
8
+ return {
9
+ customConfig: 'customConfig',
10
+ };
11
+ }
12
+
13
+ static types(): { [key: string]: any } {
14
+ return {
15
+ customConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16
+ };
17
+ }
18
+
19
+ validate() {
20
+ if(this.customConfig) {
21
+ $dara.Model.validateMap(this.customConfig);
22
+ }
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
31
+ export class InstallNodePoolComponentsRequestComponents extends $dara.Model {
32
+ config?: InstallNodePoolComponentsRequestComponentsConfig;
33
+ /**
34
+ * @remarks
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * kubelet
39
+ */
40
+ name?: string;
41
+ /**
42
+ * @example
43
+ * 1.28.9-aliyun.1
44
+ */
45
+ version?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ config: 'config',
49
+ name: 'name',
50
+ version: 'version',
51
+ };
52
+ }
53
+
54
+ static types(): { [key: string]: any } {
55
+ return {
56
+ config: InstallNodePoolComponentsRequestComponentsConfig,
57
+ name: 'string',
58
+ version: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ if(this.config && typeof (this.config as any).validate === 'function') {
64
+ (this.config as any).validate();
65
+ }
66
+ super.validate();
67
+ }
68
+
69
+ constructor(map?: { [key: string]: any }) {
70
+ super(map);
71
+ }
72
+ }
73
+
74
+ export class InstallNodePoolComponentsRequestRollingPolicy extends $dara.Model {
75
+ /**
76
+ * @example
77
+ * 0
78
+ */
79
+ batchInterval?: number;
80
+ /**
81
+ * @example
82
+ * 1
83
+ */
84
+ maxParallelism?: number;
85
+ /**
86
+ * @example
87
+ * NotPause
88
+ */
89
+ pausePolicy?: string;
90
+ static names(): { [key: string]: string } {
91
+ return {
92
+ batchInterval: 'batchInterval',
93
+ maxParallelism: 'maxParallelism',
94
+ pausePolicy: 'pausePolicy',
95
+ };
96
+ }
97
+
98
+ static types(): { [key: string]: any } {
99
+ return {
100
+ batchInterval: 'number',
101
+ maxParallelism: 'number',
102
+ pausePolicy: 'string',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class InstallNodePoolComponentsRequest extends $dara.Model {
116
+ components?: InstallNodePoolComponentsRequestComponents[];
117
+ nodeNames?: string[];
118
+ rollingPolicy?: InstallNodePoolComponentsRequestRollingPolicy;
119
+ static names(): { [key: string]: string } {
120
+ return {
121
+ components: 'components',
122
+ nodeNames: 'nodeNames',
123
+ rollingPolicy: 'rollingPolicy',
124
+ };
125
+ }
126
+
127
+ static types(): { [key: string]: any } {
128
+ return {
129
+ components: { 'type': 'array', 'itemType': InstallNodePoolComponentsRequestComponents },
130
+ nodeNames: { 'type': 'array', 'itemType': 'string' },
131
+ rollingPolicy: InstallNodePoolComponentsRequestRollingPolicy,
132
+ };
133
+ }
134
+
135
+ validate() {
136
+ if(Array.isArray(this.components)) {
137
+ $dara.Model.validateArray(this.components);
138
+ }
139
+ if(Array.isArray(this.nodeNames)) {
140
+ $dara.Model.validateArray(this.nodeNames);
141
+ }
142
+ if(this.rollingPolicy && typeof (this.rollingPolicy as any).validate === 'function') {
143
+ (this.rollingPolicy as any).validate();
144
+ }
145
+ super.validate();
146
+ }
147
+
148
+ constructor(map?: { [key: string]: any }) {
149
+ super(map);
150
+ }
151
+ }
152
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { InstallNodePoolComponentsResponseBody } from "./InstallNodePoolComponentsResponseBody";
4
+
5
+
6
+ export class InstallNodePoolComponentsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: InstallNodePoolComponentsResponseBody;
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: InstallNodePoolComponentsResponseBody,
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 InstallNodePoolComponentsResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * c8155823d057948c69a****
9
+ */
10
+ clusterId?: string;
11
+ /**
12
+ * @example
13
+ * 49511F2D-D56A-5C24-B9AE-C8491E09B***
14
+ */
15
+ requestId?: string;
16
+ /**
17
+ * @example
18
+ * T-67d7ec016ce37c0106000***
19
+ */
20
+ taskId?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ clusterId: 'clusterId',
24
+ requestId: 'requestId',
25
+ taskId: 'taskId',
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,126 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateNodePoolComponentRequestConfig extends $dara.Model {
6
+ customConfig?: { [key: string]: string };
7
+ static names(): { [key: string]: string } {
8
+ return {
9
+ customConfig: 'customConfig',
10
+ };
11
+ }
12
+
13
+ static types(): { [key: string]: any } {
14
+ return {
15
+ customConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16
+ };
17
+ }
18
+
19
+ validate() {
20
+ if(this.customConfig) {
21
+ $dara.Model.validateMap(this.customConfig);
22
+ }
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
31
+ export class UpdateNodePoolComponentRequestRollingPolicy extends $dara.Model {
32
+ /**
33
+ * @example
34
+ * 0
35
+ */
36
+ batchInterval?: number;
37
+ /**
38
+ * @example
39
+ * 1
40
+ */
41
+ maxParallelism?: number;
42
+ /**
43
+ * @example
44
+ * NotPause
45
+ */
46
+ pausePolicy?: string;
47
+ static names(): { [key: string]: string } {
48
+ return {
49
+ batchInterval: 'batchInterval',
50
+ maxParallelism: 'maxParallelism',
51
+ pausePolicy: 'pausePolicy',
52
+ };
53
+ }
54
+
55
+ static types(): { [key: string]: any } {
56
+ return {
57
+ batchInterval: 'number',
58
+ maxParallelism: 'number',
59
+ pausePolicy: 'string',
60
+ };
61
+ }
62
+
63
+ validate() {
64
+ super.validate();
65
+ }
66
+
67
+ constructor(map?: { [key: string]: any }) {
68
+ super(map);
69
+ }
70
+ }
71
+
72
+ export class UpdateNodePoolComponentRequest extends $dara.Model {
73
+ config?: UpdateNodePoolComponentRequestConfig;
74
+ disableRolling?: boolean;
75
+ /**
76
+ * @example
77
+ * kubelet
78
+ */
79
+ name?: string;
80
+ nodeNames?: string[];
81
+ rollingPolicy?: UpdateNodePoolComponentRequestRollingPolicy;
82
+ /**
83
+ * @example
84
+ * 1.28.9-aliyun.1
85
+ */
86
+ version?: string;
87
+ static names(): { [key: string]: string } {
88
+ return {
89
+ config: 'config',
90
+ disableRolling: 'disableRolling',
91
+ name: 'name',
92
+ nodeNames: 'nodeNames',
93
+ rollingPolicy: 'rollingPolicy',
94
+ version: 'version',
95
+ };
96
+ }
97
+
98
+ static types(): { [key: string]: any } {
99
+ return {
100
+ config: UpdateNodePoolComponentRequestConfig,
101
+ disableRolling: 'boolean',
102
+ name: 'string',
103
+ nodeNames: { 'type': 'array', 'itemType': 'string' },
104
+ rollingPolicy: UpdateNodePoolComponentRequestRollingPolicy,
105
+ version: 'string',
106
+ };
107
+ }
108
+
109
+ validate() {
110
+ if(this.config && typeof (this.config as any).validate === 'function') {
111
+ (this.config as any).validate();
112
+ }
113
+ if(Array.isArray(this.nodeNames)) {
114
+ $dara.Model.validateArray(this.nodeNames);
115
+ }
116
+ if(this.rollingPolicy && typeof (this.rollingPolicy as any).validate === 'function') {
117
+ (this.rollingPolicy as any).validate();
118
+ }
119
+ super.validate();
120
+ }
121
+
122
+ constructor(map?: { [key: string]: any }) {
123
+ super(map);
124
+ }
125
+ }
126
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateNodePoolComponentResponseBody } from "./UpdateNodePoolComponentResponseBody";
4
+
5
+
6
+ export class UpdateNodePoolComponentResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateNodePoolComponentResponseBody;
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: UpdateNodePoolComponentResponseBody,
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,48 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateNodePoolComponentResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * c82e6987e2961451182edacd74faf****
9
+ */
10
+ clusterId?: string;
11
+ /**
12
+ * @remarks
13
+ * Id of the request
14
+ *
15
+ * @example
16
+ * 49511F2D-D56A-5C24-B9AE-C8491E09B***
17
+ */
18
+ requestId?: string;
19
+ /**
20
+ * @example
21
+ * T-67d7ec016ce37c0106000***
22
+ */
23
+ taskId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ clusterId: 'clusterId',
27
+ requestId: 'requestId',
28
+ taskId: 'taskId',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ clusterId: 'string',
35
+ requestId: 'string',
36
+ taskId: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
@@ -168,6 +168,9 @@ export { GetKubernetesTriggerResponseBody } from './GetKubernetesTriggerResponse
168
168
  export { GetUpgradeStatusResponseBodyUpgradeTask } from './GetUpgradeStatusResponseBody';
169
169
  export { GrantPermissionsRequestBody } from './GrantPermissionsRequest';
170
170
  export { InstallClusterAddonsRequestBody } from './InstallClusterAddonsRequest';
171
+ export { InstallNodePoolComponentsRequestComponentsConfig } from './InstallNodePoolComponentsRequest';
172
+ export { InstallNodePoolComponentsRequestComponents } from './InstallNodePoolComponentsRequest';
173
+ export { InstallNodePoolComponentsRequestRollingPolicy } from './InstallNodePoolComponentsRequest';
171
174
  export { ListAddonsResponseBodyAddons } from './ListAddonsResponseBody';
172
175
  export { ListClusterAddonInstanceResourcesResponseBodyHelmRelease } from './ListClusterAddonInstanceResourcesResponseBody';
173
176
  export { ListClusterAddonInstanceResourcesResponseBodyKubernetesObjects } from './ListClusterAddonInstanceResourcesResponseBody';
@@ -207,6 +210,8 @@ export { ModifyNodePoolNodeConfigRequestRollingPolicy } from './ModifyNodePoolNo
207
210
  export { RepairClusterNodePoolRequestOperations } from './RepairClusterNodePoolRequest';
208
211
  export { ScaleOutClusterRequestWorkerDataDisks } from './ScaleOutClusterRequest';
209
212
  export { UnInstallClusterAddonsRequestAddons } from './UnInstallClusterAddonsRequest';
213
+ export { UpdateNodePoolComponentRequestConfig } from './UpdateNodePoolComponentRequest';
214
+ export { UpdateNodePoolComponentRequestRollingPolicy } from './UpdateNodePoolComponentRequest';
210
215
  export { UpdateUserPermissionsRequestBody } from './UpdateUserPermissionsRequest';
211
216
  export { UpgradeClusterRequestRollingPolicy } from './UpgradeClusterRequest';
212
217
  export { UpgradeClusterAddonsRequestBody } from './UpgradeClusterAddonsRequest';
@@ -421,6 +426,9 @@ export { GrantPermissionsResponse } from './GrantPermissionsResponse';
421
426
  export { InstallClusterAddonsRequest } from './InstallClusterAddonsRequest';
422
427
  export { InstallClusterAddonsResponseBody } from './InstallClusterAddonsResponseBody';
423
428
  export { InstallClusterAddonsResponse } from './InstallClusterAddonsResponse';
429
+ export { InstallNodePoolComponentsRequest } from './InstallNodePoolComponentsRequest';
430
+ export { InstallNodePoolComponentsResponseBody } from './InstallNodePoolComponentsResponseBody';
431
+ export { InstallNodePoolComponentsResponse } from './InstallNodePoolComponentsResponse';
424
432
  export { ListAddonsRequest } from './ListAddonsRequest';
425
433
  export { ListAddonsResponseBody } from './ListAddonsResponseBody';
426
434
  export { ListAddonsResponse } from './ListAddonsResponse';
@@ -535,6 +543,9 @@ export { UpdateControlPlaneLogResponseBody } from './UpdateControlPlaneLogRespon
535
543
  export { UpdateControlPlaneLogResponse } from './UpdateControlPlaneLogResponse';
536
544
  export { UpdateK8sClusterUserConfigExpireRequest } from './UpdateK8sClusterUserConfigExpireRequest';
537
545
  export { UpdateK8sClusterUserConfigExpireResponse } from './UpdateK8sClusterUserConfigExpireResponse';
546
+ export { UpdateNodePoolComponentRequest } from './UpdateNodePoolComponentRequest';
547
+ export { UpdateNodePoolComponentResponseBody } from './UpdateNodePoolComponentResponseBody';
548
+ export { UpdateNodePoolComponentResponse } from './UpdateNodePoolComponentResponse';
538
549
  export { UpdateResourcesDeleteProtectionRequest } from './UpdateResourcesDeleteProtectionRequest';
539
550
  export { UpdateResourcesDeleteProtectionResponseBody } from './UpdateResourcesDeleteProtectionResponseBody';
540
551
  export { UpdateResourcesDeleteProtectionResponse } from './UpdateResourcesDeleteProtectionResponse';