@alicloud/cms20240330 5.0.0 → 6.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.
Files changed (89) hide show
  1. package/dist/client.d.ts +72 -0
  2. package/dist/client.js +223 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAlertWebhookRequest.d.ts +56 -0
  5. package/dist/models/CreateAlertWebhookRequest.js +73 -0
  6. package/dist/models/CreateAlertWebhookRequest.js.map +1 -0
  7. package/dist/models/CreateAlertWebhookResponse.d.ts +19 -0
  8. package/dist/models/CreateAlertWebhookResponse.js +69 -0
  9. package/dist/models/CreateAlertWebhookResponse.js.map +1 -0
  10. package/dist/models/CreateAlertWebhookResponseBody.d.ts +23 -0
  11. package/dist/models/CreateAlertWebhookResponseBody.js +60 -0
  12. package/dist/models/CreateAlertWebhookResponseBody.js.map +1 -0
  13. package/dist/models/DeleteAlertWebhooksRequest.d.ts +18 -0
  14. package/dist/models/DeleteAlertWebhooksRequest.js +61 -0
  15. package/dist/models/DeleteAlertWebhooksRequest.js.map +1 -0
  16. package/dist/models/DeleteAlertWebhooksResponse.d.ts +19 -0
  17. package/dist/models/DeleteAlertWebhooksResponse.js +69 -0
  18. package/dist/models/DeleteAlertWebhooksResponse.js.map +1 -0
  19. package/dist/models/DeleteAlertWebhooksResponseBody.d.ts +18 -0
  20. package/dist/models/DeleteAlertWebhooksResponseBody.js +58 -0
  21. package/dist/models/DeleteAlertWebhooksResponseBody.js.map +1 -0
  22. package/dist/models/DeleteAlertWebhooksShrinkRequest.d.ts +18 -0
  23. package/dist/models/DeleteAlertWebhooksShrinkRequest.js +58 -0
  24. package/dist/models/DeleteAlertWebhooksShrinkRequest.js.map +1 -0
  25. package/dist/models/ListAggTaskGroupsResponseBody.d.ts +0 -33
  26. package/dist/models/ListAggTaskGroupsResponseBody.js +1 -27
  27. package/dist/models/ListAggTaskGroupsResponseBody.js.map +1 -1
  28. package/dist/models/ListAlertWebhooksRequest.d.ts +29 -0
  29. package/dist/models/ListAlertWebhooksRequest.js +67 -0
  30. package/dist/models/ListAlertWebhooksRequest.js.map +1 -0
  31. package/dist/models/ListAlertWebhooksResponse.d.ts +19 -0
  32. package/dist/models/ListAlertWebhooksResponse.js +69 -0
  33. package/dist/models/ListAlertWebhooksResponse.js.map +1 -0
  34. package/dist/models/ListAlertWebhooksResponseBody.d.ts +90 -0
  35. package/dist/models/ListAlertWebhooksResponseBody.js +103 -0
  36. package/dist/models/ListAlertWebhooksResponseBody.js.map +1 -0
  37. package/dist/models/ListAlertWebhooksShrinkRequest.d.ts +29 -0
  38. package/dist/models/ListAlertWebhooksShrinkRequest.js +64 -0
  39. package/dist/models/ListAlertWebhooksShrinkRequest.js.map +1 -0
  40. package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +0 -33
  41. package/dist/models/ListIntegrationPoliciesResponseBody.js +1 -27
  42. package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -1
  43. package/dist/models/ListPrometheusInstancesRequest.d.ts +5 -0
  44. package/dist/models/ListPrometheusInstancesRequest.js +2 -0
  45. package/dist/models/ListPrometheusInstancesRequest.js.map +1 -1
  46. package/dist/models/ListPrometheusInstancesResponseBody.d.ts +0 -41
  47. package/dist/models/ListPrometheusInstancesResponseBody.js +1 -29
  48. package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -1
  49. package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +5 -0
  50. package/dist/models/ListPrometheusInstancesShrinkRequest.js +2 -0
  51. package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -1
  52. package/dist/models/ListPrometheusViewsResponseBody.d.ts +0 -41
  53. package/dist/models/ListPrometheusViewsResponseBody.js +1 -29
  54. package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -1
  55. package/dist/models/UpdateAlertWebhookRequest.d.ts +45 -0
  56. package/dist/models/UpdateAlertWebhookRequest.js +71 -0
  57. package/dist/models/UpdateAlertWebhookRequest.js.map +1 -0
  58. package/dist/models/UpdateAlertWebhookResponse.d.ts +19 -0
  59. package/dist/models/UpdateAlertWebhookResponse.js +69 -0
  60. package/dist/models/UpdateAlertWebhookResponse.js.map +1 -0
  61. package/dist/models/UpdateAlertWebhookResponseBody.d.ts +18 -0
  62. package/dist/models/UpdateAlertWebhookResponseBody.js +58 -0
  63. package/dist/models/UpdateAlertWebhookResponseBody.js.map +1 -0
  64. package/dist/models/model.d.ts +15 -4
  65. package/dist/models/model.js +52 -30
  66. package/dist/models/model.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/client.ts +252 -0
  69. package/src/models/CreateAlertWebhookRequest.ts +82 -0
  70. package/src/models/CreateAlertWebhookResponse.ts +40 -0
  71. package/src/models/CreateAlertWebhookResponseBody.ts +38 -0
  72. package/src/models/DeleteAlertWebhooksRequest.ts +34 -0
  73. package/src/models/DeleteAlertWebhooksResponse.ts +40 -0
  74. package/src/models/DeleteAlertWebhooksResponseBody.ts +31 -0
  75. package/src/models/DeleteAlertWebhooksShrinkRequest.ts +31 -0
  76. package/src/models/ListAggTaskGroupsResponseBody.ts +0 -50
  77. package/src/models/ListAlertWebhooksRequest.ts +51 -0
  78. package/src/models/ListAlertWebhooksResponse.ts +40 -0
  79. package/src/models/ListAlertWebhooksResponseBody.ts +137 -0
  80. package/src/models/ListAlertWebhooksShrinkRequest.ts +48 -0
  81. package/src/models/ListIntegrationPoliciesResponseBody.ts +0 -50
  82. package/src/models/ListPrometheusInstancesRequest.ts +7 -0
  83. package/src/models/ListPrometheusInstancesResponseBody.ts +0 -60
  84. package/src/models/ListPrometheusInstancesShrinkRequest.ts +7 -0
  85. package/src/models/ListPrometheusViewsResponseBody.ts +0 -60
  86. package/src/models/UpdateAlertWebhookRequest.ts +69 -0
  87. package/src/models/UpdateAlertWebhookResponse.ts +40 -0
  88. package/src/models/UpdateAlertWebhookResponseBody.ts +31 -0
  89. package/src/models/model.ts +15 -4
