@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 CHANGED
@@ -795,7 +795,7 @@ export declare class DeleteTriggerResponse extends $tea.Model {
795
795
  }
796
796
  export declare class DeployPolicyInstanceRequest extends $tea.Model {
797
797
  action?: string;
798
- namespace?: string;
798
+ namespaces?: string[];
799
799
  parameters?: {
800
800
  [key: string]: any;
801
801
  };
@@ -2562,6 +2562,46 @@ export declare class RemoveWorkflowResponse extends $tea.Model {
2562
2562
  [key: string]: any;
2563
2563
  });
2564
2564
  }
2565
+ export declare class RepairClusterNodePoolRequest extends $tea.Model {
2566
+ nodes?: string[];
2567
+ static names(): {
2568
+ [key: string]: string;
2569
+ };
2570
+ static types(): {
2571
+ [key: string]: any;
2572
+ };
2573
+ constructor(map?: {
2574
+ [key: string]: any;
2575
+ });
2576
+ }
2577
+ export declare class RepairClusterNodePoolResponseBody extends $tea.Model {
2578
+ requestId?: string;
2579
+ taskId?: string;
2580
+ static names(): {
2581
+ [key: string]: string;
2582
+ };
2583
+ static types(): {
2584
+ [key: string]: any;
2585
+ };
2586
+ constructor(map?: {
2587
+ [key: string]: any;
2588
+ });
2589
+ }
2590
+ export declare class RepairClusterNodePoolResponse extends $tea.Model {
2591
+ headers: {
2592
+ [key: string]: string;
2593
+ };
2594
+ body: RepairClusterNodePoolResponseBody;
2595
+ static names(): {
2596
+ [key: string]: string;
2597
+ };
2598
+ static types(): {
2599
+ [key: string]: any;
2600
+ };
2601
+ constructor(map?: {
2602
+ [key: string]: any;
2603
+ });
2604
+ }
2565
2605
  export declare class ResumeComponentUpgradeResponse extends $tea.Model {
2566
2606
  headers: {
2567
2607
  [key: string]: string;
@@ -4915,6 +4955,10 @@ export default class Client extends OpenApi {
4915
4955
  removeWorkflowWithOptions(workflowName: string, headers: {
4916
4956
  [key: string]: string;
4917
4957
  }, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse>;
4958
+ repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse>;
4959
+ repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {
4960
+ [key: string]: string;
4961
+ }, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse>;
4918
4962
  resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse>;
4919
4963
  resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {
4920
4964
  [key: string]: string;
package/dist/client.js CHANGED
@@ -1136,14 +1136,14 @@ class DeployPolicyInstanceRequest extends $tea.Model {
1136
1136
  static names() {
1137
1137
  return {
1138
1138
  action: 'action',
1139
- namespace: 'namespace',
1139
+ namespaces: 'namespaces',
1140
1140
  parameters: 'parameters',
1141
1141
  };
1142
1142
  }
1143
1143
  static types() {
1144
1144
  return {
1145
1145
  action: 'string',
1146
- namespace: 'string',
1146
+ namespaces: { 'type': 'array', 'itemType': 'string' },
1147
1147
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1148
1148
  };
1149
1149
  }
@@ -3459,6 +3459,58 @@ class RemoveWorkflowResponse extends $tea.Model {
3459
3459
  }
3460
3460
  }
3461
3461
  exports.RemoveWorkflowResponse = RemoveWorkflowResponse;
3462
+ class RepairClusterNodePoolRequest extends $tea.Model {
3463
+ constructor(map) {
3464
+ super(map);
3465
+ }
3466
+ static names() {
3467
+ return {
3468
+ nodes: 'nodes',
3469
+ };
3470
+ }
3471
+ static types() {
3472
+ return {
3473
+ nodes: { 'type': 'array', 'itemType': 'string' },
3474
+ };
3475
+ }
3476
+ }
3477
+ exports.RepairClusterNodePoolRequest = RepairClusterNodePoolRequest;
3478
+ class RepairClusterNodePoolResponseBody extends $tea.Model {
3479
+ constructor(map) {
3480
+ super(map);
3481
+ }
3482
+ static names() {
3483
+ return {
3484
+ requestId: 'request_id',
3485
+ taskId: 'task_id',
3486
+ };
3487
+ }
3488
+ static types() {
3489
+ return {
3490
+ requestId: 'string',
3491
+ taskId: 'string',
3492
+ };
3493
+ }
3494
+ }
3495
+ exports.RepairClusterNodePoolResponseBody = RepairClusterNodePoolResponseBody;
3496
+ class RepairClusterNodePoolResponse extends $tea.Model {
3497
+ constructor(map) {
3498
+ super(map);
3499
+ }
3500
+ static names() {
3501
+ return {
3502
+ headers: 'headers',
3503
+ body: 'body',
3504
+ };
3505
+ }
3506
+ static types() {
3507
+ return {
3508
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3509
+ body: RepairClusterNodePoolResponseBody,
3510
+ };
3511
+ }
3512
+ }
3513
+ exports.RepairClusterNodePoolResponse = RepairClusterNodePoolResponse;
3462
3514
  class ResumeComponentUpgradeResponse extends $tea.Model {
3463
3515
  constructor(map) {
3464
3516
  super(map);
@@ -7485,8 +7537,8 @@ class Client extends openapi_client_1.default {
7485
7537
  if (!tea_util_1.default.isUnset(request.action)) {
7486
7538
  body["action"] = request.action;
7487
7539
  }
7488
- if (!tea_util_1.default.isUnset(request.namespace)) {
7489
- body["namespace"] = request.namespace;
7540
+ if (!tea_util_1.default.isUnset(request.namespaces)) {
7541
+ body["namespaces"] = request.namespaces;
7490
7542
  }
7491
7543
  if (!tea_util_1.default.isUnset(request.parameters)) {
7492
7544
  body["parameters"] = request.parameters;
@@ -9133,6 +9185,36 @@ class Client extends openapi_client_1.default {
9133
9185
  });
9134
9186
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
9135
9187
  }
9188
+ async repairClusterNodePool(clusterId, nodepoolId, request) {
9189
+ let runtime = new $Util.RuntimeOptions({});
9190
+ let headers = {};
9191
+ return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
9192
+ }
9193
+ async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
9194
+ tea_util_1.default.validateModel(request);
9195
+ clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9196
+ nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
9197
+ let body = {};
9198
+ if (!tea_util_1.default.isUnset(request.nodes)) {
9199
+ body["nodes"] = request.nodes;
9200
+ }
9201
+ let req = new $OpenApi.OpenApiRequest({
9202
+ headers: headers,
9203
+ body: openapi_util_1.default.parseToMap(body),
9204
+ });
9205
+ let params = new $OpenApi.Params({
9206
+ action: "RepairClusterNodePool",
9207
+ version: "2015-12-15",
9208
+ protocol: "HTTPS",
9209
+ pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
9210
+ method: "POST",
9211
+ authType: "AK",
9212
+ style: "ROA",
9213
+ reqBodyType: "json",
9214
+ bodyType: "json",
9215
+ });
9216
+ return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
9217
+ }
9136
9218
  async resumeComponentUpgrade(clusterid, componentid) {
9137
9219
  let runtime = new $Util.RuntimeOptions({});
9138
9220
  let headers = {};