@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,293 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListClusterCheckResultResponseBodyChecksCheckPolicies extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * Requirement ID of the check item.
6
+ *
7
+ * @example
8
+ * 2
9
+ */
10
+ requirementId?: number;
11
+ /**
12
+ * @remarks
13
+ * Display name of the requirement for the check item.
14
+ *
15
+ * @example
16
+ * Alibaba cloud OSS best security practices
17
+ */
18
+ requirementShowName?: string;
19
+ /**
20
+ * @remarks
21
+ * Section ID of the check item.
22
+ *
23
+ * @example
24
+ * 3
25
+ */
26
+ sectionId?: number;
27
+ /**
28
+ * @remarks
29
+ * Display name of the section for the check item.
30
+ *
31
+ * @example
32
+ * Log Audit
33
+ */
34
+ sectionShowName?: string;
35
+ /**
36
+ * @remarks
37
+ * Standard ID of the check item.
38
+ *
39
+ * @example
40
+ * 1
41
+ */
42
+ standardId?: number;
43
+ /**
44
+ * @remarks
45
+ * Display name of the standard for the check item.
46
+ *
47
+ * @example
48
+ * Best security practices
49
+ */
50
+ standardShowName?: string;
51
+ static names(): {
52
+ [key: string]: string;
53
+ };
54
+ static types(): {
55
+ [key: string]: any;
56
+ };
57
+ validate(): void;
58
+ constructor(map?: {
59
+ [key: string]: any;
60
+ });
61
+ }
62
+ export declare class ListClusterCheckResultResponseBodyChecks extends $dara.Model {
63
+ /**
64
+ * @remarks
65
+ * Subtype of the cloud product.
66
+ *
67
+ * @example
68
+ * 0
69
+ */
70
+ assetSubType?: number;
71
+ /**
72
+ * @remarks
73
+ * Asset type.
74
+ *
75
+ * @example
76
+ * 0
77
+ */
78
+ assetType?: number;
79
+ /**
80
+ * @remarks
81
+ * ID of the check item.
82
+ *
83
+ * @example
84
+ * 5
85
+ */
86
+ checkId?: number;
87
+ /**
88
+ * @remarks
89
+ * Information about the standards, requirements, and sections associated with the check result.
90
+ */
91
+ checkPolicies?: ListClusterCheckResultResponseBodyChecksCheckPolicies[];
92
+ /**
93
+ * @remarks
94
+ * Name of the check item.
95
+ *
96
+ * @example
97
+ * OSS-PublicReadOpenManifestFileWithoutEncryption
98
+ */
99
+ checkShowName?: string;
100
+ /**
101
+ * @remarks
102
+ * Source type of the security check item:
103
+ * - **CUSTOM**:User-defined
104
+ * - **SYSTEM**:Predefined by the Security Platform
105
+ *
106
+ * @example
107
+ * SYSTEM
108
+ */
109
+ checkType?: string;
110
+ /**
111
+ * @remarks
112
+ * Subtype of the cloud product asset. Values:
113
+ *
114
+ * - When **InstanceType** is **ECS**, this parameter can take the following values:
115
+ * - **INSTANCE**
116
+ * - **DISK**
117
+ * - **SECURITY_GROUP**
118
+ * - When **InstanceType** is **ACR**, this parameter can take the following values:
119
+ * - **REPOSITORY_ENTERPRISE**
120
+ * - **REPOSITORY_PERSON**
121
+ * - When **InstanceType** is **RAM**, this parameter can take the following values:
122
+ * - **ALIAS**
123
+ * - **USER**
124
+ * - **POLICY**
125
+ * - **GROUP**
126
+ * - When **InstanceType** is **WAF**, this parameter can take the following values:
127
+ * - **DOMAIN**
128
+ * - For other **InstanceType** values, this parameter can take the following value:
129
+ * - **INSTANCE**
130
+ *
131
+ * @example
132
+ * DISK
133
+ */
134
+ instanceSubType?: string;
135
+ /**
136
+ * @remarks
137
+ * Asset type of the cloud product.
138
+ *
139
+ * @example
140
+ * Workload
141
+ */
142
+ instanceType?: string;
143
+ /**
144
+ * @remarks
145
+ * Timestamp of the latest check, in milliseconds.
146
+ *
147
+ * @example
148
+ * 1657793398000
149
+ */
150
+ lastCheckTime?: number;
151
+ /**
152
+ * @remarks
153
+ * Risk level of the check item. Possible values:
154
+ *
155
+ * - **HIGH**:High
156
+ * - **MEDIUM**:Medium
157
+ * - **LOW**:Low
158
+ *
159
+ * @example
160
+ * HIGH
161
+ */
162
+ riskLevel?: string;
163
+ /**
164
+ * @remarks
165
+ * Status of the check item. Values:
166
+ *
167
+ * - **PASS**: Passed
168
+ * - **NOT_PASS**: Not passed
169
+ * - **CHECKING**: Checking
170
+ * - **NOT_CHECK**: Not checked
171
+ * - **WHITELIST**: Whitelisted
172
+ *
173
+ * @example
174
+ * PASS
175
+ */
176
+ status?: string;
177
+ /**
178
+ * @remarks
179
+ * Whether the check depends on TRIAL permissions.
180
+ *
181
+ * @example
182
+ * true
183
+ */
184
+ trialPermission?: boolean;
185
+ /**
186
+ * @remarks
187
+ * Whether the check item requires enabling data delivery of operation audit for more than 30 days to build a behavior baseline.
188
+ * - **1**:Required
189
+ * - **0**:Not Required
190
+ *
191
+ * @example
192
+ * 1
193
+ */
194
+ trialPermissionType?: number;
195
+ /**
196
+ * @remarks
197
+ * Vendor of the asset. Values:
198
+ *
199
+ * 0: Alibaba Cloud
200
+ * 3: Other cloud
201
+ * 4: Other cloud
202
+ * 5: Other cloud
203
+ * 7: Other cloud
204
+ *
205
+ * @example
206
+ * 0
207
+ */
208
+ vendor?: string;
209
+ static names(): {
210
+ [key: string]: string;
211
+ };
212
+ static types(): {
213
+ [key: string]: any;
214
+ };
215
+ validate(): void;
216
+ constructor(map?: {
217
+ [key: string]: any;
218
+ });
219
+ }
220
+ export declare class ListClusterCheckResultResponseBodyPageInfo extends $dara.Model {
221
+ /**
222
+ * @remarks
223
+ * The number of data entries displayed on the current page during pagination.
224
+ *
225
+ * @example
226
+ * 20
227
+ */
228
+ count?: number;
229
+ /**
230
+ * @remarks
231
+ * Page number in the pagination query.
232
+ *
233
+ * @example
234
+ * 1
235
+ */
236
+ currentPage?: number;
237
+ /**
238
+ * @remarks
239
+ * Number of items per page in the pagination query. The default value is **20**, indicating that 20 items are displayed per page.
240
+ *
241
+ * @example
242
+ * 20
243
+ */
244
+ pageSize?: number;
245
+ /**
246
+ * @remarks
247
+ * The total number of data entries.
248
+ *
249
+ * @example
250
+ * 83
251
+ */
252
+ totalCount?: number;
253
+ static names(): {
254
+ [key: string]: string;
255
+ };
256
+ static types(): {
257
+ [key: string]: any;
258
+ };
259
+ validate(): void;
260
+ constructor(map?: {
261
+ [key: string]: any;
262
+ });
263
+ }
264
+ export declare class ListClusterCheckResultResponseBody extends $dara.Model {
265
+ /**
266
+ * @remarks
267
+ * Information on check results.
268
+ */
269
+ checks?: ListClusterCheckResultResponseBodyChecks[];
270
+ /**
271
+ * @remarks
272
+ * Pagination information.
273
+ */
274
+ pageInfo?: ListClusterCheckResultResponseBodyPageInfo;
275
+ /**
276
+ * @remarks
277
+ * The ID of the current request.
278
+ *
279
+ * @example
280
+ * 7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1
281
+ */
282
+ requestId?: string;
283
+ static names(): {
284
+ [key: string]: string;
285
+ };
286
+ static types(): {
287
+ [key: string]: any;
288
+ };
289
+ validate(): void;
290
+ constructor(map?: {
291
+ [key: string]: any;
292
+ });
293
+ }
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListClusterCheckResultResponseBody = exports.ListClusterCheckResultResponseBodyPageInfo = exports.ListClusterCheckResultResponseBodyChecks = exports.ListClusterCheckResultResponseBodyChecksCheckPolicies = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListClusterCheckResultResponseBodyChecksCheckPolicies extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ requirementId: 'RequirementId',
43
+ requirementShowName: 'RequirementShowName',
44
+ sectionId: 'SectionId',
45
+ sectionShowName: 'SectionShowName',
46
+ standardId: 'StandardId',
47
+ standardShowName: 'StandardShowName',
48
+ };
49
+ }
50
+ static types() {
51
+ return {
52
+ requirementId: 'number',
53
+ requirementShowName: 'string',
54
+ sectionId: 'number',
55
+ sectionShowName: 'string',
56
+ standardId: 'number',
57
+ standardShowName: 'string',
58
+ };
59
+ }
60
+ validate() {
61
+ super.validate();
62
+ }
63
+ constructor(map) {
64
+ super(map);
65
+ }
66
+ }
67
+ exports.ListClusterCheckResultResponseBodyChecksCheckPolicies = ListClusterCheckResultResponseBodyChecksCheckPolicies;
68
+ class ListClusterCheckResultResponseBodyChecks extends $dara.Model {
69
+ static names() {
70
+ return {
71
+ assetSubType: 'AssetSubType',
72
+ assetType: 'AssetType',
73
+ checkId: 'CheckId',
74
+ checkPolicies: 'CheckPolicies',
75
+ checkShowName: 'CheckShowName',
76
+ checkType: 'CheckType',
77
+ instanceSubType: 'InstanceSubType',
78
+ instanceType: 'InstanceType',
79
+ lastCheckTime: 'LastCheckTime',
80
+ riskLevel: 'RiskLevel',
81
+ status: 'Status',
82
+ trialPermission: 'TrialPermission',
83
+ trialPermissionType: 'TrialPermissionType',
84
+ vendor: 'Vendor',
85
+ };
86
+ }
87
+ static types() {
88
+ return {
89
+ assetSubType: 'number',
90
+ assetType: 'number',
91
+ checkId: 'number',
92
+ checkPolicies: { 'type': 'array', 'itemType': ListClusterCheckResultResponseBodyChecksCheckPolicies },
93
+ checkShowName: 'string',
94
+ checkType: 'string',
95
+ instanceSubType: 'string',
96
+ instanceType: 'string',
97
+ lastCheckTime: 'number',
98
+ riskLevel: 'string',
99
+ status: 'string',
100
+ trialPermission: 'boolean',
101
+ trialPermissionType: 'number',
102
+ vendor: 'string',
103
+ };
104
+ }
105
+ validate() {
106
+ if (Array.isArray(this.checkPolicies)) {
107
+ $dara.Model.validateArray(this.checkPolicies);
108
+ }
109
+ super.validate();
110
+ }
111
+ constructor(map) {
112
+ super(map);
113
+ }
114
+ }
115
+ exports.ListClusterCheckResultResponseBodyChecks = ListClusterCheckResultResponseBodyChecks;
116
+ class ListClusterCheckResultResponseBodyPageInfo extends $dara.Model {
117
+ static names() {
118
+ return {
119
+ count: 'Count',
120
+ currentPage: 'CurrentPage',
121
+ pageSize: 'PageSize',
122
+ totalCount: 'TotalCount',
123
+ };
124
+ }
125
+ static types() {
126
+ return {
127
+ count: 'number',
128
+ currentPage: 'number',
129
+ pageSize: 'number',
130
+ totalCount: 'number',
131
+ };
132
+ }
133
+ validate() {
134
+ super.validate();
135
+ }
136
+ constructor(map) {
137
+ super(map);
138
+ }
139
+ }
140
+ exports.ListClusterCheckResultResponseBodyPageInfo = ListClusterCheckResultResponseBodyPageInfo;
141
+ class ListClusterCheckResultResponseBody extends $dara.Model {
142
+ static names() {
143
+ return {
144
+ checks: 'Checks',
145
+ pageInfo: 'PageInfo',
146
+ requestId: 'RequestId',
147
+ };
148
+ }
149
+ static types() {
150
+ return {
151
+ checks: { 'type': 'array', 'itemType': ListClusterCheckResultResponseBodyChecks },
152
+ pageInfo: ListClusterCheckResultResponseBodyPageInfo,
153
+ requestId: 'string',
154
+ };
155
+ }
156
+ validate() {
157
+ if (Array.isArray(this.checks)) {
158
+ $dara.Model.validateArray(this.checks);
159
+ }
160
+ if (this.pageInfo && typeof this.pageInfo.validate === 'function') {
161
+ this.pageInfo.validate();
162
+ }
163
+ super.validate();
164
+ }
165
+ constructor(map) {
166
+ super(map);
167
+ }
168
+ }
169
+ exports.ListClusterCheckResultResponseBody = ListClusterCheckResultResponseBody;
170
+ //# sourceMappingURL=ListClusterCheckResultResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListClusterCheckResultResponseBody.js","sourceRoot":"","sources":["../../src/models/ListClusterCheckResultResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IAiDpF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;YAC9B,mBAAmB,EAAE,qBAAqB;YAC1C,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,iBAAiB;YAClC,UAAU,EAAE,YAAY;YACxB,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,QAAQ;YACvB,mBAAmB,EAAE,QAAQ;YAC7B,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,QAAQ;YACzB,UAAU,EAAE,QAAQ;YACpB,gBAAgB,EAAE,QAAQ;SAC3B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,sHA8EC;AAED,MAAa,wCAAyC,SAAQ,KA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tC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,gFAgDC"}
@@ -0,0 +1,144 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListKspmInstancesRequestCloudAssetTypes extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * Subtype of the product.
6
+ * Asset type-subtype. Values:
7
+ *
8
+ * - **0**: Workload
9
+ * * **0**: Pod
10
+ * * **1**: DaemonSet
11
+ * * **2**: StatefulSet
12
+ * - **1**: Service
13
+ * * **0**: Service
14
+ * - **2**: Namespace
15
+ * * **0**: Namespace
16
+ * - **3**: Authorization
17
+ * * **0**: Role
18
+ * * **1**: ClusterRole
19
+ * * **2**: ClusterRoleBinding
20
+ * * **3**: RoleBinding
21
+ * * **4**: ServiceAccount
22
+ * - **4**: Storage
23
+ * * **0**: PersistentVolume
24
+ * * **1**: PersistentVolumeClaim
25
+ * * **2**: StorageClass
26
+ * - **5**: Container
27
+ * * **0**: Image
28
+ * - **6**: Network
29
+ * * **0**: Route
30
+ * * **0**: Ingress
31
+ * - **7**: Configuration
32
+ * * **0**: ConfigMap
33
+ * - **8**: Policies
34
+ * * **0**: LimitRanges
35
+ * * **1**: ResourceQuota
36
+ *
37
+ * @example
38
+ * 0
39
+ */
40
+ assetSubType?: number;
41
+ /**
42
+ * @remarks
43
+ * Type of the asset. Values:
44
+ *
45
+ * - **0**: Workload
46
+ * - **1**: Service
47
+ * - **2**: Namespace
48
+ * - **3**: Authorization
49
+ * - **4**: Storage
50
+ * - **5**: Container
51
+ * - **6**: Network
52
+ * - **7**: Configuration
53
+ * - **8**: Policies
54
+ *
55
+ * @example
56
+ * 0
57
+ */
58
+ assetType?: number;
59
+ /**
60
+ * @remarks
61
+ * Vendor of the asset. The fixed value is **200**.
62
+ *
63
+ * @example
64
+ * 200
65
+ */
66
+ vendor?: number;
67
+ static names(): {
68
+ [key: string]: string;
69
+ };
70
+ static types(): {
71
+ [key: string]: any;
72
+ };
73
+ validate(): void;
74
+ constructor(map?: {
75
+ [key: string]: any;
76
+ });
77
+ }
78
+ export declare class ListKspmInstancesRequest extends $dara.Model {
79
+ /**
80
+ * @remarks
81
+ * List of Kubernetes asset type information.
82
+ */
83
+ cloudAssetTypes?: ListKspmInstancesRequestCloudAssetTypes[];
84
+ /**
85
+ * @remarks
86
+ * 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:
87
+ *
88
+ * - **name**: Search item
89
+ * - **value**: Value of the search item
90
+ * - **logicalExp**: The relationship between search items when multiple conditions are used. Values:
91
+ * - **OR**: Indicates an **or** relationship between multiple conditions.
92
+ * - **AND**: Indicates an **and** relationship between multiple conditions.
93
+ * > Supports using region, instance name, instance ID, alarm status, risk status, and tag search conditions.
94
+ *
95
+ * @example
96
+ * [{"name":"vulStatus","value":"YES","logicalExp":"AND"}]
97
+ */
98
+ criteria?: string;
99
+ /**
100
+ * @remarks
101
+ * Set which page to start displaying the query results from. The default value is 1, indicating that the display starts from the first page.
102
+ *
103
+ * @example
104
+ * 1
105
+ */
106
+ currentPage?: number;
107
+ /**
108
+ * @remarks
109
+ * Set the logical relationship that takes effect between multiple search conditions. Values:
110
+ *
111
+ * - **OR**: Indicates an **or** relationship between multiple search conditions.
112
+ * - **AND**: Indicates an **and** relationship between multiple search conditions.
113
+ *
114
+ * @example
115
+ * OR
116
+ */
117
+ logicalExp?: string;
118
+ /**
119
+ * @remarks
120
+ * The maximum number of data entries displayed per page during pagination. The default value is 20.
121
+ *
122
+ * @example
123
+ * 20
124
+ */
125
+ pageSize?: number;
126
+ /**
127
+ * @remarks
128
+ * The ID of the region where the instance is located.
129
+ *
130
+ * @example
131
+ * cn-hangzhou
132
+ */
133
+ regionId?: string;
134
+ static names(): {
135
+ [key: string]: string;
136
+ };
137
+ static types(): {
138
+ [key: string]: any;
139
+ };
140
+ validate(): void;
141
+ constructor(map?: {
142
+ [key: string]: any;
143
+ });
144
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListKspmInstancesRequest = exports.ListKspmInstancesRequestCloudAssetTypes = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListKspmInstancesRequestCloudAssetTypes extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ assetSubType: 'AssetSubType',
43
+ assetType: 'AssetType',
44
+ vendor: 'Vendor',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ assetSubType: 'number',
50
+ assetType: 'number',
51
+ vendor: 'number',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.ListKspmInstancesRequestCloudAssetTypes = ListKspmInstancesRequestCloudAssetTypes;
62
+ class ListKspmInstancesRequest extends $dara.Model {
63
+ static names() {
64
+ return {
65
+ cloudAssetTypes: 'CloudAssetTypes',
66
+ criteria: 'Criteria',
67
+ currentPage: 'CurrentPage',
68
+ logicalExp: 'LogicalExp',
69
+ pageSize: 'PageSize',
70
+ regionId: 'RegionId',
71
+ };
72
+ }
73
+ static types() {
74
+ return {
75
+ cloudAssetTypes: { 'type': 'array', 'itemType': ListKspmInstancesRequestCloudAssetTypes },
76
+ criteria: 'string',
77
+ currentPage: 'number',
78
+ logicalExp: 'string',
79
+ pageSize: 'number',
80
+ regionId: 'string',
81
+ };
82
+ }
83
+ validate() {
84
+ if (Array.isArray(this.cloudAssetTypes)) {
85
+ $dara.Model.validateArray(this.cloudAssetTypes);
86
+ }
87
+ super.validate();
88
+ }
89
+ constructor(map) {
90
+ super(map);
91
+ }
92
+ }
93
+ exports.ListKspmInstancesRequest = ListKspmInstancesRequest;
94
+ //# sourceMappingURL=ListKspmInstancesRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListKspmInstancesRequest.js","sourceRoot":"","sources":["../../src/models/ListKspmInstancesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAiEtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAA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