@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1198,6 +1198,25 @@ export class DeleteClusterResponse extends $tea.Model {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
|
+
export class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
1202
|
+
force?: boolean;
|
|
1203
|
+
static names(): { [key: string]: string } {
|
|
1204
|
+
return {
|
|
1205
|
+
force: 'force',
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
static types(): { [key: string]: any } {
|
|
1210
|
+
return {
|
|
1211
|
+
force: 'boolean',
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
constructor(map?: { [key: string]: any }) {
|
|
1216
|
+
super(map);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1201
1220
|
export class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
1202
1221
|
requestId?: string;
|
|
1203
1222
|
static names(): { [key: string]: string } {
|
|
@@ -8444,11 +8463,13 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
8444
8463
|
|
|
8445
8464
|
export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
8446
8465
|
componentName?: string;
|
|
8466
|
+
config?: string;
|
|
8447
8467
|
nextVersion?: string;
|
|
8448
8468
|
version?: string;
|
|
8449
8469
|
static names(): { [key: string]: string } {
|
|
8450
8470
|
return {
|
|
8451
8471
|
componentName: 'component_name',
|
|
8472
|
+
config: 'config',
|
|
8452
8473
|
nextVersion: 'next_version',
|
|
8453
8474
|
version: 'version',
|
|
8454
8475
|
};
|
|
@@ -8457,6 +8478,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
8457
8478
|
static types(): { [key: string]: any } {
|
|
8458
8479
|
return {
|
|
8459
8480
|
componentName: 'string',
|
|
8481
|
+
config: 'string',
|
|
8460
8482
|
nextVersion: 'string',
|
|
8461
8483
|
version: 'string',
|
|
8462
8484
|
};
|
|
@@ -9436,17 +9458,24 @@ export default class Client extends OpenApi {
|
|
|
9436
9458
|
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
9437
9459
|
}
|
|
9438
9460
|
|
|
9439
|
-
async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
|
|
9461
|
+
async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
|
|
9440
9462
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9441
9463
|
let headers : {[key: string ]: string} = { };
|
|
9442
|
-
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
9464
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
9443
9465
|
}
|
|
9444
9466
|
|
|
9445
|
-
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
9467
|
+
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
9468
|
+
Util.validateModel(request);
|
|
9446
9469
|
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
9447
9470
|
NodepoolId = OpenApiUtil.getEncodeParam(NodepoolId);
|
|
9471
|
+
let body : {[key: string ]: any} = { };
|
|
9472
|
+
if (!Util.isUnset(request.force)) {
|
|
9473
|
+
body["force"] = request.force;
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9448
9476
|
let req = new $OpenApi.OpenApiRequest({
|
|
9449
9477
|
headers: headers,
|
|
9478
|
+
body: OpenApiUtil.parseToMap(body),
|
|
9450
9479
|
});
|
|
9451
9480
|
let params = new $OpenApi.Params({
|
|
9452
9481
|
action: "DeleteClusterNodepool",
|