@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,391 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListClusterCheckResultResponseBodyChecksCheckPolicies extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Requirement ID of the check item.
9
+ *
10
+ * @example
11
+ * 2
12
+ */
13
+ requirementId?: number;
14
+ /**
15
+ * @remarks
16
+ * Display name of the requirement for the check item.
17
+ *
18
+ * @example
19
+ * Alibaba cloud OSS best security practices
20
+ */
21
+ requirementShowName?: string;
22
+ /**
23
+ * @remarks
24
+ * Section ID of the check item.
25
+ *
26
+ * @example
27
+ * 3
28
+ */
29
+ sectionId?: number;
30
+ /**
31
+ * @remarks
32
+ * Display name of the section for the check item.
33
+ *
34
+ * @example
35
+ * Log Audit
36
+ */
37
+ sectionShowName?: string;
38
+ /**
39
+ * @remarks
40
+ * Standard ID of the check item.
41
+ *
42
+ * @example
43
+ * 1
44
+ */
45
+ standardId?: number;
46
+ /**
47
+ * @remarks
48
+ * Display name of the standard for the check item.
49
+ *
50
+ * @example
51
+ * Best security practices
52
+ */
53
+ standardShowName?: string;
54
+ static names(): { [key: string]: string } {
55
+ return {
56
+ requirementId: 'RequirementId',
57
+ requirementShowName: 'RequirementShowName',
58
+ sectionId: 'SectionId',
59
+ sectionShowName: 'SectionShowName',
60
+ standardId: 'StandardId',
61
+ standardShowName: 'StandardShowName',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ requirementId: 'number',
68
+ requirementShowName: 'string',
69
+ sectionId: 'number',
70
+ sectionShowName: 'string',
71
+ standardId: 'number',
72
+ standardShowName: 'string',
73
+ };
74
+ }
75
+
76
+ validate() {
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class ListClusterCheckResultResponseBodyChecks extends $dara.Model {
86
+ /**
87
+ * @remarks
88
+ * Subtype of the cloud product.
89
+ *
90
+ * @example
91
+ * 0
92
+ */
93
+ assetSubType?: number;
94
+ /**
95
+ * @remarks
96
+ * Asset type.
97
+ *
98
+ * @example
99
+ * 0
100
+ */
101
+ assetType?: number;
102
+ /**
103
+ * @remarks
104
+ * ID of the check item.
105
+ *
106
+ * @example
107
+ * 5
108
+ */
109
+ checkId?: number;
110
+ /**
111
+ * @remarks
112
+ * Information about the standards, requirements, and sections associated with the check result.
113
+ */
114
+ checkPolicies?: ListClusterCheckResultResponseBodyChecksCheckPolicies[];
115
+ /**
116
+ * @remarks
117
+ * Name of the check item.
118
+ *
119
+ * @example
120
+ * OSS-PublicReadOpenManifestFileWithoutEncryption
121
+ */
122
+ checkShowName?: string;
123
+ /**
124
+ * @remarks
125
+ * Source type of the security check item:
126
+ * - **CUSTOM**:User-defined
127
+ * - **SYSTEM**:Predefined by the Security Platform
128
+ *
129
+ * @example
130
+ * SYSTEM
131
+ */
132
+ checkType?: string;
133
+ /**
134
+ * @remarks
135
+ * Subtype of the cloud product asset. Values:
136
+ *
137
+ * - When **InstanceType** is **ECS**, this parameter can take the following values:
138
+ * - **INSTANCE**
139
+ * - **DISK**
140
+ * - **SECURITY_GROUP**
141
+ * - When **InstanceType** is **ACR**, this parameter can take the following values:
142
+ * - **REPOSITORY_ENTERPRISE**
143
+ * - **REPOSITORY_PERSON**
144
+ * - When **InstanceType** is **RAM**, this parameter can take the following values:
145
+ * - **ALIAS**
146
+ * - **USER**
147
+ * - **POLICY**
148
+ * - **GROUP**
149
+ * - When **InstanceType** is **WAF**, this parameter can take the following values:
150
+ * - **DOMAIN**
151
+ * - For other **InstanceType** values, this parameter can take the following value:
152
+ * - **INSTANCE**
153
+ *
154
+ * @example
155
+ * DISK
156
+ */
157
+ instanceSubType?: string;
158
+ /**
159
+ * @remarks
160
+ * Asset type of the cloud product.
161
+ *
162
+ * @example
163
+ * Workload
164
+ */
165
+ instanceType?: string;
166
+ /**
167
+ * @remarks
168
+ * Timestamp of the latest check, in milliseconds.
169
+ *
170
+ * @example
171
+ * 1657793398000
172
+ */
173
+ lastCheckTime?: number;
174
+ /**
175
+ * @remarks
176
+ * Risk level of the check item. Possible values:
177
+ *
178
+ * - **HIGH**:High
179
+ * - **MEDIUM**:Medium
180
+ * - **LOW**:Low
181
+ *
182
+ * @example
183
+ * HIGH
184
+ */
185
+ riskLevel?: string;
186
+ /**
187
+ * @remarks
188
+ * Status of the check item. Values:
189
+ *
190
+ * - **PASS**: Passed
191
+ * - **NOT_PASS**: Not passed
192
+ * - **CHECKING**: Checking
193
+ * - **NOT_CHECK**: Not checked
194
+ * - **WHITELIST**: Whitelisted
195
+ *
196
+ * @example
197
+ * PASS
198
+ */
199
+ status?: string;
200
+ /**
201
+ * @remarks
202
+ * Whether the check depends on TRIAL permissions.
203
+ *
204
+ * @example
205
+ * true
206
+ */
207
+ trialPermission?: boolean;
208
+ /**
209
+ * @remarks
210
+ * Whether the check item requires enabling data delivery of operation audit for more than 30 days to build a behavior baseline.
211
+ * - **1**:Required
212
+ * - **0**:Not Required
213
+ *
214
+ * @example
215
+ * 1
216
+ */
217
+ trialPermissionType?: number;
218
+ /**
219
+ * @remarks
220
+ * Vendor of the asset. Values:
221
+ *
222
+ * 0: Alibaba Cloud
223
+ * 3: Other cloud
224
+ * 4: Other cloud
225
+ * 5: Other cloud
226
+ * 7: Other cloud
227
+ *
228
+ * @example
229
+ * 0
230
+ */
231
+ vendor?: string;
232
+ static names(): { [key: string]: string } {
233
+ return {
234
+ assetSubType: 'AssetSubType',
235
+ assetType: 'AssetType',
236
+ checkId: 'CheckId',
237
+ checkPolicies: 'CheckPolicies',
238
+ checkShowName: 'CheckShowName',
239
+ checkType: 'CheckType',
240
+ instanceSubType: 'InstanceSubType',
241
+ instanceType: 'InstanceType',
242
+ lastCheckTime: 'LastCheckTime',
243
+ riskLevel: 'RiskLevel',
244
+ status: 'Status',
245
+ trialPermission: 'TrialPermission',
246
+ trialPermissionType: 'TrialPermissionType',
247
+ vendor: 'Vendor',
248
+ };
249
+ }
250
+
251
+ static types(): { [key: string]: any } {
252
+ return {
253
+ assetSubType: 'number',
254
+ assetType: 'number',
255
+ checkId: 'number',
256
+ checkPolicies: { 'type': 'array', 'itemType': ListClusterCheckResultResponseBodyChecksCheckPolicies },
257
+ checkShowName: 'string',
258
+ checkType: 'string',
259
+ instanceSubType: 'string',
260
+ instanceType: 'string',
261
+ lastCheckTime: 'number',
262
+ riskLevel: 'string',
263
+ status: 'string',
264
+ trialPermission: 'boolean',
265
+ trialPermissionType: 'number',
266
+ vendor: 'string',
267
+ };
268
+ }
269
+
270
+ validate() {
271
+ if(Array.isArray(this.checkPolicies)) {
272
+ $dara.Model.validateArray(this.checkPolicies);
273
+ }
274
+ super.validate();
275
+ }
276
+
277
+ constructor(map?: { [key: string]: any }) {
278
+ super(map);
279
+ }
280
+ }
281
+
282
+ export class ListClusterCheckResultResponseBodyPageInfo extends $dara.Model {
283
+ /**
284
+ * @remarks
285
+ * The number of data entries displayed on the current page during pagination.
286
+ *
287
+ * @example
288
+ * 20
289
+ */
290
+ count?: number;
291
+ /**
292
+ * @remarks
293
+ * Page number in the pagination query.
294
+ *
295
+ * @example
296
+ * 1
297
+ */
298
+ currentPage?: number;
299
+ /**
300
+ * @remarks
301
+ * Number of items per page in the pagination query. The default value is **20**, indicating that 20 items are displayed per page.
302
+ *
303
+ * @example
304
+ * 20
305
+ */
306
+ pageSize?: number;
307
+ /**
308
+ * @remarks
309
+ * The total number of data entries.
310
+ *
311
+ * @example
312
+ * 83
313
+ */
314
+ totalCount?: number;
315
+ static names(): { [key: string]: string } {
316
+ return {
317
+ count: 'Count',
318
+ currentPage: 'CurrentPage',
319
+ pageSize: 'PageSize',
320
+ totalCount: 'TotalCount',
321
+ };
322
+ }
323
+
324
+ static types(): { [key: string]: any } {
325
+ return {
326
+ count: 'number',
327
+ currentPage: 'number',
328
+ pageSize: 'number',
329
+ totalCount: 'number',
330
+ };
331
+ }
332
+
333
+ validate() {
334
+ super.validate();
335
+ }
336
+
337
+ constructor(map?: { [key: string]: any }) {
338
+ super(map);
339
+ }
340
+ }
341
+
342
+ export class ListClusterCheckResultResponseBody extends $dara.Model {
343
+ /**
344
+ * @remarks
345
+ * Information on check results.
346
+ */
347
+ checks?: ListClusterCheckResultResponseBodyChecks[];
348
+ /**
349
+ * @remarks
350
+ * Pagination information.
351
+ */
352
+ pageInfo?: ListClusterCheckResultResponseBodyPageInfo;
353
+ /**
354
+ * @remarks
355
+ * The ID of the current request.
356
+ *
357
+ * @example
358
+ * 7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1
359
+ */
360
+ requestId?: string;
361
+ static names(): { [key: string]: string } {
362
+ return {
363
+ checks: 'Checks',
364
+ pageInfo: 'PageInfo',
365
+ requestId: 'RequestId',
366
+ };
367
+ }
368
+
369
+ static types(): { [key: string]: any } {
370
+ return {
371
+ checks: { 'type': 'array', 'itemType': ListClusterCheckResultResponseBodyChecks },
372
+ pageInfo: ListClusterCheckResultResponseBodyPageInfo,
373
+ requestId: 'string',
374
+ };
375
+ }
376
+
377
+ validate() {
378
+ if(Array.isArray(this.checks)) {
379
+ $dara.Model.validateArray(this.checks);
380
+ }
381
+ if(this.pageInfo && typeof (this.pageInfo as any).validate === 'function') {
382
+ (this.pageInfo as any).validate();
383
+ }
384
+ super.validate();
385
+ }
386
+
387
+ constructor(map?: { [key: string]: any }) {
388
+ super(map);
389
+ }
390
+ }
391
+
@@ -0,0 +1,184 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListKspmInstancesRequestCloudAssetTypes extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Subtype of the product.
9
+ * Asset type-subtype. Values:
10
+ *
11
+ * - **0**: Workload
12
+ * * **0**: Pod
13
+ * * **1**: DaemonSet
14
+ * * **2**: StatefulSet
15
+ * - **1**: Service
16
+ * * **0**: Service
17
+ * - **2**: Namespace
18
+ * * **0**: Namespace
19
+ * - **3**: Authorization
20
+ * * **0**: Role
21
+ * * **1**: ClusterRole
22
+ * * **2**: ClusterRoleBinding
23
+ * * **3**: RoleBinding
24
+ * * **4**: ServiceAccount
25
+ * - **4**: Storage
26
+ * * **0**: PersistentVolume
27
+ * * **1**: PersistentVolumeClaim
28
+ * * **2**: StorageClass
29
+ * - **5**: Container
30
+ * * **0**: Image
31
+ * - **6**: Network
32
+ * * **0**: Route
33
+ * * **0**: Ingress
34
+ * - **7**: Configuration
35
+ * * **0**: ConfigMap
36
+ * - **8**: Policies
37
+ * * **0**: LimitRanges
38
+ * * **1**: ResourceQuota
39
+ *
40
+ * @example
41
+ * 0
42
+ */
43
+ assetSubType?: number;
44
+ /**
45
+ * @remarks
46
+ * Type of the asset. Values:
47
+ *
48
+ * - **0**: Workload
49
+ * - **1**: Service
50
+ * - **2**: Namespace
51
+ * - **3**: Authorization
52
+ * - **4**: Storage
53
+ * - **5**: Container
54
+ * - **6**: Network
55
+ * - **7**: Configuration
56
+ * - **8**: Policies
57
+ *
58
+ * @example
59
+ * 0
60
+ */
61
+ assetType?: number;
62
+ /**
63
+ * @remarks
64
+ * Vendor of the asset. The fixed value is **200**.
65
+ *
66
+ * @example
67
+ * 200
68
+ */
69
+ vendor?: number;
70
+ static names(): { [key: string]: string } {
71
+ return {
72
+ assetSubType: 'AssetSubType',
73
+ assetType: 'AssetType',
74
+ vendor: 'Vendor',
75
+ };
76
+ }
77
+
78
+ static types(): { [key: string]: any } {
79
+ return {
80
+ assetSubType: 'number',
81
+ assetType: 'number',
82
+ vendor: 'number',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class ListKspmInstancesRequest extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * List of Kubernetes asset type information.
99
+ */
100
+ cloudAssetTypes?: ListKspmInstancesRequestCloudAssetTypes[];
101
+ /**
102
+ * @remarks
103
+ * Set the conditions for searching assets. This parameter is in JSON format, and case sensitivity should be noted when entering parameters. It includes the following fields:
104
+ *
105
+ * - **name**: Search item
106
+ * - **value**: Value of the search item
107
+ * - **logicalExp**: The relationship between search items when multiple conditions are used. Values:
108
+ * - **OR**: Indicates an **or** relationship between multiple conditions.
109
+ * - **AND**: Indicates an **and** relationship between multiple conditions.
110
+ * > Supports using region, instance name, instance ID, alarm status, risk status, and tag search conditions.
111
+ *
112
+ * @example
113
+ * [{"name":"vulStatus","value":"YES","logicalExp":"AND"}]
114
+ */
115
+ criteria?: string;
116
+ /**
117
+ * @remarks
118
+ * Set which page to start displaying the query results from. The default value is 1, indicating that the display starts from the first page.
119
+ *
120
+ * @example
121
+ * 1
122
+ */
123
+ currentPage?: number;
124
+ /**
125
+ * @remarks
126
+ * Set the logical relationship that takes effect between multiple search conditions. Values:
127
+ *
128
+ * - **OR**: Indicates an **or** relationship between multiple search conditions.
129
+ * - **AND**: Indicates an **and** relationship between multiple search conditions.
130
+ *
131
+ * @example
132
+ * OR
133
+ */
134
+ logicalExp?: string;
135
+ /**
136
+ * @remarks
137
+ * The maximum number of data entries displayed per page during pagination. The default value is 20.
138
+ *
139
+ * @example
140
+ * 20
141
+ */
142
+ pageSize?: number;
143
+ /**
144
+ * @remarks
145
+ * The ID of the region where the instance is located.
146
+ *
147
+ * @example
148
+ * cn-hangzhou
149
+ */
150
+ regionId?: string;
151
+ static names(): { [key: string]: string } {
152
+ return {
153
+ cloudAssetTypes: 'CloudAssetTypes',
154
+ criteria: 'Criteria',
155
+ currentPage: 'CurrentPage',
156
+ logicalExp: 'LogicalExp',
157
+ pageSize: 'PageSize',
158
+ regionId: 'RegionId',
159
+ };
160
+ }
161
+
162
+ static types(): { [key: string]: any } {
163
+ return {
164
+ cloudAssetTypes: { 'type': 'array', 'itemType': ListKspmInstancesRequestCloudAssetTypes },
165
+ criteria: 'string',
166
+ currentPage: 'number',
167
+ logicalExp: 'string',
168
+ pageSize: 'number',
169
+ regionId: 'string',
170
+ };
171
+ }
172
+
173
+ validate() {
174
+ if(Array.isArray(this.cloudAssetTypes)) {
175
+ $dara.Model.validateArray(this.cloudAssetTypes);
176
+ }
177
+ super.validate();
178
+ }
179
+
180
+ constructor(map?: { [key: string]: any }) {
181
+ super(map);
182
+ }
183
+ }
184
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListKspmInstancesResponseBody } from "./ListKspmInstancesResponseBody";
4
+
5
+
6
+ export class ListKspmInstancesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListKspmInstancesResponseBody;
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: ListKspmInstancesResponseBody,
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
+