@alicloud/cs20151215 3.3.5 → 4.0.0
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 +238 -10
- package/dist/client.js +431 -19
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +508 -17
package/dist/client.d.ts
CHANGED
|
@@ -826,11 +826,60 @@ export declare class CreateTriggerResponse extends $tea.Model {
|
|
|
826
826
|
[key: string]: any;
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
+
export declare class DeleteAlertContactRequest extends $tea.Model {
|
|
830
|
+
contactIds?: number[];
|
|
831
|
+
static names(): {
|
|
832
|
+
[key: string]: string;
|
|
833
|
+
};
|
|
834
|
+
static types(): {
|
|
835
|
+
[key: string]: any;
|
|
836
|
+
};
|
|
837
|
+
constructor(map?: {
|
|
838
|
+
[key: string]: any;
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
export declare class DeleteAlertContactShrinkRequest extends $tea.Model {
|
|
842
|
+
contactIdsShrink?: string;
|
|
843
|
+
static names(): {
|
|
844
|
+
[key: string]: string;
|
|
845
|
+
};
|
|
846
|
+
static types(): {
|
|
847
|
+
[key: string]: any;
|
|
848
|
+
};
|
|
849
|
+
constructor(map?: {
|
|
850
|
+
[key: string]: any;
|
|
851
|
+
});
|
|
852
|
+
}
|
|
829
853
|
export declare class DeleteAlertContactResponse extends $tea.Model {
|
|
830
854
|
headers?: {
|
|
831
855
|
[key: string]: string;
|
|
832
856
|
};
|
|
833
857
|
statusCode?: number;
|
|
858
|
+
body?: DeleteAlertContactResponseBody;
|
|
859
|
+
static names(): {
|
|
860
|
+
[key: string]: string;
|
|
861
|
+
};
|
|
862
|
+
static types(): {
|
|
863
|
+
[key: string]: any;
|
|
864
|
+
};
|
|
865
|
+
constructor(map?: {
|
|
866
|
+
[key: string]: any;
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
export declare class DeleteAlertContactGroupRequest extends $tea.Model {
|
|
870
|
+
contactGroupIds?: number[];
|
|
871
|
+
static names(): {
|
|
872
|
+
[key: string]: string;
|
|
873
|
+
};
|
|
874
|
+
static types(): {
|
|
875
|
+
[key: string]: any;
|
|
876
|
+
};
|
|
877
|
+
constructor(map?: {
|
|
878
|
+
[key: string]: any;
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
export declare class DeleteAlertContactGroupShrinkRequest extends $tea.Model {
|
|
882
|
+
contactGroupIdsShrink?: string;
|
|
834
883
|
static names(): {
|
|
835
884
|
[key: string]: string;
|
|
836
885
|
};
|
|
@@ -846,6 +895,7 @@ export declare class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
|
846
895
|
[key: string]: string;
|
|
847
896
|
};
|
|
848
897
|
statusCode?: number;
|
|
898
|
+
body?: DeleteAlertContactGroupResponseBody[];
|
|
849
899
|
static names(): {
|
|
850
900
|
[key: string]: string;
|
|
851
901
|
};
|
|
@@ -1695,6 +1745,18 @@ export declare class DescribeClusterNodesResponse extends $tea.Model {
|
|
|
1695
1745
|
[key: string]: any;
|
|
1696
1746
|
});
|
|
1697
1747
|
}
|
|
1748
|
+
export declare class DescribeClusterResourcesRequest extends $tea.Model {
|
|
1749
|
+
withAddonResources?: boolean;
|
|
1750
|
+
static names(): {
|
|
1751
|
+
[key: string]: string;
|
|
1752
|
+
};
|
|
1753
|
+
static types(): {
|
|
1754
|
+
[key: string]: any;
|
|
1755
|
+
};
|
|
1756
|
+
constructor(map?: {
|
|
1757
|
+
[key: string]: any;
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1698
1760
|
export declare class DescribeClusterResourcesResponse extends $tea.Model {
|
|
1699
1761
|
headers?: {
|
|
1700
1762
|
[key: string]: string;
|
|
@@ -3013,6 +3075,7 @@ export declare class ListClusterAddonInstancesResponse extends $tea.Model {
|
|
|
3013
3075
|
});
|
|
3014
3076
|
}
|
|
3015
3077
|
export declare class ListClusterChecksRequest extends $tea.Model {
|
|
3078
|
+
target?: string;
|
|
3016
3079
|
type?: string;
|
|
3017
3080
|
static names(): {
|
|
3018
3081
|
[key: string]: string;
|
|
@@ -3752,6 +3815,7 @@ export declare class RunClusterCheckRequest extends $tea.Model {
|
|
|
3752
3815
|
options?: {
|
|
3753
3816
|
[key: string]: string;
|
|
3754
3817
|
};
|
|
3818
|
+
target?: string;
|
|
3755
3819
|
type?: string;
|
|
3756
3820
|
static names(): {
|
|
3757
3821
|
[key: string]: string;
|
|
@@ -3983,6 +4047,19 @@ export declare class ScanClusterVulsResponse extends $tea.Model {
|
|
|
3983
4047
|
[key: string]: any;
|
|
3984
4048
|
});
|
|
3985
4049
|
}
|
|
4050
|
+
export declare class StartAlertRequest extends $tea.Model {
|
|
4051
|
+
alertRuleGroupName?: string;
|
|
4052
|
+
alertRuleName?: string;
|
|
4053
|
+
static names(): {
|
|
4054
|
+
[key: string]: string;
|
|
4055
|
+
};
|
|
4056
|
+
static types(): {
|
|
4057
|
+
[key: string]: any;
|
|
4058
|
+
};
|
|
4059
|
+
constructor(map?: {
|
|
4060
|
+
[key: string]: any;
|
|
4061
|
+
});
|
|
4062
|
+
}
|
|
3986
4063
|
export declare class StartAlertResponseBody extends $tea.Model {
|
|
3987
4064
|
msg?: string;
|
|
3988
4065
|
status?: boolean;
|
|
@@ -4070,6 +4147,19 @@ export declare class StartWorkflowResponse extends $tea.Model {
|
|
|
4070
4147
|
[key: string]: any;
|
|
4071
4148
|
});
|
|
4072
4149
|
}
|
|
4150
|
+
export declare class StopAlertRequest extends $tea.Model {
|
|
4151
|
+
alertRuleGroupName?: string;
|
|
4152
|
+
alertRuleName?: string;
|
|
4153
|
+
static names(): {
|
|
4154
|
+
[key: string]: string;
|
|
4155
|
+
};
|
|
4156
|
+
static types(): {
|
|
4157
|
+
[key: string]: any;
|
|
4158
|
+
};
|
|
4159
|
+
constructor(map?: {
|
|
4160
|
+
[key: string]: any;
|
|
4161
|
+
});
|
|
4162
|
+
}
|
|
4073
4163
|
export declare class StopAlertResponseBody extends $tea.Model {
|
|
4074
4164
|
msg?: string;
|
|
4075
4165
|
status?: boolean;
|
|
@@ -4376,6 +4466,34 @@ export declare class UpdateTemplateResponse extends $tea.Model {
|
|
|
4376
4466
|
[key: string]: any;
|
|
4377
4467
|
});
|
|
4378
4468
|
}
|
|
4469
|
+
export declare class UpdateUserPermissionsRequest extends $tea.Model {
|
|
4470
|
+
body?: UpdateUserPermissionsRequestBody[];
|
|
4471
|
+
mode?: string;
|
|
4472
|
+
static names(): {
|
|
4473
|
+
[key: string]: string;
|
|
4474
|
+
};
|
|
4475
|
+
static types(): {
|
|
4476
|
+
[key: string]: any;
|
|
4477
|
+
};
|
|
4478
|
+
constructor(map?: {
|
|
4479
|
+
[key: string]: any;
|
|
4480
|
+
});
|
|
4481
|
+
}
|
|
4482
|
+
export declare class UpdateUserPermissionsResponse extends $tea.Model {
|
|
4483
|
+
headers?: {
|
|
4484
|
+
[key: string]: string;
|
|
4485
|
+
};
|
|
4486
|
+
statusCode?: number;
|
|
4487
|
+
static names(): {
|
|
4488
|
+
[key: string]: string;
|
|
4489
|
+
};
|
|
4490
|
+
static types(): {
|
|
4491
|
+
[key: string]: any;
|
|
4492
|
+
};
|
|
4493
|
+
constructor(map?: {
|
|
4494
|
+
[key: string]: any;
|
|
4495
|
+
});
|
|
4496
|
+
}
|
|
4379
4497
|
export declare class UpgradeClusterRequest extends $tea.Model {
|
|
4380
4498
|
componentName?: string;
|
|
4381
4499
|
masterOnly?: boolean;
|
|
@@ -4451,6 +4569,8 @@ export declare class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
4451
4569
|
export declare class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
4452
4570
|
imageId?: string;
|
|
4453
4571
|
kubernetesVersion?: string;
|
|
4572
|
+
nodeNames?: string[];
|
|
4573
|
+
rollingPolicy?: UpgradeClusterNodepoolRequestRollingPolicy;
|
|
4454
4574
|
runtimeType?: string;
|
|
4455
4575
|
runtimeVersion?: string;
|
|
4456
4576
|
useReplace?: boolean;
|
|
@@ -5031,6 +5151,46 @@ export declare class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
5031
5151
|
[key: string]: any;
|
|
5032
5152
|
});
|
|
5033
5153
|
}
|
|
5154
|
+
export declare class DeleteAlertContactResponseBodyBody extends $tea.Model {
|
|
5155
|
+
status?: boolean;
|
|
5156
|
+
msg?: string;
|
|
5157
|
+
contactId?: string;
|
|
5158
|
+
static names(): {
|
|
5159
|
+
[key: string]: string;
|
|
5160
|
+
};
|
|
5161
|
+
static types(): {
|
|
5162
|
+
[key: string]: any;
|
|
5163
|
+
};
|
|
5164
|
+
constructor(map?: {
|
|
5165
|
+
[key: string]: any;
|
|
5166
|
+
});
|
|
5167
|
+
}
|
|
5168
|
+
export declare class DeleteAlertContactResponseBody extends $tea.Model {
|
|
5169
|
+
body?: DeleteAlertContactResponseBodyBody[];
|
|
5170
|
+
static names(): {
|
|
5171
|
+
[key: string]: string;
|
|
5172
|
+
};
|
|
5173
|
+
static types(): {
|
|
5174
|
+
[key: string]: any;
|
|
5175
|
+
};
|
|
5176
|
+
constructor(map?: {
|
|
5177
|
+
[key: string]: any;
|
|
5178
|
+
});
|
|
5179
|
+
}
|
|
5180
|
+
export declare class DeleteAlertContactGroupResponseBody extends $tea.Model {
|
|
5181
|
+
status?: boolean;
|
|
5182
|
+
msg?: string;
|
|
5183
|
+
contactGroupId?: string;
|
|
5184
|
+
static names(): {
|
|
5185
|
+
[key: string]: string;
|
|
5186
|
+
};
|
|
5187
|
+
static types(): {
|
|
5188
|
+
[key: string]: any;
|
|
5189
|
+
};
|
|
5190
|
+
constructor(map?: {
|
|
5191
|
+
[key: string]: any;
|
|
5192
|
+
});
|
|
5193
|
+
}
|
|
5034
5194
|
export declare class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
|
|
5035
5195
|
minimumClusterVersion?: string;
|
|
5036
5196
|
upgradable?: boolean;
|
|
@@ -5751,6 +5911,33 @@ export declare class DescribeClusterResourcesResponseBodyDependencies extends $t
|
|
|
5751
5911
|
[key: string]: any;
|
|
5752
5912
|
});
|
|
5753
5913
|
}
|
|
5914
|
+
export declare class DescribeClusterResourcesResponseBodyAssociatedObject extends $tea.Model {
|
|
5915
|
+
kind?: string;
|
|
5916
|
+
namespace?: string;
|
|
5917
|
+
name?: string;
|
|
5918
|
+
static names(): {
|
|
5919
|
+
[key: string]: string;
|
|
5920
|
+
};
|
|
5921
|
+
static types(): {
|
|
5922
|
+
[key: string]: any;
|
|
5923
|
+
};
|
|
5924
|
+
constructor(map?: {
|
|
5925
|
+
[key: string]: any;
|
|
5926
|
+
});
|
|
5927
|
+
}
|
|
5928
|
+
export declare class DescribeClusterResourcesResponseBodyDeleteBehavior extends $tea.Model {
|
|
5929
|
+
deleteByDefault?: boolean;
|
|
5930
|
+
changeable?: boolean;
|
|
5931
|
+
static names(): {
|
|
5932
|
+
[key: string]: string;
|
|
5933
|
+
};
|
|
5934
|
+
static types(): {
|
|
5935
|
+
[key: string]: any;
|
|
5936
|
+
};
|
|
5937
|
+
constructor(map?: {
|
|
5938
|
+
[key: string]: any;
|
|
5939
|
+
});
|
|
5940
|
+
}
|
|
5754
5941
|
export declare class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
5755
5942
|
clusterId?: string;
|
|
5756
5943
|
created?: string;
|
|
@@ -5760,6 +5947,12 @@ export declare class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
5760
5947
|
state?: string;
|
|
5761
5948
|
autoCreate?: number;
|
|
5762
5949
|
dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
|
|
5950
|
+
associatedObject?: DescribeClusterResourcesResponseBodyAssociatedObject;
|
|
5951
|
+
deleteBehavior?: DescribeClusterResourcesResponseBodyDeleteBehavior;
|
|
5952
|
+
creatorType?: string;
|
|
5953
|
+
extraInfo?: {
|
|
5954
|
+
[key: string]: any;
|
|
5955
|
+
};
|
|
5763
5956
|
static names(): {
|
|
5764
5957
|
[key: string]: string;
|
|
5765
5958
|
};
|
|
@@ -7005,6 +7198,23 @@ export declare class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
7005
7198
|
[key: string]: any;
|
|
7006
7199
|
});
|
|
7007
7200
|
}
|
|
7201
|
+
export declare class UpdateUserPermissionsRequestBody extends $tea.Model {
|
|
7202
|
+
cluster?: string;
|
|
7203
|
+
isCustom?: boolean;
|
|
7204
|
+
isRamRole?: boolean;
|
|
7205
|
+
namespace?: string;
|
|
7206
|
+
roleName?: string;
|
|
7207
|
+
roleType?: string;
|
|
7208
|
+
static names(): {
|
|
7209
|
+
[key: string]: string;
|
|
7210
|
+
};
|
|
7211
|
+
static types(): {
|
|
7212
|
+
[key: string]: any;
|
|
7213
|
+
};
|
|
7214
|
+
constructor(map?: {
|
|
7215
|
+
[key: string]: any;
|
|
7216
|
+
});
|
|
7217
|
+
}
|
|
7008
7218
|
export declare class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
7009
7219
|
componentName?: string;
|
|
7010
7220
|
config?: string;
|
|
@@ -7021,6 +7231,20 @@ export declare class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
7021
7231
|
[key: string]: any;
|
|
7022
7232
|
});
|
|
7023
7233
|
}
|
|
7234
|
+
export declare class UpgradeClusterNodepoolRequestRollingPolicy extends $tea.Model {
|
|
7235
|
+
batchInterval?: number;
|
|
7236
|
+
maxParallelism?: number;
|
|
7237
|
+
pausePolicy?: string;
|
|
7238
|
+
static names(): {
|
|
7239
|
+
[key: string]: string;
|
|
7240
|
+
};
|
|
7241
|
+
static types(): {
|
|
7242
|
+
[key: string]: any;
|
|
7243
|
+
};
|
|
7244
|
+
constructor(map?: {
|
|
7245
|
+
[key: string]: any;
|
|
7246
|
+
});
|
|
7247
|
+
}
|
|
7024
7248
|
export default class Client extends OpenApi {
|
|
7025
7249
|
constructor(config: $OpenApi.Config);
|
|
7026
7250
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
@@ -7124,14 +7348,14 @@ export default class Client extends OpenApi {
|
|
|
7124
7348
|
[key: string]: string;
|
|
7125
7349
|
}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse>;
|
|
7126
7350
|
createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse>;
|
|
7127
|
-
deleteAlertContactWithOptions(headers: {
|
|
7351
|
+
deleteAlertContactWithOptions(tmpReq: DeleteAlertContactRequest, headers: {
|
|
7128
7352
|
[key: string]: string;
|
|
7129
7353
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse>;
|
|
7130
|
-
deleteAlertContact(): Promise<DeleteAlertContactResponse>;
|
|
7131
|
-
deleteAlertContactGroupWithOptions(headers: {
|
|
7354
|
+
deleteAlertContact(request: DeleteAlertContactRequest): Promise<DeleteAlertContactResponse>;
|
|
7355
|
+
deleteAlertContactGroupWithOptions(tmpReq: DeleteAlertContactGroupRequest, headers: {
|
|
7132
7356
|
[key: string]: string;
|
|
7133
7357
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse>;
|
|
7134
|
-
deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse>;
|
|
7358
|
+
deleteAlertContactGroup(request: DeleteAlertContactGroupRequest): Promise<DeleteAlertContactGroupResponse>;
|
|
7135
7359
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
7136
7360
|
[key: string]: string;
|
|
7137
7361
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse>;
|
|
@@ -7320,10 +7544,10 @@ export default class Client extends OpenApi {
|
|
|
7320
7544
|
[key: string]: string;
|
|
7321
7545
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodesResponse>;
|
|
7322
7546
|
describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse>;
|
|
7323
|
-
describeClusterResourcesWithOptions(ClusterId: string, headers: {
|
|
7547
|
+
describeClusterResourcesWithOptions(ClusterId: string, request: DescribeClusterResourcesRequest, headers: {
|
|
7324
7548
|
[key: string]: string;
|
|
7325
7549
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse>;
|
|
7326
|
-
describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse>;
|
|
7550
|
+
describeClusterResources(ClusterId: string, request: DescribeClusterResourcesRequest): Promise<DescribeClusterResourcesResponse>;
|
|
7327
7551
|
describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {
|
|
7328
7552
|
[key: string]: string;
|
|
7329
7553
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse>;
|
|
@@ -7844,18 +8068,18 @@ export default class Client extends OpenApi {
|
|
|
7844
8068
|
[key: string]: string;
|
|
7845
8069
|
}, runtime: $Util.RuntimeOptions): Promise<ScanClusterVulsResponse>;
|
|
7846
8070
|
scanClusterVuls(clusterId: string): Promise<ScanClusterVulsResponse>;
|
|
7847
|
-
startAlertWithOptions(ClusterId: string, headers: {
|
|
8071
|
+
startAlertWithOptions(ClusterId: string, request: StartAlertRequest, headers: {
|
|
7848
8072
|
[key: string]: string;
|
|
7849
8073
|
}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse>;
|
|
7850
|
-
startAlert(ClusterId: string): Promise<StartAlertResponse>;
|
|
8074
|
+
startAlert(ClusterId: string, request: StartAlertRequest): Promise<StartAlertResponse>;
|
|
7851
8075
|
startWorkflowWithOptions(request: StartWorkflowRequest, headers: {
|
|
7852
8076
|
[key: string]: string;
|
|
7853
8077
|
}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse>;
|
|
7854
8078
|
startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse>;
|
|
7855
|
-
stopAlertWithOptions(ClusterId: string, headers: {
|
|
8079
|
+
stopAlertWithOptions(ClusterId: string, request: StopAlertRequest, headers: {
|
|
7856
8080
|
[key: string]: string;
|
|
7857
8081
|
}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse>;
|
|
7858
|
-
stopAlert(ClusterId: string): Promise<StopAlertResponse>;
|
|
8082
|
+
stopAlert(ClusterId: string, request: StopAlertRequest): Promise<StopAlertResponse>;
|
|
7859
8083
|
syncClusterNodePoolWithOptions(ClusterId: string, headers: {
|
|
7860
8084
|
[key: string]: string;
|
|
7861
8085
|
}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse>;
|
|
@@ -7906,6 +8130,10 @@ export default class Client extends OpenApi {
|
|
|
7906
8130
|
[key: string]: string;
|
|
7907
8131
|
}, runtime: $Util.RuntimeOptions): Promise<UpdateTemplateResponse>;
|
|
7908
8132
|
updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse>;
|
|
8133
|
+
updateUserPermissionsWithOptions(uid: string, request: UpdateUserPermissionsRequest, headers: {
|
|
8134
|
+
[key: string]: string;
|
|
8135
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpdateUserPermissionsResponse>;
|
|
8136
|
+
updateUserPermissions(uid: string, request: UpdateUserPermissionsRequest): Promise<UpdateUserPermissionsResponse>;
|
|
7909
8137
|
upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {
|
|
7910
8138
|
[key: string]: string;
|
|
7911
8139
|
}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse>;
|