@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,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetClusterCheckSummaryResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Total number of items that failed the check.
9
+ *
10
+ * @example
11
+ * 6
12
+ */
13
+ notPassCount?: number;
14
+ /**
15
+ * @remarks
16
+ * Number of high-risk inspection items that have not passed.
17
+ *
18
+ * @example
19
+ * 1
20
+ */
21
+ notPassHighCount?: number;
22
+ /**
23
+ * @remarks
24
+ * Number of low-risk inspection items that have not passed.
25
+ *
26
+ * @example
27
+ * 3
28
+ */
29
+ notPassLowCount?: number;
30
+ /**
31
+ * @remarks
32
+ * Number of medium-risk failed inspection items.
33
+ *
34
+ * @example
35
+ * 2
36
+ */
37
+ notPassMediumCount?: number;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ notPassCount: 'NotPassCount',
41
+ notPassHighCount: 'NotPassHighCount',
42
+ notPassLowCount: 'NotPassLowCount',
43
+ notPassMediumCount: 'NotPassMediumCount',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ notPassCount: 'number',
50
+ notPassHighCount: 'number',
51
+ notPassLowCount: 'number',
52
+ notPassMediumCount: 'number',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class GetClusterCheckSummaryResponseBody extends $dara.Model {
66
+ /**
67
+ * @remarks
68
+ * Return data.
69
+ */
70
+ data?: GetClusterCheckSummaryResponseBodyData;
71
+ /**
72
+ * @remarks
73
+ * Request ID.
74
+ *
75
+ * @example
76
+ * 0B48AB3C-84FC-424D-A01D-B9270EF46038
77
+ */
78
+ requestId?: string;
79
+ static names(): { [key: string]: string } {
80
+ return {
81
+ data: 'Data',
82
+ requestId: 'RequestId',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ data: GetClusterCheckSummaryResponseBodyData,
89
+ requestId: 'string',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(this.data && typeof (this.data as any).validate === 'function') {
95
+ (this.data as any).validate();
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -16,6 +16,15 @@ export class GetSupportedModulesResponseBodySupportedModuleResponseSupportedModu
16
16
  * HOST
17
17
  */
18
18
  module?: string;
19
+ /**
20
+ * @remarks
21
+ * Module authorization switch indicator. Values:
22
+ * - **true**: Enabled
23
+ * - **false**: Not enabled
24
+ *
25
+ * @example
26
+ * true
27
+ */
19
28
  moduleAuth?: boolean;
20
29
  /**
21
30
  * @remarks
@@ -0,0 +1,58 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetValidDeductInstancesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Resource package instance ID, can be queried through [QueryResourcePackageInstances]().
9
+ *
10
+ * @example
11
+ * sas_cspm_dp_cn-***80001
12
+ */
13
+ instanceId?: string;
14
+ /**
15
+ * @remarks
16
+ * Resource package name code, values:
17
+ *
18
+ * - Vulnerability resource package: **sas_vul_dp_cn**
19
+ * - CSPM resource package: **sas_cspm_dp_cn**
20
+ * - Anti-virus resource package: **sas_viruspackage_dp_cn**
21
+ *
22
+ * @example
23
+ * sas_vul_dp_cn
24
+ */
25
+ modules?: string;
26
+ /**
27
+ * @remarks
28
+ * Resource package status, default is valid (valid), not modifiable.
29
+ *
30
+ * @example
31
+ * Available
32
+ */
33
+ status?: number;
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ instanceId: 'InstanceId',
37
+ modules: 'Modules',
38
+ status: 'Status',
39
+ };
40
+ }
41
+
42
+ static types(): { [key: string]: any } {
43
+ return {
44
+ instanceId: 'string',
45
+ modules: 'string',
46
+ status: 'number',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetValidDeductInstancesResponseBody } from "./GetValidDeductInstancesResponseBody";
4
+
5
+
6
+ export class GetValidDeductInstancesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetValidDeductInstancesResponseBody;
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: GetValidDeductInstancesResponseBody,
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,191 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetValidDeductInstancesResponseBodyDataDeductPackageList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Authorized consumption in the current billing cycle.
9
+ *
10
+ * @example
11
+ * 10
12
+ */
13
+ currentPeriodUsed?: number;
14
+ /**
15
+ * @remarks
16
+ * End time.
17
+ *
18
+ * @example
19
+ * 1737734400000
20
+ */
21
+ endTime?: number;
22
+ /**
23
+ * @remarks
24
+ * Total amount of the resource package.
25
+ *
26
+ * @example
27
+ * 1000
28
+ */
29
+ initCapacity?: number;
30
+ /**
31
+ * @remarks
32
+ * Resource package instance ID.
33
+ *
34
+ * @example
35
+ * sas_**_dp_cn-2***
36
+ */
37
+ instanceId?: string;
38
+ /**
39
+ * @remarks
40
+ * Module code. Values:
41
+ * - **POST_HOST**: Host and container protection
42
+ * - **CSPM**: Cloud product configuration check
43
+ * - **VUL**: Vulnerability scan
44
+ *
45
+ * @example
46
+ * POST_HOST
47
+ */
48
+ module?: string;
49
+ /**
50
+ * @remarks
51
+ * Authorized consumption up to the previous billing cycle.
52
+ *
53
+ * @example
54
+ * 100
55
+ */
56
+ periodCapacity?: number;
57
+ /**
58
+ * @remarks
59
+ * Start timestamp (milliseconds).
60
+ *
61
+ * @example
62
+ * 1737734400000
63
+ */
64
+ startTime?: number;
65
+ /**
66
+ * @remarks
67
+ * Resource package status. Values:
68
+ * - **valid**: Valid
69
+ * - **invalid**: Invalid
70
+ *
71
+ * @example
72
+ * Available
73
+ */
74
+ status?: string;
75
+ static names(): { [key: string]: string } {
76
+ return {
77
+ currentPeriodUsed: 'CurrentPeriodUsed',
78
+ endTime: 'EndTime',
79
+ initCapacity: 'InitCapacity',
80
+ instanceId: 'InstanceId',
81
+ module: 'Module',
82
+ periodCapacity: 'PeriodCapacity',
83
+ startTime: 'StartTime',
84
+ status: 'Status',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ currentPeriodUsed: 'number',
91
+ endTime: 'number',
92
+ initCapacity: 'number',
93
+ instanceId: 'string',
94
+ module: 'string',
95
+ periodCapacity: 'number',
96
+ startTime: 'number',
97
+ status: 'string',
98
+ };
99
+ }
100
+
101
+ validate() {
102
+ super.validate();
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+
110
+ export class GetValidDeductInstancesResponseBodyData extends $dara.Model {
111
+ /**
112
+ * @remarks
113
+ * Whether eligible for trial. Values:
114
+ * - **true**: Eligible
115
+ * - **false**: Not eligible
116
+ *
117
+ * @example
118
+ * true
119
+ */
120
+ canTry?: boolean;
121
+ /**
122
+ * @remarks
123
+ * List of resource package usage details.
124
+ */
125
+ deductPackageList?: GetValidDeductInstancesResponseBodyDataDeductPackageList[];
126
+ static names(): { [key: string]: string } {
127
+ return {
128
+ canTry: 'CanTry',
129
+ deductPackageList: 'DeductPackageList',
130
+ };
131
+ }
132
+
133
+ static types(): { [key: string]: any } {
134
+ return {
135
+ canTry: 'boolean',
136
+ deductPackageList: { 'type': 'array', 'itemType': GetValidDeductInstancesResponseBodyDataDeductPackageList },
137
+ };
138
+ }
139
+
140
+ validate() {
141
+ if(Array.isArray(this.deductPackageList)) {
142
+ $dara.Model.validateArray(this.deductPackageList);
143
+ }
144
+ super.validate();
145
+ }
146
+
147
+ constructor(map?: { [key: string]: any }) {
148
+ super(map);
149
+ }
150
+ }
151
+
152
+ export class GetValidDeductInstancesResponseBody extends $dara.Model {
153
+ /**
154
+ * @remarks
155
+ * Returned data.
156
+ */
157
+ data?: GetValidDeductInstancesResponseBodyData;
158
+ /**
159
+ * @remarks
160
+ * The ID of this call request, a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and locate issues.
161
+ *
162
+ * @example
163
+ * 6D56A5C4-9C78-5EB1-9246-60B7FAECA1D5
164
+ */
165
+ requestId?: string;
166
+ static names(): { [key: string]: string } {
167
+ return {
168
+ data: 'Data',
169
+ requestId: 'RequestId',
170
+ };
171
+ }
172
+
173
+ static types(): { [key: string]: any } {
174
+ return {
175
+ data: GetValidDeductInstancesResponseBodyData,
176
+ requestId: 'string',
177
+ };
178
+ }
179
+
180
+ validate() {
181
+ if(this.data && typeof (this.data as any).validate === 'function') {
182
+ (this.data as any).validate();
183
+ }
184
+ super.validate();
185
+ }
186
+
187
+ constructor(map?: { [key: string]: any }) {
188
+ super(map);
189
+ }
190
+ }
191
+
@@ -0,0 +1,133 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListAttackEventInfoRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Attacked asset. You can fill in the machine instance name, public IP, or private IP.
9
+ *
10
+ * @example
11
+ * instance_**
12
+ */
13
+ attackInstance?: string;
14
+ /**
15
+ * @remarks
16
+ * Attack type. Values:
17
+ * - 9: SQL Server brute force attack
18
+ * - 5: SSH brute force attack
19
+ * - 6: RDP brute force attack
20
+ * - 101: Java Struts2 attack interception
21
+ * - 102: Redis attack interception
22
+ * - 103: Chinese AntSword WebShell communication
23
+ * - 104: Chinese Chopper WebShell communication
24
+ * - 133: XISE WebShell communication
25
+ * - 161: WebShell upload
26
+ * - 209: PHP WebShell upload
27
+ * - 210: JSP WebShell upload
28
+ * - 211: ASP WebShell upload
29
+ * - 215: Special suffix WebShell upload
30
+ * - ai_webshell: Intelligent defense for WebShell upload
31
+ * - java_common_rce: Java common RCE vulnerability interception
32
+ * - alinet_webrce: Adaptive web attack defense
33
+ *
34
+ * @example
35
+ * 9
36
+ */
37
+ attackType?: string;
38
+ /**
39
+ * @remarks
40
+ * Page number to display in a paginated query.
41
+ *
42
+ * @example
43
+ * 1
44
+ */
45
+ currentPage?: number;
46
+ /**
47
+ * @remarks
48
+ * Target port of the attack.
49
+ *
50
+ * @example
51
+ * 9085
52
+ */
53
+ dstPort?: string;
54
+ /**
55
+ * @remarks
56
+ * Timestamp of the end time.
57
+ *
58
+ * @example
59
+ * 1753152532550
60
+ */
61
+ endTime?: number;
62
+ /**
63
+ * @remarks
64
+ * Set the language type for request and response messages. Default is **zh**. Values:
65
+ *
66
+ * - **zh**: Chinese
67
+ * - **en**: English
68
+ *
69
+ * @example
70
+ * zh
71
+ */
72
+ lang?: string;
73
+ /**
74
+ * @remarks
75
+ * Maximum number of records per page in a paginated query.
76
+ *
77
+ * @example
78
+ * 10
79
+ */
80
+ pageSize?: number;
81
+ /**
82
+ * @remarks
83
+ * Source IP of the attack.
84
+ *
85
+ * @example
86
+ * 185.237.96.***
87
+ */
88
+ srcIp?: string;
89
+ /**
90
+ * @remarks
91
+ * Timestamp of the start time.
92
+ *
93
+ * @example
94
+ * 1752547732549
95
+ */
96
+ startTime?: number;
97
+ static names(): { [key: string]: string } {
98
+ return {
99
+ attackInstance: 'AttackInstance',
100
+ attackType: 'AttackType',
101
+ currentPage: 'CurrentPage',
102
+ dstPort: 'DstPort',
103
+ endTime: 'EndTime',
104
+ lang: 'Lang',
105
+ pageSize: 'PageSize',
106
+ srcIp: 'SrcIp',
107
+ startTime: 'StartTime',
108
+ };
109
+ }
110
+
111
+ static types(): { [key: string]: any } {
112
+ return {
113
+ attackInstance: 'string',
114
+ attackType: 'string',
115
+ currentPage: 'number',
116
+ dstPort: 'string',
117
+ endTime: 'number',
118
+ lang: 'string',
119
+ pageSize: 'number',
120
+ srcIp: 'string',
121
+ startTime: 'number',
122
+ };
123
+ }
124
+
125
+ validate() {
126
+ super.validate();
127
+ }
128
+
129
+ constructor(map?: { [key: string]: any }) {
130
+ super(map);
131
+ }
132
+ }
133
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListAttackEventInfoResponseBody } from "./ListAttackEventInfoResponseBody";
4
+
5
+
6
+ export class ListAttackEventInfoResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListAttackEventInfoResponseBody;
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: ListAttackEventInfoResponseBody,
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
+