@alicloud/cs20151215 3.0.6 → 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 +69 -2
- package/dist/client.js +145 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +166 -3
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1091,6 +1091,44 @@ export class CreateTriggerResponse extends $tea.Model {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
+
export class DeleteAlertContactResponse extends $tea.Model {
|
|
1095
|
+
headers: { [key: string]: string };
|
|
1096
|
+
static names(): { [key: string]: string } {
|
|
1097
|
+
return {
|
|
1098
|
+
headers: 'headers',
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
static types(): { [key: string]: any } {
|
|
1103
|
+
return {
|
|
1104
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
constructor(map?: { [key: string]: any }) {
|
|
1109
|
+
super(map);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
export class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
1114
|
+
headers: { [key: string]: string };
|
|
1115
|
+
static names(): { [key: string]: string } {
|
|
1116
|
+
return {
|
|
1117
|
+
headers: 'headers',
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
static types(): { [key: string]: any } {
|
|
1122
|
+
return {
|
|
1123
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
constructor(map?: { [key: string]: any }) {
|
|
1128
|
+
super(map);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1094
1132
|
export class DeleteClusterRequest extends $tea.Model {
|
|
1095
1133
|
keepSlb?: boolean;
|
|
1096
1134
|
retainAllResources?: boolean;
|
|
@@ -5028,6 +5066,47 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5028
5066
|
}
|
|
5029
5067
|
}
|
|
5030
5068
|
|
|
5069
|
+
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
5070
|
+
headers: { [key: string]: string };
|
|
5071
|
+
static names(): { [key: string]: string } {
|
|
5072
|
+
return {
|
|
5073
|
+
headers: 'headers',
|
|
5074
|
+
};
|
|
5075
|
+
}
|
|
5076
|
+
|
|
5077
|
+
static types(): { [key: string]: any } {
|
|
5078
|
+
return {
|
|
5079
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5080
|
+
};
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
constructor(map?: { [key: string]: any }) {
|
|
5084
|
+
super(map);
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
|
|
5088
|
+
export class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
|
|
5089
|
+
expireHour?: number;
|
|
5090
|
+
user?: string;
|
|
5091
|
+
static names(): { [key: string]: string } {
|
|
5092
|
+
return {
|
|
5093
|
+
expireHour: 'expire_hour',
|
|
5094
|
+
user: 'user',
|
|
5095
|
+
};
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5098
|
+
static types(): { [key: string]: any } {
|
|
5099
|
+
return {
|
|
5100
|
+
expireHour: 'number',
|
|
5101
|
+
user: 'string',
|
|
5102
|
+
};
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
constructor(map?: { [key: string]: any }) {
|
|
5106
|
+
super(map);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5031
5110
|
export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
5032
5111
|
headers: { [key: string]: string };
|
|
5033
5112
|
static names(): { [key: string]: string } {
|
|
@@ -9263,6 +9342,54 @@ export default class Client extends OpenApi {
|
|
|
9263
9342
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
9264
9343
|
}
|
|
9265
9344
|
|
|
9345
|
+
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
9346
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
9347
|
+
let headers : {[key: string ]: string} = { };
|
|
9348
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
9349
|
+
}
|
|
9350
|
+
|
|
9351
|
+
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
9352
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9353
|
+
headers: headers,
|
|
9354
|
+
});
|
|
9355
|
+
let params = new $OpenApi.Params({
|
|
9356
|
+
action: "DeleteAlertContact",
|
|
9357
|
+
version: "2015-12-15",
|
|
9358
|
+
protocol: "HTTPS",
|
|
9359
|
+
pathname: `/alert/contacts`,
|
|
9360
|
+
method: "DELETE",
|
|
9361
|
+
authType: "AK",
|
|
9362
|
+
style: "ROA",
|
|
9363
|
+
reqBodyType: "json",
|
|
9364
|
+
bodyType: "none",
|
|
9365
|
+
});
|
|
9366
|
+
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
9367
|
+
}
|
|
9368
|
+
|
|
9369
|
+
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
9370
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
9371
|
+
let headers : {[key: string ]: string} = { };
|
|
9372
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
9373
|
+
}
|
|
9374
|
+
|
|
9375
|
+
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
9376
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9377
|
+
headers: headers,
|
|
9378
|
+
});
|
|
9379
|
+
let params = new $OpenApi.Params({
|
|
9380
|
+
action: "DeleteAlertContactGroup",
|
|
9381
|
+
version: "2015-12-15",
|
|
9382
|
+
protocol: "HTTPS",
|
|
9383
|
+
pathname: `/alert/contact_groups`,
|
|
9384
|
+
method: "DELETE",
|
|
9385
|
+
authType: "AK",
|
|
9386
|
+
style: "ROA",
|
|
9387
|
+
reqBodyType: "json",
|
|
9388
|
+
bodyType: "none",
|
|
9389
|
+
});
|
|
9390
|
+
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9266
9393
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
9267
9394
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9268
9395
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11937,16 +12064,52 @@ export default class Client extends OpenApi {
|
|
|
11937
12064
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
11938
12065
|
}
|
|
11939
12066
|
|
|
11940
|
-
async
|
|
12067
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
12068
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12069
|
+
let headers : {[key: string ]: string} = { };
|
|
12070
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
12071
|
+
}
|
|
12072
|
+
|
|
12073
|
+
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
12074
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
12075
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12076
|
+
headers: headers,
|
|
12077
|
+
});
|
|
12078
|
+
let params = new $OpenApi.Params({
|
|
12079
|
+
action: "UpdateContactGroupForAlert",
|
|
12080
|
+
version: "2015-12-15",
|
|
12081
|
+
protocol: "HTTPS",
|
|
12082
|
+
pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
|
|
12083
|
+
method: "POST",
|
|
12084
|
+
authType: "AK",
|
|
12085
|
+
style: "ROA",
|
|
12086
|
+
reqBodyType: "json",
|
|
12087
|
+
bodyType: "none",
|
|
12088
|
+
});
|
|
12089
|
+
return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
12090
|
+
}
|
|
12091
|
+
|
|
12092
|
+
async updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
11941
12093
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11942
12094
|
let headers : {[key: string ]: string} = { };
|
|
11943
|
-
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime);
|
|
12095
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
11944
12096
|
}
|
|
11945
12097
|
|
|
11946
|
-
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
12098
|
+
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
12099
|
+
Util.validateModel(request);
|
|
11947
12100
|
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
12101
|
+
let body : {[key: string ]: any} = { };
|
|
12102
|
+
if (!Util.isUnset(request.expireHour)) {
|
|
12103
|
+
body["expire_hour"] = request.expireHour;
|
|
12104
|
+
}
|
|
12105
|
+
|
|
12106
|
+
if (!Util.isUnset(request.user)) {
|
|
12107
|
+
body["user"] = request.user;
|
|
12108
|
+
}
|
|
12109
|
+
|
|
11948
12110
|
let req = new $OpenApi.OpenApiRequest({
|
|
11949
12111
|
headers: headers,
|
|
12112
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11950
12113
|
});
|
|
11951
12114
|
let params = new $OpenApi.Params({
|
|
11952
12115
|
action: "UpdateK8sClusterUserConfigExpire",
|