@alicloud/cms20240330 3.2.5 → 3.4.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 (257) hide show
  1. package/dist/client.d.ts +242 -2
  2. package/dist/client.js +574 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleSend.d.ts +1 -0
  5. package/dist/models/AlertRuleSend.js +5 -0
  6. package/dist/models/AlertRuleSend.js.map +1 -1
  7. package/dist/models/CmsEventForView.d.ts +42 -0
  8. package/dist/models/CmsEventForView.js +113 -0
  9. package/dist/models/CmsEventForView.js.map +1 -0
  10. package/dist/models/ContactForIncidentView.d.ts +15 -0
  11. package/dist/models/ContactForIncidentView.js +60 -0
  12. package/dist/models/ContactForIncidentView.js.map +1 -0
  13. package/dist/models/CreateCloudResourceResponse.d.ts +19 -0
  14. package/dist/models/CreateCloudResourceResponse.js +69 -0
  15. package/dist/models/CreateCloudResourceResponse.js.map +1 -0
  16. package/dist/models/CreateCloudResourceResponseBody.d.ts +18 -0
  17. package/dist/models/CreateCloudResourceResponseBody.js +58 -0
  18. package/dist/models/CreateCloudResourceResponseBody.js.map +1 -0
  19. package/dist/models/CreateIntegrationPolicyRequest.d.ts +9 -2
  20. package/dist/models/CreateIntegrationPolicyRequest.js.map +1 -1
  21. package/dist/models/CreateIntegrationPolicyResponseBody.d.ts +1 -1
  22. package/dist/models/DeleteCloudResourceResponse.d.ts +19 -0
  23. package/dist/models/DeleteCloudResourceResponse.js +69 -0
  24. package/dist/models/DeleteCloudResourceResponse.js.map +1 -0
  25. package/dist/models/DeleteCloudResourceResponseBody.d.ts +18 -0
  26. package/dist/models/DeleteCloudResourceResponseBody.js +58 -0
  27. package/dist/models/DeleteCloudResourceResponseBody.js.map +1 -0
  28. package/dist/models/DeleteUmodelCommonSchemaRefRequest.d.ts +21 -0
  29. package/dist/models/DeleteUmodelCommonSchemaRefRequest.js +58 -0
  30. package/dist/models/DeleteUmodelCommonSchemaRefRequest.js.map +1 -0
  31. package/dist/models/DeleteUmodelCommonSchemaRefResponse.d.ts +19 -0
  32. package/dist/models/DeleteUmodelCommonSchemaRefResponse.js +69 -0
  33. package/dist/models/DeleteUmodelCommonSchemaRefResponse.js.map +1 -0
  34. package/dist/models/DeleteUmodelCommonSchemaRefResponseBody.d.ts +18 -0
  35. package/dist/models/DeleteUmodelCommonSchemaRefResponseBody.js +58 -0
  36. package/dist/models/DeleteUmodelCommonSchemaRefResponseBody.js.map +1 -0
  37. package/dist/models/DescribeRegionsRequest.d.ts +18 -0
  38. package/dist/models/DescribeRegionsRequest.js +58 -0
  39. package/dist/models/DescribeRegionsRequest.js.map +1 -0
  40. package/dist/models/DescribeRegionsResponse.d.ts +19 -0
  41. package/dist/models/DescribeRegionsResponse.js +69 -0
  42. package/dist/models/DescribeRegionsResponse.js.map +1 -0
  43. package/dist/models/DescribeRegionsResponseBody.d.ts +44 -0
  44. package/dist/models/DescribeRegionsResponseBody.js +84 -0
  45. package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
  46. package/dist/models/EffectTimeRange.d.ts +17 -0
  47. package/dist/models/EffectTimeRange.js +67 -0
  48. package/dist/models/EffectTimeRange.js.map +1 -0
  49. package/dist/models/EventResourceForEventView.d.ts +35 -0
  50. package/dist/models/EventResourceForEventView.js +94 -0
  51. package/dist/models/EventResourceForEventView.js.map +1 -0
  52. package/dist/models/EventResourceForIncidentView.d.ts +18 -0
  53. package/dist/models/EventResourceForIncidentView.js +66 -0
  54. package/dist/models/EventResourceForIncidentView.js.map +1 -0
  55. package/dist/models/GetCloudResourceDataRequest.d.ts +37 -0
  56. package/dist/models/GetCloudResourceDataRequest.js +62 -0
  57. package/dist/models/GetCloudResourceDataRequest.js.map +1 -0
  58. package/dist/models/GetCloudResourceDataResponse.d.ts +19 -0
  59. package/dist/models/GetCloudResourceDataResponse.js +69 -0
  60. package/dist/models/GetCloudResourceDataResponse.js.map +1 -0
  61. package/dist/models/GetCloudResourceDataResponseBody.d.ts +20 -0
  62. package/dist/models/GetCloudResourceDataResponseBody.js +68 -0
  63. package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -0
  64. package/dist/models/GetCloudResourceResponse.d.ts +19 -0
  65. package/dist/models/GetCloudResourceResponse.js +69 -0
  66. package/dist/models/GetCloudResourceResponse.js.map +1 -0
  67. package/dist/models/GetCloudResourceResponseBody.d.ts +23 -0
  68. package/dist/models/GetCloudResourceResponseBody.js +60 -0
  69. package/dist/models/GetCloudResourceResponseBody.js.map +1 -0
  70. package/dist/models/GetCmsServiceRequest.d.ts +29 -0
  71. package/dist/models/GetCmsServiceRequest.js +60 -0
  72. package/dist/models/GetCmsServiceRequest.js.map +1 -0
  73. package/dist/models/GetCmsServiceResponse.d.ts +19 -0
  74. package/dist/models/GetCmsServiceResponse.js +69 -0
  75. package/dist/models/GetCmsServiceResponse.js.map +1 -0
  76. package/dist/models/GetCmsServiceResponseBody.d.ts +31 -0
  77. package/dist/models/GetCmsServiceResponseBody.js +62 -0
  78. package/dist/models/GetCmsServiceResponseBody.js.map +1 -0
  79. package/dist/models/GetPrometheusUserSettingRequest.d.ts +18 -0
  80. package/dist/models/GetPrometheusUserSettingRequest.js +58 -0
  81. package/dist/models/GetPrometheusUserSettingRequest.js.map +1 -0
  82. package/dist/models/GetPrometheusUserSettingResponse.d.ts +19 -0
  83. package/dist/models/GetPrometheusUserSettingResponse.js +69 -0
  84. package/dist/models/GetPrometheusUserSettingResponse.js.map +1 -0
  85. package/dist/models/GetPrometheusUserSettingResponseBody.d.ts +24 -0
  86. package/dist/models/GetPrometheusUserSettingResponseBody.js +63 -0
  87. package/dist/models/GetPrometheusUserSettingResponseBody.js.map +1 -0
  88. package/dist/models/GetUmodelCommonSchemaRefResponse.d.ts +19 -0
  89. package/dist/models/GetUmodelCommonSchemaRefResponse.js +69 -0
  90. package/dist/models/GetUmodelCommonSchemaRefResponse.js.map +1 -0
  91. package/dist/models/GetUmodelCommonSchemaRefResponseBody.d.ts +36 -0
  92. package/dist/models/GetUmodelCommonSchemaRefResponseBody.js +82 -0
  93. package/dist/models/GetUmodelCommonSchemaRefResponseBody.js.map +1 -0
  94. package/dist/models/IncidentEscalationPolicyForModify.d.ts +22 -0
  95. package/dist/models/IncidentEscalationPolicyForModify.js +68 -0
  96. package/dist/models/IncidentEscalationPolicyForModify.js.map +1 -0
  97. package/dist/models/IncidentEscalationPolicyForView.d.ts +31 -0
  98. package/dist/models/IncidentEscalationPolicyForView.js +86 -0
  99. package/dist/models/IncidentEscalationPolicyForView.js.map +1 -0
  100. package/dist/models/IncidentEscalationStageForView.d.ts +26 -0
  101. package/dist/models/IncidentEscalationStageForView.js +78 -0
  102. package/dist/models/IncidentEscalationStageForView.js.map +1 -0
  103. package/dist/models/IncidentEventForView.d.ts +43 -0
  104. package/dist/models/IncidentEventForView.js +119 -0
  105. package/dist/models/IncidentEventForView.js.map +1 -0
  106. package/dist/models/IncidentForView.d.ts +41 -0
  107. package/dist/models/IncidentForView.js +125 -0
  108. package/dist/models/IncidentForView.js.map +1 -0
  109. package/dist/models/IncidentResponsePlanForView.d.ts +30 -0
  110. package/dist/models/IncidentResponsePlanForView.js +97 -0
  111. package/dist/models/IncidentResponsePlanForView.js.map +1 -0
  112. package/dist/models/IncidentTimelineForView.d.ts +24 -0
  113. package/dist/models/IncidentTimelineForView.js +80 -0
  114. package/dist/models/IncidentTimelineForView.js.map +1 -0
  115. package/dist/models/ListIntegrationPoliciesRequest.d.ts +10 -10
  116. package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +13 -6
  117. package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -1
  118. package/dist/models/ListIntegrationPoliciesShrinkRequest.d.ts +10 -10
  119. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.d.ts +28 -0
  120. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js +62 -0
  121. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js.map +1 -0
  122. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.d.ts +19 -0
  123. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js +69 -0
  124. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js.map +1 -0
  125. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.d.ts +124 -0
  126. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js +134 -0
  127. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js.map +1 -0
  128. package/dist/models/NotifyChannel.d.ts +16 -0
  129. package/dist/models/NotifyChannel.js +68 -0
  130. package/dist/models/NotifyChannel.js.map +1 -0
  131. package/dist/models/NotifyStrategyForModify.d.ts +37 -0
  132. package/dist/models/NotifyStrategyForModify.js +81 -1
  133. package/dist/models/NotifyStrategyForModify.js.map +1 -1
  134. package/dist/models/NotifyStrategyForView.d.ts +38 -0
  135. package/dist/models/NotifyStrategyForView.js +86 -1
  136. package/dist/models/NotifyStrategyForView.js.map +1 -1
  137. package/dist/models/PushingSetting.d.ts +16 -0
  138. package/dist/models/PushingSetting.js +68 -0
  139. package/dist/models/PushingSetting.js.map +1 -0
  140. package/dist/models/RepeatNotifySetting.d.ts +15 -0
  141. package/dist/models/RepeatNotifySetting.js +60 -0
  142. package/dist/models/RepeatNotifySetting.js.map +1 -0
  143. package/dist/models/SubscriptionForView.d.ts +1 -0
  144. package/dist/models/SubscriptionForView.js +2 -0
  145. package/dist/models/SubscriptionForView.js.map +1 -1
  146. package/dist/models/Tag.d.ts +15 -0
  147. package/dist/models/Tag.js +60 -0
  148. package/dist/models/Tag.js.map +1 -0
  149. package/dist/models/UpdateNotifyStrategyRequest.d.ts +20 -0
  150. package/dist/models/UpdateNotifyStrategyRequest.js +64 -0
  151. package/dist/models/UpdateNotifyStrategyRequest.js.map +1 -0
  152. package/dist/models/UpdateNotifyStrategyResponse.d.ts +19 -0
  153. package/dist/models/UpdateNotifyStrategyResponse.js +69 -0
  154. package/dist/models/UpdateNotifyStrategyResponse.js.map +1 -0
  155. package/dist/models/UpdateNotifyStrategyResponseBody.d.ts +26 -0
  156. package/dist/models/UpdateNotifyStrategyResponseBody.js +60 -0
  157. package/dist/models/UpdateNotifyStrategyResponseBody.js.map +1 -0
  158. package/dist/models/UpdatePrometheusUserSettingRequest.d.ts +21 -0
  159. package/dist/models/UpdatePrometheusUserSettingRequest.js +58 -0
  160. package/dist/models/UpdatePrometheusUserSettingRequest.js.map +1 -0
  161. package/dist/models/UpdatePrometheusUserSettingResponse.d.ts +19 -0
  162. package/dist/models/UpdatePrometheusUserSettingResponse.js +69 -0
  163. package/dist/models/UpdatePrometheusUserSettingResponse.js.map +1 -0
  164. package/dist/models/UpdatePrometheusUserSettingResponseBody.d.ts +21 -0
  165. package/dist/models/UpdatePrometheusUserSettingResponseBody.js +58 -0
  166. package/dist/models/UpdatePrometheusUserSettingResponseBody.js.map +1 -0
  167. package/dist/models/UpdateSubscriptionRequest.d.ts +20 -0
  168. package/dist/models/UpdateSubscriptionRequest.js +64 -0
  169. package/dist/models/UpdateSubscriptionRequest.js.map +1 -0
  170. package/dist/models/UpdateSubscriptionResponse.d.ts +19 -0
  171. package/dist/models/UpdateSubscriptionResponse.js +69 -0
  172. package/dist/models/UpdateSubscriptionResponse.js.map +1 -0
  173. package/dist/models/UpdateSubscriptionResponseBody.d.ts +26 -0
  174. package/dist/models/UpdateSubscriptionResponseBody.js +60 -0
  175. package/dist/models/UpdateSubscriptionResponseBody.js.map +1 -0
  176. package/dist/models/UpsertUmodelCommonSchemaRefRequest.d.ts +29 -0
  177. package/dist/models/UpsertUmodelCommonSchemaRefRequest.js +60 -0
  178. package/dist/models/UpsertUmodelCommonSchemaRefRequest.js.map +1 -0
  179. package/dist/models/UpsertUmodelCommonSchemaRefResponse.d.ts +19 -0
  180. package/dist/models/UpsertUmodelCommonSchemaRefResponse.js +69 -0
  181. package/dist/models/UpsertUmodelCommonSchemaRefResponse.js.map +1 -0
  182. package/dist/models/UpsertUmodelCommonSchemaRefResponseBody.d.ts +18 -0
  183. package/dist/models/UpsertUmodelCommonSchemaRefResponseBody.js +58 -0
  184. package/dist/models/UpsertUmodelCommonSchemaRefResponseBody.js.map +1 -0
  185. package/dist/models/WorkspaceFilterSetting.d.ts +16 -0
  186. package/dist/models/WorkspaceFilterSetting.js +67 -0
  187. package/dist/models/WorkspaceFilterSetting.js.map +1 -0
  188. package/dist/models/model.d.ts +64 -0
  189. package/dist/models/model.js +147 -17
  190. package/dist/models/model.js.map +1 -1
  191. package/package.json +1 -1
  192. package/src/client.ts +618 -2
  193. package/src/models/AlertRuleSend.ts +6 -0
  194. package/src/models/CmsEventForView.ts +103 -0
  195. package/src/models/ContactForIncidentView.ts +30 -0
  196. package/src/models/CreateCloudResourceResponse.ts +40 -0
  197. package/src/models/CreateCloudResourceResponseBody.ts +31 -0
  198. package/src/models/CreateIntegrationPolicyRequest.ts +9 -2
  199. package/src/models/CreateIntegrationPolicyResponseBody.ts +1 -1
  200. package/src/models/DeleteCloudResourceResponse.ts +40 -0
  201. package/src/models/DeleteCloudResourceResponseBody.ts +31 -0
  202. package/src/models/DeleteUmodelCommonSchemaRefRequest.ts +34 -0
  203. package/src/models/DeleteUmodelCommonSchemaRefResponse.ts +40 -0
  204. package/src/models/DeleteUmodelCommonSchemaRefResponseBody.ts +31 -0
  205. package/src/models/DescribeRegionsRequest.ts +31 -0
  206. package/src/models/DescribeRegionsResponse.ts +40 -0
  207. package/src/models/DescribeRegionsResponseBody.ts +74 -0
  208. package/src/models/EffectTimeRange.ts +39 -0
  209. package/src/models/EventResourceForEventView.ts +71 -0
  210. package/src/models/EventResourceForIncidentView.ts +39 -0
  211. package/src/models/GetCloudResourceDataRequest.ts +54 -0
  212. package/src/models/GetCloudResourceDataResponse.ts +40 -0
  213. package/src/models/GetCloudResourceDataResponseBody.ts +43 -0
  214. package/src/models/GetCloudResourceResponse.ts +40 -0
  215. package/src/models/GetCloudResourceResponseBody.ts +38 -0
  216. package/src/models/GetCmsServiceRequest.ts +44 -0
  217. package/src/models/GetCmsServiceResponse.ts +40 -0
  218. package/src/models/GetCmsServiceResponseBody.ts +48 -0
  219. package/src/models/GetPrometheusUserSettingRequest.ts +31 -0
  220. package/src/models/GetPrometheusUserSettingResponse.ts +40 -0
  221. package/src/models/GetPrometheusUserSettingResponseBody.ts +40 -0
  222. package/src/models/GetUmodelCommonSchemaRefResponse.ts +40 -0
  223. package/src/models/GetUmodelCommonSchemaRefResponseBody.ts +64 -0
  224. package/src/models/IncidentEscalationPolicyForModify.ts +44 -0
  225. package/src/models/IncidentEscalationPolicyForView.ts +71 -0
  226. package/src/models/IncidentEscalationStageForView.ts +57 -0
  227. package/src/models/IncidentEventForView.ts +107 -0
  228. package/src/models/IncidentForView.ts +115 -0
  229. package/src/models/IncidentResponsePlanForView.ts +80 -0
  230. package/src/models/IncidentTimelineForView.ts +58 -0
  231. package/src/models/ListIntegrationPoliciesRequest.ts +10 -10
  232. package/src/models/ListIntegrationPoliciesResponseBody.ts +13 -6
  233. package/src/models/ListIntegrationPoliciesShrinkRequest.ts +10 -10
  234. package/src/models/ListIntegrationPolicyServiceMonitorsRequest.ts +45 -0
  235. package/src/models/ListIntegrationPolicyServiceMonitorsResponse.ts +40 -0
  236. package/src/models/ListIntegrationPolicyServiceMonitorsResponseBody.ts +195 -0
  237. package/src/models/NotifyChannel.ts +39 -0
  238. package/src/models/NotifyStrategyForModify.ts +98 -0
  239. package/src/models/NotifyStrategyForView.ts +104 -0
  240. package/src/models/PushingSetting.ts +39 -0
  241. package/src/models/RepeatNotifySetting.ts +30 -0
  242. package/src/models/SubscriptionForView.ts +3 -0
  243. package/src/models/Tag.ts +30 -0
  244. package/src/models/UpdateNotifyStrategyRequest.ts +38 -0
  245. package/src/models/UpdateNotifyStrategyResponse.ts +40 -0
  246. package/src/models/UpdateNotifyStrategyResponseBody.ts +41 -0
  247. package/src/models/UpdatePrometheusUserSettingRequest.ts +34 -0
  248. package/src/models/UpdatePrometheusUserSettingResponse.ts +40 -0
  249. package/src/models/UpdatePrometheusUserSettingResponseBody.ts +34 -0
  250. package/src/models/UpdateSubscriptionRequest.ts +38 -0
  251. package/src/models/UpdateSubscriptionResponse.ts +40 -0
  252. package/src/models/UpdateSubscriptionResponseBody.ts +41 -0
  253. package/src/models/UpsertUmodelCommonSchemaRefRequest.ts +44 -0
  254. package/src/models/UpsertUmodelCommonSchemaRefResponse.ts +40 -0
  255. package/src/models/UpsertUmodelCommonSchemaRefResponseBody.ts +31 -0
  256. package/src/models/WorkspaceFilterSetting.ts +37 -0
  257. package/src/models/model.ts +64 -0
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
3
  import { FilterSetting } from "./FilterSetting";
