@alicloud/cs20151215 3.0.3 → 3.0.4
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 +7 -90
- package/dist/client.js +17 -193
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +25 -218
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cs20151215",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.0",
|
|
24
|
-
"@alicloud/openapi-client": "^0.
|
|
25
|
-
"@alicloud/openapi-util": "^0.2.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.0",
|
|
25
|
+
"@alicloud/openapi-util": "^0.2.7",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -1088,44 +1088,6 @@ 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
|
-
|
|
1129
1091
|
export class DeleteClusterRequest extends $tea.Model {
|
|
1130
1092
|
keepSlb?: boolean;
|
|
1131
1093
|
retainAllResources?: boolean;
|
|
@@ -2864,12 +2826,14 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2864
2826
|
kubernetesVersion?: string;
|
|
2865
2827
|
profile?: string;
|
|
2866
2828
|
region?: string;
|
|
2829
|
+
runtime?: string;
|
|
2867
2830
|
static names(): { [key: string]: string } {
|
|
2868
2831
|
return {
|
|
2869
2832
|
clusterType: 'ClusterType',
|
|
2870
2833
|
kubernetesVersion: 'KubernetesVersion',
|
|
2871
2834
|
profile: 'Profile',
|
|
2872
2835
|
region: 'Region',
|
|
2836
|
+
runtime: 'runtime',
|
|
2873
2837
|
};
|
|
2874
2838
|
}
|
|
2875
2839
|
|
|
@@ -2879,6 +2843,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2879
2843
|
kubernetesVersion: 'string',
|
|
2880
2844
|
profile: 'string',
|
|
2881
2845
|
region: 'string',
|
|
2846
|
+
runtime: 'string',
|
|
2882
2847
|
};
|
|
2883
2848
|
}
|
|
2884
2849
|
|
|
@@ -4704,25 +4669,6 @@ export class ScaleOutClusterResponse extends $tea.Model {
|
|
|
4704
4669
|
}
|
|
4705
4670
|
}
|
|
4706
4671
|
|
|
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
|
-
|
|
4726
4672
|
export class StartWorkflowRequest extends $tea.Model {
|
|
4727
4673
|
mappingBamOutFilename?: string;
|
|
4728
4674
|
mappingBamOutPath?: string;
|
|
@@ -4837,25 +4783,6 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
4837
4783
|
}
|
|
4838
4784
|
}
|
|
4839
4785
|
|
|
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
|
-
|
|
4859
4786
|
export class TagResourcesRequest extends $tea.Model {
|
|
4860
4787
|
regionId?: string;
|
|
4861
4788
|
resourceIds?: string[];
|
|
@@ -5035,25 +4962,6 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5035
4962
|
}
|
|
5036
4963
|
}
|
|
5037
4964
|
|
|
5038
|
-
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
5039
|
-
headers: { [key: string]: string };
|
|
5040
|
-
static names(): { [key: string]: string } {
|
|
5041
|
-
return {
|
|
5042
|
-
headers: 'headers',
|
|
5043
|
-
};
|
|
5044
|
-
}
|
|
5045
|
-
|
|
5046
|
-
static types(): { [key: string]: any } {
|
|
5047
|
-
return {
|
|
5048
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5049
|
-
};
|
|
5050
|
-
}
|
|
5051
|
-
|
|
5052
|
-
constructor(map?: { [key: string]: any }) {
|
|
5053
|
-
super(map);
|
|
5054
|
-
}
|
|
5055
|
-
}
|
|
5056
|
-
|
|
5057
4965
|
export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
5058
4966
|
headers: { [key: string]: string };
|
|
5059
4967
|
static names(): { [key: string]: string } {
|
|
@@ -5361,6 +5269,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5361
5269
|
cmsEnabled?: boolean;
|
|
5362
5270
|
cpuPolicy?: string;
|
|
5363
5271
|
labels?: Tag[];
|
|
5272
|
+
nodeNameMode?: string;
|
|
5364
5273
|
runtime?: string;
|
|
5365
5274
|
runtimeVersion?: string;
|
|
5366
5275
|
taints?: Taint[];
|
|
@@ -5370,6 +5279,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5370
5279
|
cmsEnabled: 'cms_enabled',
|
|
5371
5280
|
cpuPolicy: 'cpu_policy',
|
|
5372
5281
|
labels: 'labels',
|
|
5282
|
+
nodeNameMode: 'node_name_mode',
|
|
5373
5283
|
runtime: 'runtime',
|
|
5374
5284
|
runtimeVersion: 'runtime_version',
|
|
5375
5285
|
taints: 'taints',
|
|
@@ -5382,6 +5292,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5382
5292
|
cmsEnabled: 'boolean',
|
|
5383
5293
|
cpuPolicy: 'string',
|
|
5384
5294
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5295
|
+
nodeNameMode: 'string',
|
|
5385
5296
|
runtime: 'string',
|
|
5386
5297
|
runtimeVersion: 'string',
|
|
5387
5298
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5521,6 +5432,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5521
5432
|
autoRenewPeriod?: number;
|
|
5522
5433
|
compensateWithOnDemand?: boolean;
|
|
5523
5434
|
dataDisks?: DataDisk[];
|
|
5435
|
+
deploymentsetId?: string;
|
|
5524
5436
|
imageId?: string;
|
|
5525
5437
|
imageType?: string;
|
|
5526
5438
|
instanceChargeType?: string;
|
|
@@ -5554,6 +5466,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5554
5466
|
autoRenewPeriod: 'auto_renew_period',
|
|
5555
5467
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5556
5468
|
dataDisks: 'data_disks',
|
|
5469
|
+
deploymentsetId: 'deploymentset_id',
|
|
5557
5470
|
imageId: 'image_id',
|
|
5558
5471
|
imageType: 'image_type',
|
|
5559
5472
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -5590,6 +5503,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5590
5503
|
autoRenewPeriod: 'number',
|
|
5591
5504
|
compensateWithOnDemand: 'boolean',
|
|
5592
5505
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5506
|
+
deploymentsetId: 'string',
|
|
5593
5507
|
imageId: 'string',
|
|
5594
5508
|
imageType: 'string',
|
|
5595
5509
|
instanceChargeType: 'string',
|
|
@@ -5791,6 +5705,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5791
5705
|
cmsEnabled?: boolean;
|
|
5792
5706
|
cpuPolicy?: string;
|
|
5793
5707
|
labels?: Tag[];
|
|
5708
|
+
nodeNameMode?: string;
|
|
5794
5709
|
runtime?: string;
|
|
5795
5710
|
runtimeVersion?: string;
|
|
5796
5711
|
taints?: Taint[];
|
|
@@ -5800,6 +5715,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5800
5715
|
cmsEnabled: 'cms_enabled',
|
|
5801
5716
|
cpuPolicy: 'cpu_policy',
|
|
5802
5717
|
labels: 'labels',
|
|
5718
|
+
nodeNameMode: 'node_name_mode',
|
|
5803
5719
|
runtime: 'runtime',
|
|
5804
5720
|
runtimeVersion: 'runtime_version',
|
|
5805
5721
|
taints: 'taints',
|
|
@@ -5812,6 +5728,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5812
5728
|
cmsEnabled: 'boolean',
|
|
5813
5729
|
cpuPolicy: 'string',
|
|
5814
5730
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5731
|
+
nodeNameMode: 'string',
|
|
5815
5732
|
runtime: 'string',
|
|
5816
5733
|
runtimeVersion: 'string',
|
|
5817
5734
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5944,6 +5861,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5944
5861
|
autoRenewPeriod?: number;
|
|
5945
5862
|
compensateWithOnDemand?: boolean;
|
|
5946
5863
|
dataDisks?: DataDisk[];
|
|
5864
|
+
deploymentsetId?: string;
|
|
5947
5865
|
imageId?: string;
|
|
5948
5866
|
instanceChargeType?: string;
|
|
5949
5867
|
instanceTypes?: string[];
|
|
@@ -5978,6 +5896,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5978
5896
|
autoRenewPeriod: 'auto_renew_period',
|
|
5979
5897
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5980
5898
|
dataDisks: 'data_disks',
|
|
5899
|
+
deploymentsetId: 'deploymentset_id',
|
|
5981
5900
|
imageId: 'image_id',
|
|
5982
5901
|
instanceChargeType: 'instance_charge_type',
|
|
5983
5902
|
instanceTypes: 'instance_types',
|
|
@@ -6015,6 +5934,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
6015
5934
|
autoRenewPeriod: 'number',
|
|
6016
5935
|
compensateWithOnDemand: 'boolean',
|
|
6017
5936
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5937
|
+
deploymentsetId: 'string',
|
|
6018
5938
|
imageId: 'string',
|
|
6019
5939
|
instanceChargeType: 'string',
|
|
6020
5940
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6182,6 +6102,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
6182
6102
|
cmsEnabled?: boolean;
|
|
6183
6103
|
cpuPolicy?: string;
|
|
6184
6104
|
labels?: Tag[];
|
|
6105
|
+
nodeNameMode?: string;
|
|
6185
6106
|
runtime?: string;
|
|
6186
6107
|
runtimeVersion?: string;
|
|
6187
6108
|
taints?: Taint[];
|
|
@@ -6191,6 +6112,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
6191
6112
|
cmsEnabled: 'cms_enabled',
|
|
6192
6113
|
cpuPolicy: 'cpu_policy',
|
|
6193
6114
|
labels: 'labels',
|
|
6115
|
+
nodeNameMode: 'node_name_mode',
|
|
6194
6116
|
runtime: 'runtime',
|
|
6195
6117
|
runtimeVersion: 'runtime_version',
|
|
6196
6118
|
taints: 'taints',
|
|
@@ -6203,6 +6125,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
6203
6125
|
cmsEnabled: 'boolean',
|
|
6204
6126
|
cpuPolicy: 'string',
|
|
6205
6127
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
6128
|
+
nodeNameMode: 'string',
|
|
6206
6129
|
runtime: 'string',
|
|
6207
6130
|
runtimeVersion: 'string',
|
|
6208
6131
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -6335,6 +6258,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6335
6258
|
autoRenewPeriod?: number;
|
|
6336
6259
|
compensateWithOnDemand?: boolean;
|
|
6337
6260
|
dataDisks?: DataDisk[];
|
|
6261
|
+
deploymentsetId?: string;
|
|
6338
6262
|
imageId?: string;
|
|
6339
6263
|
instanceChargeType?: string;
|
|
6340
6264
|
instanceTypes?: string[];
|
|
@@ -6369,6 +6293,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6369
6293
|
autoRenewPeriod: 'auto_renew_period',
|
|
6370
6294
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6371
6295
|
dataDisks: 'data_disks',
|
|
6296
|
+
deploymentsetId: 'deploymentset_id',
|
|
6372
6297
|
imageId: 'image_id',
|
|
6373
6298
|
instanceChargeType: 'instance_charge_type',
|
|
6374
6299
|
instanceTypes: 'instance_types',
|
|
@@ -6406,6 +6331,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6406
6331
|
autoRenewPeriod: 'number',
|
|
6407
6332
|
compensateWithOnDemand: 'boolean',
|
|
6408
6333
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6334
|
+
deploymentsetId: 'string',
|
|
6409
6335
|
imageId: 'string',
|
|
6410
6336
|
instanceChargeType: 'string',
|
|
6411
6337
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -9255,54 +9181,6 @@ export default class Client extends OpenApi {
|
|
|
9255
9181
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
9256
9182
|
}
|
|
9257
9183
|
|
|
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
|
-
|
|
9306
9184
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
9307
9185
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9308
9186
|
let headers : {[key: string ]: string} = { };
|
|
@@ -10403,6 +10281,10 @@ export default class Client extends OpenApi {
|
|
|
10403
10281
|
query["Region"] = request.region;
|
|
10404
10282
|
}
|
|
10405
10283
|
|
|
10284
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10285
|
+
query["runtime"] = request.runtime;
|
|
10286
|
+
}
|
|
10287
|
+
|
|
10406
10288
|
let req = new $OpenApi.OpenApiRequest({
|
|
10407
10289
|
headers: headers,
|
|
10408
10290
|
query: OpenApiUtil.query(query),
|
|
@@ -11720,31 +11602,6 @@ export default class Client extends OpenApi {
|
|
|
11720
11602
|
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
11721
11603
|
}
|
|
11722
11604
|
|
|
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
|
-
|
|
11748
11605
|
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
11749
11606
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11750
11607
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11848,31 +11705,6 @@ export default class Client extends OpenApi {
|
|
|
11848
11705
|
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
11849
11706
|
}
|
|
11850
11707
|
|
|
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
|
-
|
|
11876
11708
|
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
11877
11709
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11878
11710
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11990,31 +11822,6 @@ export default class Client extends OpenApi {
|
|
|
11990
11822
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
11991
11823
|
}
|
|
11992
11824
|
|
|
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
|
-
|
|
12018
11825
|
async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
12019
11826
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12020
11827
|
let headers : {[key: string ]: string} = { };
|