@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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +115 -4
- package/dist/client.js +235 -11
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +272 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
English | [简体中文](README-CN.md)
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
# Alibaba Cloud CS SDK for NodeJS
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
If you use `npm` to manage your dependence, you can use the following command:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @alicloud/cs20151215 -S
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Issues
|
|
14
|
+
[Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
[Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
|
|
18
|
+
|
|
19
|
+
## References
|
|
20
|
+
* [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
24
|
+
|
|
25
|
+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
package/dist/client.d.ts
CHANGED
|
@@ -574,6 +574,34 @@ export declare class CreateTriggerResponse extends $tea.Model {
|
|
|
574
574
|
[key: string]: any;
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
+
export declare class DeleteAlertContactResponse extends $tea.Model {
|
|
578
|
+
headers: {
|
|
579
|
+
[key: string]: string;
|
|
580
|
+
};
|
|
581
|
+
static names(): {
|
|
582
|
+
[key: string]: string;
|
|
583
|
+
};
|
|
584
|
+
static types(): {
|
|
585
|
+
[key: string]: any;
|
|
586
|
+
};
|
|
587
|
+
constructor(map?: {
|
|
588
|
+
[key: string]: any;
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
export declare class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
592
|
+
headers: {
|
|
593
|
+
[key: string]: string;
|
|
594
|
+
};
|
|
595
|
+
static names(): {
|
|
596
|
+
[key: string]: string;
|
|
597
|
+
};
|
|
598
|
+
static types(): {
|
|
599
|
+
[key: string]: any;
|
|
600
|
+
};
|
|
601
|
+
constructor(map?: {
|
|
602
|
+
[key: string]: any;
|
|
603
|
+
});
|
|
604
|
+
}
|
|
577
605
|
export declare class DeleteClusterRequest extends $tea.Model {
|
|
578
606
|
keepSlb?: boolean;
|
|
579
607
|
retainAllResources?: boolean;
|
|
@@ -795,7 +823,7 @@ export declare class DeleteTriggerResponse extends $tea.Model {
|
|
|
795
823
|
}
|
|
796
824
|
export declare class DeployPolicyInstanceRequest extends $tea.Model {
|
|
797
825
|
action?: string;
|
|
798
|
-
|
|
826
|
+
namespaces?: string[];
|
|
799
827
|
parameters?: {
|
|
800
828
|
[key: string]: any;
|
|
801
829
|
};
|
|
@@ -2411,7 +2439,7 @@ export declare class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
2411
2439
|
export declare class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
2412
2440
|
action?: string;
|
|
2413
2441
|
instanceName?: string;
|
|
2414
|
-
|
|
2442
|
+
namespaces?: string[];
|
|
2415
2443
|
parameters?: {
|
|
2416
2444
|
[key: string]: any;
|
|
2417
2445
|
};
|
|
@@ -2562,6 +2590,46 @@ export declare class RemoveWorkflowResponse extends $tea.Model {
|
|
|
2562
2590
|
[key: string]: any;
|
|
2563
2591
|
});
|
|
2564
2592
|
}
|
|
2593
|
+
export declare class RepairClusterNodePoolRequest extends $tea.Model {
|
|
2594
|
+
nodes?: string[];
|
|
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
|
+
}
|
|
2605
|
+
export declare class RepairClusterNodePoolResponseBody extends $tea.Model {
|
|
2606
|
+
requestId?: string;
|
|
2607
|
+
taskId?: string;
|
|
2608
|
+
static names(): {
|
|
2609
|
+
[key: string]: string;
|
|
2610
|
+
};
|
|
2611
|
+
static types(): {
|
|
2612
|
+
[key: string]: any;
|
|
2613
|
+
};
|
|
2614
|
+
constructor(map?: {
|
|
2615
|
+
[key: string]: any;
|
|
2616
|
+
});
|
|
2617
|
+
}
|
|
2618
|
+
export declare class RepairClusterNodePoolResponse extends $tea.Model {
|
|
2619
|
+
headers: {
|
|
2620
|
+
[key: string]: string;
|
|
2621
|
+
};
|
|
2622
|
+
body: RepairClusterNodePoolResponseBody;
|
|
2623
|
+
static names(): {
|
|
2624
|
+
[key: string]: string;
|
|
2625
|
+
};
|
|
2626
|
+
static types(): {
|
|
2627
|
+
[key: string]: any;
|
|
2628
|
+
};
|
|
2629
|
+
constructor(map?: {
|
|
2630
|
+
[key: string]: any;
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2565
2633
|
export declare class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
2566
2634
|
headers: {
|
|
2567
2635
|
[key: string]: string;
|
|
@@ -2917,6 +2985,33 @@ export declare class UntagResourcesResponse extends $tea.Model {
|
|
|
2917
2985
|
[key: string]: any;
|
|
2918
2986
|
});
|
|
2919
2987
|
}
|
|
2988
|
+
export declare class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
2989
|
+
headers: {
|
|
2990
|
+
[key: string]: string;
|
|
2991
|
+
};
|
|
2992
|
+
static names(): {
|
|
2993
|
+
[key: string]: string;
|
|
2994
|
+
};
|
|
2995
|
+
static types(): {
|
|
2996
|
+
[key: string]: any;
|
|
2997
|
+
};
|
|
2998
|
+
constructor(map?: {
|
|
2999
|
+
[key: string]: any;
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
export declare class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
|
|
3003
|
+
expireHour?: number;
|
|
3004
|
+
user?: string;
|
|
3005
|
+
static names(): {
|
|
3006
|
+
[key: string]: string;
|
|
3007
|
+
};
|
|
3008
|
+
static types(): {
|
|
3009
|
+
[key: string]: any;
|
|
3010
|
+
};
|
|
3011
|
+
constructor(map?: {
|
|
3012
|
+
[key: string]: any;
|
|
3013
|
+
});
|
|
3014
|
+
}
|
|
2920
3015
|
export declare class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
2921
3016
|
headers: {
|
|
2922
3017
|
[key: string]: string;
|
|
@@ -4659,6 +4754,14 @@ export default class Client extends OpenApi {
|
|
|
4659
4754
|
createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {
|
|
4660
4755
|
[key: string]: string;
|
|
4661
4756
|
}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse>;
|
|
4757
|
+
deleteAlertContact(): Promise<DeleteAlertContactResponse>;
|
|
4758
|
+
deleteAlertContactWithOptions(headers: {
|
|
4759
|
+
[key: string]: string;
|
|
4760
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse>;
|
|
4761
|
+
deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse>;
|
|
4762
|
+
deleteAlertContactGroupWithOptions(headers: {
|
|
4763
|
+
[key: string]: string;
|
|
4764
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse>;
|
|
4662
4765
|
deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse>;
|
|
4663
4766
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
4664
4767
|
[key: string]: string;
|
|
@@ -4915,6 +5018,10 @@ export default class Client extends OpenApi {
|
|
|
4915
5018
|
removeWorkflowWithOptions(workflowName: string, headers: {
|
|
4916
5019
|
[key: string]: string;
|
|
4917
5020
|
}, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse>;
|
|
5021
|
+
repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse>;
|
|
5022
|
+
repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {
|
|
5023
|
+
[key: string]: string;
|
|
5024
|
+
}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse>;
|
|
4918
5025
|
resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse>;
|
|
4919
5026
|
resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {
|
|
4920
5027
|
[key: string]: string;
|
|
@@ -4951,8 +5058,12 @@ export default class Client extends OpenApi {
|
|
|
4951
5058
|
untagResourcesWithOptions(request: UntagResourcesRequest, headers: {
|
|
4952
5059
|
[key: string]: string;
|
|
4953
5060
|
}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse>;
|
|
4954
|
-
|
|
4955
|
-
|
|
5061
|
+
updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse>;
|
|
5062
|
+
updateContactGroupForAlertWithOptions(ClusterId: string, headers: {
|
|
5063
|
+
[key: string]: string;
|
|
5064
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse>;
|
|
5065
|
+
updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse>;
|
|
5066
|
+
updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {
|
|
4956
5067
|
[key: string]: string;
|
|
4957
5068
|
}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse>;
|
|
4958
5069
|
updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse>;
|
package/dist/client.js
CHANGED
|
@@ -851,6 +851,38 @@ class CreateTriggerResponse extends $tea.Model {
|
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
exports.CreateTriggerResponse = CreateTriggerResponse;
|
|
854
|
+
class DeleteAlertContactResponse extends $tea.Model {
|
|
855
|
+
constructor(map) {
|
|
856
|
+
super(map);
|
|
857
|
+
}
|
|
858
|
+
static names() {
|
|
859
|
+
return {
|
|
860
|
+
headers: 'headers',
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
static types() {
|
|
864
|
+
return {
|
|
865
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
exports.DeleteAlertContactResponse = DeleteAlertContactResponse;
|
|
870
|
+
class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
871
|
+
constructor(map) {
|
|
872
|
+
super(map);
|
|
873
|
+
}
|
|
874
|
+
static names() {
|
|
875
|
+
return {
|
|
876
|
+
headers: 'headers',
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
static types() {
|
|
880
|
+
return {
|
|
881
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
exports.DeleteAlertContactGroupResponse = DeleteAlertContactGroupResponse;
|
|
854
886
|
class DeleteClusterRequest extends $tea.Model {
|
|
855
887
|
constructor(map) {
|
|
856
888
|
super(map);
|
|
@@ -1136,14 +1168,14 @@ class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1136
1168
|
static names() {
|
|
1137
1169
|
return {
|
|
1138
1170
|
action: 'action',
|
|
1139
|
-
|
|
1171
|
+
namespaces: 'namespaces',
|
|
1140
1172
|
parameters: 'parameters',
|
|
1141
1173
|
};
|
|
1142
1174
|
}
|
|
1143
1175
|
static types() {
|
|
1144
1176
|
return {
|
|
1145
1177
|
action: 'string',
|
|
1146
|
-
|
|
1178
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
1147
1179
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1148
1180
|
};
|
|
1149
1181
|
}
|
|
@@ -3275,7 +3307,7 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3275
3307
|
return {
|
|
3276
3308
|
action: 'action',
|
|
3277
3309
|
instanceName: 'instance_name',
|
|
3278
|
-
|
|
3310
|
+
namespaces: 'namespaces',
|
|
3279
3311
|
parameters: 'parameters',
|
|
3280
3312
|
};
|
|
3281
3313
|
}
|
|
@@ -3283,7 +3315,7 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3283
3315
|
return {
|
|
3284
3316
|
action: 'string',
|
|
3285
3317
|
instanceName: 'string',
|
|
3286
|
-
|
|
3318
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
3287
3319
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3288
3320
|
};
|
|
3289
3321
|
}
|
|
@@ -3459,6 +3491,58 @@ class RemoveWorkflowResponse extends $tea.Model {
|
|
|
3459
3491
|
}
|
|
3460
3492
|
}
|
|
3461
3493
|
exports.RemoveWorkflowResponse = RemoveWorkflowResponse;
|
|
3494
|
+
class RepairClusterNodePoolRequest extends $tea.Model {
|
|
3495
|
+
constructor(map) {
|
|
3496
|
+
super(map);
|
|
3497
|
+
}
|
|
3498
|
+
static names() {
|
|
3499
|
+
return {
|
|
3500
|
+
nodes: 'nodes',
|
|
3501
|
+
};
|
|
3502
|
+
}
|
|
3503
|
+
static types() {
|
|
3504
|
+
return {
|
|
3505
|
+
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
3506
|
+
};
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
exports.RepairClusterNodePoolRequest = RepairClusterNodePoolRequest;
|
|
3510
|
+
class RepairClusterNodePoolResponseBody extends $tea.Model {
|
|
3511
|
+
constructor(map) {
|
|
3512
|
+
super(map);
|
|
3513
|
+
}
|
|
3514
|
+
static names() {
|
|
3515
|
+
return {
|
|
3516
|
+
requestId: 'request_id',
|
|
3517
|
+
taskId: 'task_id',
|
|
3518
|
+
};
|
|
3519
|
+
}
|
|
3520
|
+
static types() {
|
|
3521
|
+
return {
|
|
3522
|
+
requestId: 'string',
|
|
3523
|
+
taskId: 'string',
|
|
3524
|
+
};
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
exports.RepairClusterNodePoolResponseBody = RepairClusterNodePoolResponseBody;
|
|
3528
|
+
class RepairClusterNodePoolResponse extends $tea.Model {
|
|
3529
|
+
constructor(map) {
|
|
3530
|
+
super(map);
|
|
3531
|
+
}
|
|
3532
|
+
static names() {
|
|
3533
|
+
return {
|
|
3534
|
+
headers: 'headers',
|
|
3535
|
+
body: 'body',
|
|
3536
|
+
};
|
|
3537
|
+
}
|
|
3538
|
+
static types() {
|
|
3539
|
+
return {
|
|
3540
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3541
|
+
body: RepairClusterNodePoolResponseBody,
|
|
3542
|
+
};
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
exports.RepairClusterNodePoolResponse = RepairClusterNodePoolResponse;
|
|
3462
3546
|
class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
3463
3547
|
constructor(map) {
|
|
3464
3548
|
super(map);
|
|
@@ -3957,6 +4041,40 @@ class UntagResourcesResponse extends $tea.Model {
|
|
|
3957
4041
|
}
|
|
3958
4042
|
}
|
|
3959
4043
|
exports.UntagResourcesResponse = UntagResourcesResponse;
|
|
4044
|
+
class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
4045
|
+
constructor(map) {
|
|
4046
|
+
super(map);
|
|
4047
|
+
}
|
|
4048
|
+
static names() {
|
|
4049
|
+
return {
|
|
4050
|
+
headers: 'headers',
|
|
4051
|
+
};
|
|
4052
|
+
}
|
|
4053
|
+
static types() {
|
|
4054
|
+
return {
|
|
4055
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4056
|
+
};
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
exports.UpdateContactGroupForAlertResponse = UpdateContactGroupForAlertResponse;
|
|
4060
|
+
class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
|
|
4061
|
+
constructor(map) {
|
|
4062
|
+
super(map);
|
|
4063
|
+
}
|
|
4064
|
+
static names() {
|
|
4065
|
+
return {
|
|
4066
|
+
expireHour: 'expire_hour',
|
|
4067
|
+
user: 'user',
|
|
4068
|
+
};
|
|
4069
|
+
}
|
|
4070
|
+
static types() {
|
|
4071
|
+
return {
|
|
4072
|
+
expireHour: 'number',
|
|
4073
|
+
user: 'string',
|
|
4074
|
+
};
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
exports.UpdateK8sClusterUserConfigExpireRequest = UpdateK8sClusterUserConfigExpireRequest;
|
|
3960
4078
|
class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
3961
4079
|
constructor(map) {
|
|
3962
4080
|
super(map);
|
|
@@ -7244,6 +7362,50 @@ class Client extends openapi_client_1.default {
|
|
|
7244
7362
|
});
|
|
7245
7363
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
7246
7364
|
}
|
|
7365
|
+
async deleteAlertContact() {
|
|
7366
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7367
|
+
let headers = {};
|
|
7368
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
7369
|
+
}
|
|
7370
|
+
async deleteAlertContactWithOptions(headers, runtime) {
|
|
7371
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7372
|
+
headers: headers,
|
|
7373
|
+
});
|
|
7374
|
+
let params = new $OpenApi.Params({
|
|
7375
|
+
action: "DeleteAlertContact",
|
|
7376
|
+
version: "2015-12-15",
|
|
7377
|
+
protocol: "HTTPS",
|
|
7378
|
+
pathname: `/alert/contacts`,
|
|
7379
|
+
method: "DELETE",
|
|
7380
|
+
authType: "AK",
|
|
7381
|
+
style: "ROA",
|
|
7382
|
+
reqBodyType: "json",
|
|
7383
|
+
bodyType: "none",
|
|
7384
|
+
});
|
|
7385
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
7386
|
+
}
|
|
7387
|
+
async deleteAlertContactGroup() {
|
|
7388
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7389
|
+
let headers = {};
|
|
7390
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
7391
|
+
}
|
|
7392
|
+
async deleteAlertContactGroupWithOptions(headers, runtime) {
|
|
7393
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7394
|
+
headers: headers,
|
|
7395
|
+
});
|
|
7396
|
+
let params = new $OpenApi.Params({
|
|
7397
|
+
action: "DeleteAlertContactGroup",
|
|
7398
|
+
version: "2015-12-15",
|
|
7399
|
+
protocol: "HTTPS",
|
|
7400
|
+
pathname: `/alert/contact_groups`,
|
|
7401
|
+
method: "DELETE",
|
|
7402
|
+
authType: "AK",
|
|
7403
|
+
style: "ROA",
|
|
7404
|
+
reqBodyType: "json",
|
|
7405
|
+
bodyType: "none",
|
|
7406
|
+
});
|
|
7407
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
7408
|
+
}
|
|
7247
7409
|
async deleteCluster(ClusterId, request) {
|
|
7248
7410
|
let runtime = new $Util.RuntimeOptions({});
|
|
7249
7411
|
let headers = {};
|
|
@@ -7485,8 +7647,8 @@ class Client extends openapi_client_1.default {
|
|
|
7485
7647
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
7486
7648
|
body["action"] = request.action;
|
|
7487
7649
|
}
|
|
7488
|
-
if (!tea_util_1.default.isUnset(request.
|
|
7489
|
-
body["
|
|
7650
|
+
if (!tea_util_1.default.isUnset(request.namespaces)) {
|
|
7651
|
+
body["namespaces"] = request.namespaces;
|
|
7490
7652
|
}
|
|
7491
7653
|
if (!tea_util_1.default.isUnset(request.parameters)) {
|
|
7492
7654
|
body["parameters"] = request.parameters;
|
|
@@ -8977,8 +9139,8 @@ class Client extends openapi_client_1.default {
|
|
|
8977
9139
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
8978
9140
|
body["instance_name"] = request.instanceName;
|
|
8979
9141
|
}
|
|
8980
|
-
if (!tea_util_1.default.isUnset(request.
|
|
8981
|
-
body["
|
|
9142
|
+
if (!tea_util_1.default.isUnset(request.namespaces)) {
|
|
9143
|
+
body["namespaces"] = request.namespaces;
|
|
8982
9144
|
}
|
|
8983
9145
|
if (!tea_util_1.default.isUnset(request.parameters)) {
|
|
8984
9146
|
body["parameters"] = request.parameters;
|
|
@@ -9133,6 +9295,36 @@ class Client extends openapi_client_1.default {
|
|
|
9133
9295
|
});
|
|
9134
9296
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
9135
9297
|
}
|
|
9298
|
+
async repairClusterNodePool(clusterId, nodepoolId, request) {
|
|
9299
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9300
|
+
let headers = {};
|
|
9301
|
+
return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
9302
|
+
}
|
|
9303
|
+
async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
9304
|
+
tea_util_1.default.validateModel(request);
|
|
9305
|
+
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9306
|
+
nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
|
|
9307
|
+
let body = {};
|
|
9308
|
+
if (!tea_util_1.default.isUnset(request.nodes)) {
|
|
9309
|
+
body["nodes"] = request.nodes;
|
|
9310
|
+
}
|
|
9311
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9312
|
+
headers: headers,
|
|
9313
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
9314
|
+
});
|
|
9315
|
+
let params = new $OpenApi.Params({
|
|
9316
|
+
action: "RepairClusterNodePool",
|
|
9317
|
+
version: "2015-12-15",
|
|
9318
|
+
protocol: "HTTPS",
|
|
9319
|
+
pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
|
|
9320
|
+
method: "POST",
|
|
9321
|
+
authType: "AK",
|
|
9322
|
+
style: "ROA",
|
|
9323
|
+
reqBodyType: "json",
|
|
9324
|
+
bodyType: "json",
|
|
9325
|
+
});
|
|
9326
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
|
|
9327
|
+
}
|
|
9136
9328
|
async resumeComponentUpgrade(clusterid, componentid) {
|
|
9137
9329
|
let runtime = new $Util.RuntimeOptions({});
|
|
9138
9330
|
let headers = {};
|
|
@@ -9566,16 +9758,48 @@ class Client extends openapi_client_1.default {
|
|
|
9566
9758
|
});
|
|
9567
9759
|
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
9568
9760
|
}
|
|
9569
|
-
async
|
|
9761
|
+
async updateContactGroupForAlert(ClusterId) {
|
|
9570
9762
|
let runtime = new $Util.RuntimeOptions({});
|
|
9571
9763
|
let headers = {};
|
|
9572
|
-
return await this.
|
|
9764
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
9573
9765
|
}
|
|
9574
|
-
async
|
|
9766
|
+
async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
|
|
9575
9767
|
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9576
9768
|
let req = new $OpenApi.OpenApiRequest({
|
|
9577
9769
|
headers: headers,
|
|
9578
9770
|
});
|
|
9771
|
+
let params = new $OpenApi.Params({
|
|
9772
|
+
action: "UpdateContactGroupForAlert",
|
|
9773
|
+
version: "2015-12-15",
|
|
9774
|
+
protocol: "HTTPS",
|
|
9775
|
+
pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
|
|
9776
|
+
method: "POST",
|
|
9777
|
+
authType: "AK",
|
|
9778
|
+
style: "ROA",
|
|
9779
|
+
reqBodyType: "json",
|
|
9780
|
+
bodyType: "none",
|
|
9781
|
+
});
|
|
9782
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
9783
|
+
}
|
|
9784
|
+
async updateK8sClusterUserConfigExpire(ClusterId, request) {
|
|
9785
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9786
|
+
let headers = {};
|
|
9787
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
9788
|
+
}
|
|
9789
|
+
async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
|
|
9790
|
+
tea_util_1.default.validateModel(request);
|
|
9791
|
+
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9792
|
+
let body = {};
|
|
9793
|
+
if (!tea_util_1.default.isUnset(request.expireHour)) {
|
|
9794
|
+
body["expire_hour"] = request.expireHour;
|
|
9795
|
+
}
|
|
9796
|
+
if (!tea_util_1.default.isUnset(request.user)) {
|
|
9797
|
+
body["user"] = request.user;
|
|
9798
|
+
}
|
|
9799
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9800
|
+
headers: headers,
|
|
9801
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
9802
|
+
});
|
|
9579
9803
|
let params = new $OpenApi.Params({
|
|
9580
9804
|
action: "UpdateK8sClusterUserConfigExpire",
|
|
9581
9805
|
version: "2015-12-15",
|