@alicloud/cs20151215 3.0.5 → 3.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "3.0.5",
3
+ "version": "3.0.8",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1091,6 +1091,44 @@ export class CreateTriggerResponse extends $tea.Model {
1091
1091
  }
1092
1092
  }
1093
1093
 
1094
+ export class DeleteAlertContactResponse extends $tea.Model {
1095
+ headers: { [key: string]: string };
1096
+ static names(): { [key: string]: string } {
1097
+ return {
1098
+ headers: 'headers',
1099
+ };
1100
+ }
1101
+
1102
+ static types(): { [key: string]: any } {
1103
+ return {
1104
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1105
+ };
1106
+ }
1107
+
1108
+ constructor(map?: { [key: string]: any }) {
1109
+ super(map);
1110
+ }
1111
+ }
1112
+
1113
+ export class DeleteAlertContactGroupResponse extends $tea.Model {
1114
+ headers: { [key: string]: string };
1115
+ static names(): { [key: string]: string } {
1116
+ return {
1117
+ headers: 'headers',
1118
+ };
1119
+ }
1120
+
1121
+ static types(): { [key: string]: any } {
1122
+ return {
1123
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1124
+ };
1125
+ }
1126
+
1127
+ constructor(map?: { [key: string]: any }) {
1128
+ super(map);
1129
+ }
1130
+ }
1131
+
1094
1132
  export class DeleteClusterRequest extends $tea.Model {
1095
1133
  keepSlb?: boolean;
1096
1134
  retainAllResources?: boolean;
@@ -1430,12 +1468,12 @@ export class DeleteTriggerResponse extends $tea.Model {
1430
1468
 
1431
1469
  export class DeployPolicyInstanceRequest extends $tea.Model {
1432
1470
  action?: string;
1433
- namespace?: string;
1471
+ namespaces?: string[];
1434
1472
  parameters?: { [key: string]: any };
1435
1473
  static names(): { [key: string]: string } {
1436
1474
  return {
1437
1475
  action: 'action',
1438
- namespace: 'namespace',
1476
+ namespaces: 'namespaces',
1439
1477
  parameters: 'parameters',
1440
1478
  };
1441
1479
  }
@@ -1443,7 +1481,7 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
1443
1481
  static types(): { [key: string]: any } {
1444
1482
  return {
1445
1483
  action: 'string',
1446
- namespace: 'string',
1484
+ namespaces: { 'type': 'array', 'itemType': 'string' },
1447
1485
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1448
1486
  };
1449
1487
  }
@@ -4098,13 +4136,13 @@ export class ModifyClusterTagsResponse extends $tea.Model {
4098
4136
  export class ModifyPolicyInstanceRequest extends $tea.Model {
4099
4137
  action?: string;
4100
4138
  instanceName?: string;
4101
- namespace?: string;
4139
+ namespaces?: string[];
4102
4140
  parameters?: { [key: string]: any };
4103
4141
  static names(): { [key: string]: string } {
4104
4142
  return {
4105
4143
  action: 'action',
4106
4144
  instanceName: 'instance_name',
4107
- namespace: 'namespace',
4145
+ namespaces: 'namespaces',
4108
4146
  parameters: 'parameters',
4109
4147
  };
4110
4148
  }
@@ -4113,7 +4151,7 @@ export class ModifyPolicyInstanceRequest extends $tea.Model {
4113
4151
  return {
4114
4152
  action: 'string',
4115
4153
  instanceName: 'string',
4116
- namespace: 'string',
4154
+ namespaces: { 'type': 'array', 'itemType': 'string' },
4117
4155
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
4118
4156
  };
4119
4157
  }
@@ -4328,6 +4366,69 @@ export class RemoveWorkflowResponse extends $tea.Model {
4328
4366
  }
4329
4367
  }
4330
4368
 
4369
+ export class RepairClusterNodePoolRequest extends $tea.Model {
4370
+ nodes?: string[];
4371
+ static names(): { [key: string]: string } {
4372
+ return {
4373
+ nodes: 'nodes',
4374
+ };
4375
+ }
4376
+
4377
+ static types(): { [key: string]: any } {
4378
+ return {
4379
+ nodes: { 'type': 'array', 'itemType': 'string' },
4380
+ };
4381
+ }
4382
+
4383
+ constructor(map?: { [key: string]: any }) {
4384
+ super(map);
4385
+ }
4386
+ }
4387
+
4388
+ export class RepairClusterNodePoolResponseBody extends $tea.Model {
4389
+ requestId?: string;
4390
+ taskId?: string;
4391
+ static names(): { [key: string]: string } {
4392
+ return {
4393
+ requestId: 'request_id',
4394
+ taskId: 'task_id',
4395
+ };
4396
+ }
4397
+
4398
+ static types(): { [key: string]: any } {
4399
+ return {
4400
+ requestId: 'string',
4401
+ taskId: 'string',
4402
+ };
4403
+ }
4404
+
4405
+ constructor(map?: { [key: string]: any }) {
4406
+ super(map);
4407
+ }
4408
+ }
4409
+
4410
+ export class RepairClusterNodePoolResponse extends $tea.Model {
4411
+ headers: { [key: string]: string };
4412
+ body: RepairClusterNodePoolResponseBody;
4413
+ static names(): { [key: string]: string } {
4414
+ return {
4415
+ headers: 'headers',
4416
+ body: 'body',
4417
+ };
4418
+ }
4419
+
4420
+ static types(): { [key: string]: any } {
4421
+ return {
4422
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4423
+ body: RepairClusterNodePoolResponseBody,
4424
+ };
4425
+ }
4426
+
4427
+ constructor(map?: { [key: string]: any }) {
4428
+ super(map);
4429
+ }
4430
+ }
4431
+
4331
4432
  export class ResumeComponentUpgradeResponse extends $tea.Model {
4332
4433
  headers: { [key: string]: string };
4333
4434
  static names(): { [key: string]: string } {
@@ -4965,6 +5066,47 @@ export class UntagResourcesResponse extends $tea.Model {
4965
5066
  }
4966
5067
  }
4967
5068
 
5069
+ export class UpdateContactGroupForAlertResponse extends $tea.Model {
5070
+ headers: { [key: string]: string };
5071
+ static names(): { [key: string]: string } {
5072
+ return {
5073
+ headers: 'headers',
5074
+ };
5075
+ }
5076
+
5077
+ static types(): { [key: string]: any } {
5078
+ return {
5079
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5080
+ };
5081
+ }
5082
+
5083
+ constructor(map?: { [key: string]: any }) {
5084
+ super(map);
5085
+ }
5086
+ }
5087
+
5088
+ export class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
5089
+ expireHour?: number;
5090
+ user?: string;
5091
+ static names(): { [key: string]: string } {
5092
+ return {
5093
+ expireHour: 'expire_hour',
5094
+ user: 'user',
5095
+ };
5096
+ }
5097
+
5098
+ static types(): { [key: string]: any } {
5099
+ return {
5100
+ expireHour: 'number',
5101
+ user: 'string',
5102
+ };
5103
+ }
5104
+
5105
+ constructor(map?: { [key: string]: any }) {
5106
+ super(map);
5107
+ }
5108
+ }
5109
+
4968
5110
  export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
4969
5111
  headers: { [key: string]: string };
4970
5112
  static names(): { [key: string]: string } {
@@ -9200,6 +9342,54 @@ export default class Client extends OpenApi {
9200
9342
  return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
9201
9343
  }
9202
9344
 
9345
+ async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
9346
+ let runtime = new $Util.RuntimeOptions({ });
9347
+ let headers : {[key: string ]: string} = { };
9348
+ return await this.deleteAlertContactWithOptions(headers, runtime);
9349
+ }
9350
+
9351
+ async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
9352
+ let req = new $OpenApi.OpenApiRequest({
9353
+ headers: headers,
9354
+ });
9355
+ let params = new $OpenApi.Params({
9356
+ action: "DeleteAlertContact",
9357
+ version: "2015-12-15",
9358
+ protocol: "HTTPS",
9359
+ pathname: `/alert/contacts`,
9360
+ method: "DELETE",
9361
+ authType: "AK",
9362
+ style: "ROA",
9363
+ reqBodyType: "json",
9364
+ bodyType: "none",
9365
+ });
9366
+ return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
9367
+ }
9368
+
9369
+ async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
9370
+ let runtime = new $Util.RuntimeOptions({ });
9371
+ let headers : {[key: string ]: string} = { };
9372
+ return await this.deleteAlertContactGroupWithOptions(headers, runtime);
9373
+ }
9374
+
9375
+ async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
9376
+ let req = new $OpenApi.OpenApiRequest({
9377
+ headers: headers,
9378
+ });
9379
+ let params = new $OpenApi.Params({
9380
+ action: "DeleteAlertContactGroup",
9381
+ version: "2015-12-15",
9382
+ protocol: "HTTPS",
9383
+ pathname: `/alert/contact_groups`,
9384
+ method: "DELETE",
9385
+ authType: "AK",
9386
+ style: "ROA",
9387
+ reqBodyType: "json",
9388
+ bodyType: "none",
9389
+ });
9390
+ return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
9391
+ }
9392
+
9203
9393
  async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
9204
9394
  let runtime = new $Util.RuntimeOptions({ });
9205
9395
  let headers : {[key: string ]: string} = { };
@@ -9468,8 +9658,8 @@ export default class Client extends OpenApi {
9468
9658
  body["action"] = request.action;
9469
9659
  }
9470
9660
 
9471
- if (!Util.isUnset(request.namespace)) {
9472
- body["namespace"] = request.namespace;
9661
+ if (!Util.isUnset(request.namespaces)) {
9662
+ body["namespaces"] = request.namespaces;
9473
9663
  }
9474
9664
 
9475
9665
  if (!Util.isUnset(request.parameters)) {
@@ -11148,8 +11338,8 @@ export default class Client extends OpenApi {
11148
11338
  body["instance_name"] = request.instanceName;
11149
11339
  }
11150
11340
 
11151
- if (!Util.isUnset(request.namespace)) {
11152
- body["namespace"] = request.namespace;
11341
+ if (!Util.isUnset(request.namespaces)) {
11342
+ body["namespaces"] = request.namespaces;
11153
11343
  }
11154
11344
 
11155
11345
  if (!Util.isUnset(request.parameters)) {
@@ -11321,6 +11511,39 @@ export default class Client extends OpenApi {
11321
11511
  return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
11322
11512
  }
11323
11513
 
11514
+ async repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse> {
11515
+ let runtime = new $Util.RuntimeOptions({ });
11516
+ let headers : {[key: string ]: string} = { };
11517
+ return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
11518
+ }
11519
+
11520
+ async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
11521
+ Util.validateModel(request);
11522
+ clusterId = OpenApiUtil.getEncodeParam(clusterId);
11523
+ nodepoolId = OpenApiUtil.getEncodeParam(nodepoolId);
11524
+ let body : {[key: string ]: any} = { };
11525
+ if (!Util.isUnset(request.nodes)) {
11526
+ body["nodes"] = request.nodes;
11527
+ }
11528
+
11529
+ let req = new $OpenApi.OpenApiRequest({
11530
+ headers: headers,
11531
+ body: OpenApiUtil.parseToMap(body),
11532
+ });
11533
+ let params = new $OpenApi.Params({
11534
+ action: "RepairClusterNodePool",
11535
+ version: "2015-12-15",
11536
+ protocol: "HTTPS",
11537
+ pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
11538
+ method: "POST",
11539
+ authType: "AK",
11540
+ style: "ROA",
11541
+ reqBodyType: "json",
11542
+ bodyType: "json",
11543
+ });
11544
+ return $tea.cast<RepairClusterNodePoolResponse>(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
11545
+ }
11546
+
11324
11547
  async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
11325
11548
  let runtime = new $Util.RuntimeOptions({ });
11326
11549
  let headers : {[key: string ]: string} = { };
@@ -11841,17 +12064,53 @@ export default class Client extends OpenApi {
11841
12064
  return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
11842
12065
  }
11843
12066
 
11844
- async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12067
+ async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
11845
12068
  let runtime = new $Util.RuntimeOptions({ });
11846
12069
  let headers : {[key: string ]: string} = { };
11847
- return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime);
12070
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
11848
12071
  }
11849
12072
 
11850
- async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12073
+ async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
11851
12074
  ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
11852
12075
  let req = new $OpenApi.OpenApiRequest({
11853
12076
  headers: headers,
11854
12077
  });
12078
+ let params = new $OpenApi.Params({
12079
+ action: "UpdateContactGroupForAlert",
12080
+ version: "2015-12-15",
12081
+ protocol: "HTTPS",
12082
+ pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
12083
+ method: "POST",
12084
+ authType: "AK",
12085
+ style: "ROA",
12086
+ reqBodyType: "json",
12087
+ bodyType: "none",
12088
+ });
12089
+ return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
12090
+ }
12091
+
12092
+ async updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12093
+ let runtime = new $Util.RuntimeOptions({ });
12094
+ let headers : {[key: string ]: string} = { };
12095
+ return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
12096
+ }
12097
+
12098
+ async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12099
+ Util.validateModel(request);
12100
+ ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
12101
+ let body : {[key: string ]: any} = { };
12102
+ if (!Util.isUnset(request.expireHour)) {
12103
+ body["expire_hour"] = request.expireHour;
12104
+ }
12105
+
12106
+ if (!Util.isUnset(request.user)) {
12107
+ body["user"] = request.user;
12108
+ }
12109
+
12110
+ let req = new $OpenApi.OpenApiRequest({
12111
+ headers: headers,
12112
+ body: OpenApiUtil.parseToMap(body),
12113
+ });
11855
12114
  let params = new $OpenApi.Params({
11856
12115
  action: "UpdateK8sClusterUserConfigExpire",
11857
12116
  version: "2015-12-15",