@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.
- package/dist/client.d.ts +36 -0
- package/dist/client.js +105 -0
- package/dist/client.js.map +1 -1
- package/dist/models/InstallNodePoolComponentsRequest.d.ts +84 -0
- package/dist/models/InstallNodePoolComponentsRequest.js +142 -0
- package/dist/models/InstallNodePoolComponentsRequest.js.map +1 -0
- package/dist/models/InstallNodePoolComponentsResponse.d.ts +19 -0
- package/dist/models/InstallNodePoolComponentsResponse.js +69 -0
- package/dist/models/InstallNodePoolComponentsResponse.js.map +1 -0
- package/dist/models/InstallNodePoolComponentsResponseBody.d.ts +28 -0
- package/dist/models/InstallNodePoolComponentsResponseBody.js +62 -0
- package/dist/models/InstallNodePoolComponentsResponseBody.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentRequest.d.ts +69 -0
- package/dist/models/UpdateNodePoolComponentRequest.js +122 -0
- package/dist/models/UpdateNodePoolComponentRequest.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentResponse.d.ts +19 -0
- package/dist/models/UpdateNodePoolComponentResponse.js +69 -0
- package/dist/models/UpdateNodePoolComponentResponse.js.map +1 -0
- package/dist/models/UpdateNodePoolComponentResponseBody.d.ts +31 -0
- package/dist/models/UpdateNodePoolComponentResponseBody.js +62 -0
- package/dist/models/UpdateNodePoolComponentResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +31 -9
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +118 -0
- package/src/models/InstallNodePoolComponentsRequest.ts +152 -0
- package/src/models/InstallNodePoolComponentsResponse.ts +40 -0
- package/src/models/InstallNodePoolComponentsResponseBody.ts +45 -0
- package/src/models/UpdateNodePoolComponentRequest.ts +126 -0
- package/src/models/UpdateNodePoolComponentResponse.ts +40 -0
- package/src/models/UpdateNodePoolComponentResponseBody.ts +48 -0
- package/src/models/model.ts +11 -0
package/dist/client.d.ts
CHANGED
|
@@ -1577,6 +1577,24 @@ export default class Client extends OpenApi {
|
|
|
1577
1577
|
* @returns InstallClusterAddonsResponse
|
|
1578
1578
|
*/
|
|
1579
1579
|
installClusterAddons(ClusterId: string, request: $_model.InstallClusterAddonsRequest): Promise<$_model.InstallClusterAddonsResponse>;
|
|
1580
|
+
/**
|
|
1581
|
+
* 为ACK集群节点池安装节点组件
|
|
1582
|
+
*
|
|
1583
|
+
* @param request - InstallNodePoolComponentsRequest
|
|
1584
|
+
* @param headers - map
|
|
1585
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1586
|
+
* @returns InstallNodePoolComponentsResponse
|
|
1587
|
+
*/
|
|
1588
|
+
installNodePoolComponentsWithOptions(clusterId: string, nodePoolId: string, request: $_model.InstallNodePoolComponentsRequest, headers: {
|
|
1589
|
+
[key: string]: string;
|
|
1590
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.InstallNodePoolComponentsResponse>;
|
|
1591
|
+
/**
|
|
1592
|
+
* 为ACK集群节点池安装节点组件
|
|
1593
|
+
*
|
|
1594
|
+
* @param request - InstallNodePoolComponentsRequest
|
|
1595
|
+
* @returns InstallNodePoolComponentsResponse
|
|
1596
|
+
*/
|
|
1597
|
+
installNodePoolComponents(clusterId: string, nodePoolId: string, request: $_model.InstallNodePoolComponentsRequest): Promise<$_model.InstallNodePoolComponentsResponse>;
|
|
1580
1598
|
/**
|
|
1581
1599
|
* Queries the available components based on specific conditions such as the region, cluster type, cluster subtype defined by cluster profile, and cluster version and queries the detailed information about a component. The information includes whether the component is managed, the supported custom parameter schema, and compatible operating system architecture.
|
|
1582
1600
|
*
|
|
@@ -2446,6 +2464,24 @@ export default class Client extends OpenApi {
|
|
|
2446
2464
|
* @returns UpdateK8sClusterUserConfigExpireResponse
|
|
2447
2465
|
*/
|
|
2448
2466
|
updateK8sClusterUserConfigExpire(ClusterId: string, request: $_model.UpdateK8sClusterUserConfigExpireRequest): Promise<$_model.UpdateK8sClusterUserConfigExpireResponse>;
|
|
2467
|
+
/**
|
|
2468
|
+
* 更新节点组件
|
|
2469
|
+
*
|
|
2470
|
+
* @param request - UpdateNodePoolComponentRequest
|
|
2471
|
+
* @param headers - map
|
|
2472
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2473
|
+
* @returns UpdateNodePoolComponentResponse
|
|
2474
|
+
*/
|
|
2475
|
+
updateNodePoolComponentWithOptions(clusterId: string, nodepoolId: string, request: $_model.UpdateNodePoolComponentRequest, headers: {
|
|
2476
|
+
[key: string]: string;
|
|
2477
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateNodePoolComponentResponse>;
|
|
2478
|
+
/**
|
|
2479
|
+
* 更新节点组件
|
|
2480
|
+
*
|
|
2481
|
+
* @param request - UpdateNodePoolComponentRequest
|
|
2482
|
+
* @returns UpdateNodePoolComponentResponse
|
|
2483
|
+
*/
|
|
2484
|
+
updateNodePoolComponent(clusterId: string, nodepoolId: string, request: $_model.UpdateNodePoolComponentRequest): Promise<$_model.UpdateNodePoolComponentResponse>;
|
|
2449
2485
|
/**
|
|
2450
2486
|
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services. You can call this operation to enable deletion protection for namespaces or Services that involve businesses-critical and sensitive data to avoid incurring maintenance costs caused by accidental namespace or Service deletion.
|
|
2451
2487
|
*
|
package/dist/client.js
CHANGED
|
@@ -4211,6 +4211,54 @@ class Client extends openapi_core_1.default {
|
|
|
4211
4211
|
let headers = {};
|
|
4212
4212
|
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
4213
4213
|
}
|
|
4214
|
+
/**
|
|
4215
|
+
* 为ACK集群节点池安装节点组件
|
|
4216
|
+
*
|
|
4217
|
+
* @param request - InstallNodePoolComponentsRequest
|
|
4218
|
+
* @param headers - map
|
|
4219
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4220
|
+
* @returns InstallNodePoolComponentsResponse
|
|
4221
|
+
*/
|
|
4222
|
+
async installNodePoolComponentsWithOptions(clusterId, nodePoolId, request, headers, runtime) {
|
|
4223
|
+
request.validate();
|
|
4224
|
+
let body = {};
|
|
4225
|
+
if (!$dara.isNull(request.components)) {
|
|
4226
|
+
body["components"] = request.components;
|
|
4227
|
+
}
|
|
4228
|
+
if (!$dara.isNull(request.nodeNames)) {
|
|
4229
|
+
body["nodeNames"] = request.nodeNames;
|
|
4230
|
+
}
|
|
4231
|
+
if (!$dara.isNull(request.rollingPolicy)) {
|
|
4232
|
+
body["rollingPolicy"] = request.rollingPolicy;
|
|
4233
|
+
}
|
|
4234
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4235
|
+
headers: headers,
|
|
4236
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4237
|
+
});
|
|
4238
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4239
|
+
action: "InstallNodePoolComponents",
|
|
4240
|
+
version: "2015-12-15",
|
|
4241
|
+
protocol: "HTTPS",
|
|
4242
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodePoolId)}/components`,
|
|
4243
|
+
method: "POST",
|
|
4244
|
+
authType: "AK",
|
|
4245
|
+
style: "ROA",
|
|
4246
|
+
reqBodyType: "json",
|
|
4247
|
+
bodyType: "json",
|
|
4248
|
+
});
|
|
4249
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.InstallNodePoolComponentsResponse({}));
|
|
4250
|
+
}
|
|
4251
|
+
/**
|
|
4252
|
+
* 为ACK集群节点池安装节点组件
|
|
4253
|
+
*
|
|
4254
|
+
* @param request - InstallNodePoolComponentsRequest
|
|
4255
|
+
* @returns InstallNodePoolComponentsResponse
|
|
4256
|
+
*/
|
|
4257
|
+
async installNodePoolComponents(clusterId, nodePoolId, request) {
|
|
4258
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4259
|
+
let headers = {};
|
|
4260
|
+
return await this.installNodePoolComponentsWithOptions(clusterId, nodePoolId, request, headers, runtime);
|
|
4261
|
+
}
|
|
4214
4262
|
/**
|
|
4215
4263
|
* Queries the available components based on specific conditions such as the region, cluster type, cluster subtype defined by cluster profile, and cluster version and queries the detailed information about a component. The information includes whether the component is managed, the supported custom parameter schema, and compatible operating system architecture.
|
|
4216
4264
|
*
|
|
@@ -6379,6 +6427,63 @@ class Client extends openapi_core_1.default {
|
|
|
6379
6427
|
let headers = {};
|
|
6380
6428
|
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
6381
6429
|
}
|
|
6430
|
+
/**
|
|
6431
|
+
* 更新节点组件
|
|
6432
|
+
*
|
|
6433
|
+
* @param request - UpdateNodePoolComponentRequest
|
|
6434
|
+
* @param headers - map
|
|
6435
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6436
|
+
* @returns UpdateNodePoolComponentResponse
|
|
6437
|
+
*/
|
|
6438
|
+
async updateNodePoolComponentWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
6439
|
+
request.validate();
|
|
6440
|
+
let body = {};
|
|
6441
|
+
if (!$dara.isNull(request.config)) {
|
|
6442
|
+
body["config"] = request.config;
|
|
6443
|
+
}
|
|
6444
|
+
if (!$dara.isNull(request.disableRolling)) {
|
|
6445
|
+
body["disableRolling"] = request.disableRolling;
|
|
6446
|
+
}
|
|
6447
|
+
if (!$dara.isNull(request.name)) {
|
|
6448
|
+
body["name"] = request.name;
|
|
6449
|
+
}
|
|
6450
|
+
if (!$dara.isNull(request.nodeNames)) {
|
|
6451
|
+
body["nodeNames"] = request.nodeNames;
|
|
6452
|
+
}
|
|
6453
|
+
if (!$dara.isNull(request.rollingPolicy)) {
|
|
6454
|
+
body["rollingPolicy"] = request.rollingPolicy;
|
|
6455
|
+
}
|
|
6456
|
+
if (!$dara.isNull(request.version)) {
|
|
6457
|
+
body["version"] = request.version;
|
|
6458
|
+
}
|
|
6459
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
6460
|
+
headers: headers,
|
|
6461
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
6462
|
+
});
|
|
6463
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
6464
|
+
action: "UpdateNodePoolComponent",
|
|
6465
|
+
version: "2015-12-15",
|
|
6466
|
+
protocol: "HTTPS",
|
|
6467
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component`,
|
|
6468
|
+
method: "PUT",
|
|
6469
|
+
authType: "AK",
|
|
6470
|
+
style: "ROA",
|
|
6471
|
+
reqBodyType: "json",
|
|
6472
|
+
bodyType: "json",
|
|
6473
|
+
});
|
|
6474
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateNodePoolComponentResponse({}));
|
|
6475
|
+
}
|
|
6476
|
+
/**
|
|
6477
|
+
* 更新节点组件
|
|
6478
|
+
*
|
|
6479
|
+
* @param request - UpdateNodePoolComponentRequest
|
|
6480
|
+
* @returns UpdateNodePoolComponentResponse
|
|
6481
|
+
*/
|
|
6482
|
+
async updateNodePoolComponent(clusterId, nodepoolId, request) {
|
|
6483
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
6484
|
+
let headers = {};
|
|
6485
|
+
return await this.updateNodePoolComponentWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
6486
|
+
}
|
|
6382
6487
|
/**
|
|
6383
6488
|
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services. You can call this operation to enable deletion protection for namespaces or Services that involve businesses-critical and sensitive data to avoid incurring maintenance costs caused by accidental namespace or Service deletion.
|
|
6384
6489
|
*
|