@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/dist/client.d.ts
CHANGED
|
@@ -573,6 +573,34 @@ export declare class CreateTriggerResponse extends $tea.Model {
|
|
|
573
573
|
[key: string]: any;
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
+
export declare class DeleteAlertContactResponse extends $tea.Model {
|
|
577
|
+
headers: {
|
|
578
|
+
[key: string]: string;
|
|
579
|
+
};
|
|
580
|
+
static names(): {
|
|
581
|
+
[key: string]: string;
|
|
582
|
+
};
|
|
583
|
+
static types(): {
|
|
584
|
+
[key: string]: any;
|
|
585
|
+
};
|
|
586
|
+
constructor(map?: {
|
|
587
|
+
[key: string]: any;
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
export declare class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
591
|
+
headers: {
|
|
592
|
+
[key: string]: string;
|
|
593
|
+
};
|
|
594
|
+
static names(): {
|
|
595
|
+
[key: string]: string;
|
|
596
|
+
};
|
|
597
|
+
static types(): {
|
|
598
|
+
[key: string]: any;
|
|
599
|
+
};
|
|
600
|
+
constructor(map?: {
|
|
601
|
+
[key: string]: any;
|
|
602
|
+
});
|
|
603
|
+
}
|
|
576
604
|
export declare class DeleteClusterRequest extends $tea.Model {
|
|
577
605
|
keepSlb?: boolean;
|
|
578
606
|
retainAllResources?: boolean;
|
|
@@ -2747,6 +2775,20 @@ export declare class ScaleOutClusterResponse extends $tea.Model {
|
|
|
2747
2775
|
[key: string]: any;
|
|
2748
2776
|
});
|
|
2749
2777
|
}
|
|
2778
|
+
export declare class StartAlertResponse extends $tea.Model {
|
|
2779
|
+
headers: {
|
|
2780
|
+
[key: string]: string;
|
|
2781
|
+
};
|
|
2782
|
+
static names(): {
|
|
2783
|
+
[key: string]: string;
|
|
2784
|
+
};
|
|
2785
|
+
static types(): {
|
|
2786
|
+
[key: string]: any;
|
|
2787
|
+
};
|
|
2788
|
+
constructor(map?: {
|
|
2789
|
+
[key: string]: any;
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2750
2792
|
export declare class StartWorkflowRequest extends $tea.Model {
|
|
2751
2793
|
mappingBamOutFilename?: string;
|
|
2752
2794
|
mappingBamOutPath?: string;
|
|
@@ -2804,6 +2846,20 @@ export declare class StartWorkflowResponse extends $tea.Model {
|
|
|
2804
2846
|
[key: string]: any;
|
|
2805
2847
|
});
|
|
2806
2848
|
}
|
|
2849
|
+
export declare class StopAlertResponse extends $tea.Model {
|
|
2850
|
+
headers: {
|
|
2851
|
+
[key: string]: string;
|
|
2852
|
+
};
|
|
2853
|
+
static names(): {
|
|
2854
|
+
[key: string]: string;
|
|
2855
|
+
};
|
|
2856
|
+
static types(): {
|
|
2857
|
+
[key: string]: any;
|
|
2858
|
+
};
|
|
2859
|
+
constructor(map?: {
|
|
2860
|
+
[key: string]: any;
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2807
2863
|
export declare class TagResourcesRequest extends $tea.Model {
|
|
2808
2864
|
regionId?: string;
|
|
2809
2865
|
resourceIds?: string[];
|
|
@@ -2819,10 +2875,23 @@ export declare class TagResourcesRequest extends $tea.Model {
|
|
|
2819
2875
|
[key: string]: any;
|
|
2820
2876
|
});
|
|
2821
2877
|
}
|
|
2878
|
+
export declare class TagResourcesResponseBody extends $tea.Model {
|
|
2879
|
+
requestId?: string;
|
|
2880
|
+
static names(): {
|
|
2881
|
+
[key: string]: string;
|
|
2882
|
+
};
|
|
2883
|
+
static types(): {
|
|
2884
|
+
[key: string]: any;
|
|
2885
|
+
};
|
|
2886
|
+
constructor(map?: {
|
|
2887
|
+
[key: string]: any;
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2822
2890
|
export declare class TagResourcesResponse extends $tea.Model {
|
|
2823
2891
|
headers: {
|
|
2824
2892
|
[key: string]: string;
|
|
2825
2893
|
};
|
|
2894
|
+
body: TagResourcesResponseBody;
|
|
2826
2895
|
static names(): {
|
|
2827
2896
|
[key: string]: string;
|
|
2828
2897
|
};
|
|
@@ -2860,6 +2929,7 @@ export declare class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
2860
2929
|
});
|
|
2861
2930
|
}
|
|
2862
2931
|
export declare class UntagResourcesRequest extends $tea.Model {
|
|
2932
|
+
all?: boolean;
|
|
2863
2933
|
regionId?: string;
|
|
2864
2934
|
resourceIds?: string[];
|
|
2865
2935
|
resourceType?: string;
|
|
@@ -2874,7 +2944,34 @@ export declare class UntagResourcesRequest extends $tea.Model {
|
|
|
2874
2944
|
[key: string]: any;
|
|
2875
2945
|
});
|
|
2876
2946
|
}
|
|
2947
|
+
export declare class UntagResourcesResponseBody extends $tea.Model {
|
|
2948
|
+
requestId?: string;
|
|
2949
|
+
static names(): {
|
|
2950
|
+
[key: string]: string;
|
|
2951
|
+
};
|
|
2952
|
+
static types(): {
|
|
2953
|
+
[key: string]: any;
|
|
2954
|
+
};
|
|
2955
|
+
constructor(map?: {
|
|
2956
|
+
[key: string]: any;
|
|
2957
|
+
});
|
|
2958
|
+
}
|
|
2877
2959
|
export declare class UntagResourcesResponse extends $tea.Model {
|
|
2960
|
+
headers: {
|
|
2961
|
+
[key: string]: string;
|
|
2962
|
+
};
|
|
2963
|
+
body: UntagResourcesResponseBody;
|
|
2964
|
+
static names(): {
|
|
2965
|
+
[key: string]: string;
|
|
2966
|
+
};
|
|
2967
|
+
static types(): {
|
|
2968
|
+
[key: string]: any;
|
|
2969
|
+
};
|
|
2970
|
+
constructor(map?: {
|
|
2971
|
+
[key: string]: any;
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
export declare class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
2878
2975
|
headers: {
|
|
2879
2976
|
[key: string]: string;
|
|
2880
2977
|
};
|
|
@@ -4620,6 +4717,14 @@ export default class Client extends OpenApi {
|
|
|
4620
4717
|
createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {
|
|
4621
4718
|
[key: string]: string;
|
|
4622
4719
|
}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse>;
|
|
4720
|
+
deleteAlertContact(): Promise<DeleteAlertContactResponse>;
|
|
4721
|
+
deleteAlertContactWithOptions(headers: {
|
|
4722
|
+
[key: string]: string;
|
|
4723
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse>;
|
|
4724
|
+
deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse>;
|
|
4725
|
+
deleteAlertContactGroupWithOptions(headers: {
|
|
4726
|
+
[key: string]: string;
|
|
4727
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse>;
|
|
4623
4728
|
deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse>;
|
|
4624
4729
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
4625
4730
|
[key: string]: string;
|
|
@@ -4896,10 +5001,18 @@ export default class Client extends OpenApi {
|
|
|
4896
5001
|
scaleOutClusterWithOptions(ClusterId: string, request: ScaleOutClusterRequest, headers: {
|
|
4897
5002
|
[key: string]: string;
|
|
4898
5003
|
}, runtime: $Util.RuntimeOptions): Promise<ScaleOutClusterResponse>;
|
|
5004
|
+
startAlert(ClusterId: string): Promise<StartAlertResponse>;
|
|
5005
|
+
startAlertWithOptions(ClusterId: string, headers: {
|
|
5006
|
+
[key: string]: string;
|
|
5007
|
+
}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse>;
|
|
4899
5008
|
startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse>;
|
|
4900
5009
|
startWorkflowWithOptions(request: StartWorkflowRequest, headers: {
|
|
4901
5010
|
[key: string]: string;
|
|
4902
5011
|
}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse>;
|
|
5012
|
+
stopAlert(ClusterId: string): Promise<StopAlertResponse>;
|
|
5013
|
+
stopAlertWithOptions(ClusterId: string, headers: {
|
|
5014
|
+
[key: string]: string;
|
|
5015
|
+
}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse>;
|
|
4903
5016
|
tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse>;
|
|
4904
5017
|
tagResourcesWithOptions(request: TagResourcesRequest, headers: {
|
|
4905
5018
|
[key: string]: string;
|
|
@@ -4912,6 +5025,10 @@ export default class Client extends OpenApi {
|
|
|
4912
5025
|
untagResourcesWithOptions(request: UntagResourcesRequest, headers: {
|
|
4913
5026
|
[key: string]: string;
|
|
4914
5027
|
}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse>;
|
|
5028
|
+
updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse>;
|
|
5029
|
+
updateContactGroupForAlertWithOptions(ClusterId: string, headers: {
|
|
5030
|
+
[key: string]: string;
|
|
5031
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse>;
|
|
4915
5032
|
updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse>;
|
|
4916
5033
|
updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {
|
|
4917
5034
|
[key: string]: string;
|
package/dist/client.js
CHANGED
|
@@ -849,6 +849,38 @@ class CreateTriggerResponse extends $tea.Model {
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
exports.CreateTriggerResponse = CreateTriggerResponse;
|
|
852
|
+
class DeleteAlertContactResponse extends $tea.Model {
|
|
853
|
+
constructor(map) {
|
|
854
|
+
super(map);
|
|
855
|
+
}
|
|
856
|
+
static names() {
|
|
857
|
+
return {
|
|
858
|
+
headers: 'headers',
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
static types() {
|
|
862
|
+
return {
|
|
863
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
exports.DeleteAlertContactResponse = DeleteAlertContactResponse;
|
|
868
|
+
class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
869
|
+
constructor(map) {
|
|
870
|
+
super(map);
|
|
871
|
+
}
|
|
872
|
+
static names() {
|
|
873
|
+
return {
|
|
874
|
+
headers: 'headers',
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
static types() {
|
|
878
|
+
return {
|
|
879
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
exports.DeleteAlertContactGroupResponse = DeleteAlertContactGroupResponse;
|
|
852
884
|
class DeleteClusterRequest extends $tea.Model {
|
|
853
885
|
constructor(map) {
|
|
854
886
|
super(map);
|
|
@@ -3721,6 +3753,22 @@ class ScaleOutClusterResponse extends $tea.Model {
|
|
|
3721
3753
|
}
|
|
3722
3754
|
}
|
|
3723
3755
|
exports.ScaleOutClusterResponse = ScaleOutClusterResponse;
|
|
3756
|
+
class StartAlertResponse extends $tea.Model {
|
|
3757
|
+
constructor(map) {
|
|
3758
|
+
super(map);
|
|
3759
|
+
}
|
|
3760
|
+
static names() {
|
|
3761
|
+
return {
|
|
3762
|
+
headers: 'headers',
|
|
3763
|
+
};
|
|
3764
|
+
}
|
|
3765
|
+
static types() {
|
|
3766
|
+
return {
|
|
3767
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3768
|
+
};
|
|
3769
|
+
}
|
|
3770
|
+
}
|
|
3771
|
+
exports.StartAlertResponse = StartAlertResponse;
|
|
3724
3772
|
class StartWorkflowRequest extends $tea.Model {
|
|
3725
3773
|
constructor(map) {
|
|
3726
3774
|
super(map);
|
|
@@ -3807,6 +3855,22 @@ class StartWorkflowResponse extends $tea.Model {
|
|
|
3807
3855
|
}
|
|
3808
3856
|
}
|
|
3809
3857
|
exports.StartWorkflowResponse = StartWorkflowResponse;
|
|
3858
|
+
class StopAlertResponse extends $tea.Model {
|
|
3859
|
+
constructor(map) {
|
|
3860
|
+
super(map);
|
|
3861
|
+
}
|
|
3862
|
+
static names() {
|
|
3863
|
+
return {
|
|
3864
|
+
headers: 'headers',
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3867
|
+
static types() {
|
|
3868
|
+
return {
|
|
3869
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3870
|
+
};
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
exports.StopAlertResponse = StopAlertResponse;
|
|
3810
3874
|
class TagResourcesRequest extends $tea.Model {
|
|
3811
3875
|
constructor(map) {
|
|
3812
3876
|
super(map);
|
|
@@ -3829,6 +3893,22 @@ class TagResourcesRequest extends $tea.Model {
|
|
|
3829
3893
|
}
|
|
3830
3894
|
}
|
|
3831
3895
|
exports.TagResourcesRequest = TagResourcesRequest;
|
|
3896
|
+
class TagResourcesResponseBody extends $tea.Model {
|
|
3897
|
+
constructor(map) {
|
|
3898
|
+
super(map);
|
|
3899
|
+
}
|
|
3900
|
+
static names() {
|
|
3901
|
+
return {
|
|
3902
|
+
requestId: 'RequestId',
|
|
3903
|
+
};
|
|
3904
|
+
}
|
|
3905
|
+
static types() {
|
|
3906
|
+
return {
|
|
3907
|
+
requestId: 'string',
|
|
3908
|
+
};
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
exports.TagResourcesResponseBody = TagResourcesResponseBody;
|
|
3832
3912
|
class TagResourcesResponse extends $tea.Model {
|
|
3833
3913
|
constructor(map) {
|
|
3834
3914
|
super(map);
|
|
@@ -3836,11 +3916,13 @@ class TagResourcesResponse extends $tea.Model {
|
|
|
3836
3916
|
static names() {
|
|
3837
3917
|
return {
|
|
3838
3918
|
headers: 'headers',
|
|
3919
|
+
body: 'body',
|
|
3839
3920
|
};
|
|
3840
3921
|
}
|
|
3841
3922
|
static types() {
|
|
3842
3923
|
return {
|
|
3843
3924
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3925
|
+
body: TagResourcesResponseBody,
|
|
3844
3926
|
};
|
|
3845
3927
|
}
|
|
3846
3928
|
}
|
|
@@ -3883,6 +3965,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3883
3965
|
}
|
|
3884
3966
|
static names() {
|
|
3885
3967
|
return {
|
|
3968
|
+
all: 'all',
|
|
3886
3969
|
regionId: 'region_id',
|
|
3887
3970
|
resourceIds: 'resource_ids',
|
|
3888
3971
|
resourceType: 'resource_type',
|
|
@@ -3891,6 +3974,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3891
3974
|
}
|
|
3892
3975
|
static types() {
|
|
3893
3976
|
return {
|
|
3977
|
+
all: 'boolean',
|
|
3894
3978
|
regionId: 'string',
|
|
3895
3979
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
3896
3980
|
resourceType: 'string',
|
|
@@ -3899,6 +3983,22 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3899
3983
|
}
|
|
3900
3984
|
}
|
|
3901
3985
|
exports.UntagResourcesRequest = UntagResourcesRequest;
|
|
3986
|
+
class UntagResourcesResponseBody extends $tea.Model {
|
|
3987
|
+
constructor(map) {
|
|
3988
|
+
super(map);
|
|
3989
|
+
}
|
|
3990
|
+
static names() {
|
|
3991
|
+
return {
|
|
3992
|
+
requestId: 'RequestId',
|
|
3993
|
+
};
|
|
3994
|
+
}
|
|
3995
|
+
static types() {
|
|
3996
|
+
return {
|
|
3997
|
+
requestId: 'string',
|
|
3998
|
+
};
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
exports.UntagResourcesResponseBody = UntagResourcesResponseBody;
|
|
3902
4002
|
class UntagResourcesResponse extends $tea.Model {
|
|
3903
4003
|
constructor(map) {
|
|
3904
4004
|
super(map);
|
|
@@ -3906,15 +4006,33 @@ class UntagResourcesResponse extends $tea.Model {
|
|
|
3906
4006
|
static names() {
|
|
3907
4007
|
return {
|
|
3908
4008
|
headers: 'headers',
|
|
4009
|
+
body: 'body',
|
|
3909
4010
|
};
|
|
3910
4011
|
}
|
|
3911
4012
|
static types() {
|
|
3912
4013
|
return {
|
|
3913
4014
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4015
|
+
body: UntagResourcesResponseBody,
|
|
3914
4016
|
};
|
|
3915
4017
|
}
|
|
3916
4018
|
}
|
|
3917
4019
|
exports.UntagResourcesResponse = UntagResourcesResponse;
|
|
4020
|
+
class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
4021
|
+
constructor(map) {
|
|
4022
|
+
super(map);
|
|
4023
|
+
}
|
|
4024
|
+
static names() {
|
|
4025
|
+
return {
|
|
4026
|
+
headers: 'headers',
|
|
4027
|
+
};
|
|
4028
|
+
}
|
|
4029
|
+
static types() {
|
|
4030
|
+
return {
|
|
4031
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4032
|
+
};
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
exports.UpdateContactGroupForAlertResponse = UpdateContactGroupForAlertResponse;
|
|
3918
4036
|
class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
3919
4037
|
constructor(map) {
|
|
3920
4038
|
super(map);
|
|
@@ -6621,7 +6739,7 @@ class Client extends openapi_client_1.default {
|
|
|
6621
6739
|
action: "CancelComponentUpgrade",
|
|
6622
6740
|
version: "2015-12-15",
|
|
6623
6741
|
protocol: "HTTPS",
|
|
6624
|
-
pathname: `/clusters/${clusterId}/components
|
|
6742
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
6625
6743
|
method: "POST",
|
|
6626
6744
|
authType: "AK",
|
|
6627
6745
|
style: "ROA",
|
|
@@ -7179,6 +7297,50 @@ class Client extends openapi_client_1.default {
|
|
|
7179
7297
|
});
|
|
7180
7298
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
7181
7299
|
}
|
|
7300
|
+
async deleteAlertContact() {
|
|
7301
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7302
|
+
let headers = {};
|
|
7303
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
7304
|
+
}
|
|
7305
|
+
async deleteAlertContactWithOptions(headers, runtime) {
|
|
7306
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7307
|
+
headers: headers,
|
|
7308
|
+
});
|
|
7309
|
+
let params = new $OpenApi.Params({
|
|
7310
|
+
action: "DeleteAlertContact",
|
|
7311
|
+
version: "2015-12-15",
|
|
7312
|
+
protocol: "HTTPS",
|
|
7313
|
+
pathname: `/alert/contacts`,
|
|
7314
|
+
method: "DELETE",
|
|
7315
|
+
authType: "AK",
|
|
7316
|
+
style: "ROA",
|
|
7317
|
+
reqBodyType: "json",
|
|
7318
|
+
bodyType: "none",
|
|
7319
|
+
});
|
|
7320
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
7321
|
+
}
|
|
7322
|
+
async deleteAlertContactGroup() {
|
|
7323
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7324
|
+
let headers = {};
|
|
7325
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
7326
|
+
}
|
|
7327
|
+
async deleteAlertContactGroupWithOptions(headers, runtime) {
|
|
7328
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7329
|
+
headers: headers,
|
|
7330
|
+
});
|
|
7331
|
+
let params = new $OpenApi.Params({
|
|
7332
|
+
action: "DeleteAlertContactGroup",
|
|
7333
|
+
version: "2015-12-15",
|
|
7334
|
+
protocol: "HTTPS",
|
|
7335
|
+
pathname: `/alert/contact_groups`,
|
|
7336
|
+
method: "DELETE",
|
|
7337
|
+
authType: "AK",
|
|
7338
|
+
style: "ROA",
|
|
7339
|
+
reqBodyType: "json",
|
|
7340
|
+
bodyType: "none",
|
|
7341
|
+
});
|
|
7342
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
7343
|
+
}
|
|
7182
7344
|
async deleteCluster(ClusterId, request) {
|
|
7183
7345
|
let runtime = new $Util.RuntimeOptions({});
|
|
7184
7346
|
let headers = {};
|
|
@@ -7234,7 +7396,7 @@ class Client extends openapi_client_1.default {
|
|
|
7234
7396
|
action: "DeleteClusterNodepool",
|
|
7235
7397
|
version: "2015-12-15",
|
|
7236
7398
|
protocol: "HTTPS",
|
|
7237
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
7399
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7238
7400
|
method: "DELETE",
|
|
7239
7401
|
authType: "AK",
|
|
7240
7402
|
style: "ROA",
|
|
@@ -7351,7 +7513,7 @@ class Client extends openapi_client_1.default {
|
|
|
7351
7513
|
action: "DeletePolicyInstance",
|
|
7352
7514
|
version: "2015-12-15",
|
|
7353
7515
|
protocol: "HTTPS",
|
|
7354
|
-
pathname: `/clusters/${clusterId}/policies
|
|
7516
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7355
7517
|
method: "DELETE",
|
|
7356
7518
|
authType: "AK",
|
|
7357
7519
|
style: "ROA",
|
|
@@ -7434,7 +7596,7 @@ class Client extends openapi_client_1.default {
|
|
|
7434
7596
|
action: "DeployPolicyInstance",
|
|
7435
7597
|
version: "2015-12-15",
|
|
7436
7598
|
protocol: "HTTPS",
|
|
7437
|
-
pathname: `/clusters/${clusterId}/policies
|
|
7599
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7438
7600
|
method: "POST",
|
|
7439
7601
|
authType: "AK",
|
|
7440
7602
|
style: "ROA",
|
|
@@ -7513,7 +7675,7 @@ class Client extends openapi_client_1.default {
|
|
|
7513
7675
|
action: "DescribeClusterAddonMetadata",
|
|
7514
7676
|
version: "2015-12-15",
|
|
7515
7677
|
protocol: "HTTPS",
|
|
7516
|
-
pathname: `/clusters/${clusterId}/components
|
|
7678
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
7517
7679
|
method: "GET",
|
|
7518
7680
|
authType: "AK",
|
|
7519
7681
|
style: "ROA",
|
|
@@ -7537,7 +7699,7 @@ class Client extends openapi_client_1.default {
|
|
|
7537
7699
|
action: "DescribeClusterAddonUpgradeStatus",
|
|
7538
7700
|
version: "2015-12-15",
|
|
7539
7701
|
protocol: "HTTPS",
|
|
7540
|
-
pathname: `/clusters/${ClusterId}/components
|
|
7702
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
7541
7703
|
method: "GET",
|
|
7542
7704
|
authType: "AK",
|
|
7543
7705
|
style: "ROA",
|
|
@@ -7731,7 +7893,7 @@ class Client extends openapi_client_1.default {
|
|
|
7731
7893
|
action: "DescribeClusterNodePoolDetail",
|
|
7732
7894
|
version: "2015-12-15",
|
|
7733
7895
|
protocol: "HTTPS",
|
|
7734
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
7896
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7735
7897
|
method: "GET",
|
|
7736
7898
|
authType: "AK",
|
|
7737
7899
|
style: "ROA",
|
|
@@ -8782,7 +8944,7 @@ class Client extends openapi_client_1.default {
|
|
|
8782
8944
|
action: "ModifyClusterAddon",
|
|
8783
8945
|
version: "2015-12-15",
|
|
8784
8946
|
protocol: "HTTPS",
|
|
8785
|
-
pathname: `/clusters/${clusterId}/components
|
|
8947
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
8786
8948
|
method: "POST",
|
|
8787
8949
|
authType: "AK",
|
|
8788
8950
|
style: "ROA",
|
|
@@ -8859,7 +9021,7 @@ class Client extends openapi_client_1.default {
|
|
|
8859
9021
|
action: "ModifyClusterNodePool",
|
|
8860
9022
|
version: "2015-12-15",
|
|
8861
9023
|
protocol: "HTTPS",
|
|
8862
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
9024
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
8863
9025
|
method: "PUT",
|
|
8864
9026
|
authType: "AK",
|
|
8865
9027
|
style: "ROA",
|
|
@@ -8923,7 +9085,7 @@ class Client extends openapi_client_1.default {
|
|
|
8923
9085
|
action: "ModifyPolicyInstance",
|
|
8924
9086
|
version: "2015-12-15",
|
|
8925
9087
|
protocol: "HTTPS",
|
|
8926
|
-
pathname: `/clusters/${clusterId}/policies
|
|
9088
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
8927
9089
|
method: "PUT",
|
|
8928
9090
|
authType: "AK",
|
|
8929
9091
|
style: "ROA",
|
|
@@ -8998,7 +9160,7 @@ class Client extends openapi_client_1.default {
|
|
|
8998
9160
|
action: "PauseComponentUpgrade",
|
|
8999
9161
|
version: "2015-12-15",
|
|
9000
9162
|
protocol: "HTTPS",
|
|
9001
|
-
pathname: `/clusters/${clusterid}/components
|
|
9163
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
9002
9164
|
method: "POST",
|
|
9003
9165
|
authType: "AK",
|
|
9004
9166
|
style: "ROA",
|
|
@@ -9080,7 +9242,7 @@ class Client extends openapi_client_1.default {
|
|
|
9080
9242
|
action: "ResumeComponentUpgrade",
|
|
9081
9243
|
version: "2015-12-15",
|
|
9082
9244
|
protocol: "HTTPS",
|
|
9083
|
-
pathname: `/clusters/${clusterid}/components
|
|
9245
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
9084
9246
|
method: "POST",
|
|
9085
9247
|
authType: "AK",
|
|
9086
9248
|
style: "ROA",
|
|
@@ -9216,7 +9378,7 @@ class Client extends openapi_client_1.default {
|
|
|
9216
9378
|
action: "ScaleClusterNodePool",
|
|
9217
9379
|
version: "2015-12-15",
|
|
9218
9380
|
protocol: "HTTPS",
|
|
9219
|
-
pathname: `/clusters/${ClusterId}/nodepools
|
|
9381
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9220
9382
|
method: "POST",
|
|
9221
9383
|
authType: "AK",
|
|
9222
9384
|
style: "ROA",
|
|
@@ -9314,6 +9476,29 @@ class Client extends openapi_client_1.default {
|
|
|
9314
9476
|
});
|
|
9315
9477
|
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
9316
9478
|
}
|
|
9479
|
+
async startAlert(ClusterId) {
|
|
9480
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9481
|
+
let headers = {};
|
|
9482
|
+
return await this.startAlertWithOptions(ClusterId, headers, runtime);
|
|
9483
|
+
}
|
|
9484
|
+
async startAlertWithOptions(ClusterId, headers, runtime) {
|
|
9485
|
+
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9486
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9487
|
+
headers: headers,
|
|
9488
|
+
});
|
|
9489
|
+
let params = new $OpenApi.Params({
|
|
9490
|
+
action: "StartAlert",
|
|
9491
|
+
version: "2015-12-15",
|
|
9492
|
+
protocol: "HTTPS",
|
|
9493
|
+
pathname: `/alert/${ClusterId}/alert_rule/start`,
|
|
9494
|
+
method: "POST",
|
|
9495
|
+
authType: "AK",
|
|
9496
|
+
style: "ROA",
|
|
9497
|
+
reqBodyType: "json",
|
|
9498
|
+
bodyType: "none",
|
|
9499
|
+
});
|
|
9500
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StartAlertResponse({}));
|
|
9501
|
+
}
|
|
9317
9502
|
async startWorkflow(request) {
|
|
9318
9503
|
let runtime = new $Util.RuntimeOptions({});
|
|
9319
9504
|
let headers = {};
|
|
@@ -9396,6 +9581,29 @@ class Client extends openapi_client_1.default {
|
|
|
9396
9581
|
});
|
|
9397
9582
|
return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
9398
9583
|
}
|
|
9584
|
+
async stopAlert(ClusterId) {
|
|
9585
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9586
|
+
let headers = {};
|
|
9587
|
+
return await this.stopAlertWithOptions(ClusterId, headers, runtime);
|
|
9588
|
+
}
|
|
9589
|
+
async stopAlertWithOptions(ClusterId, headers, runtime) {
|
|
9590
|
+
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9591
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9592
|
+
headers: headers,
|
|
9593
|
+
});
|
|
9594
|
+
let params = new $OpenApi.Params({
|
|
9595
|
+
action: "StopAlert",
|
|
9596
|
+
version: "2015-12-15",
|
|
9597
|
+
protocol: "HTTPS",
|
|
9598
|
+
pathname: `/alert/${ClusterId}/alert_rule/stop`,
|
|
9599
|
+
method: "POST",
|
|
9600
|
+
authType: "AK",
|
|
9601
|
+
style: "ROA",
|
|
9602
|
+
reqBodyType: "json",
|
|
9603
|
+
bodyType: "none",
|
|
9604
|
+
});
|
|
9605
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StopAlertResponse({}));
|
|
9606
|
+
}
|
|
9399
9607
|
async tagResources(request) {
|
|
9400
9608
|
let runtime = new $Util.RuntimeOptions({});
|
|
9401
9609
|
let headers = {};
|
|
@@ -9429,7 +9637,7 @@ class Client extends openapi_client_1.default {
|
|
|
9429
9637
|
authType: "AK",
|
|
9430
9638
|
style: "ROA",
|
|
9431
9639
|
reqBodyType: "json",
|
|
9432
|
-
bodyType: "
|
|
9640
|
+
bodyType: "json",
|
|
9433
9641
|
});
|
|
9434
9642
|
return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
9435
9643
|
}
|
|
@@ -9466,6 +9674,9 @@ class Client extends openapi_client_1.default {
|
|
|
9466
9674
|
async untagResourcesWithOptions(request, headers, runtime) {
|
|
9467
9675
|
tea_util_1.default.validateModel(request);
|
|
9468
9676
|
let query = {};
|
|
9677
|
+
if (!tea_util_1.default.isUnset(request.all)) {
|
|
9678
|
+
query["all"] = request.all;
|
|
9679
|
+
}
|
|
9469
9680
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
9470
9681
|
query["region_id"] = request.regionId;
|
|
9471
9682
|
}
|
|
@@ -9491,10 +9702,33 @@ class Client extends openapi_client_1.default {
|
|
|
9491
9702
|
authType: "AK",
|
|
9492
9703
|
style: "ROA",
|
|
9493
9704
|
reqBodyType: "json",
|
|
9494
|
-
bodyType: "
|
|
9705
|
+
bodyType: "json",
|
|
9495
9706
|
});
|
|
9496
9707
|
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
9497
9708
|
}
|
|
9709
|
+
async updateContactGroupForAlert(ClusterId) {
|
|
9710
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9711
|
+
let headers = {};
|
|
9712
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
9713
|
+
}
|
|
9714
|
+
async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
|
|
9715
|
+
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9716
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9717
|
+
headers: headers,
|
|
9718
|
+
});
|
|
9719
|
+
let params = new $OpenApi.Params({
|
|
9720
|
+
action: "UpdateContactGroupForAlert",
|
|
9721
|
+
version: "2015-12-15",
|
|
9722
|
+
protocol: "HTTPS",
|
|
9723
|
+
pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
|
|
9724
|
+
method: "POST",
|
|
9725
|
+
authType: "AK",
|
|
9726
|
+
style: "ROA",
|
|
9727
|
+
reqBodyType: "json",
|
|
9728
|
+
bodyType: "none",
|
|
9729
|
+
});
|
|
9730
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
9731
|
+
}
|
|
9498
9732
|
async updateK8sClusterUserConfigExpire(ClusterId) {
|
|
9499
9733
|
let runtime = new $Util.RuntimeOptions({});
|
|
9500
9734
|
let headers = {};
|