@@ -2,46 +2,6 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- export class ListPrometheusViewsResponseBodyPrometheusViewsTags extends $dara.Model {
6
- /**
7
- * @remarks
8
- * Tag key
9
- *
10
- * @example
11
- * key1
12
- */
13
- key?: string;
14
- /**
15
- * @remarks
16
- * Match value.
17
- *
18
- * @example
19
- * value1
20
- */
21
- value?: string;
22
- static names(): { [key: string]: string } {
23
- return {
24
- key: 'key',
25
- value: 'value',
26
- };
27
- }
28
-
29
- static types(): { [key: string]: any } {
30
- return {
31
- key: 'string',
32
- value: 'string',
33
- };
34
- }
35
-
36
- validate() {
37
- super.validate();
38
- }
39
-
40
- constructor(map?: { [key: string]: any }) {
41
- super(map);
42
- }
43
- }
44
-
45
5
  export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model {
46
6
  /**
47
7
  * @remarks
@@ -109,14 +69,6 @@ export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model
109
69
  * cn-zhangjiakou
110
70
  */
111
71
  regionId?: string;
112
- /**
113
- * @remarks
114
- * Resource group ID.
115
- *
116
- * @example
117
- * rg-acfm3gn5i6bigbi
118
- */
119
- resourceGroupId?: string;
120
72
  /**
121
73
  * @remarks
122
74
  * Fixed value: PrometheusView.
@@ -133,11 +85,6 @@ export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model
133
85
  * Running
134
86
  */
135
87
  status?: string;
136
- /**
137
- * @remarks
138
- * Tag values.
139
- */
140
- tags?: ListPrometheusViewsResponseBodyPrometheusViewsTags[];
141
88
  /**
142
89
  * @remarks
143
90
  * User ID.
@@ -172,10 +119,8 @@ export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model
172
119
  prometheusViewId: 'prometheusViewId',
173
120
  prometheusViewName: 'prometheusViewName',
174
121
  regionId: 'regionId',
175
- resourceGroupId: 'resourceGroupId',
176
122
  resourceType: 'resourceType',
177
123
  status: 'status',
178
- tags: 'tags',
179
124
  userId: 'userId',
180
125
  version: 'version',
181
126
  workspace: 'workspace',
@@ -192,10 +137,8 @@ export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model
192
137
  prometheusViewId: 'string',
193
138
  prometheusViewName: 'string',
194
139
  regionId: 'string',
195
- resourceGroupId: 'string',
196
140
  resourceType: 'string',
197
141
  status: 'string',
198
- tags: { 'type': 'array', 'itemType': ListPrometheusViewsResponseBodyPrometheusViewsTags },
199
142
  userId: 'string',
200
143
  version: 'string',
201
144
  workspace: 'string',
@@ -203,9 +146,6 @@ export class ListPrometheusViewsResponseBodyPrometheusViews extends $dara.Model
203
146
  }
204
147
 
205
148
  validate() {
206
- if(Array.isArray(this.tags)) {
207
- $dara.Model.validateArray(this.tags);
208
- }
209
149
  super.validate();
210
150
  }
211
151
 
@@ -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
+
@@ -133,7 +133,6 @@ export { ListAddonsResponseBodyAddonsEnvironmentsPolicies } from './ListAddonsRe
133
133
  export { ListAddonsResponseBodyAddonsEnvironments } from './ListAddonsResponseBody';
134
134
  export { ListAddonsResponseBodyAddons } from './ListAddonsResponseBody';
135
135
  export { ListAggTaskGroupsRequestTags } from './ListAggTaskGroupsRequest';
136
- export { ListAggTaskGroupsResponseBodyAggTaskGroupsTags } from './ListAggTaskGroupsResponseBody';
137
136
  export { ListAggTaskGroupsResponseBodyAggTaskGroups } from './ListAggTaskGroupsResponseBody';
138
137
  export { ListAlertActionsResponseBodyAlertActionsEbParam } from './ListAlertActionsResponseBody';
139
138
  export { ListAlertActionsResponseBodyAlertActionsEssParam } from './ListAlertActionsResponseBody';
@@ -144,6 +143,7 @@ export { ListAlertActionsResponseBodyAlertActionsPagerDutyParam } from './ListAl
144
143
  export { ListAlertActionsResponseBodyAlertActionsSlsParam } from './ListAlertActionsResponseBody';
145
144
  export { ListAlertActionsResponseBodyAlertActionsWebhookParam } from './ListAlertActionsResponseBody';
146
145
  export { ListAlertActionsResponseBodyAlertActions } from './ListAlertActionsResponseBody';
146
+ export { ListAlertWebhooksResponseBodyWebhooks } from './ListAlertWebhooksResponseBody';
147
147
  export { ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledgesBailian } from './ListDigitalEmployeesResponseBody';
148
148
  export { ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledges } from './ListDigitalEmployeesResponseBody';
149
149
  export { ListDigitalEmployeesResponseBodyDigitalEmployees } from './ListDigitalEmployeesResponseBody';
@@ -158,7 +158,6 @@ export { ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules } fro
158
158
  export { ListIntegrationPoliciesResponseBodyPoliciesEntityGroup } from './ListIntegrationPoliciesResponseBody';
159
159
  export { ListIntegrationPoliciesResponseBodyPoliciesManagedInfo } from './ListIntegrationPoliciesResponseBody';
160
160
  export { ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease } from './ListIntegrationPoliciesResponseBody';
161
- export { ListIntegrationPoliciesResponseBodyPoliciesTags } from './ListIntegrationPoliciesResponseBody';
162
161
  export { ListIntegrationPoliciesResponseBodyPolicies } from './ListIntegrationPoliciesResponseBody';
163
162
  export { ListIntegrationPolicyAddonsResponseBodyAddonsDashboards } from './ListIntegrationPolicyAddonsResponseBody';
164
163
  export { ListIntegrationPolicyAddonsResponseBodyAddonsEnvironmentsDependencies } from './ListIntegrationPolicyAddonsResponseBody';
@@ -184,10 +183,8 @@ export { ListIntegrationPolicyStorageRequirementsResponseBodyStorageRequirements
184
183
  export { ListIntegrationPolicyStorageRequirementsResponseBodyStorageRequirements } from './ListIntegrationPolicyStorageRequirementsResponseBody';
185
184
  export { ListPrometheusDashboardsResponseBodyPrometheusDashboards } from './ListPrometheusDashboardsResponseBody';
186
185
  export { ListPrometheusInstancesRequestTag } from './ListPrometheusInstancesRequest';
187
- export { ListPrometheusInstancesResponseBodyPrometheusInstancesTags } from './ListPrometheusInstancesResponseBody';
188
186
  export { ListPrometheusInstancesResponseBodyPrometheusInstances } from './ListPrometheusInstancesResponseBody';
189
187
  export { ListPrometheusViewsRequestTag } from './ListPrometheusViewsRequest';
190
- export { ListPrometheusViewsResponseBodyPrometheusViewsTags } from './ListPrometheusViewsResponseBody';
191
188
  export { ListPrometheusViewsResponseBodyPrometheusViews } from './ListPrometheusViewsResponseBody';
192
189
  export { ListPrometheusVirtualInstancesResponseBodyInstances } from './ListPrometheusVirtualInstancesResponseBody';
193
190
  export { ListServicesRequestTags } from './ListServicesRequest';
@@ -280,6 +277,9 @@ export { CreateAddonReleaseResponse } from './CreateAddonReleaseResponse';
280
277
  export { CreateAggTaskGroupRequest } from './CreateAggTaskGroupRequest';
281
278
  export { CreateAggTaskGroupResponseBody } from './CreateAggTaskGroupResponseBody';
282
279
  export { CreateAggTaskGroupResponse } from './CreateAggTaskGroupResponse';
280
+ export { CreateAlertWebhookRequest } from './CreateAlertWebhookRequest';
281
+ export { CreateAlertWebhookResponseBody } from './CreateAlertWebhookResponseBody';
282
+ export { CreateAlertWebhookResponse } from './CreateAlertWebhookResponse';
283
283
  export { CreateBizTraceRequest } from './CreateBizTraceRequest';
284
284
  export { CreateBizTraceResponseBody } from './CreateBizTraceResponseBody';
285
285
  export { CreateBizTraceResponse } from './CreateBizTraceResponse';
@@ -324,6 +324,10 @@ export { DeleteAddonReleaseResponseBody } from './DeleteAddonReleaseResponseBody
324
324
  export { DeleteAddonReleaseResponse } from './DeleteAddonReleaseResponse';
325
325
  export { DeleteAggTaskGroupResponseBody } from './DeleteAggTaskGroupResponseBody';
326
326
  export { DeleteAggTaskGroupResponse } from './DeleteAggTaskGroupResponse';
327
+ export { DeleteAlertWebhooksRequest } from './DeleteAlertWebhooksRequest';
328
+ export { DeleteAlertWebhooksShrinkRequest } from './DeleteAlertWebhooksShrinkRequest';
329
+ export { DeleteAlertWebhooksResponseBody } from './DeleteAlertWebhooksResponseBody';
330
+ export { DeleteAlertWebhooksResponse } from './DeleteAlertWebhooksResponse';
327
331
  export { DeleteBizTraceResponseBody } from './DeleteBizTraceResponseBody';
328
332
  export { DeleteBizTraceResponse } from './DeleteBizTraceResponse';
329
333
  export { DeleteCloudResourceResponseBody } from './DeleteCloudResourceResponseBody';
@@ -433,6 +437,10 @@ export { ListAlertActionsRequest } from './ListAlertActionsRequest';
433
437
  export { ListAlertActionsShrinkRequest } from './ListAlertActionsShrinkRequest';
434
438
  export { ListAlertActionsResponseBody } from './ListAlertActionsResponseBody';
435
439
  export { ListAlertActionsResponse } from './ListAlertActionsResponse';
440
+ export { ListAlertWebhooksRequest } from './ListAlertWebhooksRequest';
441
+ export { ListAlertWebhooksShrinkRequest } from './ListAlertWebhooksShrinkRequest';
442
+ export { ListAlertWebhooksResponseBody } from './ListAlertWebhooksResponseBody';
443
+ export { ListAlertWebhooksResponse } from './ListAlertWebhooksResponse';
436
444
  export { ListBizTracesRequest } from './ListBizTracesRequest';
437
445
  export { ListBizTracesResponseBody } from './ListBizTracesResponseBody';
438
446
  export { ListBizTracesResponse } from './ListBizTracesResponse';
@@ -512,6 +520,9 @@ export { UpdateAggTaskGroupResponse } from './UpdateAggTaskGroupResponse';
512
520
  export { UpdateAggTaskGroupStatusRequest } from './UpdateAggTaskGroupStatusRequest';
513
521
  export { UpdateAggTaskGroupStatusResponseBody } from './UpdateAggTaskGroupStatusResponseBody';
514
522
  export { UpdateAggTaskGroupStatusResponse } from './UpdateAggTaskGroupStatusResponse';
523
+ export { UpdateAlertWebhookRequest } from './UpdateAlertWebhookRequest';
524
+ export { UpdateAlertWebhookResponseBody } from './UpdateAlertWebhookResponseBody';
525
+ export { UpdateAlertWebhookResponse } from './UpdateAlertWebhookResponse';
515
526
  export { UpdateBizTraceRequest } from './UpdateBizTraceRequest';
516
527
  export { UpdateBizTraceResponseBody } from './UpdateBizTraceResponseBody';
517
528
  export { UpdateBizTraceResponse } from './UpdateBizTraceResponse';