4
+ import { WorkspaceFilterSetting } from "./WorkspaceFilterSetting";
4
5
 
5
6
 
6
7
  export class NotifyStrategyForViewCustomTemplateEntries extends $dara.Model {
@@ -72,6 +73,67 @@ export class NotifyStrategyForViewGroupingSetting extends $dara.Model {
72
73
  }
73
74
  }
74
75
 
76
+ export class NotifyStrategyForViewPushingSetting extends $dara.Model {
77
+ alertActionIds?: string[];
78
+ restoreActionIds?: string[];
79
+ templateUuid?: string;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ alertActionIds: 'alertActionIds',
83
+ restoreActionIds: 'restoreActionIds',
84
+ templateUuid: 'templateUuid',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
91
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
92
+ templateUuid: 'string',
93
+ };
94
+ }
95
+
96
+ validate() {
97
+ if(Array.isArray(this.alertActionIds)) {
98
+ $dara.Model.validateArray(this.alertActionIds);
99
+ }
100
+ if(Array.isArray(this.restoreActionIds)) {
101
+ $dara.Model.validateArray(this.restoreActionIds);
102
+ }
103
+ super.validate();
104
+ }
105
+
106
+ constructor(map?: { [key: string]: any }) {
107
+ super(map);
108
+ }
109
+ }
110
+
111
+ export class NotifyStrategyForViewRepeatNotifySetting extends $dara.Model {
112
+ endIncidentState?: string;
113
+ repeatInterval?: number;
114
+ static names(): { [key: string]: string } {
115
+ return {
116
+ endIncidentState: 'endIncidentState',
117
+ repeatInterval: 'repeatInterval',
118
+ };
119
+ }
120
+
121
+ static types(): { [key: string]: any } {
122
+ return {
123
+ endIncidentState: 'string',
124
+ repeatInterval: 'number',
125
+ };
126
+ }
127
+
128
+ validate() {
129
+ super.validate();
130
+ }
131
+
132
+ constructor(map?: { [key: string]: any }) {
133
+ super(map);
134
+ }
135
+ }
136
+
75
137
  export class NotifyStrategyForViewRoutesChannels extends $dara.Model {
76
138
  /**
77
139
  * @remarks
@@ -195,61 +257,85 @@ export class NotifyStrategyForViewRoutes extends $dara.Model {
195
257
  }
196
258
 
197
259
  export class NotifyStrategyForView extends $dara.Model {
260
+ autoRecoverSeconds?: number;
198
261
  createTime?: string;
199
262
  customTemplateEntries?: NotifyStrategyForViewCustomTemplateEntries[];
200
263
  description?: string;
201
264
  enable?: boolean;
265
+ filterSetting?: FilterSetting;
202
266
  /**
203
267
  * @remarks
204
268
  * This parameter is required.
205
269
  */
206
270
  groupingSetting?: NotifyStrategyForViewGroupingSetting;
207
271
  ignoreRestoredNotification?: boolean;
272
+ incidentEscalationPolicies?: any[];
208
273
  notifyStrategyId?: string;
209
274
  /**
210
275
  * @remarks
211
276
  * This parameter is required.
212
277
  */
213
278
  notifyStrategyName?: string;
279
+ pushingSetting?: NotifyStrategyForViewPushingSetting;
280
+ receiverNames?: string[];
281
+ repeatNotifySetting?: NotifyStrategyForViewRepeatNotifySetting;
214
282
  /**
215
283
  * @remarks
216
284
  * This parameter is required.
217
285
  */
218
286
  routes?: NotifyStrategyForViewRoutes[];
287
+ syncFromType?: string;
219
288
  updateTime?: string;
220
289
  userId?: string;
221
290
  workspace?: string;
291
+ workspaceFilterSetting?: WorkspaceFilterSetting;
222
292
  static names(): { [key: string]: string } {
223
293
  return {
294
+ autoRecoverSeconds: 'autoRecoverSeconds',
224
295
  createTime: 'createTime',
225
296
  customTemplateEntries: 'customTemplateEntries',
226
297
  description: 'description',
227
298
  enable: 'enable',
299
+ filterSetting: 'filterSetting',
228
300
  groupingSetting: 'groupingSetting',
229
301
  ignoreRestoredNotification: 'ignoreRestoredNotification',
302
+ incidentEscalationPolicies: 'incidentEscalationPolicies',
230
303
  notifyStrategyId: 'notifyStrategyId',
231
304
  notifyStrategyName: 'notifyStrategyName',
305
+ pushingSetting: 'pushingSetting',
306
+ receiverNames: 'receiverNames',
307
+ repeatNotifySetting: 'repeatNotifySetting',
232
308
  routes: 'routes',
309
+ syncFromType: 'syncFromType',
233
310
  updateTime: 'updateTime',
234
311
  userId: 'userId',
235
312
  workspace: 'workspace',
313
+ workspaceFilterSetting: 'workspaceFilterSetting',
236
314
  };
237
315
  }
238
316
 
239
317
  static types(): { [key: string]: any } {
240
318
  return {
319
+ autoRecoverSeconds: 'number',
241
320
  createTime: 'string',
242
321
  customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForViewCustomTemplateEntries },
243
322
  description: 'string',
244
323
  enable: 'boolean',
324
+ filterSetting: FilterSetting,
245
325
  groupingSetting: NotifyStrategyForViewGroupingSetting,
246
326
  ignoreRestoredNotification: 'boolean',
327
+ incidentEscalationPolicies: { 'type': 'array', 'itemType': 'any' },
247
328
  notifyStrategyId: 'string',
248
329
  notifyStrategyName: 'string',
330
+ pushingSetting: NotifyStrategyForViewPushingSetting,
331
+ receiverNames: { 'type': 'array', 'itemType': 'string' },
332
+ repeatNotifySetting: NotifyStrategyForViewRepeatNotifySetting,
249
333
  routes: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutes },
334
+ syncFromType: 'string',
250
335
  updateTime: 'string',
251
336
  userId: 'string',
252
337
  workspace: 'string',
338
+ workspaceFilterSetting: WorkspaceFilterSetting,
253
339
  };
