@alicloud/cs20151215 3.0.2 → 3.0.3
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 +117 -0
- package/dist/client.js +249 -15
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +284 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cs20151215",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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.3.
|
|
24
|
+
"@alicloud/openapi-client": "^0.3.8",
|
|
25
25
|
"@alicloud/openapi-util": "^0.2.4",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -1088,6 +1088,44 @@ export class CreateTriggerResponse extends $tea.Model {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
+
export class DeleteAlertContactResponse extends $tea.Model {
|
|
1092
|
+
headers: { [key: string]: string };
|
|
1093
|
+
static names(): { [key: string]: string } {
|
|
1094
|
+
return {
|
|
1095
|
+
headers: 'headers',
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
static types(): { [key: string]: any } {
|
|
1100
|
+
return {
|
|
1101
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
constructor(map?: { [key: string]: any }) {
|
|
1106
|
+
super(map);
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
1111
|
+
headers: { [key: string]: string };
|
|
1112
|
+
static names(): { [key: string]: string } {
|
|
1113
|
+
return {
|
|
1114
|
+
headers: 'headers',
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
static types(): { [key: string]: any } {
|
|
1119
|
+
return {
|
|
1120
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
constructor(map?: { [key: string]: any }) {
|
|
1125
|
+
super(map);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1091
1129
|
export class DeleteClusterRequest extends $tea.Model {
|
|
1092
1130
|
keepSlb?: boolean;
|
|
1093
1131
|
retainAllResources?: boolean;
|
|
@@ -4666,6 +4704,25 @@ export class ScaleOutClusterResponse extends $tea.Model {
|
|
|
4666
4704
|
}
|
|
4667
4705
|
}
|
|
4668
4706
|
|
|
4707
|
+
export class StartAlertResponse extends $tea.Model {
|
|
4708
|
+
headers: { [key: string]: string };
|
|
4709
|
+
static names(): { [key: string]: string } {
|
|
4710
|
+
return {
|
|
4711
|
+
headers: 'headers',
|
|
4712
|
+
};
|
|
4713
|
+
}
|
|
4714
|
+
|
|
4715
|
+
static types(): { [key: string]: any } {
|
|
4716
|
+
return {
|
|
4717
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4718
|
+
};
|
|
4719
|
+
}
|
|
4720
|
+
|
|
4721
|
+
constructor(map?: { [key: string]: any }) {
|
|
4722
|
+
super(map);
|
|
4723
|
+
}
|
|
4724
|
+
}
|
|
4725
|
+
|
|
4669
4726
|
export class StartWorkflowRequest extends $tea.Model {
|
|
4670
4727
|
mappingBamOutFilename?: string;
|
|
4671
4728
|
mappingBamOutPath?: string;
|
|
@@ -4780,6 +4837,25 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
4780
4837
|
}
|
|
4781
4838
|
}
|
|
4782
4839
|
|
|
4840
|
+
export class StopAlertResponse extends $tea.Model {
|
|
4841
|
+
headers: { [key: string]: string };
|
|
4842
|
+
static names(): { [key: string]: string } {
|
|
4843
|
+
return {
|
|
4844
|
+
headers: 'headers',
|
|
4845
|
+
};
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
static types(): { [key: string]: any } {
|
|
4849
|
+
return {
|
|
4850
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4851
|
+
};
|
|
4852
|
+
}
|
|
4853
|
+
|
|
4854
|
+
constructor(map?: { [key: string]: any }) {
|
|
4855
|
+
super(map);
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
|
|
4783
4859
|
export class TagResourcesRequest extends $tea.Model {
|
|
4784
4860
|
regionId?: string;
|
|
4785
4861
|
resourceIds?: string[];
|
|
@@ -4808,17 +4884,39 @@ export class TagResourcesRequest extends $tea.Model {
|
|
|
4808
4884
|
}
|
|
4809
4885
|
}
|
|
4810
4886
|
|
|
4887
|
+
export class TagResourcesResponseBody extends $tea.Model {
|
|
4888
|
+
requestId?: string;
|
|
4889
|
+
static names(): { [key: string]: string } {
|
|
4890
|
+
return {
|
|
4891
|
+
requestId: 'RequestId',
|
|
4892
|
+
};
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
static types(): { [key: string]: any } {
|
|
4896
|
+
return {
|
|
4897
|
+
requestId: 'string',
|
|
4898
|
+
};
|
|
4899
|
+
}
|
|
4900
|
+
|
|
4901
|
+
constructor(map?: { [key: string]: any }) {
|
|
4902
|
+
super(map);
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4811
4906
|
export class TagResourcesResponse extends $tea.Model {
|
|
4812
4907
|
headers: { [key: string]: string };
|
|
4908
|
+
body: TagResourcesResponseBody;
|
|
4813
4909
|
static names(): { [key: string]: string } {
|
|
4814
4910
|
return {
|
|
4815
4911
|
headers: 'headers',
|
|
4912
|
+
body: 'body',
|
|
4816
4913
|
};
|
|
4817
4914
|
}
|
|
4818
4915
|
|
|
4819
4916
|
static types(): { [key: string]: any } {
|
|
4820
4917
|
return {
|
|
4821
4918
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4919
|
+
body: TagResourcesResponseBody,
|
|
4822
4920
|
};
|
|
4823
4921
|
}
|
|
4824
4922
|
|
|
@@ -4866,12 +4964,14 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
4866
4964
|
}
|
|
4867
4965
|
|
|
4868
4966
|
export class UntagResourcesRequest extends $tea.Model {
|
|
4967
|
+
all?: boolean;
|
|
4869
4968
|
regionId?: string;
|
|
4870
4969
|
resourceIds?: string[];
|
|
4871
4970
|
resourceType?: string;
|
|
4872
4971
|
tagKeys?: string[];
|
|
4873
4972
|
static names(): { [key: string]: string } {
|
|
4874
4973
|
return {
|
|
4974
|
+
all: 'all',
|
|
4875
4975
|
regionId: 'region_id',
|
|
4876
4976
|
resourceIds: 'resource_ids',
|
|
4877
4977
|
resourceType: 'resource_type',
|
|
@@ -4881,6 +4981,7 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4881
4981
|
|
|
4882
4982
|
static types(): { [key: string]: any } {
|
|
4883
4983
|
return {
|
|
4984
|
+
all: 'boolean',
|
|
4884
4985
|
regionId: 'string',
|
|
4885
4986
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
4886
4987
|
resourceType: 'string',
|
|
@@ -4893,7 +4994,48 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4893
4994
|
}
|
|
4894
4995
|
}
|
|
4895
4996
|
|
|
4997
|
+
export class UntagResourcesResponseBody extends $tea.Model {
|
|
4998
|
+
requestId?: string;
|
|
4999
|
+
static names(): { [key: string]: string } {
|
|
5000
|
+
return {
|
|
5001
|
+
requestId: 'RequestId',
|
|
5002
|
+
};
|
|
5003
|
+
}
|
|
5004
|
+
|
|
5005
|
+
static types(): { [key: string]: any } {
|
|
5006
|
+
return {
|
|
5007
|
+
requestId: 'string',
|
|
5008
|
+
};
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
constructor(map?: { [key: string]: any }) {
|
|
5012
|
+
super(map);
|
|
5013
|
+
}
|
|
5014
|
+
}
|
|
5015
|
+
|
|
4896
5016
|
export class UntagResourcesResponse extends $tea.Model {
|
|
5017
|
+
headers: { [key: string]: string };
|
|
5018
|
+
body: UntagResourcesResponseBody;
|
|
5019
|
+
static names(): { [key: string]: string } {
|
|
5020
|
+
return {
|
|
5021
|
+
headers: 'headers',
|
|
5022
|
+
body: 'body',
|
|
5023
|
+
};
|
|
5024
|
+
}
|
|
5025
|
+
|
|
5026
|
+
static types(): { [key: string]: any } {
|
|
5027
|
+
return {
|
|
5028
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5029
|
+
body: UntagResourcesResponseBody,
|
|
5030
|
+
};
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
constructor(map?: { [key: string]: any }) {
|
|
5034
|
+
super(map);
|
|
5035
|
+
}
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
4897
5039
|
headers: { [key: string]: string };
|
|
4898
5040
|
static names(): { [key: string]: string } {
|
|
4899
5041
|
return {
|
|
@@ -8423,7 +8565,7 @@ export default class Client extends OpenApi {
|
|
|
8423
8565
|
action: "CancelComponentUpgrade",
|
|
8424
8566
|
version: "2015-12-15",
|
|
8425
8567
|
protocol: "HTTPS",
|
|
8426
|
-
pathname: `/clusters/${clusterId}/components
|
|
8568
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
8427
8569
|
method: "POST",
|
|
8428
8570
|
authType: "AK",
|
|
8429
8571
|
style: "ROA",
|
|
@@ -9113,6 +9255,54 @@ export default class Client extends OpenApi {
|
|
|
9113
9255
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
9114
9256
|
}
|
|
9115
9257
|
|
|
9258
|
+
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
9259
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
9260
|
+
let headers : {[key: string ]: string} = { };
|
|
9261
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
9262
|
+
}
|
|
9263
|
+
|
|
9264
|
+
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
9265
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9266
|
+
headers: headers,
|
|
9267
|
+
});
|
|
9268
|
+
let params = new $OpenApi.Params({
|
|
9269
|
+
action: "DeleteAlertContact",
|
|
9270
|
+
version: "2015-12-15",
|
|
9271
|
+
protocol: "HTTPS",
|
|
9272
|
+
pathname: `/alert/contacts`,
|
|
9273
|
+
method: "DELETE",
|
|
9274
|
+
authType: "AK",
|
|
9275
|
+
style: "ROA",
|
|
9276
|
+
reqBodyType: "json",
|
|
9277
|
+
bodyType: "none",
|
|
9278
|
+
});
|
|
9279
|
+
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
9280
|
+
}
|
|
9281
|
+
|
|
9282
|
+
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
9283
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
9284
|
+
let headers : {[key: string ]: string} = { };
|
|
9285
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
9286
|
+
}
|
|
9287
|
+
|
|
9288
|
+
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
9289
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9290
|
+
headers: headers,
|
|
9291
|
+
});
|
|
9292
|
+
let params = new $OpenApi.Params({
|
|
9293
|
+
action: "DeleteAlertContactGroup",
|
|
9294
|
+
version: "2015-12-15",
|
|
9295
|
+
protocol: "HTTPS",
|
|
9296
|
+
pathname: `/alert/contact_groups`,
|
|
9297
|
+
method: "DELETE",
|
|
9298
|
+
authType: "AK",
|
|
9299
|
+
style: "ROA",
|
|
9300
|
+
reqBodyType: "json",
|
|
9301
|
+
bodyType: "none",
|
|
9302
|
+
});
|
|
9303
|
+
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
9304
|
+
}
|
|
9305
|
+
|
|
9116
9306
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
9117
9307
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9118
9308
|
let headers : {[key: string ]: string} = { };
|
|
@@ -9175,7 +9365,7 @@ export default class Client extends OpenApi {
|
|
|
9175
9365
|
action: "DeleteClusterNodepool",
|
|
9176
9366
|
version: "2015-12-15",
|
|
9177
9367
|
protocol: "HTTPS",
|
|
9178
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
9368
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9179
9369
|
method: "DELETE",
|
|
9180
9370
|
authType: "AK",
|
|
9181
9371
|
style: "ROA",
|
|
@@ -9305,7 +9495,7 @@ export default class Client extends OpenApi {
|
|
|
9305
9495
|
action: "DeletePolicyInstance",
|
|
9306
9496
|
version: "2015-12-15",
|
|
9307
9497
|
protocol: "HTTPS",
|
|
9308
|
-
pathname: `/clusters/${clusterId}/policies
|
|
9498
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9309
9499
|
method: "DELETE",
|
|
9310
9500
|
authType: "AK",
|
|
9311
9501
|
style: "ROA",
|
|
@@ -9397,7 +9587,7 @@ export default class Client extends OpenApi {
|
|
|
9397
9587
|
action: "DeployPolicyInstance",
|
|
9398
9588
|
version: "2015-12-15",
|
|
9399
9589
|
protocol: "HTTPS",
|
|
9400
|
-
pathname: `/clusters/${clusterId}/policies
|
|
9590
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9401
9591
|
method: "POST",
|
|
9402
9592
|
authType: "AK",
|
|
9403
9593
|
style: "ROA",
|
|
@@ -9484,7 +9674,7 @@ export default class Client extends OpenApi {
|
|
|
9484
9674
|
action: "DescribeClusterAddonMetadata",
|
|
9485
9675
|
version: "2015-12-15",
|
|
9486
9676
|
protocol: "HTTPS",
|
|
9487
|
-
pathname: `/clusters/${clusterId}/components
|
|
9677
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
9488
9678
|
method: "GET",
|
|
9489
9679
|
authType: "AK",
|
|
9490
9680
|
style: "ROA",
|
|
@@ -9510,7 +9700,7 @@ export default class Client extends OpenApi {
|
|
|
9510
9700
|
action: "DescribeClusterAddonUpgradeStatus",
|
|
9511
9701
|
version: "2015-12-15",
|
|
9512
9702
|
protocol: "HTTPS",
|
|
9513
|
-
pathname: `/clusters/${ClusterId}/components
|
|
9703
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
9514
9704
|
method: "GET",
|
|
9515
9705
|
authType: "AK",
|
|
9516
9706
|
style: "ROA",
|
|
@@ -9726,7 +9916,7 @@ export default class Client extends OpenApi {
|
|
|
9726
9916
|
action: "DescribeClusterNodePoolDetail",
|
|
9727
9917
|
version: "2015-12-15",
|
|
9728
9918
|
protocol: "HTTPS",
|
|
9729
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
9919
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9730
9920
|
method: "GET",
|
|
9731
9921
|
authType: "AK",
|
|
9732
9922
|
style: "ROA",
|
|
@@ -10912,7 +11102,7 @@ export default class Client extends OpenApi {
|
|
|
10912
11102
|
action: "ModifyClusterAddon",
|
|
10913
11103
|
version: "2015-12-15",
|
|
10914
11104
|
protocol: "HTTPS",
|
|
10915
|
-
pathname: `/clusters/${clusterId}/components
|
|
11105
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
10916
11106
|
method: "POST",
|
|
10917
11107
|
authType: "AK",
|
|
10918
11108
|
style: "ROA",
|
|
@@ -11001,7 +11191,7 @@ export default class Client extends OpenApi {
|
|
|
11001
11191
|
action: "ModifyClusterNodePool",
|
|
11002
11192
|
version: "2015-12-15",
|
|
11003
11193
|
protocol: "HTTPS",
|
|
11004
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
11194
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11005
11195
|
method: "PUT",
|
|
11006
11196
|
authType: "AK",
|
|
11007
11197
|
style: "ROA",
|
|
@@ -11073,7 +11263,7 @@ export default class Client extends OpenApi {
|
|
|
11073
11263
|
action: "ModifyPolicyInstance",
|
|
11074
11264
|
version: "2015-12-15",
|
|
11075
11265
|
protocol: "HTTPS",
|
|
11076
|
-
pathname: `/clusters/${clusterId}/policies
|
|
11266
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
11077
11267
|
method: "PUT",
|
|
11078
11268
|
authType: "AK",
|
|
11079
11269
|
style: "ROA",
|
|
@@ -11155,7 +11345,7 @@ export default class Client extends OpenApi {
|
|
|
11155
11345
|
action: "PauseComponentUpgrade",
|
|
11156
11346
|
version: "2015-12-15",
|
|
11157
11347
|
protocol: "HTTPS",
|
|
11158
|
-
pathname: `/clusters/${clusterid}/components
|
|
11348
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
11159
11349
|
method: "POST",
|
|
11160
11350
|
authType: "AK",
|
|
11161
11351
|
style: "ROA",
|
|
@@ -11246,7 +11436,7 @@ export default class Client extends OpenApi {
|
|
|
11246
11436
|
action: "ResumeComponentUpgrade",
|
|
11247
11437
|
version: "2015-12-15",
|
|
11248
11438
|
protocol: "HTTPS",
|
|
11249
|
-
pathname: `/clusters/${clusterid}/components
|
|
11439
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
11250
11440
|
method: "POST",
|
|
11251
11441
|
authType: "AK",
|
|
11252
11442
|
style: "ROA",
|
|
@@ -11408,7 +11598,7 @@ export default class Client extends OpenApi {
|
|
|
11408
11598
|
action: "ScaleClusterNodePool",
|
|
11409
11599
|
version: "2015-12-15",
|
|
11410
11600
|
protocol: "HTTPS",
|
|
11411
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
11601
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11412
11602
|
method: "POST",
|
|
11413
11603
|
authType: "AK",
|
|
11414
11604
|
style: "ROA",
|
|
@@ -11530,6 +11720,31 @@ export default class Client extends OpenApi {
|
|
|
11530
11720
|
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
11531
11721
|
}
|
|
11532
11722
|
|
|
11723
|
+
async startAlert(ClusterId: string): Promise<StartAlertResponse> {
|
|
11724
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11725
|
+
let headers : {[key: string ]: string} = { };
|
|
11726
|
+
return await this.startAlertWithOptions(ClusterId, headers, runtime);
|
|
11727
|
+
}
|
|
11728
|
+
|
|
11729
|
+
async startAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
|
|
11730
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
11731
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11732
|
+
headers: headers,
|
|
11733
|
+
});
|
|
11734
|
+
let params = new $OpenApi.Params({
|
|
11735
|
+
action: "StartAlert",
|
|
11736
|
+
version: "2015-12-15",
|
|
11737
|
+
protocol: "HTTPS",
|
|
11738
|
+
pathname: `/alert/${ClusterId}/alert_rule/start`,
|
|
11739
|
+
method: "POST",
|
|
11740
|
+
authType: "AK",
|
|
11741
|
+
style: "ROA",
|
|
11742
|
+
reqBodyType: "json",
|
|
11743
|
+
bodyType: "none",
|
|
11744
|
+
});
|
|
11745
|
+
return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
|
|
11746
|
+
}
|
|
11747
|
+
|
|
11533
11748
|
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
11534
11749
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11535
11750
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11633,6 +11848,31 @@ export default class Client extends OpenApi {
|
|
|
11633
11848
|
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
11634
11849
|
}
|
|
11635
11850
|
|
|
11851
|
+
async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
|
|
11852
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11853
|
+
let headers : {[key: string ]: string} = { };
|
|
11854
|
+
return await this.stopAlertWithOptions(ClusterId, headers, runtime);
|
|
11855
|
+
}
|
|
11856
|
+
|
|
11857
|
+
async stopAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
|
|
11858
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
11859
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11860
|
+
headers: headers,
|
|
11861
|
+
});
|
|
11862
|
+
let params = new $OpenApi.Params({
|
|
11863
|
+
action: "StopAlert",
|
|
11864
|
+
version: "2015-12-15",
|
|
11865
|
+
protocol: "HTTPS",
|
|
11866
|
+
pathname: `/alert/${ClusterId}/alert_rule/stop`,
|
|
11867
|
+
method: "POST",
|
|
11868
|
+
authType: "AK",
|
|
11869
|
+
style: "ROA",
|
|
11870
|
+
reqBodyType: "json",
|
|
11871
|
+
bodyType: "none",
|
|
11872
|
+
});
|
|
11873
|
+
return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
|
|
11874
|
+
}
|
|
11875
|
+
|
|
11636
11876
|
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
11637
11877
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11638
11878
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11671,7 +11911,7 @@ export default class Client extends OpenApi {
|
|
|
11671
11911
|
authType: "AK",
|
|
11672
11912
|
style: "ROA",
|
|
11673
11913
|
reqBodyType: "json",
|
|
11674
|
-
bodyType: "
|
|
11914
|
+
bodyType: "json",
|
|
11675
11915
|
});
|
|
11676
11916
|
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
11677
11917
|
}
|
|
@@ -11712,6 +11952,10 @@ export default class Client extends OpenApi {
|
|
|
11712
11952
|
async untagResourcesWithOptions(request: UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
11713
11953
|
Util.validateModel(request);
|
|
11714
11954
|
let query : {[key: string ]: any} = { };
|
|
11955
|
+
if (!Util.isUnset(request.all)) {
|
|
11956
|
+
query["all"] = request.all;
|
|
11957
|
+
}
|
|
11958
|
+
|
|
11715
11959
|
if (!Util.isUnset(request.regionId)) {
|
|
11716
11960
|
query["region_id"] = request.regionId;
|
|
11717
11961
|
}
|
|
@@ -11741,11 +11985,36 @@ export default class Client extends OpenApi {
|
|
|
11741
11985
|
authType: "AK",
|
|
11742
11986
|
style: "ROA",
|
|
11743
11987
|
reqBodyType: "json",
|
|
11744
|
-
bodyType: "
|
|
11988
|
+
bodyType: "json",
|
|
11745
11989
|
});
|
|
11746
11990
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
11747
11991
|
}
|
|
11748
11992
|
|
|
11993
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
11994
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11995
|
+
let headers : {[key: string ]: string} = { };
|
|
11996
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
11997
|
+
}
|
|
11998
|
+
|
|
11999
|
+
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
12000
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
12001
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12002
|
+
headers: headers,
|
|
12003
|
+
});
|
|
12004
|
+
let params = new $OpenApi.Params({
|
|
12005
|
+
action: "UpdateContactGroupForAlert",
|
|
12006
|
+
version: "2015-12-15",
|
|
12007
|
+
protocol: "HTTPS",
|
|
12008
|
+
pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
|
|
12009
|
+
method: "POST",
|
|
12010
|
+
authType: "AK",
|
|
12011
|
+
style: "ROA",
|
|
12012
|
+
reqBodyType: "json",
|
|
12013
|
+
bodyType: "none",
|
|
12014
|
+
});
|
|
12015
|
+
return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
12016
|
+
}
|
|
12017
|
+
|
|
11749
12018
|
async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
11750
12019
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11751
12020
|
let headers : {[key: string ]: string} = { };
|