@alicloud/cs20151215 7.0.5 → 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.
Files changed (77) hide show
  1. package/dist/client.d.ts +90 -0
  2. package/dist/client.js +271 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateNodePoolComponentInstancesRequest.d.ts +100 -0
  5. package/dist/models/CreateNodePoolComponentInstancesRequest.js +144 -0
  6. package/dist/models/CreateNodePoolComponentInstancesRequest.js.map +1 -0
  7. package/dist/models/CreateNodePoolComponentInstancesResponse.d.ts +19 -0
  8. package/dist/models/CreateNodePoolComponentInstancesResponse.js +69 -0
  9. package/dist/models/CreateNodePoolComponentInstancesResponse.js.map +1 -0
  10. package/dist/models/CreateNodePoolComponentInstancesResponseBody.d.ts +28 -0
  11. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js +62 -0
  12. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js.map +1 -0
  13. package/dist/models/DeleteNodePoolComponentInstanceRequest.d.ts +38 -0
  14. package/dist/models/DeleteNodePoolComponentInstanceRequest.js +69 -0
  15. package/dist/models/DeleteNodePoolComponentInstanceRequest.js.map +1 -0
  16. package/dist/models/DeleteNodePoolComponentInstanceResponse.d.ts +19 -0
  17. package/dist/models/DeleteNodePoolComponentInstanceResponse.js +69 -0
  18. package/dist/models/DeleteNodePoolComponentInstanceResponse.js.map +1 -0
  19. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.d.ts +28 -0
  20. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js +62 -0
  21. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js.map +1 -0
  22. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.d.ts +38 -0
  23. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js +66 -0
  24. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js.map +1 -0
  25. package/dist/models/ListNodePoolComponentInstancesRequest.d.ts +23 -0
  26. package/dist/models/ListNodePoolComponentInstancesRequest.js +60 -0
  27. package/dist/models/ListNodePoolComponentInstancesRequest.js.map +1 -0
  28. package/dist/models/ListNodePoolComponentInstancesResponse.d.ts +19 -0
  29. package/dist/models/ListNodePoolComponentInstancesResponse.js +69 -0
  30. package/dist/models/ListNodePoolComponentInstancesResponse.js.map +1 -0
  31. package/dist/models/ListNodePoolComponentInstancesResponseBody.d.ts +76 -0
  32. package/dist/models/ListNodePoolComponentInstancesResponseBody.js +117 -0
  33. package/dist/models/ListNodePoolComponentInstancesResponseBody.js.map +1 -0
  34. package/dist/models/ListNodePoolComponentsRequest.d.ts +48 -0
  35. package/dist/models/ListNodePoolComponentsRequest.js +73 -0
  36. package/dist/models/ListNodePoolComponentsRequest.js.map +1 -0
  37. package/dist/models/ListNodePoolComponentsResponse.d.ts +19 -0
  38. package/dist/models/ListNodePoolComponentsResponse.js +69 -0
  39. package/dist/models/ListNodePoolComponentsResponse.js.map +1 -0
  40. package/dist/models/ListNodePoolComponentsResponseBody.d.ts +51 -0
  41. package/dist/models/ListNodePoolComponentsResponseBody.js +88 -0
  42. package/dist/models/ListNodePoolComponentsResponseBody.js.map +1 -0
  43. package/dist/models/ListNodePoolComponentsShrinkRequest.d.ts +48 -0
  44. package/dist/models/ListNodePoolComponentsShrinkRequest.js +70 -0
  45. package/dist/models/ListNodePoolComponentsShrinkRequest.js.map +1 -0
  46. package/dist/models/UpdateNodePoolComponentInstanceRequest.d.ts +77 -0
  47. package/dist/models/UpdateNodePoolComponentInstanceRequest.js +122 -0
  48. package/dist/models/UpdateNodePoolComponentInstanceRequest.js.map +1 -0
  49. package/dist/models/UpdateNodePoolComponentInstanceResponse.d.ts +19 -0
  50. package/dist/models/UpdateNodePoolComponentInstanceResponse.js +69 -0
  51. package/dist/models/UpdateNodePoolComponentInstanceResponse.js.map +1 -0
  52. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.d.ts +28 -0
  53. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js +62 -0
  54. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js.map +1 -0
  55. package/dist/models/model.d.ts +25 -0
  56. package/dist/models/model.js +63 -12
  57. package/dist/models/model.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/client.ts +305 -0
  60. package/src/models/CreateNodePoolComponentInstancesRequest.ts +170 -0
  61. package/src/models/CreateNodePoolComponentInstancesResponse.ts +40 -0
  62. package/src/models/CreateNodePoolComponentInstancesResponseBody.ts +45 -0
  63. package/src/models/DeleteNodePoolComponentInstanceRequest.ts +62 -0
  64. package/src/models/DeleteNodePoolComponentInstanceResponse.ts +40 -0
  65. package/src/models/DeleteNodePoolComponentInstanceResponseBody.ts +45 -0
  66. package/src/models/DeleteNodePoolComponentInstanceShrinkRequest.ts +59 -0
  67. package/src/models/ListNodePoolComponentInstancesRequest.ts +38 -0
  68. package/src/models/ListNodePoolComponentInstancesResponse.ts +40 -0
  69. package/src/models/ListNodePoolComponentInstancesResponseBody.ts +128 -0
  70. package/src/models/ListNodePoolComponentsRequest.ts +76 -0
  71. package/src/models/ListNodePoolComponentsResponse.ts +40 -0
  72. package/src/models/ListNodePoolComponentsResponseBody.ts +85 -0
  73. package/src/models/ListNodePoolComponentsShrinkRequest.ts +73 -0
  74. package/src/models/UpdateNodePoolComponentInstanceRequest.ts +134 -0
  75. package/src/models/UpdateNodePoolComponentInstanceResponse.ts +40 -0
  76. package/src/models/UpdateNodePoolComponentInstanceResponseBody.ts +45 -0
  77. package/src/models/model.ts +25 -0
