@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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertWebhooksResponseBodyWebhooks extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* JSON
|
|
9
|
+
*/
|
|
10
|
+
contentType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* headers
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* key
|
|
17
|
+
*/
|
|
18
|
+
headers?: { [key: string]: any };
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* zh_CN
|
|
22
|
+
*/
|
|
23
|
+
lang?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* GET
|
|
27
|
+
*/
|
|
28
|
+
method?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* test
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* http://aliyun.com/test
|
|
37
|
+
*/
|
|
38
|
+
url?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* test
|
|
42
|
+
*/
|
|
43
|
+
webhookId?: string;
|
|
44
|
+
static names(): { [key: string]: string } {
|
|
45
|
+
return {
|
|
46
|
+
contentType: 'contentType',
|
|
47
|
+
headers: 'headers',
|
|
48
|
+
lang: 'lang',
|
|
49
|
+
method: 'method',
|
|
50
|
+
name: 'name',
|
|
51
|
+
url: 'url',
|
|
52
|
+
webhookId: 'webhookId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
contentType: 'string',
|
|
59
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
60
|
+
lang: 'string',
|
|
61
|
+
method: 'string',
|
|
62
|
+
name: 'string',
|
|
63
|
+
url: 'string',
|
|
64
|
+
webhookId: 'string',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
validate() {
|
|
69
|
+
if(this.headers) {
|
|
70
|
+
$dara.Model.validateMap(this.headers);
|
|
71
|
+
}
|
|
72
|
+
super.validate();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
constructor(map?: { [key: string]: any }) {
|
|
76
|
+
super(map);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class ListAlertWebhooksResponseBody extends $dara.Model {
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* 1
|
|
84
|
+
*/
|
|
85
|
+
pageNumber?: number;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* 10
|
|
89
|
+
*/
|
|
90
|
+
pageSize?: number;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* 8A33DBEA-*****-*****-*****-*****
|
|
94
|
+
*/
|
|
95
|
+
requestId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* 8
|
|
99
|
+
*/
|
|
100
|
+
total?: number;
|
|
101
|
+
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* webhooks
|
|
104
|
+
*/
|
|
105
|
+
webhooks?: ListAlertWebhooksResponseBodyWebhooks[];
|
|
106
|
+
static names(): { [key: string]: string } {
|
|
107
|
+
return {
|
|
108
|
+
pageNumber: 'pageNumber',
|
|
109
|
+
pageSize: 'pageSize',
|
|
110
|
+
requestId: 'requestId',
|
|
111
|
+
total: 'total',
|
|
112
|
+
webhooks: 'webhooks',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static types(): { [key: string]: any } {
|
|
117
|
+
return {
|
|
118
|
+
pageNumber: 'number',
|
|
119
|
+
pageSize: 'number',
|
|
120
|
+
requestId: 'string',
|
|
121
|
+
total: 'number',
|
|
122
|
+
webhooks: { 'type': 'array', 'itemType': ListAlertWebhooksResponseBodyWebhooks },
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
validate() {
|
|
127
|
+
if(Array.isArray(this.webhooks)) {
|
|
128
|
+
$dara.Model.validateArray(this.webhooks);
|
|
129
|
+
}
|
|
130
|
+
super.validate();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
constructor(map?: { [key: string]: any }) {
|
|
134
|
+
super(map);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertWebhooksShrinkRequest 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
|
+
webhookIdsShrink?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
name: 'name',
|
|
25
|
+
pageNumber: 'pageNumber',
|
|
26
|
+
pageSize: 'pageSize',
|
|
27
|
+
webhookIdsShrink: 'webhookIds',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
name: 'string',
|
|
34
|
+
pageNumber: 'number',
|
|
35
|
+
pageSize: 'number',
|
|
36
|
+
webhookIdsShrink: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateAlertWebhookRequest 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
|
+
* @example
|
|
28
|
+
* test
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* http://aliyun.com/test
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
contentType: 'contentType',
|
|
39
|
+
headers: 'headers',
|
|
40
|
+
lang: 'lang',
|
|
41
|
+
method: 'method',
|
|
42
|
+
name: 'name',
|
|
43
|
+
url: 'url',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
contentType: 'string',
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
lang: 'string',
|
|
52
|
+
method: 'string',
|
|
53
|
+
name: 'string',
|
|
54
|
+
url: 'string',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
validate() {
|
|
59
|
+
if(this.headers) {
|
|
60
|
+
$dara.Model.validateMap(this.headers);
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
constructor(map?: { [key: string]: any }) {
|
|
66
|
+
super(map);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { UpdateAlertWebhookResponseBody } from "./UpdateAlertWebhookResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class UpdateAlertWebhookResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: UpdateAlertWebhookResponseBody;
|
|
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: UpdateAlertWebhookResponseBody,
|
|
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 UpdateAlertWebhookResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 8A33DBEA-*****-*****-*****-*****
|
|
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
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -144,6 +144,7 @@ export { ListAlertActionsResponseBodyAlertActionsPagerDutyParam } from './ListAl
|
|
|
144
144
|
export { ListAlertActionsResponseBodyAlertActionsSlsParam } from './ListAlertActionsResponseBody';
|
|
145
145
|
export { ListAlertActionsResponseBodyAlertActionsWebhookParam } from './ListAlertActionsResponseBody';
|
|
146
146
|
export { ListAlertActionsResponseBodyAlertActions } from './ListAlertActionsResponseBody';
|
|
147
|
+
export { ListAlertWebhooksResponseBodyWebhooks } from './ListAlertWebhooksResponseBody';
|
|
147
148
|
export { ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledgesBailian } from './ListDigitalEmployeesResponseBody';
|
|
148
149
|
export { ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledges } from './ListDigitalEmployeesResponseBody';
|
|
149
150
|
export { ListDigitalEmployeesResponseBodyDigitalEmployees } from './ListDigitalEmployeesResponseBody';
|
|
@@ -280,6 +281,9 @@ export { CreateAddonReleaseResponse } from './CreateAddonReleaseResponse';
|
|
|
280
281
|
export { CreateAggTaskGroupRequest } from './CreateAggTaskGroupRequest';
|
|
281
282
|
export { CreateAggTaskGroupResponseBody } from './CreateAggTaskGroupResponseBody';
|
|
282
283
|
export { CreateAggTaskGroupResponse } from './CreateAggTaskGroupResponse';
|
|
284
|
+
export { CreateAlertWebhookRequest } from './CreateAlertWebhookRequest';
|
|
285
|
+
export { CreateAlertWebhookResponseBody } from './CreateAlertWebhookResponseBody';
|
|
286
|
+
export { CreateAlertWebhookResponse } from './CreateAlertWebhookResponse';
|
|
283
287
|
export { CreateBizTraceRequest } from './CreateBizTraceRequest';
|
|
284
288
|
export { CreateBizTraceResponseBody } from './CreateBizTraceResponseBody';
|
|
285
289
|
export { CreateBizTraceResponse } from './CreateBizTraceResponse';
|
|
@@ -324,6 +328,10 @@ export { DeleteAddonReleaseResponseBody } from './DeleteAddonReleaseResponseBody
|
|
|
324
328
|
export { DeleteAddonReleaseResponse } from './DeleteAddonReleaseResponse';
|
|
325
329
|
export { DeleteAggTaskGroupResponseBody } from './DeleteAggTaskGroupResponseBody';
|
|
326
330
|
export { DeleteAggTaskGroupResponse } from './DeleteAggTaskGroupResponse';
|
|
331
|
+
export { DeleteAlertWebhooksRequest } from './DeleteAlertWebhooksRequest';
|
|
332
|
+
export { DeleteAlertWebhooksShrinkRequest } from './DeleteAlertWebhooksShrinkRequest';
|
|
333
|
+
export { DeleteAlertWebhooksResponseBody } from './DeleteAlertWebhooksResponseBody';
|
|
334
|
+
export { DeleteAlertWebhooksResponse } from './DeleteAlertWebhooksResponse';
|
|
327
335
|
export { DeleteBizTraceResponseBody } from './DeleteBizTraceResponseBody';
|
|
328
336
|
export { DeleteBizTraceResponse } from './DeleteBizTraceResponse';
|
|
329
337
|
export { DeleteCloudResourceResponseBody } from './DeleteCloudResourceResponseBody';
|
|
@@ -433,6 +441,10 @@ export { ListAlertActionsRequest } from './ListAlertActionsRequest';
|
|
|
433
441
|
export { ListAlertActionsShrinkRequest } from './ListAlertActionsShrinkRequest';
|
|
434
442
|
export { ListAlertActionsResponseBody } from './ListAlertActionsResponseBody';
|
|
435
443
|
export { ListAlertActionsResponse } from './ListAlertActionsResponse';
|
|
444
|
+
export { ListAlertWebhooksRequest } from './ListAlertWebhooksRequest';
|
|
445
|
+
export { ListAlertWebhooksShrinkRequest } from './ListAlertWebhooksShrinkRequest';
|
|
446
|
+
export { ListAlertWebhooksResponseBody } from './ListAlertWebhooksResponseBody';
|
|
447
|
+
export { ListAlertWebhooksResponse } from './ListAlertWebhooksResponse';
|
|
436
448
|
export { ListBizTracesRequest } from './ListBizTracesRequest';
|
|
437
449
|
export { ListBizTracesResponseBody } from './ListBizTracesResponseBody';
|
|
438
450
|
export { ListBizTracesResponse } from './ListBizTracesResponse';
|
|
@@ -512,6 +524,9 @@ export { UpdateAggTaskGroupResponse } from './UpdateAggTaskGroupResponse';
|
|
|
512
524
|
export { UpdateAggTaskGroupStatusRequest } from './UpdateAggTaskGroupStatusRequest';
|
|
513
525
|
export { UpdateAggTaskGroupStatusResponseBody } from './UpdateAggTaskGroupStatusResponseBody';
|
|
514
526
|
export { UpdateAggTaskGroupStatusResponse } from './UpdateAggTaskGroupStatusResponse';
|
|
527
|
+
export { UpdateAlertWebhookRequest } from './UpdateAlertWebhookRequest';
|
|
528
|
+
export { UpdateAlertWebhookResponseBody } from './UpdateAlertWebhookResponseBody';
|
|
529
|
+
export { UpdateAlertWebhookResponse } from './UpdateAlertWebhookResponse';
|
|
515
530
|
export { UpdateBizTraceRequest } from './UpdateBizTraceRequest';
|
|
516
531
|
export { UpdateBizTraceResponseBody } from './UpdateBizTraceResponseBody';
|
|
517
532
|
export { UpdateBizTraceResponse } from './UpdateBizTraceResponse';
|