@alicloud/sas20181203 9.0.2 → 9.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.
Files changed (154) hide show
  1. package/dist/client.d.ts +118 -0
  2. package/dist/client.js +392 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeCloudVendorAccountAklistRequest.d.ts +9 -0
  5. package/dist/models/DescribeCloudVendorAccountAklistRequest.js.map +1 -1
  6. package/dist/models/DescribeImageBaselineStrategyResponseBody.d.ts +1 -0
  7. package/dist/models/DescribeImageBaselineStrategyResponseBody.js +2 -0
  8. package/dist/models/DescribeImageBaselineStrategyResponseBody.js.map +1 -1
  9. package/dist/models/DescribePropertyScaDetailRequest.d.ts +10 -0
  10. package/dist/models/DescribePropertyScaDetailRequest.js.map +1 -1
  11. package/dist/models/DescribeSnapshotsResponseBody.d.ts +8 -0
  12. package/dist/models/DescribeSnapshotsResponseBody.js +2 -0
  13. package/dist/models/DescribeSnapshotsResponseBody.js.map +1 -1
  14. package/dist/models/DescribeSuspEventsRequest.d.ts +7 -0
  15. package/dist/models/DescribeSuspEventsRequest.js.map +1 -1
  16. package/dist/models/DescribeSuspEventsResponseBody.d.ts +7 -0
  17. package/dist/models/DescribeSuspEventsResponseBody.js.map +1 -1
  18. package/dist/models/DescribeSuspEventsShrinkRequest.d.ts +7 -0
  19. package/dist/models/DescribeSuspEventsShrinkRequest.js.map +1 -1
  20. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponse.d.ts +19 -0
  21. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponse.js +69 -0
  22. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponse.js.map +1 -0
  23. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponseBody.d.ts +104 -0
  24. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponseBody.js +132 -0
  25. package/dist/models/DescribeSuspiciousSecurityEventyStatisticsResponseBody.js.map +1 -0
  26. package/dist/models/ExportVulRequest.d.ts +10 -0
  27. package/dist/models/ExportVulRequest.js.map +1 -1
  28. package/dist/models/GetAssetsPropertyDetailResponseBody.d.ts +47 -0
  29. package/dist/models/GetAssetsPropertyDetailResponseBody.js.map +1 -1
  30. package/dist/models/GetAttackEventDashboardRequest.d.ts +40 -0
  31. package/dist/models/GetAttackEventDashboardRequest.js +62 -0
  32. package/dist/models/GetAttackEventDashboardRequest.js.map +1 -0
  33. package/dist/models/GetAttackEventDashboardResponse.d.ts +19 -0
  34. package/dist/models/GetAttackEventDashboardResponse.js +69 -0
  35. package/dist/models/GetAttackEventDashboardResponse.js.map +1 -0
  36. package/dist/models/GetAttackEventDashboardResponseBody.d.ts +212 -0
  37. package/dist/models/GetAttackEventDashboardResponseBody.js +194 -0
  38. package/dist/models/GetAttackEventDashboardResponseBody.js.map +1 -0
  39. package/dist/models/GetAttackEventDetailRequest.d.ts +31 -0
  40. package/dist/models/GetAttackEventDetailRequest.js +60 -0
  41. package/dist/models/GetAttackEventDetailRequest.js.map +1 -0
  42. package/dist/models/GetAttackEventDetailResponse.d.ts +19 -0
  43. package/dist/models/GetAttackEventDetailResponse.js +69 -0
  44. package/dist/models/GetAttackEventDetailResponse.js.map +1 -0
  45. package/dist/models/GetAttackEventDetailResponseBody.d.ts +113 -0
  46. package/dist/models/GetAttackEventDetailResponseBody.js +116 -0
  47. package/dist/models/GetAttackEventDetailResponseBody.js.map +1 -0
  48. package/dist/models/GetCheckCountStatisticRequest.d.ts +6 -0
  49. package/dist/models/GetCheckCountStatisticRequest.js.map +1 -1
  50. package/dist/models/GetCheckCountStatisticResponseBody.d.ts +6 -0
  51. package/dist/models/GetCheckCountStatisticResponseBody.js.map +1 -1
  52. package/dist/models/GetClusterCheckSummaryRequest.d.ts +23 -0
  53. package/dist/models/GetClusterCheckSummaryRequest.js +58 -0
  54. package/dist/models/GetClusterCheckSummaryRequest.js.map +1 -0
  55. package/dist/models/GetClusterCheckSummaryResponse.d.ts +19 -0
  56. package/dist/models/GetClusterCheckSummaryResponse.js +69 -0
  57. package/dist/models/GetClusterCheckSummaryResponse.js.map +1 -0
  58. package/dist/models/GetClusterCheckSummaryResponseBody.d.ts +70 -0
  59. package/dist/models/GetClusterCheckSummaryResponseBody.js +88 -0
  60. package/dist/models/GetClusterCheckSummaryResponseBody.js.map +1 -0
  61. package/dist/models/GetSupportedModulesResponseBody.d.ts +9 -0
  62. package/dist/models/GetSupportedModulesResponseBody.js.map +1 -1
  63. package/dist/models/GetValidDeductInstancesRequest.d.ts +41 -0
  64. package/dist/models/GetValidDeductInstancesRequest.js +62 -0
  65. package/dist/models/GetValidDeductInstancesRequest.js.map +1 -0
  66. package/dist/models/GetValidDeductInstancesResponse.d.ts +19 -0
  67. package/dist/models/GetValidDeductInstancesResponse.js +69 -0
  68. package/dist/models/GetValidDeductInstancesResponse.js.map +1 -0
  69. package/dist/models/GetValidDeductInstancesResponseBody.d.ts +134 -0
  70. package/dist/models/GetValidDeductInstancesResponseBody.js +120 -0
  71. package/dist/models/GetValidDeductInstancesResponseBody.js.map +1 -0
  72. package/dist/models/ListAttackEventInfoRequest.d.ts +104 -0
  73. package/dist/models/ListAttackEventInfoRequest.js +74 -0
  74. package/dist/models/ListAttackEventInfoRequest.js.map +1 -0
  75. package/dist/models/ListAttackEventInfoResponse.d.ts +19 -0
  76. package/dist/models/ListAttackEventInfoResponse.js +69 -0
  77. package/dist/models/ListAttackEventInfoResponse.js.map +1 -0
  78. package/dist/models/ListAttackEventInfoResponseBody.d.ts +284 -0
  79. package/dist/models/ListAttackEventInfoResponseBody.js +150 -0
  80. package/dist/models/ListAttackEventInfoResponseBody.js.map +1 -0
  81. package/dist/models/ListClusterCheckResultRequest.d.ts +80 -0
  82. package/dist/models/ListClusterCheckResultRequest.js +78 -0
  83. package/dist/models/ListClusterCheckResultRequest.js.map +1 -0
  84. package/dist/models/ListClusterCheckResultResponse.d.ts +19 -0
  85. package/dist/models/ListClusterCheckResultResponse.js +69 -0
  86. package/dist/models/ListClusterCheckResultResponse.js.map +1 -0
  87. package/dist/models/ListClusterCheckResultResponseBody.d.ts +293 -0
  88. package/dist/models/ListClusterCheckResultResponseBody.js +170 -0
  89. package/dist/models/ListClusterCheckResultResponseBody.js.map +1 -0
  90. package/dist/models/ListKspmInstancesRequest.d.ts +144 -0
  91. package/dist/models/ListKspmInstancesRequest.js +94 -0
  92. package/dist/models/ListKspmInstancesRequest.js.map +1 -0
  93. package/dist/models/ListKspmInstancesResponse.d.ts +19 -0
  94. package/dist/models/ListKspmInstancesResponse.js +69 -0
  95. package/dist/models/ListKspmInstancesResponse.js.map +1 -0
  96. package/dist/models/ListKspmInstancesResponseBody.d.ts +210 -0
  97. package/dist/models/ListKspmInstancesResponseBody.js +143 -0
  98. package/dist/models/ListKspmInstancesResponseBody.js.map +1 -0
  99. package/dist/models/ListPrivateRegistryListResponseBody.d.ts +1 -0
  100. package/dist/models/ListPrivateRegistryListResponseBody.js +2 -0
  101. package/dist/models/ListPrivateRegistryListResponseBody.js.map +1 -1
  102. package/dist/models/ModifyImageRegistryRequest.d.ts +3 -0
  103. package/dist/models/ModifyImageRegistryRequest.js +6 -0
  104. package/dist/models/ModifyImageRegistryRequest.js.map +1 -1
  105. package/dist/models/ModifyPostPayModuleSwitchRequest.d.ts +3 -0
  106. package/dist/models/ModifyPostPayModuleSwitchRequest.js.map +1 -1
  107. package/dist/models/SaveImageBaselineStrategyRequest.d.ts +1 -0
  108. package/dist/models/SaveImageBaselineStrategyRequest.js +2 -0
  109. package/dist/models/SaveImageBaselineStrategyRequest.js.map +1 -1
  110. package/dist/models/model.d.ts +44 -0
  111. package/dist/models/model.js +157 -68
  112. package/dist/models/model.js.map +1 -1
  113. package/package.json +1 -1
  114. package/src/client.ts +444 -0
  115. package/src/models/DescribeCloudVendorAccountAklistRequest.ts +9 -0
  116. package/src/models/DescribeImageBaselineStrategyResponseBody.ts +3 -0
  117. package/src/models/DescribePropertyScaDetailRequest.ts +10 -0
  118. package/src/models/DescribeSnapshotsResponseBody.ts +10 -0
  119. package/src/models/DescribeSuspEventsRequest.ts +7 -0
  120. package/src/models/DescribeSuspEventsResponseBody.ts +7 -0
  121. package/src/models/DescribeSuspEventsShrinkRequest.ts +7 -0
  122. package/src/models/DescribeSuspiciousSecurityEventyStatisticsResponse.ts +40 -0
  123. package/src/models/DescribeSuspiciousSecurityEventyStatisticsResponseBody.ts +164 -0
  124. package/src/models/ExportVulRequest.ts +10 -0
  125. package/src/models/GetAssetsPropertyDetailResponseBody.ts +47 -0
  126. package/src/models/GetAttackEventDashboardRequest.ts +57 -0
  127. package/src/models/GetAttackEventDashboardResponse.ts +40 -0
  128. package/src/models/GetAttackEventDashboardResponseBody.ts +316 -0
  129. package/src/models/GetAttackEventDetailRequest.ts +46 -0
  130. package/src/models/GetAttackEventDetailResponse.ts +40 -0
  131. package/src/models/GetAttackEventDetailResponseBody.ts +166 -0
  132. package/src/models/GetCheckCountStatisticRequest.ts +6 -0
  133. package/src/models/GetCheckCountStatisticResponseBody.ts +6 -0
  134. package/src/models/GetClusterCheckSummaryRequest.ts +36 -0
  135. package/src/models/GetClusterCheckSummaryResponse.ts +40 -0
  136. package/src/models/GetClusterCheckSummaryResponseBody.ts +104 -0
  137. package/src/models/GetSupportedModulesResponseBody.ts +9 -0
  138. package/src/models/GetValidDeductInstancesRequest.ts +58 -0
  139. package/src/models/GetValidDeductInstancesResponse.ts +40 -0
  140. package/src/models/GetValidDeductInstancesResponseBody.ts +191 -0
  141. package/src/models/ListAttackEventInfoRequest.ts +133 -0
  142. package/src/models/ListAttackEventInfoResponse.ts +40 -0
  143. package/src/models/ListAttackEventInfoResponseBody.ts +371 -0
  144. package/src/models/ListClusterCheckResultRequest.ts +113 -0
  145. package/src/models/ListClusterCheckResultResponse.ts +40 -0
  146. package/src/models/ListClusterCheckResultResponseBody.ts +391 -0
  147. package/src/models/ListKspmInstancesRequest.ts +184 -0
  148. package/src/models/ListKspmInstancesResponse.ts +40 -0
  149. package/src/models/ListKspmInstancesResponseBody.ts +290 -0
  150. package/src/models/ListPrivateRegistryListResponseBody.ts +3 -0
  151. package/src/models/ModifyImageRegistryRequest.ts +9 -0
  152. package/src/models/ModifyPostPayModuleSwitchRequest.ts +3 -0
  153. package/src/models/SaveImageBaselineStrategyRequest.ts +3 -0
  154. package/src/models/model.ts +44 -0
