@alicloud/cs20151215 6.1.2 → 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 +51 -0
- package/dist/client.js +138 -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/ListClusterAddonInstanceResourcesResponse.d.ts +19 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponse.js +69 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponse.js.map +1 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.d.ts +84 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.js +118 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.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 +15 -0
- package/dist/models/model.js +39 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +153 -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/ListClusterAddonInstanceResourcesResponse.ts +40 -0
- package/src/models/ListClusterAddonInstanceResourcesResponseBody.ts +139 -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 +15 -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
|
*
|
|
@@ -1595,6 +1613,21 @@ export default class Client extends OpenApi {
|
|
|
1595
1613
|
* @returns ListAddonsResponse
|
|
1596
1614
|
*/
|
|
1597
1615
|
listAddons(request: $_model.ListAddonsRequest): Promise<$_model.ListAddonsResponse>;
|
|
1616
|
+
/**
|
|
1617
|
+
* 获取集群组件实例的资源列表
|
|
1618
|
+
*
|
|
1619
|
+
* @param headers - map
|
|
1620
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1621
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
1622
|
+
*/
|
|
1623
|
+
listClusterAddonInstanceResourcesWithOptions(clusterId: string, instanceName: string, headers: {
|
|
1624
|
+
[key: string]: string;
|
|
1625
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListClusterAddonInstanceResourcesResponse>;
|
|
1626
|
+
/**
|
|
1627
|
+
* 获取集群组件实例的资源列表
|
|
1628
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
1629
|
+
*/
|
|
1630
|
+
listClusterAddonInstanceResources(clusterId: string, instanceName: string): Promise<$_model.ListClusterAddonInstanceResourcesResponse>;
|
|
1598
1631
|
/**
|
|
1599
1632
|
* Queries the component instances that are running in the specified cluster and the information about the component instances. The information includes the component version and status.
|
|
1600
1633
|
*
|
|
@@ -2431,6 +2464,24 @@ export default class Client extends OpenApi {
|
|
|
2431
2464
|
* @returns UpdateK8sClusterUserConfigExpireResponse
|
|
2432
2465
|
*/
|
|
2433
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>;
|
|
2434
2485
|
/**
|
|
2435
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.
|
|
2436
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
|
*
|
|
@@ -4268,6 +4316,39 @@ class Client extends openapi_core_1.default {
|
|
|
4268
4316
|
let headers = {};
|
|
4269
4317
|
return await this.listAddonsWithOptions(request, headers, runtime);
|
|
4270
4318
|
}
|
|
4319
|
+
/**
|
|
4320
|
+
* 获取集群组件实例的资源列表
|
|
4321
|
+
*
|
|
4322
|
+
* @param headers - map
|
|
4323
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4324
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
4325
|
+
*/
|
|
4326
|
+
async listClusterAddonInstanceResourcesWithOptions(clusterId, instanceName, headers, runtime) {
|
|
4327
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4328
|
+
headers: headers,
|
|
4329
|
+
});
|
|
4330
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4331
|
+
action: "ListClusterAddonInstanceResources",
|
|
4332
|
+
version: "2015-12-15",
|
|
4333
|
+
protocol: "HTTPS",
|
|
4334
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/addon_instances/${$dara.URL.percentEncode(instanceName)}/resources`,
|
|
4335
|
+
method: "GET",
|
|
4336
|
+
authType: "AK",
|
|
4337
|
+
style: "ROA",
|
|
4338
|
+
reqBodyType: "json",
|
|
4339
|
+
bodyType: "json",
|
|
4340
|
+
});
|
|
4341
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListClusterAddonInstanceResourcesResponse({}));
|
|
4342
|
+
}
|
|
4343
|
+
/**
|
|
4344
|
+
* 获取集群组件实例的资源列表
|
|
4345
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
4346
|
+
*/
|
|
4347
|
+
async listClusterAddonInstanceResources(clusterId, instanceName) {
|
|
4348
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4349
|
+
let headers = {};
|
|
4350
|
+
return await this.listClusterAddonInstanceResourcesWithOptions(clusterId, instanceName, headers, runtime);
|
|
4351
|
+
}
|
|
4271
4352
|
/**
|
|
4272
4353
|
* Queries the component instances that are running in the specified cluster and the information about the component instances. The information includes the component version and status.
|
|
4273
4354
|
*
|
|
@@ -6346,6 +6427,63 @@ class Client extends openapi_core_1.default {
|
|
|
6346
6427
|
let headers = {};
|
|
6347
6428
|
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
6348
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
|
+
}
|
|
6349
6487
|
/**
|
|
6350
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.
|
|
6351
6489
|
*
|