@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/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
|
@@ -280,6 +280,7 @@ export declare class CreateClusterRequest extends $tea.Model {
|
|
|
280
280
|
proxyMode?: string;
|
|
281
281
|
rdsInstances?: string[];
|
|
282
282
|
regionId?: string;
|
|
283
|
+
resourceGroupId?: string;
|
|
283
284
|
runtime?: Runtime;
|
|
284
285
|
securityGroupId?: string;
|
|
285
286
|
serviceAccountIssuer?: string;
|
|
@@ -573,6 +574,34 @@ export declare class CreateTriggerResponse extends $tea.Model {
|
|
|
573
574
|
[key: string]: any;
|
|
574
575
|
});
|
|
575
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
|
+
}
|
|
576
605
|
export declare class DeleteClusterRequest extends $tea.Model {
|
|
577
606
|
keepSlb?: boolean;
|
|
578
607
|
retainAllResources?: boolean;
|
|
@@ -794,7 +823,7 @@ export declare class DeleteTriggerResponse extends $tea.Model {
|
|
|
794
823
|
}
|
|
795
824
|
export declare class DeployPolicyInstanceRequest extends $tea.Model {
|
|
796
825
|
action?: string;
|
|
797
|
-
|
|
826
|
+
namespaces?: string[];
|
|
798
827
|
parameters?: {
|
|
799
828
|
[key: string]: any;
|
|
800
829
|
};
|
|
@@ -2561,6 +2590,46 @@ export declare class RemoveWorkflowResponse extends $tea.Model {
|
|
|
2561
2590
|
[key: string]: any;
|
|
2562
2591
|
});
|
|
2563
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
|
+
}
|
|
2564
2633
|
export declare class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
2565
2634
|
headers: {
|
|
2566
2635
|
[key: string]: string;
|
|
@@ -2916,6 +2985,33 @@ export declare class UntagResourcesResponse extends $tea.Model {
|
|
|
2916
2985
|
[key: string]: any;
|
|
2917
2986
|
});
|
|
2918
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
|
+
}
|
|
2919
3015
|
export declare class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
2920
3016
|
headers: {
|
|
2921
3017
|
[key: string]: string;
|
|
@@ -3187,6 +3283,7 @@ export declare class CreateClusterNodePoolRequestScalingGroup extends $tea.Model
|
|
|
3187
3283
|
compensateWithOnDemand?: boolean;
|
|
3188
3284
|
dataDisks?: DataDisk[];
|
|
3189
3285
|
deploymentsetId?: string;
|
|
3286
|
+
desiredSize?: number;
|
|
3190
3287
|
imageId?: string;
|
|
3191
3288
|
imageType?: string;
|
|
3192
3289
|
instanceChargeType?: string;
|
|
@@ -3398,6 +3495,7 @@ export declare class DescribeClusterNodePoolDetailResponseBodyScalingGroup exten
|
|
|
3398
3495
|
compensateWithOnDemand?: boolean;
|
|
3399
3496
|
dataDisks?: DataDisk[];
|
|
3400
3497
|
deploymentsetId?: string;
|
|
3498
|
+
desiredSize?: number;
|
|
3401
3499
|
imageId?: string;
|
|
3402
3500
|
instanceChargeType?: string;
|
|
3403
3501
|
instanceTypes?: string[];
|
|
@@ -3587,6 +3685,7 @@ export declare class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup e
|
|
|
3587
3685
|
compensateWithOnDemand?: boolean;
|
|
3588
3686
|
dataDisks?: DataDisk[];
|
|
3589
3687
|
deploymentsetId?: string;
|
|
3688
|
+
desiredSize?: number;
|
|
3590
3689
|
imageId?: string;
|
|
3591
3690
|
instanceChargeType?: string;
|
|
3592
3691
|
instanceTypes?: string[];
|
|
@@ -4478,6 +4577,7 @@ export declare class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model
|
|
|
4478
4577
|
autoRenewPeriod?: number;
|
|
4479
4578
|
compensateWithOnDemand?: boolean;
|
|
4480
4579
|
dataDisks?: DataDisk[];
|
|
4580
|
+
desiredSize?: number;
|
|
4481
4581
|
imageId?: string;
|
|
4482
4582
|
instanceChargeType?: string;
|
|
4483
4583
|
instanceTypes?: string[];
|
|
@@ -4654,6 +4754,14 @@ export default class Client extends OpenApi {
|
|
|
4654
4754
|
createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {
|
|
4655
4755
|
[key: string]: string;
|
|
4656
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>;
|
|
4657
4765
|
deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse>;
|
|
4658
4766
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
4659
4767
|
[key: string]: string;
|
|
@@ -4910,6 +5018,10 @@ export default class Client extends OpenApi {
|
|
|
4910
5018
|
removeWorkflowWithOptions(workflowName: string, headers: {
|
|
4911
5019
|
[key: string]: string;
|
|
4912
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>;
|
|
4913
5025
|
resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse>;
|
|
4914
5026
|
resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {
|
|
4915
5027
|
[key: string]: string;
|
|
@@ -4946,8 +5058,12 @@ export default class Client extends OpenApi {
|
|
|
4946
5058
|
untagResourcesWithOptions(request: UntagResourcesRequest, headers: {
|
|
4947
5059
|
[key: string]: string;
|
|
4948
5060
|
}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse>;
|
|
4949
|
-
|
|
4950
|
-
|
|
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: {
|
|
4951
5067
|
[key: string]: string;
|
|
4952
5068
|
}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse>;
|
|
4953
5069
|
updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse>;
|
package/dist/client.js
CHANGED
|
@@ -381,6 +381,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
381
381
|
proxyMode: 'proxy_mode',
|
|
382
382
|
rdsInstances: 'rds_instances',
|
|
383
383
|
regionId: 'region_id',
|
|
384
|
+
resourceGroupId: 'resource_group_id',
|
|
384
385
|
runtime: 'runtime',
|
|
385
386
|
securityGroupId: 'security_group_id',
|
|
386
387
|
serviceAccountIssuer: 'service_account_issuer',
|
|
@@ -468,6 +469,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
468
469
|
proxyMode: 'string',
|
|
469
470
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
470
471
|
regionId: 'string',
|
|
472
|
+
resourceGroupId: 'string',
|
|
471
473
|
runtime: Runtime,
|
|
472
474
|
securityGroupId: 'string',
|
|
473
475
|
serviceAccountIssuer: 'string',
|
|
@@ -849,6 +851,38 @@ class CreateTriggerResponse extends $tea.Model {
|
|
|
849
851
|
}
|
|
850
852
|
}
|
|
851
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;
|
|
852
886
|
class DeleteClusterRequest extends $tea.Model {
|
|
853
887
|
constructor(map) {
|
|
854
888
|
super(map);
|
|
@@ -1134,14 +1168,14 @@ class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1134
1168
|
static names() {
|
|
1135
1169
|
return {
|
|
1136
1170
|
action: 'action',
|
|
1137
|
-
|
|
1171
|
+
namespaces: 'namespaces',
|
|
1138
1172
|
parameters: 'parameters',
|
|
1139
1173
|
};
|
|
1140
1174
|
}
|
|
1141
1175
|
static types() {
|
|
1142
1176
|
return {
|
|
1143
1177
|
action: 'string',
|
|
1144
|
-
|
|
1178
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
1145
1179
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1146
1180
|
};
|
|
1147
1181
|
}
|
|
@@ -3457,6 +3491,58 @@ class RemoveWorkflowResponse extends $tea.Model {
|
|
|
3457
3491
|
}
|
|
3458
3492
|
}
|
|
3459
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;
|
|
3460
3546
|
class ResumeComponentUpgradeResponse extends $tea.Model {
|
|
3461
3547
|
constructor(map) {
|
|
3462
3548
|
super(map);
|
|
@@ -3955,6 +4041,40 @@ class UntagResourcesResponse extends $tea.Model {
|
|
|
3955
4041
|
}
|
|
3956
4042
|
}
|
|
3957
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;
|
|
3958
4078
|
class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
3959
4079
|
constructor(map) {
|
|
3960
4080
|
super(map);
|
|
@@ -4336,6 +4456,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4336
4456
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4337
4457
|
dataDisks: 'data_disks',
|
|
4338
4458
|
deploymentsetId: 'deploymentset_id',
|
|
4459
|
+
desiredSize: 'desired_size',
|
|
4339
4460
|
imageId: 'image_id',
|
|
4340
4461
|
imageType: 'image_type',
|
|
4341
4462
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -4372,6 +4493,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4372
4493
|
compensateWithOnDemand: 'boolean',
|
|
4373
4494
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4374
4495
|
deploymentsetId: 'string',
|
|
4496
|
+
desiredSize: 'number',
|
|
4375
4497
|
imageId: 'string',
|
|
4376
4498
|
imageType: 'string',
|
|
4377
4499
|
instanceChargeType: 'string',
|
|
@@ -4662,6 +4784,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4662
4784
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4663
4785
|
dataDisks: 'data_disks',
|
|
4664
4786
|
deploymentsetId: 'deploymentset_id',
|
|
4787
|
+
desiredSize: 'desired_size',
|
|
4665
4788
|
imageId: 'image_id',
|
|
4666
4789
|
instanceChargeType: 'instance_charge_type',
|
|
4667
4790
|
instanceTypes: 'instance_types',
|
|
@@ -4699,6 +4822,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4699
4822
|
compensateWithOnDemand: 'boolean',
|
|
4700
4823
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4701
4824
|
deploymentsetId: 'string',
|
|
4825
|
+
desiredSize: 'number',
|
|
4702
4826
|
imageId: 'string',
|
|
4703
4827
|
instanceChargeType: 'string',
|
|
4704
4828
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4960,6 +5084,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4960
5084
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4961
5085
|
dataDisks: 'data_disks',
|
|
4962
5086
|
deploymentsetId: 'deploymentset_id',
|
|
5087
|
+
desiredSize: 'desired_size',
|
|
4963
5088
|
imageId: 'image_id',
|
|
4964
5089
|
instanceChargeType: 'instance_charge_type',
|
|
4965
5090
|
instanceTypes: 'instance_types',
|
|
@@ -4997,6 +5122,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4997
5122
|
compensateWithOnDemand: 'boolean',
|
|
4998
5123
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4999
5124
|
deploymentsetId: 'string',
|
|
5125
|
+
desiredSize: 'number',
|
|
5000
5126
|
imageId: 'string',
|
|
5001
5127
|
instanceChargeType: 'string',
|
|
5002
5128
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6327,6 +6453,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6327
6453
|
autoRenewPeriod: 'auto_renew_period',
|
|
6328
6454
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6329
6455
|
dataDisks: 'data_disks',
|
|
6456
|
+
desiredSize: 'desired_size',
|
|
6330
6457
|
imageId: 'image_id',
|
|
6331
6458
|
instanceChargeType: 'instance_charge_type',
|
|
6332
6459
|
instanceTypes: 'instance_types',
|
|
@@ -6359,6 +6486,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6359
6486
|
autoRenewPeriod: 'number',
|
|
6360
6487
|
compensateWithOnDemand: 'boolean',
|
|
6361
6488
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6489
|
+
desiredSize: 'number',
|
|
6362
6490
|
imageId: 'string',
|
|
6363
6491
|
instanceChargeType: 'string',
|
|
6364
6492
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6922,6 +7050,9 @@ class Client extends openapi_client_1.default {
|
|
|
6922
7050
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
6923
7051
|
body["region_id"] = request.regionId;
|
|
6924
7052
|
}
|
|
7053
|
+
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
7054
|
+
body["resource_group_id"] = request.resourceGroupId;
|
|
7055
|
+
}
|
|
6925
7056
|
if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
|
|
6926
7057
|
body["runtime"] = request.runtime;
|
|
6927
7058
|
}
|
|
@@ -7231,6 +7362,50 @@ class Client extends openapi_client_1.default {
|
|
|
7231
7362
|
});
|
|
7232
7363
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
7233
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
|
+
}
|
|
7234
7409
|
async deleteCluster(ClusterId, request) {
|
|
7235
7410
|
let runtime = new $Util.RuntimeOptions({});
|
|
7236
7411
|
let headers = {};
|
|
@@ -7472,8 +7647,8 @@ class Client extends openapi_client_1.default {
|
|
|
7472
7647
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
7473
7648
|
body["action"] = request.action;
|
|
7474
7649
|
}
|
|
7475
|
-
if (!tea_util_1.default.isUnset(request.
|
|
7476
|
-
body["
|
|
7650
|
+
if (!tea_util_1.default.isUnset(request.namespaces)) {
|
|
7651
|
+
body["namespaces"] = request.namespaces;
|
|
7477
7652
|
}
|
|
7478
7653
|
if (!tea_util_1.default.isUnset(request.parameters)) {
|
|
7479
7654
|
body["parameters"] = request.parameters;
|
|
@@ -9120,6 +9295,36 @@ class Client extends openapi_client_1.default {
|
|
|
9120
9295
|
});
|
|
9121
9296
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
9122
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
|
+
}
|
|
9123
9328
|
async resumeComponentUpgrade(clusterid, componentid) {
|
|
9124
9329
|
let runtime = new $Util.RuntimeOptions({});
|
|
9125
9330
|
let headers = {};
|
|
@@ -9553,16 +9758,48 @@ class Client extends openapi_client_1.default {
|
|
|
9553
9758
|
});
|
|
9554
9759
|
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
9555
9760
|
}
|
|
9556
|
-
async
|
|
9761
|
+
async updateContactGroupForAlert(ClusterId) {
|
|
9557
9762
|
let runtime = new $Util.RuntimeOptions({});
|
|
9558
9763
|
let headers = {};
|
|
9559
|
-
return await this.
|
|
9764
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
9560
9765
|
}
|
|
9561
|
-
async
|
|
9766
|
+
async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
|
|
9562
9767
|
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9563
9768
|
let req = new $OpenApi.OpenApiRequest({
|
|
9564
9769
|
headers: headers,
|
|
9565
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
|
+
});
|
|
9566
9803
|
let params = new $OpenApi.Params({
|
|
9567
9804
|
action: "UpdateK8sClusterUserConfigExpire",
|
|
9568
9805
|
version: "2015-12-15",
|