@@ -0,0 +1,371 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListAttackEventInfoResponseBodyList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Attack type. Values:
9
+ * - 9: SQL Server brute force attack
10
+ * - 5: SSH brute force attack
11
+ * - 6: RDP brute force attack
12
+ * - 101: Java Struts2 attack interception
13
+ * - 102: Redis attack interception
14
+ * - 103: Chinese AntSword WebShell communication
15
+ * - 104: Chinese Chopper WebShell communication
16
+ * - 133: XISE WebShell communication
17
+ * - 161: WebShell upload
18
+ * - 209: PHP WebShell upload
19
+ * - 210: JSP WebShell upload
20
+ * - 211: ASP WebShell upload
21
+ * - 215: Special suffix WebShell upload
22
+ * - ai_webshell: Intelligent defense for WebShell upload
23
+ * - java_common_rce: Java common RCE vulnerability interception
24
+ * - alinet_webrce: Adaptive web attack defense
25
+ * - other: Other
26
+ *
27
+ * @example
28
+ * 9
29
+ */
30
+ attackType?: string;
31
+ /**
32
+ * @remarks
33
+ * Mapped name of the attack type. Values:
34
+ * - 9: SQL Server brute force
35
+ * - 5: SSH brute force
36
+ * - 6: RDP brute force
37
+ * - 101: Java Struts2 attack interception
38
+ * - 102: Redis attack interception
39
+ * - 103: Chinese AntSword WebShell communication
40
+ * - 104: Chinese Chopper WebShell communication
41
+ * - 133: XISE WebShell communication
42
+ * - 161: WebShell upload
43
+ * - 209: PHP WebShell upload
44
+ * - 210: JSP WebShell upload
45
+ * - 211: ASP WebShell upload
46
+ * - 215: Special suffix WebShell upload
47
+ * - ai_webshell: Intelligent defense for WebShell upload
48
+ * - java_common_rce: Java common RCE vulnerability interception
49
+ * - alinet_webrce: Adaptive web attack defense
50
+ * - other: Other
51
+ *
52
+ * @example
53
+ * SQL Server暴力破解
54
+ */
55
+ attackTypeName?: string;
56
+ /**
57
+ * @remarks
58
+ * Number of attacks.
59
+ *
60
+ * @example
61
+ * 2
62
+ */
63
+ count?: number;
64
+ /**
65
+ * @remarks
66
+ * Target port of the attack.
67
+ *
68
+ * @example
69
+ * 8000
70
+ */
71
+ dstPort?: string;
72
+ /**
73
+ * @remarks
74
+ * First occurrence time of the attack event, in timestamp format.
75
+ *
76
+ * @example
77
+ * 1752731615000
78
+ */
79
+ firstTime?: number;
80
+ /**
81
+ * @remarks
82
+ * String representation of the first occurrence time of the attack event.
83
+ *
84
+ * @example
85
+ * 2025-07-17 13:53:35
86
+ */
87
+ firstTimeStr?: string;
88
+ /**
89
+ * @remarks
90
+ * ID of the attack event.
91
+ *
92
+ * @example
93
+ * 18825544674********
94
+ */
95
+ id?: string;
96
+ /**
97
+ * @remarks
98
+ * Instance name of the attacked asset.
99
+ *
100
+ * @example
101
+ * sql-test-0****
102
+ */
103
+ instanceName?: string;
104
+ /**
105
+ * @remarks
106
+ * Public IP of the attacked asset.
107
+ *
108
+ * @example
109
+ * 101.37.86.**
110
+ */
111
+ internetIp?: string;
112
+ /**
113
+ * @remarks
114
+ * Private IP of the attacked asset.
115
+ *
116
+ * @example
117
+ * 10.1.0.**
118
+ */
119
+ intranetIp?: string;
120
+ /**
121
+ * @remarks
122
+ * Timestamp of the most recent occurrence of the attack event.
123
+ *
124
+ * @example
125
+ * 1752731618000
126
+ */
127
+ latestTime?: number;
128
+ /**
129
+ * @remarks
130
+ * String representation of the most recent occurrence time of the attack event.
131
+ *
132
+ * @example
133
+ * 2025-07-17 13:53:38
134
+ */
135
+ latestTimeStr?: string;
136
+ /**
137
+ * @remarks
138
+ * MD5 string of the attack payload.
139
+ *
140
+ * @example
141
+ * a57b0d657369e4201eed8d47a4dc****
142
+ */
143
+ payloadMd5?: string;
144
+ /**
145
+ * @remarks
146
+ * Source IP of the attack.
147
+ *
148
+ * @example
149
+ * 140.205.11.**
150
+ */
151
+ srcIp?: string;
152
+ /**
153
+ * @remarks
154
+ * Attack status. Values:
155
+ * - block: Blocked (defended)
156
+ *
157
+ * @example
158
+ * block
159
+ */
160
+ status?: string;
161
+ /**
162
+ * @remarks
163
+ * UUID of the attacked asset instance.
164
+ *
165
+ * @example
166
+ * 49e25e0f-bb51-4a5a-a1b3-13a4ddaa****
167
+ */
168
+ uuid?: string;
169
+ static names(): { [key: string]: string } {
170
+ return {
171
+ attackType: 'AttackType',
172
+ attackTypeName: 'AttackTypeName',
173
+ count: 'Count',
174
+ dstPort: 'DstPort',
175
+ firstTime: 'FirstTime',
176
+ firstTimeStr: 'FirstTimeStr',
177
+ id: 'Id',
178
+ instanceName: 'InstanceName',
179
+ internetIp: 'InternetIp',
180
+ intranetIp: 'IntranetIp',
181
+ latestTime: 'LatestTime',
182
+ latestTimeStr: 'LatestTimeStr',
183
+ payloadMd5: 'PayloadMd5',
184
+ srcIp: 'SrcIp',
185
+ status: 'Status',
186
+ uuid: 'Uuid',
187
+ };
188
+ }
189
+
190
+ static types(): { [key: string]: any } {
191
+ return {
192
+ attackType: 'string',
193
+ attackTypeName: 'string',
194
+ count: 'number',
195
+ dstPort: 'string',
196
+ firstTime: 'number',
197
+ firstTimeStr: 'string',
198
+ id: 'string',
199
+ instanceName: 'string',
200
+ internetIp: 'string',
201
+ intranetIp: 'string',
202
+ latestTime: 'number',
203
+ latestTimeStr: 'string',
204
+ payloadMd5: 'string',
205
+ srcIp: 'string',
206
+ status: 'string',
207
+ uuid: 'string',
208
+ };
209
+ }
210
+
211
+ validate() {
212
+ super.validate();
213
+ }
214
+
215
+ constructor(map?: { [key: string]: any }) {
216
+ super(map);
217
+ }
218
+ }
219
+
220
+ export class ListAttackEventInfoResponseBodyPageInfo extends $dara.Model {
221
+ /**
222
+ * @remarks
223
+ * Number of items displayed on the current page in pagination queries.
224
+ *
225
+ * @example
226
+ * 3
227
+ */
228
+ count?: number;
229
+ /**
230
+ * @remarks
231
+ * Page number in pagination queries.
232
+ *
233
+ * @example
234
+ * 1
235
+ */
236
+ currentPage?: number;
237
+ /**
238
+ * @remarks
239
+ * Maximum number of items per page in pagination queries.
240
+ *
241
+ * @example
242
+ * 10
243
+ */
244
+ pageSize?: number;
245
+ /**
246
+ * @remarks
247
+ * Total number of items.
248
+ *
249
+ * @example
250
+ * 253
251
+ */
252
+ totalCount?: number;
253
+ static names(): { [key: string]: string } {
254
+ return {
255
+ count: 'Count',
256
+ currentPage: 'CurrentPage',
257
+ pageSize: 'PageSize',
258
+ totalCount: 'TotalCount',
259
+ };
260
+ }
261
+
262
+ static types(): { [key: string]: any } {
263
+ return {
264
+ count: 'number',
265
+ currentPage: 'number',
266
+ pageSize: 'number',
267
+ totalCount: 'number',
268
+ };
269
+ }
270
+
271
+ validate() {
272
+ super.validate();
273
+ }
274
+
275
+ constructor(map?: { [key: string]: any }) {
276
+ super(map);
277
+ }
278
+ }
279
+
280
+ export class ListAttackEventInfoResponseBody extends $dara.Model {
281
+ /**
282
+ * @remarks
283
+ * Result code, **200** indicates success, any other value indicates failure. The caller can use this field to determine the reason for the failure.
284
+ *
285
+ * @example
286
+ * 200
287
+ */
288
+ code?: string;
289
+ /**
290
+ * @remarks
291
+ * HTTP status code, 200 indicates a successful request.
292
+ *
293
+ * @example
294
+ * 200
295
+ */
296
+ httpStatusCode?: number;
297
+ /**
298
+ * @remarks
299
+ * List of attack events.
300
+ */
301
+ list?: ListAttackEventInfoResponseBodyList[];
302
+ /**
303
+ * @remarks
304
+ * Return message of the request result.
305
+ *
306
+ * @example
307
+ * successful
308
+ */
309
+ message?: string;
310
+ /**
311
+ * @remarks
312
+ * Pagination information.
313
+ */
314
+ pageInfo?: ListAttackEventInfoResponseBodyPageInfo;
315
+ /**
316
+ * @remarks
317
+ * The ID of this call request, a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and pinpoint issues.
318
+ *
319
+ * @example
320
+ * 52870893-48A7-5A9E-9E05-6253E5B6****
321
+ */
322
+ requestId?: string;
323
+ /**
324
+ * @remarks
325
+ * Indicates whether the API call was successful. Values:
326
+ * - **true**: Success
327
+ * - **false**: Failure
328
+ *
329
+ * @example
330
+ * true
331
+ */
332
+ success?: boolean;
333
+ static names(): { [key: string]: string } {
334
+ return {
335
+ code: 'Code',
336
+ httpStatusCode: 'HttpStatusCode',
337
+ list: 'List',
338
+ message: 'Message',
339
+ pageInfo: 'PageInfo',
340
+ requestId: 'RequestId',
341
+ success: 'Success',
342
+ };
343
+ }
344
+
345
+ static types(): { [key: string]: any } {
346
+ return {
347
+ code: 'string',
348
+ httpStatusCode: 'number',
349
+ list: { 'type': 'array', 'itemType': ListAttackEventInfoResponseBodyList },
350
+ message: 'string',
351
+ pageInfo: ListAttackEventInfoResponseBodyPageInfo,
352
+ requestId: 'string',
353
+ success: 'boolean',
354
+ };
355
+ }
356
+
357
+ validate() {
358
+ if(Array.isArray(this.list)) {
359
+ $dara.Model.validateArray(this.list);
360
+ }
361
+ if(this.pageInfo && typeof (this.pageInfo as any).validate === 'function') {
362
+ (this.pageInfo as any).validate();
363
+ }
364
+ super.validate();
365
+ }
366
+
367
+ constructor(map?: { [key: string]: any }) {
368
+ super(map);
369
+ }
370
+ }
371
+
@@ -0,0 +1,113 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListClusterCheckResultRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Fuzzy search key for check items.
9
+ *
10
+ * @example
11
+ * container
12
+ */
13
+ checkKey?: string;
14
+ /**
15
+ * @remarks
16
+ * Cluster ID.
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * c3aaf6c8085f84791882eef200cd2****
22
+ */
23
+ clusterId?: string;
24
+ /**
25
+ * @remarks
26
+ * Page number for the current page in a paginated query. The default value is **1**.
27
+ *
28
+ * @example
29
+ * 1
30
+ */
31
+ currentPage?: number;
32
+ /**
33
+ * @remarks
34
+ * Language type for requests and responses. The default value is **zh**. Values:
35
+ * - **zh**: Chinese
36
+ * - **en**: English
37
+ *
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * zh
42
+ */
43
+ lang?: string;
44
+ /**
45
+ * @remarks
46
+ * Number of records to display per page when performing a paginated query. The default value is **20**, indicating 20 records per page.
47
+ *
48
+ * @example
49
+ * 20
50
+ */
51
+ pageSize?: number;
52
+ /**
53
+ * @remarks
54
+ * List of risk levels.
55
+ */
56
+ riskLevels?: string[];
57
+ /**
58
+ * @remarks
59
+ * Custom sorting type. Values:
60
+ *
61
+ * - **RISK_LEVEL**: Risk level.
62
+ * - **STATUS**: Check item status.
63
+ *
64
+ * @example
65
+ * STATUS
66
+ */
67
+ sortType?: string;
68
+ /**
69
+ * @remarks
70
+ * List of check item statuses.
71
+ */
72
+ statuses?: string[];
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ checkKey: 'CheckKey',
76
+ clusterId: 'ClusterId',
77
+ currentPage: 'CurrentPage',
78
+ lang: 'Lang',
79
+ pageSize: 'PageSize',
80
+ riskLevels: 'RiskLevels',
81
+ sortType: 'SortType',
82
+ statuses: 'Statuses',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ checkKey: 'string',
89
+ clusterId: 'string',
90
+ currentPage: 'number',
91
+ lang: 'string',
92
+ pageSize: 'number',
93
+ riskLevels: { 'type': 'array', 'itemType': 'string' },
94
+ sortType: 'string',
95
+ statuses: { 'type': 'array', 'itemType': 'string' },
96
+ };
97
+ }
98
+
99
+ validate() {
100
+ if(Array.isArray(this.riskLevels)) {
101
+ $dara.Model.validateArray(this.riskLevels);
102
+ }
103
+ if(Array.isArray(this.statuses)) {
104
+ $dara.Model.validateArray(this.statuses);
105
+ }
106
+ super.validate();
107
+ }
108
+
109
+ constructor(map?: { [key: string]: any }) {
110
+ super(map);
111
+ }
112
+ }
113
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListClusterCheckResultResponseBody } from "./ListClusterCheckResultResponseBody";
4
+
5
+
6
+ export class ListClusterCheckResultResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListClusterCheckResultResponseBody;
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: ListClusterCheckResultResponseBody,
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
+