@alicloud/cs20151215 3.0.9 → 3.0.10
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 +15 -2
- package/dist/client.js +27 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +32 -3
package/dist/client.d.ts
CHANGED
|
@@ -644,6 +644,18 @@ export declare class DeleteClusterResponse extends $tea.Model {
|
|
|
644
644
|
[key: string]: any;
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
+
export declare class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
648
|
+
force?: boolean;
|
|
649
|
+
static names(): {
|
|
650
|
+
[key: string]: string;
|
|
651
|
+
};
|
|
652
|
+
static types(): {
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
};
|
|
655
|
+
constructor(map?: {
|
|
656
|
+
[key: string]: any;
|
|
657
|
+
});
|
|
658
|
+
}
|
|
647
659
|
export declare class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
648
660
|
requestId?: string;
|
|
649
661
|
static names(): {
|
|
@@ -4693,6 +4705,7 @@ export declare class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
4693
4705
|
}
|
|
4694
4706
|
export declare class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
4695
4707
|
componentName?: string;
|
|
4708
|
+
config?: string;
|
|
4696
4709
|
nextVersion?: string;
|
|
4697
4710
|
version?: string;
|
|
4698
4711
|
static names(): {
|
|
@@ -4766,8 +4779,8 @@ export default class Client extends OpenApi {
|
|
|
4766
4779
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
4767
4780
|
[key: string]: string;
|
|
4768
4781
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse>;
|
|
4769
|
-
deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse>;
|
|
4770
|
-
deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {
|
|
4782
|
+
deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse>;
|
|
4783
|
+
deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {
|
|
4771
4784
|
[key: string]: string;
|
|
4772
4785
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse>;
|
|
4773
4786
|
deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse>;
|
package/dist/client.js
CHANGED
|
@@ -939,6 +939,22 @@ class DeleteClusterResponse extends $tea.Model {
|
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
941
|
exports.DeleteClusterResponse = DeleteClusterResponse;
|
|
942
|
+
class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
943
|
+
constructor(map) {
|
|
944
|
+
super(map);
|
|
945
|
+
}
|
|
946
|
+
static names() {
|
|
947
|
+
return {
|
|
948
|
+
force: 'force',
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
static types() {
|
|
952
|
+
return {
|
|
953
|
+
force: 'boolean',
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
exports.DeleteClusterNodepoolRequest = DeleteClusterNodepoolRequest;
|
|
942
958
|
class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
943
959
|
constructor(map) {
|
|
944
960
|
super(map);
|
|
@@ -6632,6 +6648,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
6632
6648
|
static names() {
|
|
6633
6649
|
return {
|
|
6634
6650
|
componentName: 'component_name',
|
|
6651
|
+
config: 'config',
|
|
6635
6652
|
nextVersion: 'next_version',
|
|
6636
6653
|
version: 'version',
|
|
6637
6654
|
};
|
|
@@ -6639,6 +6656,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
6639
6656
|
static types() {
|
|
6640
6657
|
return {
|
|
6641
6658
|
componentName: 'string',
|
|
6659
|
+
config: 'string',
|
|
6642
6660
|
nextVersion: 'string',
|
|
6643
6661
|
version: 'string',
|
|
6644
6662
|
};
|
|
@@ -7446,16 +7464,22 @@ class Client extends openapi_client_1.default {
|
|
|
7446
7464
|
});
|
|
7447
7465
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
7448
7466
|
}
|
|
7449
|
-
async deleteClusterNodepool(ClusterId, NodepoolId) {
|
|
7467
|
+
async deleteClusterNodepool(ClusterId, NodepoolId, request) {
|
|
7450
7468
|
let runtime = new $Util.RuntimeOptions({});
|
|
7451
7469
|
let headers = {};
|
|
7452
|
-
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
7470
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
7453
7471
|
}
|
|
7454
|
-
async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime) {
|
|
7472
|
+
async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
7473
|
+
tea_util_1.default.validateModel(request);
|
|
7455
7474
|
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
7456
7475
|
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
7476
|
+
let body = {};
|
|
7477
|
+
if (!tea_util_1.default.isUnset(request.force)) {
|
|
7478
|
+
body["force"] = request.force;
|
|
7479
|
+
}
|
|
7457
7480
|
let req = new $OpenApi.OpenApiRequest({
|
|
7458
7481
|
headers: headers,
|
|
7482
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7459
7483
|
});
|
|
7460
7484
|
let params = new $OpenApi.Params({
|
|
7461
7485
|
action: "DeleteClusterNodepool",
|