@alicloud/cs20151215 3.0.5 → 3.0.6
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 +45 -1
- package/dist/client.js +86 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +101 -5
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1430,12 +1430,12 @@ export class DeleteTriggerResponse extends $tea.Model {
|
|
|
1430
1430
|
|
|
1431
1431
|
export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
1432
1432
|
action?: string;
|
|
1433
|
-
|
|
1433
|
+
namespaces?: string[];
|
|
1434
1434
|
parameters?: { [key: string]: any };
|
|
1435
1435
|
static names(): { [key: string]: string } {
|
|
1436
1436
|
return {
|
|
1437
1437
|
action: 'action',
|
|
1438
|
-
|
|
1438
|
+
namespaces: 'namespaces',
|
|
1439
1439
|
parameters: 'parameters',
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
@@ -1443,7 +1443,7 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1443
1443
|
static types(): { [key: string]: any } {
|
|
1444
1444
|
return {
|
|
1445
1445
|
action: 'string',
|
|
1446
|
-
|
|
1446
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
1447
1447
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
@@ -4328,6 +4328,69 @@ export class RemoveWorkflowResponse extends $tea.Model {
|
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
4330
|
|
|
4331
|
+
export class RepairClusterNodePoolRequest extends $tea.Model {
|
|
4332
|
+
nodes?: string[];
|
|
4333
|
+
static names(): { [key: string]: string } {
|
|
4334
|
+
return {
|
|
4335
|
+
nodes: 'nodes',
|
|
4336
|
+
};
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
static types(): { [key: string]: any } {
|
|
4340
|
+
return {
|
|
4341
|
+
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
4342
|
+
};
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
constructor(map?: { [key: string]: any }) {
|
|
4346
|
+
super(map);
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
export class RepairClusterNodePoolResponseBody extends $tea.Model {
|
|
4351
|
+
requestId?: string;
|
|
4352
|
+
taskId?: string;
|
|
4353
|
+
static names(): { [key: string]: string } {
|
|
4354
|
+
return {
|
|
4355
|
+
requestId: 'request_id',
|
|
4356
|
+
taskId: 'task_id',
|
|
4357
|
+
};
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
static types(): { [key: string]: any } {
|
|
4361
|
+
return {
|
|
4362
|
+
requestId: 'string',
|
|
4363
|
+
taskId: 'string',
|
|
4364
|
+
};
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
constructor(map?: { [key: string]: any }) {
|
|
4368
|
+
super(map);
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
export class RepairClusterNodePoolResponse extends $tea.Model {
|
|
4373
|
+
headers: { [key: string]: string };
|
|
4374
|
+
body: RepairClusterNodePoolResponseBody;
|
|
4375
|
+
static names(): { [key: string]: string } {
|
|
4376
|
+
return {
|
|
4377
|
+
headers: 'headers',
|
|
4378
|
+
body: 'body',
|
|
4379
|
+
};
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
static types(): { [key: string]: any } {
|
|
4383
|
+
return {
|
|
4384
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4385
|
+
body: RepairClusterNodePoolResponseBody,
|
|
4386
|
+
};
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
constructor(map?: { [key: string]: any }) {
|
|
4390
|
+
super(map);
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4331
4394
|
export class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
4332
4395
|
headers: { [key: string]: string };
|
|
4333
4396
|
static names(): { [key: string]: string } {
|
|
@@ -9468,8 +9531,8 @@ export default class Client extends OpenApi {
|
|
|
9468
9531
|
body["action"] = request.action;
|
|
9469
9532
|
}
|
|
9470
9533
|
|
|
9471
|
-
if (!Util.isUnset(request.
|
|
9472
|
-
body["
|
|
9534
|
+
if (!Util.isUnset(request.namespaces)) {
|
|
9535
|
+
body["namespaces"] = request.namespaces;
|
|
9473
9536
|
}
|
|
9474
9537
|
|
|
9475
9538
|
if (!Util.isUnset(request.parameters)) {
|
|
@@ -11321,6 +11384,39 @@ export default class Client extends OpenApi {
|
|
|
11321
11384
|
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
11322
11385
|
}
|
|
11323
11386
|
|
|
11387
|
+
async repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse> {
|
|
11388
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11389
|
+
let headers : {[key: string ]: string} = { };
|
|
11390
|
+
return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
11391
|
+
}
|
|
11392
|
+
|
|
11393
|
+
async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
|
|
11394
|
+
Util.validateModel(request);
|
|
11395
|
+
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
11396
|
+
nodepoolId = OpenApiUtil.getEncodeParam(nodepoolId);
|
|
11397
|
+
let body : {[key: string ]: any} = { };
|
|
11398
|
+
if (!Util.isUnset(request.nodes)) {
|
|
11399
|
+
body["nodes"] = request.nodes;
|
|
11400
|
+
}
|
|
11401
|
+
|
|
11402
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11403
|
+
headers: headers,
|
|
11404
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11405
|
+
});
|
|
11406
|
+
let params = new $OpenApi.Params({
|
|
11407
|
+
action: "RepairClusterNodePool",
|
|
11408
|
+
version: "2015-12-15",
|
|
11409
|
+
protocol: "HTTPS",
|
|
11410
|
+
pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
|
|
11411
|
+
method: "POST",
|
|
11412
|
+
authType: "AK",
|
|
11413
|
+
style: "ROA",
|
|
11414
|
+
reqBodyType: "json",
|
|
11415
|
+
bodyType: "json",
|
|
11416
|
+
});
|
|
11417
|
+
return $tea.cast<RepairClusterNodePoolResponse>(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
|
|
11418
|
+
}
|
|
11419
|
+
|
|
11324
11420
|
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
11325
11421
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11326
11422
|
let headers : {[key: string ]: string} = { };
|