@alicloud/cs20151215 3.0.4 → 3.0.7
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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +119 -3
- package/dist/client.js +244 -7
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +286 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cs20151215",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.0",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.1",
|
|
25
25
|
"@alicloud/openapi-util": "^0.2.7",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -441,6 +441,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
441
441
|
proxyMode?: string;
|
|
442
442
|
rdsInstances?: string[];
|
|
443
443
|
regionId?: string;
|
|
444
|
+
resourceGroupId?: string;
|
|
444
445
|
runtime?: Runtime;
|
|
445
446
|
securityGroupId?: string;
|
|
446
447
|
serviceAccountIssuer?: string;
|
|
@@ -526,6 +527,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
526
527
|
proxyMode: 'proxy_mode',
|
|
527
528
|
rdsInstances: 'rds_instances',
|
|
528
529
|
regionId: 'region_id',
|
|
530
|
+
resourceGroupId: 'resource_group_id',
|
|
529
531
|
runtime: 'runtime',
|
|
530
532
|
securityGroupId: 'security_group_id',
|
|
531
533
|
serviceAccountIssuer: 'service_account_issuer',
|
|
@@ -614,6 +616,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
614
616
|
proxyMode: 'string',
|
|
615
617
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
616
618
|
regionId: 'string',
|
|
619
|
+
resourceGroupId: 'string',
|
|
617
620
|
runtime: Runtime,
|
|
618
621
|
securityGroupId: 'string',
|
|
619
622
|
serviceAccountIssuer: 'string',
|
|
@@ -1088,6 +1091,44 @@ export class CreateTriggerResponse extends $tea.Model {
|
|
|
1088
1091
|
}
|
|
1089
1092
|
}
|
|
1090
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
|
+
|
|
1091
1132
|
export class DeleteClusterRequest extends $tea.Model {
|
|
1092
1133
|
keepSlb?: boolean;
|
|
1093
1134
|
retainAllResources?: boolean;
|
|
@@ -1427,12 +1468,12 @@ export class DeleteTriggerResponse extends $tea.Model {
|
|
|
1427
1468
|
|
|
1428
1469
|
export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
1429
1470
|
action?: string;
|
|
1430
|
-
|
|
1471
|
+
namespaces?: string[];
|
|
1431
1472
|
parameters?: { [key: string]: any };
|
|
1432
1473
|
static names(): { [key: string]: string } {
|
|
1433
1474
|
return {
|
|
1434
1475
|
action: 'action',
|
|
1435
|
-
|
|
1476
|
+
namespaces: 'namespaces',
|
|
1436
1477
|
parameters: 'parameters',
|
|
1437
1478
|
};
|
|
1438
1479
|
}
|
|
@@ -1440,7 +1481,7 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1440
1481
|
static types(): { [key: string]: any } {
|
|
1441
1482
|
return {
|
|
1442
1483
|
action: 'string',
|
|
1443
|
-
|
|
1484
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
1444
1485
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1445
1486
|
};
|
|
1446
1487
|
}
|
|
@@ -4325,6 +4366,69 @@ export class RemoveWorkflowResponse extends $tea.Model {
|
|
|
4325
4366
|
}
|
|
4326
4367
|
}
|
|
4327
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
|
+
|
|
4328
4432
|
export class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
4329
4433
|
headers: { [key: string]: string };
|
|
4330
4434
|
static names(): { [key: string]: string } {
|
|
@@ -4962,6 +5066,47 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
4962
5066
|
}
|
|
4963
5067
|
}
|
|
4964
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
|
+
|
|
4965
5110
|
export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
4966
5111
|
headers: { [key: string]: string };
|
|
4967
5112
|
static names(): { [key: string]: string } {
|
|
@@ -5433,6 +5578,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5433
5578
|
compensateWithOnDemand?: boolean;
|
|
5434
5579
|
dataDisks?: DataDisk[];
|
|
5435
5580
|
deploymentsetId?: string;
|
|
5581
|
+
desiredSize?: number;
|
|
5436
5582
|
imageId?: string;
|
|
5437
5583
|
imageType?: string;
|
|
5438
5584
|
instanceChargeType?: string;
|
|
@@ -5467,6 +5613,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5467
5613
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5468
5614
|
dataDisks: 'data_disks',
|
|
5469
5615
|
deploymentsetId: 'deploymentset_id',
|
|
5616
|
+
desiredSize: 'desired_size',
|
|
5470
5617
|
imageId: 'image_id',
|
|
5471
5618
|
imageType: 'image_type',
|
|
5472
5619
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -5504,6 +5651,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5504
5651
|
compensateWithOnDemand: 'boolean',
|
|
5505
5652
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5506
5653
|
deploymentsetId: 'string',
|
|
5654
|
+
desiredSize: 'number',
|
|
5507
5655
|
imageId: 'string',
|
|
5508
5656
|
imageType: 'string',
|
|
5509
5657
|
instanceChargeType: 'string',
|
|
@@ -5862,6 +6010,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5862
6010
|
compensateWithOnDemand?: boolean;
|
|
5863
6011
|
dataDisks?: DataDisk[];
|
|
5864
6012
|
deploymentsetId?: string;
|
|
6013
|
+
desiredSize?: number;
|
|
5865
6014
|
imageId?: string;
|
|
5866
6015
|
instanceChargeType?: string;
|
|
5867
6016
|
instanceTypes?: string[];
|
|
@@ -5897,6 +6046,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5897
6046
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5898
6047
|
dataDisks: 'data_disks',
|
|
5899
6048
|
deploymentsetId: 'deploymentset_id',
|
|
6049
|
+
desiredSize: 'desired_size',
|
|
5900
6050
|
imageId: 'image_id',
|
|
5901
6051
|
instanceChargeType: 'instance_charge_type',
|
|
5902
6052
|
instanceTypes: 'instance_types',
|
|
@@ -5935,6 +6085,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5935
6085
|
compensateWithOnDemand: 'boolean',
|
|
5936
6086
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5937
6087
|
deploymentsetId: 'string',
|
|
6088
|
+
desiredSize: 'number',
|
|
5938
6089
|
imageId: 'string',
|
|
5939
6090
|
instanceChargeType: 'string',
|
|
5940
6091
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6259,6 +6410,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6259
6410
|
compensateWithOnDemand?: boolean;
|
|
6260
6411
|
dataDisks?: DataDisk[];
|
|
6261
6412
|
deploymentsetId?: string;
|
|
6413
|
+
desiredSize?: number;
|
|
6262
6414
|
imageId?: string;
|
|
6263
6415
|
instanceChargeType?: string;
|
|
6264
6416
|
instanceTypes?: string[];
|
|
@@ -6294,6 +6446,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6294
6446
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6295
6447
|
dataDisks: 'data_disks',
|
|
6296
6448
|
deploymentsetId: 'deploymentset_id',
|
|
6449
|
+
desiredSize: 'desired_size',
|
|
6297
6450
|
imageId: 'image_id',
|
|
6298
6451
|
instanceChargeType: 'instance_charge_type',
|
|
6299
6452
|
instanceTypes: 'instance_types',
|
|
@@ -6332,6 +6485,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6332
6485
|
compensateWithOnDemand: 'boolean',
|
|
6333
6486
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6334
6487
|
deploymentsetId: 'string',
|
|
6488
|
+
desiredSize: 'number',
|
|
6335
6489
|
imageId: 'string',
|
|
6336
6490
|
instanceChargeType: 'string',
|
|
6337
6491
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -8055,6 +8209,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
8055
8209
|
autoRenewPeriod?: number;
|
|
8056
8210
|
compensateWithOnDemand?: boolean;
|
|
8057
8211
|
dataDisks?: DataDisk[];
|
|
8212
|
+
desiredSize?: number;
|
|
8058
8213
|
imageId?: string;
|
|
8059
8214
|
instanceChargeType?: string;
|
|
8060
8215
|
instanceTypes?: string[];
|
|
@@ -8085,6 +8240,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
8085
8240
|
autoRenewPeriod: 'auto_renew_period',
|
|
8086
8241
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
8087
8242
|
dataDisks: 'data_disks',
|
|
8243
|
+
desiredSize: 'desired_size',
|
|
8088
8244
|
imageId: 'image_id',
|
|
8089
8245
|
instanceChargeType: 'instance_charge_type',
|
|
8090
8246
|
instanceTypes: 'instance_types',
|
|
@@ -8118,6 +8274,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
8118
8274
|
autoRenewPeriod: 'number',
|
|
8119
8275
|
compensateWithOnDemand: 'boolean',
|
|
8120
8276
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
8277
|
+
desiredSize: 'number',
|
|
8121
8278
|
imageId: 'string',
|
|
8122
8279
|
instanceChargeType: 'string',
|
|
8123
8280
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -8806,6 +8963,10 @@ export default class Client extends OpenApi {
|
|
|
8806
8963
|
body["region_id"] = request.regionId;
|
|
8807
8964
|
}
|
|
8808
8965
|
|
|
8966
|
+
if (!Util.isUnset(request.resourceGroupId)) {
|
|
8967
|
+
body["resource_group_id"] = request.resourceGroupId;
|
|
8968
|
+
}
|
|
8969
|
+
|
|
8809
8970
|
if (!Util.isUnset($tea.toMap(request.runtime))) {
|
|
8810
8971
|
body["runtime"] = request.runtime;
|
|
8811
8972
|
}
|
|
@@ -9181,6 +9342,54 @@ export default class Client extends OpenApi {
|
|
|
9181
9342
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
9182
9343
|
}
|
|
9183
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
|
+
|
|
9184
9393
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
9185
9394
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9186
9395
|
let headers : {[key: string ]: string} = { };
|
|
@@ -9449,8 +9658,8 @@ export default class Client extends OpenApi {
|
|
|
9449
9658
|
body["action"] = request.action;
|
|
9450
9659
|
}
|
|
9451
9660
|
|
|
9452
|
-
if (!Util.isUnset(request.
|
|
9453
|
-
body["
|
|
9661
|
+
if (!Util.isUnset(request.namespaces)) {
|
|
9662
|
+
body["namespaces"] = request.namespaces;
|
|
9454
9663
|
}
|
|
9455
9664
|
|
|
9456
9665
|
if (!Util.isUnset(request.parameters)) {
|
|
@@ -11302,6 +11511,39 @@ export default class Client extends OpenApi {
|
|
|
11302
11511
|
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
11303
11512
|
}
|
|
11304
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
|
+
|
|
11305
11547
|
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
11306
11548
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11307
11549
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11822,16 +12064,52 @@ export default class Client extends OpenApi {
|
|
|
11822
12064
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
11823
12065
|
}
|
|
11824
12066
|
|
|
11825
|
-
async
|
|
12067
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
12068
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12069
|
+
let headers : {[key: string ]: string} = { };
|
|
12070
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
12071
|
+
}
|
|
12072
|
+
|
|
12073
|
+
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
12074
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
12075
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12076
|
+
headers: headers,
|
|
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> {
|
|
11826
12093
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11827
12094
|
let headers : {[key: string ]: string} = { };
|
|
11828
|
-
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime);
|
|
12095
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
11829
12096
|
}
|
|
11830
12097
|
|
|
11831
|
-
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
12098
|
+
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
12099
|
+
Util.validateModel(request);
|
|
11832
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
|
+
|
|
11833
12110
|
let req = new $OpenApi.OpenApiRequest({
|
|
11834
12111
|
headers: headers,
|
|
12112
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11835
12113
|
});
|
|
11836
12114
|
let params = new $OpenApi.Params({
|
|
11837
12115
|
action: "UpdateK8sClusterUserConfigExpire",
|