package/src/client.ts CHANGED
@@ -1503,6 +1503,59 @@ export default class Client extends OpenApi {
1503
1503
  return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
1504
1504
  }
1505
1505
 
1506
+ /**
1507
+ * 安装节点组件
1508
+ *
1509
+ * @param request - CreateNodePoolComponentInstancesRequest
1510
+ * @param headers - map
1511
+ * @param runtime - runtime options for this request RuntimeOptions
1512
+ * @returns CreateNodePoolComponentInstancesResponse
1513
+ */
1514
+ async createNodePoolComponentInstancesWithOptions(clusterId: string, nodepoolId: string, request: $_model.CreateNodePoolComponentInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateNodePoolComponentInstancesResponse> {
1515
+ request.validate();
1516
+ let body : {[key: string ]: any} = { };
1517
+ if (!$dara.isNull(request.components)) {
1518
+ body["components"] = request.components;
1519
+ }
1520
+
1521
+ if (!$dara.isNull(request.nodeNames)) {
1522
+ body["node_names"] = request.nodeNames;
1523
+ }
1524
+
1525
+ if (!$dara.isNull(request.rollingPolicy)) {
1526
+ body["rolling_policy"] = request.rollingPolicy;
1527
+ }
1528
+
1529
+ let req = new $OpenApiUtil.OpenApiRequest({
1530
+ headers: headers,
1531
+ body: OpenApiUtil.parseToMap(body),
1532
+ });
1533
+ let params = new $OpenApiUtil.Params({
1534
+ action: "CreateNodePoolComponentInstances",
1535
+ version: "2015-12-15",
1536
+ protocol: "HTTPS",
1537
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances`,
1538
+ method: "POST",
1539
+ authType: "AK",
1540
+ style: "ROA",
1541
+ reqBodyType: "json",
1542
+ bodyType: "json",
1543
+ });
1544
+ return $dara.cast<$_model.CreateNodePoolComponentInstancesResponse>(await this.callApi(params, req, runtime), new $_model.CreateNodePoolComponentInstancesResponse({}));
1545
+ }
1546
+
1547
+ /**
1548
+ * 安装节点组件
1549
+ *
1550
+ * @param request - CreateNodePoolComponentInstancesRequest
1551
+ * @returns CreateNodePoolComponentInstancesResponse
1552
+ */
1553
+ async createNodePoolComponentInstances(clusterId: string, nodepoolId: string, request: $_model.CreateNodePoolComponentInstancesRequest): Promise<$_model.CreateNodePoolComponentInstancesResponse> {
1554
+ let runtime = new $dara.RuntimeOptions({ });
1555
+ let headers : {[key: string ]: string} = { };
1556
+ return await this.createNodePoolComponentInstancesWithOptions(clusterId, nodepoolId, request, headers, runtime);
1557
+ }
1558
+
1506
1559
  /**
1507
1560
  * An orchestration template defines and describes a set of Kubernetes cluster resources in a declarative manner, specifying how applications should run or be configured. You can use these templates to automate the deployment and cluster management of resources, such as Pods, Services, Deployments, ConfigMaps, and PersistentVolumes. You can invoke the CreateTemplate operation to create an orchestration template.
1508
1561
  *
@@ -2042,6 +2095,73 @@ export default class Client extends OpenApi {
2042
2095
  return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
2043
2096
  }
2044
2097
 
2098
+ /**
2099
+ * 卸载节点组件
2100
+ *
2101
+ * @param tmpReq - DeleteNodePoolComponentInstanceRequest
2102
+ * @param headers - map
2103
+ * @param runtime - runtime options for this request RuntimeOptions
2104
+ * @returns DeleteNodePoolComponentInstanceResponse
2105
+ */
2106
+ async deleteNodePoolComponentInstanceWithOptions(clusterId: string, nodepoolId: string, name: string, tmpReq: $_model.DeleteNodePoolComponentInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteNodePoolComponentInstanceResponse> {
2107
+ tmpReq.validate();
2108
+ let request = new $_model.DeleteNodePoolComponentInstanceShrinkRequest({ });
2109
+ OpenApiUtil.convert(tmpReq, request);
2110
+ if (!$dara.isNull(tmpReq.nodeNames)) {
2111
+ request.nodeNamesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodeNames, "node_names", "json");
2112
+ }
2113
+
2114
+ let query : {[key: string ]: any} = { };
2115
+ if (!$dara.isNull(request.batchInterval)) {
2116
+ query["batch_interval"] = request.batchInterval;
2117
+ }
2118
+
2119
+ if (!$dara.isNull(request.maxFailedNodes)) {
2120
+ query["max_failed_nodes"] = request.maxFailedNodes;
2121
+ }
2122
+
2123
+ if (!$dara.isNull(request.maxParallelism)) {
2124
+ query["max_parallelism"] = request.maxParallelism;
2125
+ }
2126
+
2127
+ if (!$dara.isNull(request.nodeNamesShrink)) {
2128
+ query["node_names"] = request.nodeNamesShrink;
2129
+ }
2130
+
2131
+ if (!$dara.isNull(request.pausePolicy)) {
2132
+ query["pause_policy"] = request.pausePolicy;
2133
+ }
2134
+
2135
+ let req = new $OpenApiUtil.OpenApiRequest({
2136
+ headers: headers,
2137
+ query: OpenApiUtil.query(query),
2138
+ });
2139
+ let params = new $OpenApiUtil.Params({
2140
+ action: "DeleteNodePoolComponentInstance",
2141
+ version: "2015-12-15",
2142
+ protocol: "HTTPS",
2143
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances/${$dara.URL.percentEncode(name)}`,
2144
+ method: "DELETE",
2145
+ authType: "AK",
2146
+ style: "ROA",
2147
+ reqBodyType: "json",
2148
+ bodyType: "json",
2149
+ });
2150
+ return $dara.cast<$_model.DeleteNodePoolComponentInstanceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteNodePoolComponentInstanceResponse({}));
2151
+ }
2152
+
2153
+ /**
2154
+ * 卸载节点组件
2155
+ *
2156
+ * @param request - DeleteNodePoolComponentInstanceRequest
2157
+ * @returns DeleteNodePoolComponentInstanceResponse
2158
+ */
2159
+ async deleteNodePoolComponentInstance(clusterId: string, nodepoolId: string, name: string, request: $_model.DeleteNodePoolComponentInstanceRequest): Promise<$_model.DeleteNodePoolComponentInstanceResponse> {
2160
+ let runtime = new $dara.RuntimeOptions({ });
2161
+ let headers : {[key: string ]: string} = { };
2162
+ return await this.deleteNodePoolComponentInstanceWithOptions(clusterId, nodepoolId, name, request, headers, runtime);
2163
+ }
2164
+
2045
2165
  /**
2046
2166
  * Deletes a policy rule instance from a specified cluster.
2047
2167
  *
@@ -5326,6 +5446,130 @@ export default class Client extends OpenApi {
5326
5446
  return await this.listClusterKubeconfigStatesWithOptions(ClusterId, request, headers, runtime);
5327
5447
  }
5328
5448
 
5449
+ /**
5450
+ * 查询节点组件实例列表
5451
+ *
5452
+ * @param request - ListNodePoolComponentInstancesRequest
5453
+ * @param headers - map
5454
+ * @param runtime - runtime options for this request RuntimeOptions
5455
+ * @returns ListNodePoolComponentInstancesResponse
5456
+ */
5457
+ async listNodePoolComponentInstancesWithOptions(clusterId: string, nodepoolId: string, request: $_model.ListNodePoolComponentInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListNodePoolComponentInstancesResponse> {
5458
+ request.validate();
5459
+ let query : {[key: string ]: any} = { };
5460
+ if (!$dara.isNull(request.maxResults)) {
5461
+ query["max_results"] = request.maxResults;
5462
+ }
5463
+
5464
+ if (!$dara.isNull(request.nextToken)) {
5465
+ query["next_token"] = request.nextToken;
5466
+ }
5467
+
5468
+ let req = new $OpenApiUtil.OpenApiRequest({
5469
+ headers: headers,
5470
+ query: OpenApiUtil.query(query),
5471
+ });
5472
+ let params = new $OpenApiUtil.Params({
5473
+ action: "ListNodePoolComponentInstances",
5474
+ version: "2015-12-15",
5475
+ protocol: "HTTPS",
5476
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances`,
5477
+ method: "GET",
5478
+ authType: "AK",
5479
+ style: "ROA",
5480
+ reqBodyType: "json",
5481
+ bodyType: "json",
5482
+ });
5483
+ return $dara.cast<$_model.ListNodePoolComponentInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListNodePoolComponentInstancesResponse({}));
5484
+ }
5485
+
5486
+ /**
5487
+ * 查询节点组件实例列表
5488
+ *
5489
+ * @param request - ListNodePoolComponentInstancesRequest
5490
+ * @returns ListNodePoolComponentInstancesResponse
5491
+ */
5492
+ async listNodePoolComponentInstances(clusterId: string, nodepoolId: string, request: $_model.ListNodePoolComponentInstancesRequest): Promise<$_model.ListNodePoolComponentInstancesResponse> {
5493
+ let runtime = new $dara.RuntimeOptions({ });
5494
+ let headers : {[key: string ]: string} = { };
5495
+ return await this.listNodePoolComponentInstancesWithOptions(clusterId, nodepoolId, request, headers, runtime);
5496
+ }
5497
+
5498
+ /**
5499
+ * 查询节点池可安装的节点组件
5500
+ *
5501
+ * @param tmpReq - ListNodePoolComponentsRequest
5502
+ * @param headers - map
5503
+ * @param runtime - runtime options for this request RuntimeOptions
5504
+ * @returns ListNodePoolComponentsResponse
5505
+ */
5506
+ async listNodePoolComponentsWithOptions(clusterId: string, tmpReq: $_model.ListNodePoolComponentsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListNodePoolComponentsResponse> {
5507
+ tmpReq.validate();
5508
+ let request = new $_model.ListNodePoolComponentsShrinkRequest({ });
5509
+ OpenApiUtil.convert(tmpReq, request);
5510
+ if (!$dara.isNull(tmpReq.instanceTypes)) {
5511
+ request.instanceTypesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceTypes, "instance_types", "json");
5512
+ }
5513
+
5514
+ let query : {[key: string ]: any} = { };
5515
+ if (!$dara.isNull(request.imageId)) {
5516
+ query["image_id"] = request.imageId;
5517
+ }
5518
+
5519
+ if (!$dara.isNull(request.imageType)) {
5520
+ query["image_type"] = request.imageType;
5521
+ }
5522
+
5523
+ if (!$dara.isNull(request.instanceTypesShrink)) {
5524
+ query["instance_types"] = request.instanceTypesShrink;
5525
+ }
5526
+
5527
+ if (!$dara.isNull(request.maxResults)) {
5528
+ query["max_results"] = request.maxResults;
5529
+ }
5530
+
5531
+ if (!$dara.isNull(request.nextToken)) {
5532
+ query["next_token"] = request.nextToken;
5533
+ }
5534
+
5535
+ if (!$dara.isNull(request.nodepoolId)) {
5536
+ query["nodepool_id"] = request.nodepoolId;
5537
+ }
5538
+
5539
+ if (!$dara.isNull(request.nodepoolType)) {
5540
+ query["nodepool_type"] = request.nodepoolType;
5541
+ }
5542
+
5543
+ let req = new $OpenApiUtil.OpenApiRequest({
5544
+ headers: headers,
5545
+ query: OpenApiUtil.query(query),
5546
+ });
5547
+ let params = new $OpenApiUtil.Params({
5548
+ action: "ListNodePoolComponents",
5549
+ version: "2015-12-15",
5550
+ protocol: "HTTPS",
5551
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepool_components`,
5552
+ method: "GET",
5553
+ authType: "AK",
5554
+ style: "ROA",
5555
+ reqBodyType: "json",
5556
+ bodyType: "json",
5557
+ });
5558
+ return $dara.cast<$_model.ListNodePoolComponentsResponse>(await this.callApi(params, req, runtime), new $_model.ListNodePoolComponentsResponse({}));
5559
+ }
5560
+
5561
+ /**
5562
+ * 查询节点池可安装的节点组件
5563
+ *
5564
+ * @param request - ListNodePoolComponentsRequest
5565
+ * @returns ListNodePoolComponentsResponse
5566
+ */
5567
+ async listNodePoolComponents(clusterId: string, request: $_model.ListNodePoolComponentsRequest): Promise<$_model.ListNodePoolComponentsResponse> {
5568
+ let runtime = new $dara.RuntimeOptions({ });
5569
+ let headers : {[key: string ]: string} = { };
5570
+ return await this.listNodePoolComponentsWithOptions(clusterId, request, headers, runtime);
5571
+ }
5572
+
5329
5573
  /**
5330
5574
  * Retrieves a list of automated O&M execution plans.
5331
5575
  *
@@ -7675,6 +7919,67 @@ export default class Client extends OpenApi {
7675
7919
  return await this.updateNodePoolComponentWithOptions(clusterId, nodepoolId, request, headers, runtime);
7676
7920
  }
7677
7921
 
7922
+ /**
7923
+ * 更新节点组件
7924
+ *
7925
+ * @param request - UpdateNodePoolComponentInstanceRequest
7926
+ * @param headers - map
7927
+ * @param runtime - runtime options for this request RuntimeOptions
7928
+ * @returns UpdateNodePoolComponentInstanceResponse
7929
+ */
7930
+ async updateNodePoolComponentInstanceWithOptions(clusterId: string, nodepoolId: string, name: string, request: $_model.UpdateNodePoolComponentInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateNodePoolComponentInstanceResponse> {
7931
+ request.validate();
7932
+ let body : {[key: string ]: any} = { };
7933
+ if (!$dara.isNull(request.config)) {
7934
+ body["config"] = request.config;
7935
+ }
7936
+
7937
+ if (!$dara.isNull(request.disableRolling)) {
7938
+ body["disable_rolling"] = request.disableRolling;
7939
+ }
7940
+
7941
+ if (!$dara.isNull(request.nodeNames)) {
7942
+ body["node_names"] = request.nodeNames;
7943
+ }
7944
+
7945
+ if (!$dara.isNull(request.rollingPolicy)) {
7946
+ body["rolling_policy"] = request.rollingPolicy;
7947
+ }
7948
+
7949
+ if (!$dara.isNull(request.version)) {
7950
+ body["version"] = request.version;
7951
+ }
7952
+
7953
+ let req = new $OpenApiUtil.OpenApiRequest({
7954
+ headers: headers,
7955
+ body: OpenApiUtil.parseToMap(body),
7956
+ });
7957
+ let params = new $OpenApiUtil.Params({
7958
+ action: "UpdateNodePoolComponentInstance",
7959
+ version: "2015-12-15",
7960
+ protocol: "HTTPS",
7961
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances/${$dara.URL.percentEncode(name)}`,
7962
+ method: "PUT",
7963
+ authType: "AK",
7964
+ style: "ROA",
7965
+ reqBodyType: "json",
7966
+ bodyType: "json",
7967
+ });
7968
+ return $dara.cast<$_model.UpdateNodePoolComponentInstanceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateNodePoolComponentInstanceResponse({}));
7969
+ }
7970
+
7971
+ /**
7972
+ * 更新节点组件
7973
+ *
7974
+ * @param request - UpdateNodePoolComponentInstanceRequest
7975
+ * @returns UpdateNodePoolComponentInstanceResponse
7976
+ */
7977
+ async updateNodePoolComponentInstance(clusterId: string, nodepoolId: string, name: string, request: $_model.UpdateNodePoolComponentInstanceRequest): Promise<$_model.UpdateNodePoolComponentInstanceResponse> {
7978
+ let runtime = new $dara.RuntimeOptions({ });
7979
+ let headers : {[key: string ]: string} = { };
7980
+ return await this.updateNodePoolComponentInstanceWithOptions(clusterId, nodepoolId, name, request, headers, runtime);
7981
+ }
7982
+
7678
7983
  /**
7679
7984
  * Updates the deletion protection status of a specified resource. Currently supported resource types include namespaces and services.
7680
7985
  * You can call this operation to enable deletion protection for namespaces or services that involve critical business or sensitive data to avoid maintenance costs caused by accidental deletion.
@@ -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
+