254
340
  }
255
341
 
@@ -257,12 +343,30 @@ export class NotifyStrategyForView extends $dara.Model {
257
343
  if(Array.isArray(this.customTemplateEntries)) {
258
344
  $dara.Model.validateArray(this.customTemplateEntries);
259
345
  }
346
+ if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') {
347
+ (this.filterSetting as any).validate();
348
+ }
260
349
  if(this.groupingSetting && typeof (this.groupingSetting as any).validate === 'function') {
261
350
  (this.groupingSetting as any).validate();
262
351
  }
352
+ if(Array.isArray(this.incidentEscalationPolicies)) {
353
+ $dara.Model.validateArray(this.incidentEscalationPolicies);
354
+ }
355
+ if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') {
356
+ (this.pushingSetting as any).validate();
357
+ }
358
+ if(Array.isArray(this.receiverNames)) {
359
+ $dara.Model.validateArray(this.receiverNames);
360
+ }
361
+ if(this.repeatNotifySetting && typeof (this.repeatNotifySetting as any).validate === 'function') {
362
+ (this.repeatNotifySetting as any).validate();
363
+ }
263
364
  if(Array.isArray(this.routes)) {
264
365
  $dara.Model.validateArray(this.routes);
265
366
  }
367
+ if(this.workspaceFilterSetting && typeof (this.workspaceFilterSetting as any).validate === 'function') {
368
+ (this.workspaceFilterSetting as any).validate();
369
+ }
266
370
  super.validate();
