@alicloud/cms20240330 5.0.0 → 5.1.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 +72 -0
- package/dist/client.js +220 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAlertWebhookRequest.d.ts +56 -0
- package/dist/models/CreateAlertWebhookRequest.js +73 -0
- package/dist/models/CreateAlertWebhookRequest.js.map +1 -0
- package/dist/models/CreateAlertWebhookResponse.d.ts +19 -0
- package/dist/models/CreateAlertWebhookResponse.js +69 -0
- package/dist/models/CreateAlertWebhookResponse.js.map +1 -0
- package/dist/models/CreateAlertWebhookResponseBody.d.ts +23 -0
- package/dist/models/CreateAlertWebhookResponseBody.js +60 -0
- package/dist/models/CreateAlertWebhookResponseBody.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksRequest.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksRequest.js +61 -0
- package/dist/models/DeleteAlertWebhooksRequest.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksResponse.d.ts +19 -0
- package/dist/models/DeleteAlertWebhooksResponse.js +69 -0
- package/dist/models/DeleteAlertWebhooksResponse.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.js +58 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.js +58 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.js.map +1 -0
- package/dist/models/ListAlertWebhooksRequest.d.ts +29 -0
- package/dist/models/ListAlertWebhooksRequest.js +67 -0
- package/dist/models/ListAlertWebhooksRequest.js.map +1 -0
- package/dist/models/ListAlertWebhooksResponse.d.ts +19 -0
- package/dist/models/ListAlertWebhooksResponse.js +69 -0
- package/dist/models/ListAlertWebhooksResponse.js.map +1 -0
- package/dist/models/ListAlertWebhooksResponseBody.d.ts +90 -0
- package/dist/models/ListAlertWebhooksResponseBody.js +103 -0
- package/dist/models/ListAlertWebhooksResponseBody.js.map +1 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.d.ts +29 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.js +64 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.js.map +1 -0
- package/dist/models/UpdateAlertWebhookRequest.d.ts +45 -0
- package/dist/models/UpdateAlertWebhookRequest.js +71 -0
- package/dist/models/UpdateAlertWebhookRequest.js.map +1 -0
- package/dist/models/UpdateAlertWebhookResponse.d.ts +19 -0
- package/dist/models/UpdateAlertWebhookResponse.js +69 -0
- package/dist/models/UpdateAlertWebhookResponse.js.map +1 -0
- package/dist/models/UpdateAlertWebhookResponseBody.d.ts +18 -0
- package/dist/models/UpdateAlertWebhookResponseBody.js +58 -0
- package/dist/models/UpdateAlertWebhookResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +40 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +248 -0
- package/src/models/CreateAlertWebhookRequest.ts +82 -0
- package/src/models/CreateAlertWebhookResponse.ts +40 -0
- package/src/models/CreateAlertWebhookResponseBody.ts +38 -0
- package/src/models/DeleteAlertWebhooksRequest.ts +34 -0
- package/src/models/DeleteAlertWebhooksResponse.ts +40 -0
- package/src/models/DeleteAlertWebhooksResponseBody.ts +31 -0
- package/src/models/DeleteAlertWebhooksShrinkRequest.ts +31 -0
- package/src/models/ListAlertWebhooksRequest.ts +51 -0
- package/src/models/ListAlertWebhooksResponse.ts +40 -0
- package/src/models/ListAlertWebhooksResponseBody.ts +137 -0
- package/src/models/ListAlertWebhooksShrinkRequest.ts +48 -0
- package/src/models/UpdateAlertWebhookRequest.ts +69 -0
- package/src/models/UpdateAlertWebhookResponse.ts +40 -0
- package/src/models/UpdateAlertWebhookResponseBody.ts +31 -0
- package/src/models/model.ts +15 -0
package/src/client.ts
CHANGED
|
@@ -280,6 +280,75 @@ export default class Client extends OpenApi {
|
|
|
280
280
|
return await this.createAggTaskGroupWithOptions(instanceId, request, headers, runtime);
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
/**
|
|
284
|
+
* 创建Webhook
|
|
285
|
+
*
|
|
286
|
+
* @param request - CreateAlertWebhookRequest
|
|
287
|
+
* @param headers - map
|
|
288
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
289
|
+
* @returns CreateAlertWebhookResponse
|
|
290
|
+
*/
|
|
291
|
+
async createAlertWebhookWithOptions(request: $_model.CreateAlertWebhookRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAlertWebhookResponse> {
|
|
292
|
+
request.validate();
|
|
293
|
+
let body : {[key: string ]: any} = { };
|
|
294
|
+
if (!$dara.isNull(request.contentType)) {
|
|
295
|
+
body["contentType"] = request.contentType;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (!$dara.isNull(request.headers)) {
|
|
299
|
+
body["headers"] = request.headers;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (!$dara.isNull(request.lang)) {
|
|
303
|
+
body["lang"] = request.lang;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (!$dara.isNull(request.method)) {
|
|
307
|
+
body["method"] = request.method;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (!$dara.isNull(request.name)) {
|
|
311
|
+
body["name"] = request.name;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (!$dara.isNull(request.url)) {
|
|
315
|
+
body["url"] = request.url;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (!$dara.isNull(request.webhookId)) {
|
|
319
|
+
body["webhookId"] = request.webhookId;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
323
|
+
headers: headers,
|
|
324
|
+
body: OpenApiUtil.parseToMap(body),
|
|
325
|
+
});
|
|
326
|
+
let params = new $OpenApiUtil.Params({
|
|
327
|
+
action: "CreateAlertWebhook",
|
|
328
|
+
version: "2024-03-30",
|
|
329
|
+
protocol: "HTTPS",
|
|
330
|
+
pathname: `/webhook`,
|
|
331
|
+
method: "POST",
|
|
332
|
+
authType: "AK",
|
|
333
|
+
style: "ROA",
|
|
334
|
+
reqBodyType: "json",
|
|
335
|
+
bodyType: "json",
|
|
336
|
+
});
|
|
337
|
+
return $dara.cast<$_model.CreateAlertWebhookResponse>(await this.callApi(params, req, runtime), new $_model.CreateAlertWebhookResponse({}));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* 创建Webhook
|
|
342
|
+
*
|
|
343
|
+
* @param request - CreateAlertWebhookRequest
|
|
344
|
+
* @returns CreateAlertWebhookResponse
|
|
345
|
+
*/
|
|
346
|
+
async createAlertWebhook(request: $_model.CreateAlertWebhookRequest): Promise<$_model.CreateAlertWebhookResponse> {
|
|
347
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
348
|
+
let headers : {[key: string ]: string} = { };
|
|
349
|
+
return await this.createAlertWebhookWithOptions(request, headers, runtime);
|
|
350
|
+
}
|
|
351
|
+
|
|
283
352
|
/**
|
|
284
353
|
* 创建业务链路
|
|
285
354
|
*
|
|
@@ -1246,6 +1315,57 @@ export default class Client extends OpenApi {
|
|
|
1246
1315
|
return await this.deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
1247
1316
|
}
|
|
1248
1317
|
|
|
1318
|
+
/**
|
|
1319
|
+
* 删除Webhook
|
|
1320
|
+
*
|
|
1321
|
+
* @param tmpReq - DeleteAlertWebhooksRequest
|
|
1322
|
+
* @param headers - map
|
|
1323
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1324
|
+
* @returns DeleteAlertWebhooksResponse
|
|
1325
|
+
*/
|
|
1326
|
+
async deleteAlertWebhooksWithOptions(tmpReq: $_model.DeleteAlertWebhooksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAlertWebhooksResponse> {
|
|
1327
|
+
tmpReq.validate();
|
|
1328
|
+
let request = new $_model.DeleteAlertWebhooksShrinkRequest({ });
|
|
1329
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1330
|
+
if (!$dara.isNull(tmpReq.webhookIds)) {
|
|
1331
|
+
request.webhookIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.webhookIds, "webhookIds", "json");
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
let query : {[key: string ]: any} = { };
|
|
1335
|
+
if (!$dara.isNull(request.webhookIdsShrink)) {
|
|
1336
|
+
query["webhookIds"] = request.webhookIdsShrink;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1340
|
+
headers: headers,
|
|
1341
|
+
query: OpenApiUtil.query(query),
|
|
1342
|
+
});
|
|
1343
|
+
let params = new $OpenApiUtil.Params({
|
|
1344
|
+
action: "DeleteAlertWebhooks",
|
|
1345
|
+
version: "2024-03-30",
|
|
1346
|
+
protocol: "HTTPS",
|
|
1347
|
+
pathname: `/webhooks`,
|
|
1348
|
+
method: "DELETE",
|
|
1349
|
+
authType: "AK",
|
|
1350
|
+
style: "ROA",
|
|
1351
|
+
reqBodyType: "json",
|
|
1352
|
+
bodyType: "json",
|
|
1353
|
+
});
|
|
1354
|
+
return $dara.cast<$_model.DeleteAlertWebhooksResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAlertWebhooksResponse({}));
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* 删除Webhook
|
|
1359
|
+
*
|
|
1360
|
+
* @param request - DeleteAlertWebhooksRequest
|
|
1361
|
+
* @returns DeleteAlertWebhooksResponse
|
|
1362
|
+
*/
|
|
1363
|
+
async deleteAlertWebhooks(request: $_model.DeleteAlertWebhooksRequest): Promise<$_model.DeleteAlertWebhooksResponse> {
|
|
1364
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1365
|
+
let headers : {[key: string ]: string} = { };
|
|
1366
|
+
return await this.deleteAlertWebhooksWithOptions(request, headers, runtime);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1249
1369
|
/**
|
|
1250
1370
|
* 删除业务链路
|
|
1251
1371
|
*
|
|
@@ -3156,6 +3276,69 @@ export default class Client extends OpenApi {
|
|
|
3156
3276
|
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
3157
3277
|
}
|
|
3158
3278
|
|
|
3279
|
+
/**
|
|
3280
|
+
* 查询Webhook
|
|
3281
|
+
*
|
|
3282
|
+
* @param tmpReq - ListAlertWebhooksRequest
|
|
3283
|
+
* @param headers - map
|
|
3284
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3285
|
+
* @returns ListAlertWebhooksResponse
|
|
3286
|
+
*/
|
|
3287
|
+
async listAlertWebhooksWithOptions(tmpReq: $_model.ListAlertWebhooksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertWebhooksResponse> {
|
|
3288
|
+
tmpReq.validate();
|
|
3289
|
+
let request = new $_model.ListAlertWebhooksShrinkRequest({ });
|
|
3290
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3291
|
+
if (!$dara.isNull(tmpReq.webhookIds)) {
|
|
3292
|
+
request.webhookIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.webhookIds, "webhookIds", "json");
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
let query : {[key: string ]: any} = { };
|
|
3296
|
+
if (!$dara.isNull(request.name)) {
|
|
3297
|
+
query["name"] = request.name;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3301
|
+
query["pageNumber"] = request.pageNumber;
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3305
|
+
query["pageSize"] = request.pageSize;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
if (!$dara.isNull(request.webhookIdsShrink)) {
|
|
3309
|
+
query["webhookIds"] = request.webhookIdsShrink;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3313
|
+
headers: headers,
|
|
3314
|
+
query: OpenApiUtil.query(query),
|
|
3315
|
+
});
|
|
3316
|
+
let params = new $OpenApiUtil.Params({
|
|
3317
|
+
action: "ListAlertWebhooks",
|
|
3318
|
+
version: "2024-03-30",
|
|
3319
|
+
protocol: "HTTPS",
|
|
3320
|
+
pathname: `/webhooks`,
|
|
3321
|
+
method: "GET",
|
|
3322
|
+
authType: "AK",
|
|
3323
|
+
style: "ROA",
|
|
3324
|
+
reqBodyType: "json",
|
|
3325
|
+
bodyType: "json",
|
|
3326
|
+
});
|
|
3327
|
+
return $dara.cast<$_model.ListAlertWebhooksResponse>(await this.callApi(params, req, runtime), new $_model.ListAlertWebhooksResponse({}));
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
/**
|
|
3331
|
+
* 查询Webhook
|
|
3332
|
+
*
|
|
3333
|
+
* @param request - ListAlertWebhooksRequest
|
|
3334
|
+
* @returns ListAlertWebhooksResponse
|
|
3335
|
+
*/
|
|
3336
|
+
async listAlertWebhooks(request: $_model.ListAlertWebhooksRequest): Promise<$_model.ListAlertWebhooksResponse> {
|
|
3337
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3338
|
+
let headers : {[key: string ]: string} = { };
|
|
3339
|
+
return await this.listAlertWebhooksWithOptions(request, headers, runtime);
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3159
3342
|
/**
|
|
3160
3343
|
* 业务链路列表
|
|
3161
3344
|
*
|
|
@@ -4698,6 +4881,71 @@ export default class Client extends OpenApi {
|
|
|
4698
4881
|
return await this.updateAggTaskGroupStatusWithOptions(instanceId, groupId, request, headers, runtime);
|
|
4699
4882
|
}
|
|
4700
4883
|
|
|
4884
|
+
/**
|
|
4885
|
+
* 更新Webhook
|
|
4886
|
+
*
|
|
4887
|
+
* @param request - UpdateAlertWebhookRequest
|
|
4888
|
+
* @param headers - map
|
|
4889
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4890
|
+
* @returns UpdateAlertWebhookResponse
|
|
4891
|
+
*/
|
|
4892
|
+
async updateAlertWebhookWithOptions(webhookId: string, request: $_model.UpdateAlertWebhookRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAlertWebhookResponse> {
|
|
4893
|
+
request.validate();
|
|
4894
|
+
let body : {[key: string ]: any} = { };
|
|
4895
|
+
if (!$dara.isNull(request.contentType)) {
|
|
4896
|
+
body["contentType"] = request.contentType;
|
|
4897
|
+
}
|
|
4898
|
+
|
|
4899
|
+
if (!$dara.isNull(request.headers)) {
|
|
4900
|
+
body["headers"] = request.headers;
|
|
4901
|
+
}
|
|
4902
|
+
|
|
4903
|
+
if (!$dara.isNull(request.lang)) {
|
|
4904
|
+
body["lang"] = request.lang;
|
|
4905
|
+
}
|
|
4906
|
+
|
|
4907
|
+
if (!$dara.isNull(request.method)) {
|
|
4908
|
+
body["method"] = request.method;
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
if (!$dara.isNull(request.name)) {
|
|
4912
|
+
body["name"] = request.name;
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4915
|
+
if (!$dara.isNull(request.url)) {
|
|
4916
|
+
body["url"] = request.url;
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4920
|
+
headers: headers,
|
|
4921
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4922
|
+
});
|
|
4923
|
+
let params = new $OpenApiUtil.Params({
|
|
4924
|
+
action: "UpdateAlertWebhook",
|
|
4925
|
+
version: "2024-03-30",
|
|
4926
|
+
protocol: "HTTPS",
|
|
4927
|
+
pathname: `/webhook/${$dara.URL.percentEncode(webhookId)}`,
|
|
4928
|
+
method: "PATCH",
|
|
4929
|
+
authType: "AK",
|
|
4930
|
+
style: "ROA",
|
|
4931
|
+
reqBodyType: "json",
|
|
4932
|
+
bodyType: "json",
|
|
4933
|
+
});
|
|
4934
|
+
return $dara.cast<$_model.UpdateAlertWebhookResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAlertWebhookResponse({}));
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4937
|
+
/**
|
|
4938
|
+
* 更新Webhook
|
|
4939
|
+
*
|
|
4940
|
+
* @param request - UpdateAlertWebhookRequest
|
|
4941
|
+
* @returns UpdateAlertWebhookResponse
|
|
4942
|
+
*/
|
|
4943
|
+
async updateAlertWebhook(webhookId: string, request: $_model.UpdateAlertWebhookRequest): Promise<$_model.UpdateAlertWebhookResponse> {
|
|
4944
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4945
|
+
let headers : {[key: string ]: string} = { };
|
|
4946
|
+
return await this.updateAlertWebhookWithOptions(webhookId, request, headers, runtime);
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4701
4949
|
/**
|
|
4702
4950
|
* 修改业务链路
|
|
4703
4951
|
*
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateAlertWebhookRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* JSON
|
|
9
|
+
*/
|
|
10
|
+
contentType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* headers
|
|
14
|
+
*/
|
|
15
|
+
headers?: { [key: string]: string };
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* zh_CN
|
|
19
|
+
*/
|
|
20
|
+
lang?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* GET
|
|
24
|
+
*/
|
|
25
|
+
method?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* This parameter is required.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* test
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* This parameter is required.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* https://aliyun.com/test
|
|
40
|
+
*/
|
|
41
|
+
url?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* test
|
|
45
|
+
*/
|
|
46
|
+
webhookId?: string;
|
|
47
|
+
static names(): { [key: string]: string } {
|
|
48
|
+
return {
|
|
49
|
+
contentType: 'contentType',
|
|
50
|
+
headers: 'headers',
|
|
51
|
+
lang: 'lang',
|
|
52
|
+
method: 'method',
|
|
53
|
+
name: 'name',
|
|
54
|
+
url: 'url',
|
|
55
|
+
webhookId: 'webhookId',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
contentType: 'string',
|
|
62
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
63
|
+
lang: 'string',
|
|
64
|
+
method: 'string',
|
|
65
|
+
name: 'string',
|
|
66
|
+
url: 'string',
|
|
67
|
+
webhookId: 'string',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validate() {
|
|
72
|
+
if(this.headers) {
|
|
73
|
+
$dara.Model.validateMap(this.headers);
|
|
74
|
+
}
|
|
75
|
+
super.validate();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
constructor(map?: { [key: string]: any }) {
|
|
79
|
+
super(map);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateAlertWebhookResponseBody } from "./CreateAlertWebhookResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateAlertWebhookResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateAlertWebhookResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateAlertWebhookResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateAlertWebhookResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* test
|
|
9
|
+
*/
|
|
10
|
+
alertWebhookId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
alertWebhookId: 'alertWebhookId',
|
|
19
|
+
requestId: 'requestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
alertWebhookId: 'string',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
webhookIds?: string[];
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
webhookIds: 'webhookIds',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
webhookIds: { 'type': 'array', 'itemType': 'string' },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
if(Array.isArray(this.webhookIds)) {
|
|
25
|
+
$dara.Model.validateArray(this.webhookIds);
|
|
26
|
+
}
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteAlertWebhooksResponseBody } from "./DeleteAlertWebhooksResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteAlertWebhooksResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteAlertWebhooksResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteAlertWebhooksResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* E5B1D3D4-BB28-5996-8AD2-***********
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'requestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
webhookIdsShrink?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
webhookIdsShrink: 'webhookIds',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
webhookIdsShrink: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertWebhooksRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* test
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1
|
|
14
|
+
*/
|
|
15
|
+
pageNumber?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 10
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
webhookIds?: string[];
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
name: 'name',
|
|
25
|
+
pageNumber: 'pageNumber',
|
|
26
|
+
pageSize: 'pageSize',
|
|
27
|
+
webhookIds: 'webhookIds',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
name: 'string',
|
|
34
|
+
pageNumber: 'number',
|
|
35
|
+
pageSize: 'number',
|
|
36
|
+
webhookIds: { 'type': 'array', 'itemType': 'string' },
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
if(Array.isArray(this.webhookIds)) {
|
|
42
|
+
$dara.Model.validateArray(this.webhookIds);
|
|
43
|
+
}
|
|
44
|
+
super.validate();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
constructor(map?: { [key: string]: any }) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListAlertWebhooksResponseBody } from "./ListAlertWebhooksResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListAlertWebhooksResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListAlertWebhooksResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListAlertWebhooksResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|