267
371
  }
268
372
 
@@ -0,0 +1,39 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PushingSetting extends $dara.Model {
6
+ alertActionIds?: string[];
7
+ restoreActionIds?: string[];
8
+ templateUuid?: string;
9
+ static names(): { [key: string]: string } {
10
+ return {
11
+ alertActionIds: 'alertActionIds',
12
+ restoreActionIds: 'restoreActionIds',
13
+ templateUuid: 'templateUuid',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
20
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
21
+ templateUuid: 'string',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ if(Array.isArray(this.alertActionIds)) {
27
+ $dara.Model.validateArray(this.alertActionIds);
28
+ }
29
+ if(Array.isArray(this.restoreActionIds)) {
30
+ $dara.Model.validateArray(this.restoreActionIds);
31
+ }
32
+ super.validate();
33
+ }
34
+
35
+ constructor(map?: { [key: string]: any }) {
36
+ super(map);
37
+ }
38
+ }
39
+
@@ -0,0 +1,30 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RepeatNotifySetting extends $dara.Model {
6
+ endIncidentState?: string;
7
+ repeatInterval?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ endIncidentState: 'endIncidentState',
11
+ repeatInterval: 'repeatInterval',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ endIncidentState: 'string',
18
+ repeatInterval: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
@@ -54,6 +54,7 @@ export class SubscriptionForView extends $dara.Model {
54
54
  * This parameter is required.
55
55
  */
56
56
  subscriptionName?: string;
57
+ syncFromType?: string;
57
58
  updateTime?: string;
58
59
  userId?: string;
59
60
  workspace?: string;
@@ -67,6 +68,7 @@ export class SubscriptionForView extends $dara.Model {
67
68
  pushingSetting: 'pushingSetting',
68
69
  subscriptionId: 'subscriptionId',
69
70
  subscriptionName: 'subscriptionName',
71
+ syncFromType: 'syncFromType',
70
72
  updateTime: 'updateTime',
71
73
  userId: 'userId',
72
74
  workspace: 'workspace',
@@ -83,6 +85,7 @@ export class SubscriptionForView extends $dara.Model {
83
85
  pushingSetting: SubscriptionForViewPushingSetting,
84
86
  subscriptionId: 'string',
85
87
  subscriptionName: 'string',
88
+ syncFromType: 'string',
86
89
  updateTime: 'string',
87
90
  userId: 'string',
88
91
  workspace: 'string',
@@ -0,0 +1,30 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Tag extends $dara.Model {
6
+ key?: string;
7
+ value?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ key: 'key',
11
+ value: 'value',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ key: 'string',
18
+ value: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { NotifyStrategyForModify } from "./NotifyStrategyForModify";
4
+
5
+
6
+ export class UpdateNotifyStrategyRequest extends $dara.Model {
7
+ body?: NotifyStrategyForModify;
8
+ /**
9
+ * @example
10
+ * workspace-test
11
+ */
12
+ workspace?: string;
13
+ static names(): { [key: string]: string } {
14
+ return {
15
+ body: 'body',
16
+ workspace: 'workspace',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ body: NotifyStrategyForModify,
23
+ workspace: 'string',
24
+ };
25
+ }
26
+
27
+ validate() {
28
+ if(this.body && typeof (this.body as any).validate === 'function') {
29
+ (this.body as any).validate();
30
+ }
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateNotifyStrategyResponseBody } from "./UpdateNotifyStrategyResponseBody";
4
+
5
+
6
+ export class UpdateNotifyStrategyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateNotifyStrategyResponseBody;
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: UpdateNotifyStrategyResponseBody,
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,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateNotifyStrategyResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 12312-31-23-123-1-23123
9
+ */
10
+ notifyStrategyId?: string;
11
+ /**
12
+ * @remarks
13
+ * Id of the request
14
+ *
15
+ * @example
16
+ * 8FDE2569-626B-5176-9844-28877A*****
17
+ */
18
+ requestId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ notifyStrategyId: 'notifyStrategyId',
22
+ requestId: 'requestId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ notifyStrategyId: 'string',
29
+ requestId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -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 UpdatePrometheusUserSettingRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * abc
12
+ */
13
+ settingValue?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ settingValue: 'settingValue',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ settingValue: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
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 { UpdatePrometheusUserSettingResponseBody } from "./UpdatePrometheusUserSettingResponseBody";
4
+
5
+
6
+ export class UpdatePrometheusUserSettingResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdatePrometheusUserSettingResponseBody;
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: UpdatePrometheusUserSettingResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePrometheusUserSettingResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Id of the request
9
+ *
10
+ * @example
11
+ * 8FDE2569-626B-5176-9844-28877A*****
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'requestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { SubscriptionForModify } from "./SubscriptionForModify";
4
+
5
+
6
+ export class UpdateSubscriptionRequest extends $dara.Model {
7
+ body?: SubscriptionForModify;
8
+ /**
9
+ * @example
10
+ * workspace-test
11
+ */
12
+ workspace?: string;
13
+ static names(): { [key: string]: string } {
14
+ return {
15
+ body: 'body',
16
+ workspace: 'workspace',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ body: SubscriptionForModify,
23
+ workspace: 'string',
24
+ };
25
+ }
26
+
27
+ validate() {
28
+ if(this.body && typeof (this.body as any).validate === 'function') {
29
+ (this.body as any).validate();
30
+ }
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateSubscriptionResponseBody } from "./UpdateSubscriptionResponseBody";
4
+
5
+
6
+ export class UpdateSubscriptionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateSubscriptionResponseBody;
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: UpdateSubscriptionResponseBody,
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,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateSubscriptionResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Id of the request
9
+ *
10
+ * @example
11
+ * 0CEC5375-C554-562B-A65F-******
12
+ */
13
+ requestId?: string;
14
+ /**
15
+ * @example
16
+ * 123123123123
17
+ */
18
+ subscriptionId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ requestId: 'requestId',
22
+ subscriptionId: 'subscriptionId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ requestId: 'string',
29
+ subscriptionId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+