@alicloud/bdrc20230808 1.0.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.
- package/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +1847 -0
- package/dist/client.js +1987 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +3061 -0
package/dist/client.js
ADDED
|
@@ -0,0 +1,1987 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DescribeProductsResponseBodyData = exports.DescribeProductsResponseBodyDataContent = exports.DescribeProductsResponseBodyDataContentProtectionScoreDistribution = exports.DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange = exports.DescribeCheckDetailsResponseBodyData = exports.DescribeCheckDetailsResponseBodyDataContent = exports.CheckRulesResponseBodyData = exports.UpdateResourcesResponse = exports.UpdateResourcesResponseBody = exports.UpdateResourcesRequest = exports.OpenBdrcServiceResponse = exports.OpenBdrcServiceResponseBody = exports.GetBdrcServiceResponse = exports.GetBdrcServiceResponseBody = exports.EnableCheckResourceResponse = exports.EnableCheckResourceResponseBody = exports.EnableCheckResourceRequest = exports.EnableCheckProductResponse = exports.EnableCheckProductResponseBody = exports.EnableCheckProductRequest = exports.DisableCheckResourceResponse = exports.DisableCheckResourceResponseBody = exports.DisableCheckResourceRequest = exports.DisableCheckProductResponse = exports.DisableCheckProductResponseBody = exports.DisableCheckProductRequest = exports.DescribeTopRiskyResourcesResponse = exports.DescribeTopRiskyResourcesResponseBody = exports.DescribeTopRiskyResourcesRequest = exports.DescribeTasksResponse = exports.DescribeTasksResponseBody = exports.DescribeTasksRequest = exports.DescribeTaskResponse = exports.DescribeTaskResponseBody = exports.DescribeRulesResponse = exports.DescribeRulesResponseBody = exports.DescribeRulesRequest = exports.DescribeResourcesResponse = exports.DescribeResourcesResponseBody = exports.DescribeResourcesRequest = exports.DescribeProductsResponse = exports.DescribeProductsResponseBody = exports.DescribeCheckDetailsResponse = exports.DescribeCheckDetailsResponseBody = exports.DescribeCheckDetailsRequest = exports.CloseBdrcServiceResponse = exports.CloseBdrcServiceResponseBody = exports.CheckRulesResponse = exports.CheckRulesResponseBody = exports.CheckRulesRequest = void 0;
|
|
30
|
+
exports.UpdateResourcesResponseBodyData = exports.GetBdrcServiceResponseBodyData = exports.DescribeTopRiskyResourcesResponseBodyData = exports.DescribeTopRiskyResourcesResponseBodyDataContent = exports.DescribeTasksResponseBodyData = exports.DescribeTasksResponseBodyDataContent = exports.DescribeTaskResponseBodyData = exports.DescribeRulesResponseBodyData = exports.DescribeRulesResponseBodyDataContent = exports.DescribeResourcesResponseBodyData = exports.DescribeResourcesResponseBodyDataContent = void 0;
|
|
31
|
+
// This file is auto-generated, don't edit it
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
35
|
+
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
36
|
+
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
37
|
+
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
38
|
+
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
39
|
+
class CheckRulesRequest extends $tea.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
resourceArn: 'ResourceArn',
|
|
43
|
+
ruleId: 'RuleId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
resourceArn: 'string',
|
|
49
|
+
ruleId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
constructor(map) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.CheckRulesRequest = CheckRulesRequest;
|
|
57
|
+
class CheckRulesResponseBody extends $tea.Model {
|
|
58
|
+
static names() {
|
|
59
|
+
return {
|
|
60
|
+
data: 'Data',
|
|
61
|
+
requestId: 'RequestId',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static types() {
|
|
65
|
+
return {
|
|
66
|
+
data: CheckRulesResponseBodyData,
|
|
67
|
+
requestId: 'string',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
constructor(map) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.CheckRulesResponseBody = CheckRulesResponseBody;
|
|
75
|
+
class CheckRulesResponse extends $tea.Model {
|
|
76
|
+
static names() {
|
|
77
|
+
return {
|
|
78
|
+
headers: 'headers',
|
|
79
|
+
statusCode: 'statusCode',
|
|
80
|
+
body: 'body',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
static types() {
|
|
84
|
+
return {
|
|
85
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
86
|
+
statusCode: 'number',
|
|
87
|
+
body: CheckRulesResponseBody,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
constructor(map) {
|
|
91
|
+
super(map);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.CheckRulesResponse = CheckRulesResponse;
|
|
95
|
+
class CloseBdrcServiceResponseBody extends $tea.Model {
|
|
96
|
+
static names() {
|
|
97
|
+
return {
|
|
98
|
+
requestId: 'RequestId',
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
static types() {
|
|
102
|
+
return {
|
|
103
|
+
requestId: 'string',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
constructor(map) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.CloseBdrcServiceResponseBody = CloseBdrcServiceResponseBody;
|
|
111
|
+
class CloseBdrcServiceResponse extends $tea.Model {
|
|
112
|
+
static names() {
|
|
113
|
+
return {
|
|
114
|
+
headers: 'headers',
|
|
115
|
+
statusCode: 'statusCode',
|
|
116
|
+
body: 'body',
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static types() {
|
|
120
|
+
return {
|
|
121
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
122
|
+
statusCode: 'number',
|
|
123
|
+
body: CloseBdrcServiceResponseBody,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
constructor(map) {
|
|
127
|
+
super(map);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.CloseBdrcServiceResponse = CloseBdrcServiceResponse;
|
|
131
|
+
class DescribeCheckDetailsRequest extends $tea.Model {
|
|
132
|
+
static names() {
|
|
133
|
+
return {
|
|
134
|
+
maxResults: 'MaxResults',
|
|
135
|
+
nextToken: 'NextToken',
|
|
136
|
+
resourceArn: 'ResourceArn',
|
|
137
|
+
ruleId: 'RuleId',
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
static types() {
|
|
141
|
+
return {
|
|
142
|
+
maxResults: 'number',
|
|
143
|
+
nextToken: 'string',
|
|
144
|
+
resourceArn: 'string',
|
|
145
|
+
ruleId: 'string',
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
constructor(map) {
|
|
149
|
+
super(map);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.DescribeCheckDetailsRequest = DescribeCheckDetailsRequest;
|
|
153
|
+
class DescribeCheckDetailsResponseBody extends $tea.Model {
|
|
154
|
+
static names() {
|
|
155
|
+
return {
|
|
156
|
+
data: 'Data',
|
|
157
|
+
requestId: 'RequestId',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
static types() {
|
|
161
|
+
return {
|
|
162
|
+
data: DescribeCheckDetailsResponseBodyData,
|
|
163
|
+
requestId: 'string',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
constructor(map) {
|
|
167
|
+
super(map);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.DescribeCheckDetailsResponseBody = DescribeCheckDetailsResponseBody;
|
|
171
|
+
class DescribeCheckDetailsResponse extends $tea.Model {
|
|
172
|
+
static names() {
|
|
173
|
+
return {
|
|
174
|
+
headers: 'headers',
|
|
175
|
+
statusCode: 'statusCode',
|
|
176
|
+
body: 'body',
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static types() {
|
|
180
|
+
return {
|
|
181
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
182
|
+
statusCode: 'number',
|
|
183
|
+
body: DescribeCheckDetailsResponseBody,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
constructor(map) {
|
|
187
|
+
super(map);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.DescribeCheckDetailsResponse = DescribeCheckDetailsResponse;
|
|
191
|
+
class DescribeProductsResponseBody extends $tea.Model {
|
|
192
|
+
static names() {
|
|
193
|
+
return {
|
|
194
|
+
data: 'Data',
|
|
195
|
+
requestId: 'RequestId',
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static types() {
|
|
199
|
+
return {
|
|
200
|
+
data: DescribeProductsResponseBodyData,
|
|
201
|
+
requestId: 'string',
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
constructor(map) {
|
|
205
|
+
super(map);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
exports.DescribeProductsResponseBody = DescribeProductsResponseBody;
|
|
209
|
+
class DescribeProductsResponse extends $tea.Model {
|
|
210
|
+
static names() {
|
|
211
|
+
return {
|
|
212
|
+
headers: 'headers',
|
|
213
|
+
statusCode: 'statusCode',
|
|
214
|
+
body: 'body',
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
static types() {
|
|
218
|
+
return {
|
|
219
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
220
|
+
statusCode: 'number',
|
|
221
|
+
body: DescribeProductsResponseBody,
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
constructor(map) {
|
|
225
|
+
super(map);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.DescribeProductsResponse = DescribeProductsResponse;
|
|
229
|
+
class DescribeResourcesRequest extends $tea.Model {
|
|
230
|
+
static names() {
|
|
231
|
+
return {
|
|
232
|
+
failedRuleTemplate: 'FailedRuleTemplate',
|
|
233
|
+
maxResults: 'MaxResults',
|
|
234
|
+
nextToken: 'NextToken',
|
|
235
|
+
resourceId: 'ResourceId',
|
|
236
|
+
resourceType: 'ResourceType',
|
|
237
|
+
sortBy: 'SortBy',
|
|
238
|
+
sortOrder: 'SortOrder',
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
static types() {
|
|
242
|
+
return {
|
|
243
|
+
failedRuleTemplate: 'string',
|
|
244
|
+
maxResults: 'number',
|
|
245
|
+
nextToken: 'string',
|
|
246
|
+
resourceId: 'string',
|
|
247
|
+
resourceType: 'string',
|
|
248
|
+
sortBy: 'string',
|
|
249
|
+
sortOrder: 'string',
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
constructor(map) {
|
|
253
|
+
super(map);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
exports.DescribeResourcesRequest = DescribeResourcesRequest;
|
|
257
|
+
class DescribeResourcesResponseBody extends $tea.Model {
|
|
258
|
+
static names() {
|
|
259
|
+
return {
|
|
260
|
+
data: 'Data',
|
|
261
|
+
requestId: 'RequestId',
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
static types() {
|
|
265
|
+
return {
|
|
266
|
+
data: DescribeResourcesResponseBodyData,
|
|
267
|
+
requestId: 'string',
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
constructor(map) {
|
|
271
|
+
super(map);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
exports.DescribeResourcesResponseBody = DescribeResourcesResponseBody;
|
|
275
|
+
class DescribeResourcesResponse extends $tea.Model {
|
|
276
|
+
static names() {
|
|
277
|
+
return {
|
|
278
|
+
headers: 'headers',
|
|
279
|
+
statusCode: 'statusCode',
|
|
280
|
+
body: 'body',
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
static types() {
|
|
284
|
+
return {
|
|
285
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
286
|
+
statusCode: 'number',
|
|
287
|
+
body: DescribeResourcesResponseBody,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
constructor(map) {
|
|
291
|
+
super(map);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
exports.DescribeResourcesResponse = DescribeResourcesResponse;
|
|
295
|
+
class DescribeRulesRequest extends $tea.Model {
|
|
296
|
+
static names() {
|
|
297
|
+
return {
|
|
298
|
+
maxResults: 'MaxResults',
|
|
299
|
+
nextToken: 'NextToken',
|
|
300
|
+
resourceType: 'ResourceType',
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
static types() {
|
|
304
|
+
return {
|
|
305
|
+
maxResults: 'number',
|
|
306
|
+
nextToken: 'string',
|
|
307
|
+
resourceType: 'string',
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
constructor(map) {
|
|
311
|
+
super(map);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
exports.DescribeRulesRequest = DescribeRulesRequest;
|
|
315
|
+
class DescribeRulesResponseBody extends $tea.Model {
|
|
316
|
+
static names() {
|
|
317
|
+
return {
|
|
318
|
+
data: 'Data',
|
|
319
|
+
requestId: 'RequestId',
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
static types() {
|
|
323
|
+
return {
|
|
324
|
+
data: DescribeRulesResponseBodyData,
|
|
325
|
+
requestId: 'string',
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
constructor(map) {
|
|
329
|
+
super(map);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
exports.DescribeRulesResponseBody = DescribeRulesResponseBody;
|
|
333
|
+
class DescribeRulesResponse extends $tea.Model {
|
|
334
|
+
static names() {
|
|
335
|
+
return {
|
|
336
|
+
headers: 'headers',
|
|
337
|
+
statusCode: 'statusCode',
|
|
338
|
+
body: 'body',
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
static types() {
|
|
342
|
+
return {
|
|
343
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
344
|
+
statusCode: 'number',
|
|
345
|
+
body: DescribeRulesResponseBody,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
constructor(map) {
|
|
349
|
+
super(map);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.DescribeRulesResponse = DescribeRulesResponse;
|
|
353
|
+
class DescribeTaskResponseBody extends $tea.Model {
|
|
354
|
+
static names() {
|
|
355
|
+
return {
|
|
356
|
+
data: 'Data',
|
|
357
|
+
requestId: 'RequestId',
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
static types() {
|
|
361
|
+
return {
|
|
362
|
+
data: DescribeTaskResponseBodyData,
|
|
363
|
+
requestId: 'string',
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
constructor(map) {
|
|
367
|
+
super(map);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
exports.DescribeTaskResponseBody = DescribeTaskResponseBody;
|
|
371
|
+
class DescribeTaskResponse extends $tea.Model {
|
|
372
|
+
static names() {
|
|
373
|
+
return {
|
|
374
|
+
headers: 'headers',
|
|
375
|
+
statusCode: 'statusCode',
|
|
376
|
+
body: 'body',
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
static types() {
|
|
380
|
+
return {
|
|
381
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
382
|
+
statusCode: 'number',
|
|
383
|
+
body: DescribeTaskResponseBody,
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
constructor(map) {
|
|
387
|
+
super(map);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
exports.DescribeTaskResponse = DescribeTaskResponse;
|
|
391
|
+
class DescribeTasksRequest extends $tea.Model {
|
|
392
|
+
static names() {
|
|
393
|
+
return {
|
|
394
|
+
maxResults: 'MaxResults',
|
|
395
|
+
nextToken: 'NextToken',
|
|
396
|
+
taskStatus: 'TaskStatus',
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
static types() {
|
|
400
|
+
return {
|
|
401
|
+
maxResults: 'number',
|
|
402
|
+
nextToken: 'string',
|
|
403
|
+
taskStatus: 'string',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
constructor(map) {
|
|
407
|
+
super(map);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
exports.DescribeTasksRequest = DescribeTasksRequest;
|
|
411
|
+
class DescribeTasksResponseBody extends $tea.Model {
|
|
412
|
+
static names() {
|
|
413
|
+
return {
|
|
414
|
+
data: 'Data',
|
|
415
|
+
requestId: 'RequestId',
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
static types() {
|
|
419
|
+
return {
|
|
420
|
+
data: DescribeTasksResponseBodyData,
|
|
421
|
+
requestId: 'string',
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
constructor(map) {
|
|
425
|
+
super(map);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
exports.DescribeTasksResponseBody = DescribeTasksResponseBody;
|
|
429
|
+
class DescribeTasksResponse extends $tea.Model {
|
|
430
|
+
static names() {
|
|
431
|
+
return {
|
|
432
|
+
headers: 'headers',
|
|
433
|
+
statusCode: 'statusCode',
|
|
434
|
+
body: 'body',
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
static types() {
|
|
438
|
+
return {
|
|
439
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
440
|
+
statusCode: 'number',
|
|
441
|
+
body: DescribeTasksResponseBody,
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
constructor(map) {
|
|
445
|
+
super(map);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
exports.DescribeTasksResponse = DescribeTasksResponse;
|
|
449
|
+
class DescribeTopRiskyResourcesRequest extends $tea.Model {
|
|
450
|
+
static names() {
|
|
451
|
+
return {
|
|
452
|
+
resourceType: 'ResourceType',
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
static types() {
|
|
456
|
+
return {
|
|
457
|
+
resourceType: 'string',
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
constructor(map) {
|
|
461
|
+
super(map);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
exports.DescribeTopRiskyResourcesRequest = DescribeTopRiskyResourcesRequest;
|
|
465
|
+
class DescribeTopRiskyResourcesResponseBody extends $tea.Model {
|
|
466
|
+
static names() {
|
|
467
|
+
return {
|
|
468
|
+
data: 'Data',
|
|
469
|
+
requestId: 'RequestId',
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
static types() {
|
|
473
|
+
return {
|
|
474
|
+
data: DescribeTopRiskyResourcesResponseBodyData,
|
|
475
|
+
requestId: 'string',
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
constructor(map) {
|
|
479
|
+
super(map);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
exports.DescribeTopRiskyResourcesResponseBody = DescribeTopRiskyResourcesResponseBody;
|
|
483
|
+
class DescribeTopRiskyResourcesResponse extends $tea.Model {
|
|
484
|
+
static names() {
|
|
485
|
+
return {
|
|
486
|
+
headers: 'headers',
|
|
487
|
+
statusCode: 'statusCode',
|
|
488
|
+
body: 'body',
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
static types() {
|
|
492
|
+
return {
|
|
493
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
494
|
+
statusCode: 'number',
|
|
495
|
+
body: DescribeTopRiskyResourcesResponseBody,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
constructor(map) {
|
|
499
|
+
super(map);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
exports.DescribeTopRiskyResourcesResponse = DescribeTopRiskyResourcesResponse;
|
|
503
|
+
class DisableCheckProductRequest extends $tea.Model {
|
|
504
|
+
static names() {
|
|
505
|
+
return {
|
|
506
|
+
productType: 'ProductType',
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
static types() {
|
|
510
|
+
return {
|
|
511
|
+
productType: 'string',
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
constructor(map) {
|
|
515
|
+
super(map);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
exports.DisableCheckProductRequest = DisableCheckProductRequest;
|
|
519
|
+
class DisableCheckProductResponseBody extends $tea.Model {
|
|
520
|
+
static names() {
|
|
521
|
+
return {
|
|
522
|
+
requestId: 'RequestId',
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
static types() {
|
|
526
|
+
return {
|
|
527
|
+
requestId: 'string',
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
constructor(map) {
|
|
531
|
+
super(map);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
exports.DisableCheckProductResponseBody = DisableCheckProductResponseBody;
|
|
535
|
+
class DisableCheckProductResponse extends $tea.Model {
|
|
536
|
+
static names() {
|
|
537
|
+
return {
|
|
538
|
+
headers: 'headers',
|
|
539
|
+
statusCode: 'statusCode',
|
|
540
|
+
body: 'body',
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
static types() {
|
|
544
|
+
return {
|
|
545
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
546
|
+
statusCode: 'number',
|
|
547
|
+
body: DisableCheckProductResponseBody,
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
constructor(map) {
|
|
551
|
+
super(map);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
exports.DisableCheckProductResponse = DisableCheckProductResponse;
|
|
555
|
+
class DisableCheckResourceRequest extends $tea.Model {
|
|
556
|
+
static names() {
|
|
557
|
+
return {
|
|
558
|
+
resourceArn: 'ResourceArn',
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
static types() {
|
|
562
|
+
return {
|
|
563
|
+
resourceArn: 'string',
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
constructor(map) {
|
|
567
|
+
super(map);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
exports.DisableCheckResourceRequest = DisableCheckResourceRequest;
|
|
571
|
+
class DisableCheckResourceResponseBody extends $tea.Model {
|
|
572
|
+
static names() {
|
|
573
|
+
return {
|
|
574
|
+
requestId: 'RequestId',
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
static types() {
|
|
578
|
+
return {
|
|
579
|
+
requestId: 'string',
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
constructor(map) {
|
|
583
|
+
super(map);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
exports.DisableCheckResourceResponseBody = DisableCheckResourceResponseBody;
|
|
587
|
+
class DisableCheckResourceResponse extends $tea.Model {
|
|
588
|
+
static names() {
|
|
589
|
+
return {
|
|
590
|
+
headers: 'headers',
|
|
591
|
+
statusCode: 'statusCode',
|
|
592
|
+
body: 'body',
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
static types() {
|
|
596
|
+
return {
|
|
597
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
598
|
+
statusCode: 'number',
|
|
599
|
+
body: DisableCheckResourceResponseBody,
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
constructor(map) {
|
|
603
|
+
super(map);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
exports.DisableCheckResourceResponse = DisableCheckResourceResponse;
|
|
607
|
+
class EnableCheckProductRequest extends $tea.Model {
|
|
608
|
+
static names() {
|
|
609
|
+
return {
|
|
610
|
+
productType: 'ProductType',
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
static types() {
|
|
614
|
+
return {
|
|
615
|
+
productType: 'string',
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
constructor(map) {
|
|
619
|
+
super(map);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
exports.EnableCheckProductRequest = EnableCheckProductRequest;
|
|
623
|
+
class EnableCheckProductResponseBody extends $tea.Model {
|
|
624
|
+
static names() {
|
|
625
|
+
return {
|
|
626
|
+
requestId: 'RequestId',
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
static types() {
|
|
630
|
+
return {
|
|
631
|
+
requestId: 'string',
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
constructor(map) {
|
|
635
|
+
super(map);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
exports.EnableCheckProductResponseBody = EnableCheckProductResponseBody;
|
|
639
|
+
class EnableCheckProductResponse extends $tea.Model {
|
|
640
|
+
static names() {
|
|
641
|
+
return {
|
|
642
|
+
headers: 'headers',
|
|
643
|
+
statusCode: 'statusCode',
|
|
644
|
+
body: 'body',
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
static types() {
|
|
648
|
+
return {
|
|
649
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
650
|
+
statusCode: 'number',
|
|
651
|
+
body: EnableCheckProductResponseBody,
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
constructor(map) {
|
|
655
|
+
super(map);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
exports.EnableCheckProductResponse = EnableCheckProductResponse;
|
|
659
|
+
class EnableCheckResourceRequest extends $tea.Model {
|
|
660
|
+
static names() {
|
|
661
|
+
return {
|
|
662
|
+
resourceArn: 'ResourceArn',
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
static types() {
|
|
666
|
+
return {
|
|
667
|
+
resourceArn: 'string',
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
constructor(map) {
|
|
671
|
+
super(map);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
exports.EnableCheckResourceRequest = EnableCheckResourceRequest;
|
|
675
|
+
class EnableCheckResourceResponseBody extends $tea.Model {
|
|
676
|
+
static names() {
|
|
677
|
+
return {
|
|
678
|
+
requestId: 'RequestId',
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
static types() {
|
|
682
|
+
return {
|
|
683
|
+
requestId: 'string',
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
constructor(map) {
|
|
687
|
+
super(map);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
exports.EnableCheckResourceResponseBody = EnableCheckResourceResponseBody;
|
|
691
|
+
class EnableCheckResourceResponse extends $tea.Model {
|
|
692
|
+
static names() {
|
|
693
|
+
return {
|
|
694
|
+
headers: 'headers',
|
|
695
|
+
statusCode: 'statusCode',
|
|
696
|
+
body: 'body',
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
static types() {
|
|
700
|
+
return {
|
|
701
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
702
|
+
statusCode: 'number',
|
|
703
|
+
body: EnableCheckResourceResponseBody,
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
constructor(map) {
|
|
707
|
+
super(map);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
exports.EnableCheckResourceResponse = EnableCheckResourceResponse;
|
|
711
|
+
class GetBdrcServiceResponseBody extends $tea.Model {
|
|
712
|
+
static names() {
|
|
713
|
+
return {
|
|
714
|
+
data: 'Data',
|
|
715
|
+
requestId: 'RequestId',
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
static types() {
|
|
719
|
+
return {
|
|
720
|
+
data: GetBdrcServiceResponseBodyData,
|
|
721
|
+
requestId: 'string',
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
constructor(map) {
|
|
725
|
+
super(map);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
exports.GetBdrcServiceResponseBody = GetBdrcServiceResponseBody;
|
|
729
|
+
class GetBdrcServiceResponse extends $tea.Model {
|
|
730
|
+
static names() {
|
|
731
|
+
return {
|
|
732
|
+
headers: 'headers',
|
|
733
|
+
statusCode: 'statusCode',
|
|
734
|
+
body: 'body',
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
static types() {
|
|
738
|
+
return {
|
|
739
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
740
|
+
statusCode: 'number',
|
|
741
|
+
body: GetBdrcServiceResponseBody,
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
constructor(map) {
|
|
745
|
+
super(map);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
exports.GetBdrcServiceResponse = GetBdrcServiceResponse;
|
|
749
|
+
class OpenBdrcServiceResponseBody extends $tea.Model {
|
|
750
|
+
static names() {
|
|
751
|
+
return {
|
|
752
|
+
requestId: 'RequestId',
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
static types() {
|
|
756
|
+
return {
|
|
757
|
+
requestId: 'string',
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
constructor(map) {
|
|
761
|
+
super(map);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
exports.OpenBdrcServiceResponseBody = OpenBdrcServiceResponseBody;
|
|
765
|
+
class OpenBdrcServiceResponse extends $tea.Model {
|
|
766
|
+
static names() {
|
|
767
|
+
return {
|
|
768
|
+
headers: 'headers',
|
|
769
|
+
statusCode: 'statusCode',
|
|
770
|
+
body: 'body',
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
static types() {
|
|
774
|
+
return {
|
|
775
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
776
|
+
statusCode: 'number',
|
|
777
|
+
body: OpenBdrcServiceResponseBody,
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
constructor(map) {
|
|
781
|
+
super(map);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
exports.OpenBdrcServiceResponse = OpenBdrcServiceResponse;
|
|
785
|
+
class UpdateResourcesRequest extends $tea.Model {
|
|
786
|
+
static names() {
|
|
787
|
+
return {
|
|
788
|
+
resourceType: 'ResourceType',
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
static types() {
|
|
792
|
+
return {
|
|
793
|
+
resourceType: 'string',
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
constructor(map) {
|
|
797
|
+
super(map);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
exports.UpdateResourcesRequest = UpdateResourcesRequest;
|
|
801
|
+
class UpdateResourcesResponseBody extends $tea.Model {
|
|
802
|
+
static names() {
|
|
803
|
+
return {
|
|
804
|
+
data: 'Data',
|
|
805
|
+
requestId: 'RequestId',
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
static types() {
|
|
809
|
+
return {
|
|
810
|
+
data: UpdateResourcesResponseBodyData,
|
|
811
|
+
requestId: 'string',
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
constructor(map) {
|
|
815
|
+
super(map);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
exports.UpdateResourcesResponseBody = UpdateResourcesResponseBody;
|
|
819
|
+
class UpdateResourcesResponse extends $tea.Model {
|
|
820
|
+
static names() {
|
|
821
|
+
return {
|
|
822
|
+
headers: 'headers',
|
|
823
|
+
statusCode: 'statusCode',
|
|
824
|
+
body: 'body',
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
static types() {
|
|
828
|
+
return {
|
|
829
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
830
|
+
statusCode: 'number',
|
|
831
|
+
body: UpdateResourcesResponseBody,
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
constructor(map) {
|
|
835
|
+
super(map);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
exports.UpdateResourcesResponse = UpdateResourcesResponse;
|
|
839
|
+
class CheckRulesResponseBodyData extends $tea.Model {
|
|
840
|
+
static names() {
|
|
841
|
+
return {
|
|
842
|
+
taskId: 'TaskId',
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
static types() {
|
|
846
|
+
return {
|
|
847
|
+
taskId: 'string',
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
constructor(map) {
|
|
851
|
+
super(map);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
exports.CheckRulesResponseBodyData = CheckRulesResponseBodyData;
|
|
855
|
+
class DescribeCheckDetailsResponseBodyDataContent extends $tea.Model {
|
|
856
|
+
static names() {
|
|
857
|
+
return {
|
|
858
|
+
checkStatus: 'CheckStatus',
|
|
859
|
+
checkTime: 'CheckTime',
|
|
860
|
+
detail: 'Detail',
|
|
861
|
+
productType: 'ProductType',
|
|
862
|
+
resourceArn: 'ResourceArn',
|
|
863
|
+
resourceId: 'ResourceId',
|
|
864
|
+
resourceName: 'ResourceName',
|
|
865
|
+
resourceType: 'ResourceType',
|
|
866
|
+
ruleId: 'RuleId',
|
|
867
|
+
ruleTemplate: 'RuleTemplate',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
static types() {
|
|
871
|
+
return {
|
|
872
|
+
checkStatus: 'string',
|
|
873
|
+
checkTime: 'number',
|
|
874
|
+
detail: 'string',
|
|
875
|
+
productType: 'string',
|
|
876
|
+
resourceArn: 'string',
|
|
877
|
+
resourceId: 'string',
|
|
878
|
+
resourceName: 'string',
|
|
879
|
+
resourceType: 'string',
|
|
880
|
+
ruleId: 'string',
|
|
881
|
+
ruleTemplate: 'string',
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
constructor(map) {
|
|
885
|
+
super(map);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
exports.DescribeCheckDetailsResponseBodyDataContent = DescribeCheckDetailsResponseBodyDataContent;
|
|
889
|
+
class DescribeCheckDetailsResponseBodyData extends $tea.Model {
|
|
890
|
+
static names() {
|
|
891
|
+
return {
|
|
892
|
+
content: 'Content',
|
|
893
|
+
maxResults: 'MaxResults',
|
|
894
|
+
nextToken: 'NextToken',
|
|
895
|
+
totalCount: 'TotalCount',
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
static types() {
|
|
899
|
+
return {
|
|
900
|
+
content: { 'type': 'array', 'itemType': DescribeCheckDetailsResponseBodyDataContent },
|
|
901
|
+
maxResults: 'number',
|
|
902
|
+
nextToken: 'string',
|
|
903
|
+
totalCount: 'number',
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
constructor(map) {
|
|
907
|
+
super(map);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
exports.DescribeCheckDetailsResponseBodyData = DescribeCheckDetailsResponseBodyData;
|
|
911
|
+
class DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange extends $tea.Model {
|
|
912
|
+
static names() {
|
|
913
|
+
return {
|
|
914
|
+
from: 'From',
|
|
915
|
+
to: 'To',
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
static types() {
|
|
919
|
+
return {
|
|
920
|
+
from: 'number',
|
|
921
|
+
to: 'number',
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
constructor(map) {
|
|
925
|
+
super(map);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
exports.DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange = DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange;
|
|
929
|
+
class DescribeProductsResponseBodyDataContentProtectionScoreDistribution extends $tea.Model {
|
|
930
|
+
static names() {
|
|
931
|
+
return {
|
|
932
|
+
count: 'Count',
|
|
933
|
+
range: 'Range',
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
static types() {
|
|
937
|
+
return {
|
|
938
|
+
count: 'number',
|
|
939
|
+
range: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange,
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
constructor(map) {
|
|
943
|
+
super(map);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
exports.DescribeProductsResponseBodyDataContentProtectionScoreDistribution = DescribeProductsResponseBodyDataContentProtectionScoreDistribution;
|
|
947
|
+
class DescribeProductsResponseBodyDataContent extends $tea.Model {
|
|
948
|
+
static names() {
|
|
949
|
+
return {
|
|
950
|
+
checkFailedCount: 'CheckFailedCount',
|
|
951
|
+
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
952
|
+
disableCheckResourceCount: 'DisableCheckResourceCount',
|
|
953
|
+
enableCheck: 'EnableCheck',
|
|
954
|
+
productType: 'ProductType',
|
|
955
|
+
protectionScore: 'ProtectionScore',
|
|
956
|
+
protectionScoreDistribution: 'ProtectionScoreDistribution',
|
|
957
|
+
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
958
|
+
riskCount: 'RiskCount',
|
|
959
|
+
riskyResourceCount: 'RiskyResourceCount',
|
|
960
|
+
totalResourceCount: 'TotalResourceCount',
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
static types() {
|
|
964
|
+
return {
|
|
965
|
+
checkFailedCount: 'number',
|
|
966
|
+
checkFailedResourceCount: 'number',
|
|
967
|
+
disableCheckResourceCount: 'number',
|
|
968
|
+
enableCheck: 'boolean',
|
|
969
|
+
productType: 'string',
|
|
970
|
+
protectionScore: 'number',
|
|
971
|
+
protectionScoreDistribution: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContentProtectionScoreDistribution },
|
|
972
|
+
protectionScoreUpdatedTime: 'number',
|
|
973
|
+
riskCount: 'number',
|
|
974
|
+
riskyResourceCount: 'number',
|
|
975
|
+
totalResourceCount: 'number',
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
constructor(map) {
|
|
979
|
+
super(map);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
exports.DescribeProductsResponseBodyDataContent = DescribeProductsResponseBodyDataContent;
|
|
983
|
+
class DescribeProductsResponseBodyData extends $tea.Model {
|
|
984
|
+
static names() {
|
|
985
|
+
return {
|
|
986
|
+
content: 'Content',
|
|
987
|
+
maxResults: 'MaxResults',
|
|
988
|
+
nextToken: 'NextToken',
|
|
989
|
+
totalCount: 'TotalCount',
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
static types() {
|
|
993
|
+
return {
|
|
994
|
+
content: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContent },
|
|
995
|
+
maxResults: 'number',
|
|
996
|
+
nextToken: 'string',
|
|
997
|
+
totalCount: 'number',
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
constructor(map) {
|
|
1001
|
+
super(map);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
exports.DescribeProductsResponseBodyData = DescribeProductsResponseBodyData;
|
|
1005
|
+
class DescribeResourcesResponseBodyDataContent extends $tea.Model {
|
|
1006
|
+
static names() {
|
|
1007
|
+
return {
|
|
1008
|
+
archiveDataSize: 'ArchiveDataSize',
|
|
1009
|
+
checkFailedCount: 'CheckFailedCount',
|
|
1010
|
+
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
1011
|
+
createTime: 'CreateTime',
|
|
1012
|
+
enableCheck: 'EnableCheck',
|
|
1013
|
+
iaDataSize: 'IaDataSize',
|
|
1014
|
+
productType: 'ProductType',
|
|
1015
|
+
protectionScore: 'ProtectionScore',
|
|
1016
|
+
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1017
|
+
regionId: 'RegionId',
|
|
1018
|
+
resourceArn: 'ResourceArn',
|
|
1019
|
+
resourceId: 'ResourceId',
|
|
1020
|
+
resourceName: 'ResourceName',
|
|
1021
|
+
resourceType: 'ResourceType',
|
|
1022
|
+
riskCount: 'RiskCount',
|
|
1023
|
+
standardDataSize: 'StandardDataSize',
|
|
1024
|
+
status: 'Status',
|
|
1025
|
+
totalDataSize: 'TotalDataSize',
|
|
1026
|
+
vSwitchId: 'VSwitchId',
|
|
1027
|
+
vpcId: 'VpcId',
|
|
1028
|
+
zoneId: 'ZoneId',
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
static types() {
|
|
1032
|
+
return {
|
|
1033
|
+
archiveDataSize: 'number',
|
|
1034
|
+
checkFailedCount: 'number',
|
|
1035
|
+
coldArchiveDataSize: 'number',
|
|
1036
|
+
createTime: 'number',
|
|
1037
|
+
enableCheck: 'boolean',
|
|
1038
|
+
iaDataSize: 'number',
|
|
1039
|
+
productType: 'string',
|
|
1040
|
+
protectionScore: 'number',
|
|
1041
|
+
protectionScoreUpdatedTime: 'number',
|
|
1042
|
+
regionId: 'string',
|
|
1043
|
+
resourceArn: 'string',
|
|
1044
|
+
resourceId: 'string',
|
|
1045
|
+
resourceName: 'string',
|
|
1046
|
+
resourceType: 'string',
|
|
1047
|
+
riskCount: 'number',
|
|
1048
|
+
standardDataSize: 'number',
|
|
1049
|
+
status: 'string',
|
|
1050
|
+
totalDataSize: 'number',
|
|
1051
|
+
vSwitchId: 'string',
|
|
1052
|
+
vpcId: 'string',
|
|
1053
|
+
zoneId: 'string',
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
constructor(map) {
|
|
1057
|
+
super(map);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
exports.DescribeResourcesResponseBodyDataContent = DescribeResourcesResponseBodyDataContent;
|
|
1061
|
+
class DescribeResourcesResponseBodyData extends $tea.Model {
|
|
1062
|
+
static names() {
|
|
1063
|
+
return {
|
|
1064
|
+
content: 'Content',
|
|
1065
|
+
maxResults: 'MaxResults',
|
|
1066
|
+
nextToken: 'NextToken',
|
|
1067
|
+
totalCount: 'TotalCount',
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
static types() {
|
|
1071
|
+
return {
|
|
1072
|
+
content: { 'type': 'array', 'itemType': DescribeResourcesResponseBodyDataContent },
|
|
1073
|
+
maxResults: 'number',
|
|
1074
|
+
nextToken: 'string',
|
|
1075
|
+
totalCount: 'number',
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
constructor(map) {
|
|
1079
|
+
super(map);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
exports.DescribeResourcesResponseBodyData = DescribeResourcesResponseBodyData;
|
|
1083
|
+
class DescribeRulesResponseBodyDataContent extends $tea.Model {
|
|
1084
|
+
static names() {
|
|
1085
|
+
return {
|
|
1086
|
+
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
1087
|
+
checkStatus: 'CheckStatus',
|
|
1088
|
+
checkTime: 'CheckTime',
|
|
1089
|
+
productType: 'ProductType',
|
|
1090
|
+
resourceType: 'ResourceType',
|
|
1091
|
+
riskyResourceCount: 'RiskyResourceCount',
|
|
1092
|
+
ruleId: 'RuleId',
|
|
1093
|
+
ruleTemplate: 'RuleTemplate',
|
|
1094
|
+
totalResourceCount: 'TotalResourceCount',
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
static types() {
|
|
1098
|
+
return {
|
|
1099
|
+
checkFailedResourceCount: 'number',
|
|
1100
|
+
checkStatus: 'string',
|
|
1101
|
+
checkTime: 'number',
|
|
1102
|
+
productType: 'string',
|
|
1103
|
+
resourceType: 'string',
|
|
1104
|
+
riskyResourceCount: 'number',
|
|
1105
|
+
ruleId: 'string',
|
|
1106
|
+
ruleTemplate: 'string',
|
|
1107
|
+
totalResourceCount: 'number',
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
constructor(map) {
|
|
1111
|
+
super(map);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
exports.DescribeRulesResponseBodyDataContent = DescribeRulesResponseBodyDataContent;
|
|
1115
|
+
class DescribeRulesResponseBodyData extends $tea.Model {
|
|
1116
|
+
static names() {
|
|
1117
|
+
return {
|
|
1118
|
+
content: 'Content',
|
|
1119
|
+
maxResults: 'MaxResults',
|
|
1120
|
+
nextToken: 'NextToken',
|
|
1121
|
+
totalCount: 'TotalCount',
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
static types() {
|
|
1125
|
+
return {
|
|
1126
|
+
content: { 'type': 'array', 'itemType': DescribeRulesResponseBodyDataContent },
|
|
1127
|
+
maxResults: 'number',
|
|
1128
|
+
nextToken: 'string',
|
|
1129
|
+
totalCount: 'number',
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
constructor(map) {
|
|
1133
|
+
super(map);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
exports.DescribeRulesResponseBodyData = DescribeRulesResponseBodyData;
|
|
1137
|
+
class DescribeTaskResponseBodyData extends $tea.Model {
|
|
1138
|
+
static names() {
|
|
1139
|
+
return {
|
|
1140
|
+
completeTime: 'CompleteTime',
|
|
1141
|
+
errorMessage: 'ErrorMessage',
|
|
1142
|
+
executionId: 'ExecutionId',
|
|
1143
|
+
expireTime: 'ExpireTime',
|
|
1144
|
+
progress: 'Progress',
|
|
1145
|
+
requestId: 'RequestId',
|
|
1146
|
+
startTime: 'StartTime',
|
|
1147
|
+
taskDescription: 'TaskDescription',
|
|
1148
|
+
taskDetail: 'TaskDetail',
|
|
1149
|
+
taskId: 'TaskId',
|
|
1150
|
+
taskName: 'TaskName',
|
|
1151
|
+
taskPriority: 'TaskPriority',
|
|
1152
|
+
taskStatus: 'TaskStatus',
|
|
1153
|
+
taskType: 'TaskType',
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
static types() {
|
|
1157
|
+
return {
|
|
1158
|
+
completeTime: 'number',
|
|
1159
|
+
errorMessage: 'string',
|
|
1160
|
+
executionId: 'string',
|
|
1161
|
+
expireTime: 'number',
|
|
1162
|
+
progress: 'number',
|
|
1163
|
+
requestId: 'string',
|
|
1164
|
+
startTime: 'number',
|
|
1165
|
+
taskDescription: 'string',
|
|
1166
|
+
taskDetail: 'string',
|
|
1167
|
+
taskId: 'string',
|
|
1168
|
+
taskName: 'string',
|
|
1169
|
+
taskPriority: 'string',
|
|
1170
|
+
taskStatus: 'string',
|
|
1171
|
+
taskType: 'string',
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
constructor(map) {
|
|
1175
|
+
super(map);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
exports.DescribeTaskResponseBodyData = DescribeTaskResponseBodyData;
|
|
1179
|
+
class DescribeTasksResponseBodyDataContent extends $tea.Model {
|
|
1180
|
+
static names() {
|
|
1181
|
+
return {
|
|
1182
|
+
completeTime: 'CompleteTime',
|
|
1183
|
+
errorMessage: 'ErrorMessage',
|
|
1184
|
+
executionId: 'ExecutionId',
|
|
1185
|
+
expireTime: 'ExpireTime',
|
|
1186
|
+
progress: 'Progress',
|
|
1187
|
+
requestId: 'RequestId',
|
|
1188
|
+
startTime: 'StartTime',
|
|
1189
|
+
taskDescription: 'TaskDescription',
|
|
1190
|
+
taskDetail: 'TaskDetail',
|
|
1191
|
+
taskId: 'TaskId',
|
|
1192
|
+
taskName: 'TaskName',
|
|
1193
|
+
taskPriority: 'TaskPriority',
|
|
1194
|
+
taskStatus: 'TaskStatus',
|
|
1195
|
+
taskType: 'TaskType',
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
static types() {
|
|
1199
|
+
return {
|
|
1200
|
+
completeTime: 'number',
|
|
1201
|
+
errorMessage: 'string',
|
|
1202
|
+
executionId: 'string',
|
|
1203
|
+
expireTime: 'number',
|
|
1204
|
+
progress: 'number',
|
|
1205
|
+
requestId: 'string',
|
|
1206
|
+
startTime: 'number',
|
|
1207
|
+
taskDescription: 'string',
|
|
1208
|
+
taskDetail: 'string',
|
|
1209
|
+
taskId: 'string',
|
|
1210
|
+
taskName: 'string',
|
|
1211
|
+
taskPriority: 'string',
|
|
1212
|
+
taskStatus: 'string',
|
|
1213
|
+
taskType: 'string',
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
constructor(map) {
|
|
1217
|
+
super(map);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
exports.DescribeTasksResponseBodyDataContent = DescribeTasksResponseBodyDataContent;
|
|
1221
|
+
class DescribeTasksResponseBodyData extends $tea.Model {
|
|
1222
|
+
static names() {
|
|
1223
|
+
return {
|
|
1224
|
+
content: 'Content',
|
|
1225
|
+
maxResults: 'MaxResults',
|
|
1226
|
+
nextToken: 'NextToken',
|
|
1227
|
+
totalCount: 'TotalCount',
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
static types() {
|
|
1231
|
+
return {
|
|
1232
|
+
content: { 'type': 'array', 'itemType': DescribeTasksResponseBodyDataContent },
|
|
1233
|
+
maxResults: 'number',
|
|
1234
|
+
nextToken: 'string',
|
|
1235
|
+
totalCount: 'number',
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
constructor(map) {
|
|
1239
|
+
super(map);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
exports.DescribeTasksResponseBodyData = DescribeTasksResponseBodyData;
|
|
1243
|
+
class DescribeTopRiskyResourcesResponseBodyDataContent extends $tea.Model {
|
|
1244
|
+
static names() {
|
|
1245
|
+
return {
|
|
1246
|
+
archiveDataSize: 'ArchiveDataSize',
|
|
1247
|
+
checkFailedCount: 'CheckFailedCount',
|
|
1248
|
+
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
1249
|
+
createTime: 'CreateTime',
|
|
1250
|
+
enableCheck: 'EnableCheck',
|
|
1251
|
+
iaDataSize: 'IaDataSize',
|
|
1252
|
+
productType: 'ProductType',
|
|
1253
|
+
protectionScore: 'ProtectionScore',
|
|
1254
|
+
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1255
|
+
regionId: 'RegionId',
|
|
1256
|
+
resourceArn: 'ResourceArn',
|
|
1257
|
+
resourceId: 'ResourceId',
|
|
1258
|
+
resourceName: 'ResourceName',
|
|
1259
|
+
resourceType: 'ResourceType',
|
|
1260
|
+
riskCount: 'RiskCount',
|
|
1261
|
+
standardDataSize: 'StandardDataSize',
|
|
1262
|
+
status: 'Status',
|
|
1263
|
+
totalDataSize: 'TotalDataSize',
|
|
1264
|
+
vSwitchId: 'VSwitchId',
|
|
1265
|
+
vpcId: 'VpcId',
|
|
1266
|
+
zoneId: 'ZoneId',
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
static types() {
|
|
1270
|
+
return {
|
|
1271
|
+
archiveDataSize: 'number',
|
|
1272
|
+
checkFailedCount: 'number',
|
|
1273
|
+
coldArchiveDataSize: 'number',
|
|
1274
|
+
createTime: 'number',
|
|
1275
|
+
enableCheck: 'boolean',
|
|
1276
|
+
iaDataSize: 'number',
|
|
1277
|
+
productType: 'string',
|
|
1278
|
+
protectionScore: 'number',
|
|
1279
|
+
protectionScoreUpdatedTime: 'number',
|
|
1280
|
+
regionId: 'string',
|
|
1281
|
+
resourceArn: 'string',
|
|
1282
|
+
resourceId: 'string',
|
|
1283
|
+
resourceName: 'string',
|
|
1284
|
+
resourceType: 'string',
|
|
1285
|
+
riskCount: 'number',
|
|
1286
|
+
standardDataSize: 'number',
|
|
1287
|
+
status: 'string',
|
|
1288
|
+
totalDataSize: 'number',
|
|
1289
|
+
vSwitchId: 'string',
|
|
1290
|
+
vpcId: 'string',
|
|
1291
|
+
zoneId: 'string',
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
constructor(map) {
|
|
1295
|
+
super(map);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
exports.DescribeTopRiskyResourcesResponseBodyDataContent = DescribeTopRiskyResourcesResponseBodyDataContent;
|
|
1299
|
+
class DescribeTopRiskyResourcesResponseBodyData extends $tea.Model {
|
|
1300
|
+
static names() {
|
|
1301
|
+
return {
|
|
1302
|
+
content: 'Content',
|
|
1303
|
+
maxResults: 'MaxResults',
|
|
1304
|
+
nextToken: 'NextToken',
|
|
1305
|
+
totalCount: 'TotalCount',
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
static types() {
|
|
1309
|
+
return {
|
|
1310
|
+
content: { 'type': 'array', 'itemType': DescribeTopRiskyResourcesResponseBodyDataContent },
|
|
1311
|
+
maxResults: 'number',
|
|
1312
|
+
nextToken: 'string',
|
|
1313
|
+
totalCount: 'number',
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
constructor(map) {
|
|
1317
|
+
super(map);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
exports.DescribeTopRiskyResourcesResponseBodyData = DescribeTopRiskyResourcesResponseBodyData;
|
|
1321
|
+
class GetBdrcServiceResponseBodyData extends $tea.Model {
|
|
1322
|
+
static names() {
|
|
1323
|
+
return {
|
|
1324
|
+
openTime: 'OpenTime',
|
|
1325
|
+
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1326
|
+
serviceInitializeStatus: 'ServiceInitializeStatus',
|
|
1327
|
+
serviceStatus: 'ServiceStatus',
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
static types() {
|
|
1331
|
+
return {
|
|
1332
|
+
openTime: 'number',
|
|
1333
|
+
protectionScoreUpdatedTime: 'number',
|
|
1334
|
+
serviceInitializeStatus: 'string',
|
|
1335
|
+
serviceStatus: 'string',
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
constructor(map) {
|
|
1339
|
+
super(map);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
exports.GetBdrcServiceResponseBodyData = GetBdrcServiceResponseBodyData;
|
|
1343
|
+
class UpdateResourcesResponseBodyData extends $tea.Model {
|
|
1344
|
+
static names() {
|
|
1345
|
+
return {
|
|
1346
|
+
taskId: 'TaskId',
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
static types() {
|
|
1350
|
+
return {
|
|
1351
|
+
taskId: 'string',
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
constructor(map) {
|
|
1355
|
+
super(map);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
exports.UpdateResourcesResponseBodyData = UpdateResourcesResponseBodyData;
|
|
1359
|
+
class Client extends openapi_client_1.default {
|
|
1360
|
+
constructor(config) {
|
|
1361
|
+
super(config);
|
|
1362
|
+
this._endpointRule = "";
|
|
1363
|
+
this.checkConfig(config);
|
|
1364
|
+
this._endpoint = this.getEndpoint("bdrc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
1365
|
+
}
|
|
1366
|
+
getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
|
|
1367
|
+
if (!tea_util_1.default.empty(endpoint)) {
|
|
1368
|
+
return endpoint;
|
|
1369
|
+
}
|
|
1370
|
+
if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
|
|
1371
|
+
return endpointMap[regionId];
|
|
1372
|
+
}
|
|
1373
|
+
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* @param request - CheckRulesRequest
|
|
1377
|
+
* @param headers - map
|
|
1378
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1379
|
+
* @returns CheckRulesResponse
|
|
1380
|
+
*/
|
|
1381
|
+
async checkRulesWithOptions(request, headers, runtime) {
|
|
1382
|
+
tea_util_1.default.validateModel(request);
|
|
1383
|
+
let body = {};
|
|
1384
|
+
if (!tea_util_1.default.isUnset(request.resourceArn)) {
|
|
1385
|
+
body["ResourceArn"] = request.resourceArn;
|
|
1386
|
+
}
|
|
1387
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
1388
|
+
body["RuleId"] = request.ruleId;
|
|
1389
|
+
}
|
|
1390
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1391
|
+
headers: headers,
|
|
1392
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1393
|
+
});
|
|
1394
|
+
let params = new $OpenApi.Params({
|
|
1395
|
+
action: "CheckRules",
|
|
1396
|
+
version: "2023-08-08",
|
|
1397
|
+
protocol: "HTTPS",
|
|
1398
|
+
pathname: `/api/v1/rules/check`,
|
|
1399
|
+
method: "POST",
|
|
1400
|
+
authType: "AK",
|
|
1401
|
+
style: "ROA",
|
|
1402
|
+
reqBodyType: "formData",
|
|
1403
|
+
bodyType: "json",
|
|
1404
|
+
});
|
|
1405
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CheckRulesResponse({}));
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* @param request - CheckRulesRequest
|
|
1409
|
+
* @returns CheckRulesResponse
|
|
1410
|
+
*/
|
|
1411
|
+
async checkRules(request) {
|
|
1412
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1413
|
+
let headers = {};
|
|
1414
|
+
return await this.checkRulesWithOptions(request, headers, runtime);
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* @param headers - map
|
|
1418
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1419
|
+
* @returns CloseBdrcServiceResponse
|
|
1420
|
+
*/
|
|
1421
|
+
async closeBdrcServiceWithOptions(headers, runtime) {
|
|
1422
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1423
|
+
headers: headers,
|
|
1424
|
+
});
|
|
1425
|
+
let params = new $OpenApi.Params({
|
|
1426
|
+
action: "CloseBdrcService",
|
|
1427
|
+
version: "2023-08-08",
|
|
1428
|
+
protocol: "HTTPS",
|
|
1429
|
+
pathname: `/api/v1/service/close`,
|
|
1430
|
+
method: "POST",
|
|
1431
|
+
authType: "AK",
|
|
1432
|
+
style: "ROA",
|
|
1433
|
+
reqBodyType: "json",
|
|
1434
|
+
bodyType: "json",
|
|
1435
|
+
});
|
|
1436
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CloseBdrcServiceResponse({}));
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* @returns CloseBdrcServiceResponse
|
|
1440
|
+
*/
|
|
1441
|
+
async closeBdrcService() {
|
|
1442
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1443
|
+
let headers = {};
|
|
1444
|
+
return await this.closeBdrcServiceWithOptions(headers, runtime);
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* @param request - DescribeCheckDetailsRequest
|
|
1448
|
+
* @param headers - map
|
|
1449
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1450
|
+
* @returns DescribeCheckDetailsResponse
|
|
1451
|
+
*/
|
|
1452
|
+
async describeCheckDetailsWithOptions(request, headers, runtime) {
|
|
1453
|
+
tea_util_1.default.validateModel(request);
|
|
1454
|
+
let query = {};
|
|
1455
|
+
if (!tea_util_1.default.isUnset(request.maxResults)) {
|
|
1456
|
+
query["MaxResults"] = request.maxResults;
|
|
1457
|
+
}
|
|
1458
|
+
if (!tea_util_1.default.isUnset(request.nextToken)) {
|
|
1459
|
+
query["NextToken"] = request.nextToken;
|
|
1460
|
+
}
|
|
1461
|
+
if (!tea_util_1.default.isUnset(request.resourceArn)) {
|
|
1462
|
+
query["ResourceArn"] = request.resourceArn;
|
|
1463
|
+
}
|
|
1464
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
1465
|
+
query["RuleId"] = request.ruleId;
|
|
1466
|
+
}
|
|
1467
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1468
|
+
headers: headers,
|
|
1469
|
+
query: openapi_util_1.default.query(query),
|
|
1470
|
+
});
|
|
1471
|
+
let params = new $OpenApi.Params({
|
|
1472
|
+
action: "DescribeCheckDetails",
|
|
1473
|
+
version: "2023-08-08",
|
|
1474
|
+
protocol: "HTTPS",
|
|
1475
|
+
pathname: `/api/v1/check-details`,
|
|
1476
|
+
method: "GET",
|
|
1477
|
+
authType: "AK",
|
|
1478
|
+
style: "ROA",
|
|
1479
|
+
reqBodyType: "json",
|
|
1480
|
+
bodyType: "json",
|
|
1481
|
+
});
|
|
1482
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCheckDetailsResponse({}));
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* @param request - DescribeCheckDetailsRequest
|
|
1486
|
+
* @returns DescribeCheckDetailsResponse
|
|
1487
|
+
*/
|
|
1488
|
+
async describeCheckDetails(request) {
|
|
1489
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1490
|
+
let headers = {};
|
|
1491
|
+
return await this.describeCheckDetailsWithOptions(request, headers, runtime);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* @param headers - map
|
|
1495
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1496
|
+
* @returns DescribeProductsResponse
|
|
1497
|
+
*/
|
|
1498
|
+
async describeProductsWithOptions(headers, runtime) {
|
|
1499
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1500
|
+
headers: headers,
|
|
1501
|
+
});
|
|
1502
|
+
let params = new $OpenApi.Params({
|
|
1503
|
+
action: "DescribeProducts",
|
|
1504
|
+
version: "2023-08-08",
|
|
1505
|
+
protocol: "HTTPS",
|
|
1506
|
+
pathname: `/api/v1/products`,
|
|
1507
|
+
method: "GET",
|
|
1508
|
+
authType: "AK",
|
|
1509
|
+
style: "ROA",
|
|
1510
|
+
reqBodyType: "json",
|
|
1511
|
+
bodyType: "json",
|
|
1512
|
+
});
|
|
1513
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeProductsResponse({}));
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* @returns DescribeProductsResponse
|
|
1517
|
+
*/
|
|
1518
|
+
async describeProducts() {
|
|
1519
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1520
|
+
let headers = {};
|
|
1521
|
+
return await this.describeProductsWithOptions(headers, runtime);
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* @param request - DescribeResourcesRequest
|
|
1525
|
+
* @param headers - map
|
|
1526
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1527
|
+
* @returns DescribeResourcesResponse
|
|
1528
|
+
*/
|
|
1529
|
+
async describeResourcesWithOptions(request, headers, runtime) {
|
|
1530
|
+
tea_util_1.default.validateModel(request);
|
|
1531
|
+
let query = {};
|
|
1532
|
+
if (!tea_util_1.default.isUnset(request.failedRuleTemplate)) {
|
|
1533
|
+
query["FailedRuleTemplate"] = request.failedRuleTemplate;
|
|
1534
|
+
}
|
|
1535
|
+
if (!tea_util_1.default.isUnset(request.maxResults)) {
|
|
1536
|
+
query["MaxResults"] = request.maxResults;
|
|
1537
|
+
}
|
|
1538
|
+
if (!tea_util_1.default.isUnset(request.nextToken)) {
|
|
1539
|
+
query["NextToken"] = request.nextToken;
|
|
1540
|
+
}
|
|
1541
|
+
if (!tea_util_1.default.isUnset(request.resourceId)) {
|
|
1542
|
+
query["ResourceId"] = request.resourceId;
|
|
1543
|
+
}
|
|
1544
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
1545
|
+
query["ResourceType"] = request.resourceType;
|
|
1546
|
+
}
|
|
1547
|
+
if (!tea_util_1.default.isUnset(request.sortBy)) {
|
|
1548
|
+
query["SortBy"] = request.sortBy;
|
|
1549
|
+
}
|
|
1550
|
+
if (!tea_util_1.default.isUnset(request.sortOrder)) {
|
|
1551
|
+
query["SortOrder"] = request.sortOrder;
|
|
1552
|
+
}
|
|
1553
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1554
|
+
headers: headers,
|
|
1555
|
+
query: openapi_util_1.default.query(query),
|
|
1556
|
+
});
|
|
1557
|
+
let params = new $OpenApi.Params({
|
|
1558
|
+
action: "DescribeResources",
|
|
1559
|
+
version: "2023-08-08",
|
|
1560
|
+
protocol: "HTTPS",
|
|
1561
|
+
pathname: `/api/v1/resources`,
|
|
1562
|
+
method: "GET",
|
|
1563
|
+
authType: "AK",
|
|
1564
|
+
style: "ROA",
|
|
1565
|
+
reqBodyType: "json",
|
|
1566
|
+
bodyType: "json",
|
|
1567
|
+
});
|
|
1568
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourcesResponse({}));
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @param request - DescribeResourcesRequest
|
|
1572
|
+
* @returns DescribeResourcesResponse
|
|
1573
|
+
*/
|
|
1574
|
+
async describeResources(request) {
|
|
1575
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1576
|
+
let headers = {};
|
|
1577
|
+
return await this.describeResourcesWithOptions(request, headers, runtime);
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* @param request - DescribeRulesRequest
|
|
1581
|
+
* @param headers - map
|
|
1582
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1583
|
+
* @returns DescribeRulesResponse
|
|
1584
|
+
*/
|
|
1585
|
+
async describeRulesWithOptions(request, headers, runtime) {
|
|
1586
|
+
tea_util_1.default.validateModel(request);
|
|
1587
|
+
let query = {};
|
|
1588
|
+
if (!tea_util_1.default.isUnset(request.maxResults)) {
|
|
1589
|
+
query["MaxResults"] = request.maxResults;
|
|
1590
|
+
}
|
|
1591
|
+
if (!tea_util_1.default.isUnset(request.nextToken)) {
|
|
1592
|
+
query["NextToken"] = request.nextToken;
|
|
1593
|
+
}
|
|
1594
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
1595
|
+
query["ResourceType"] = request.resourceType;
|
|
1596
|
+
}
|
|
1597
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1598
|
+
headers: headers,
|
|
1599
|
+
query: openapi_util_1.default.query(query),
|
|
1600
|
+
});
|
|
1601
|
+
let params = new $OpenApi.Params({
|
|
1602
|
+
action: "DescribeRules",
|
|
1603
|
+
version: "2023-08-08",
|
|
1604
|
+
protocol: "HTTPS",
|
|
1605
|
+
pathname: `/api/v1/rules`,
|
|
1606
|
+
method: "GET",
|
|
1607
|
+
authType: "AK",
|
|
1608
|
+
style: "ROA",
|
|
1609
|
+
reqBodyType: "json",
|
|
1610
|
+
bodyType: "json",
|
|
1611
|
+
});
|
|
1612
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRulesResponse({}));
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* @param request - DescribeRulesRequest
|
|
1616
|
+
* @returns DescribeRulesResponse
|
|
1617
|
+
*/
|
|
1618
|
+
async describeRules(request) {
|
|
1619
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1620
|
+
let headers = {};
|
|
1621
|
+
return await this.describeRulesWithOptions(request, headers, runtime);
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @param headers - map
|
|
1625
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1626
|
+
* @returns DescribeTaskResponse
|
|
1627
|
+
*/
|
|
1628
|
+
async describeTaskWithOptions(TaskId, headers, runtime) {
|
|
1629
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1630
|
+
headers: headers,
|
|
1631
|
+
});
|
|
1632
|
+
let params = new $OpenApi.Params({
|
|
1633
|
+
action: "DescribeTask",
|
|
1634
|
+
version: "2023-08-08",
|
|
1635
|
+
protocol: "HTTPS",
|
|
1636
|
+
pathname: `/api/v1/tasks/${openapi_util_1.default.getEncodeParam(TaskId)}`,
|
|
1637
|
+
method: "GET",
|
|
1638
|
+
authType: "AK",
|
|
1639
|
+
style: "ROA",
|
|
1640
|
+
reqBodyType: "json",
|
|
1641
|
+
bodyType: "json",
|
|
1642
|
+
});
|
|
1643
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskResponse({}));
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* @returns DescribeTaskResponse
|
|
1647
|
+
*/
|
|
1648
|
+
async describeTask(TaskId) {
|
|
1649
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1650
|
+
let headers = {};
|
|
1651
|
+
return await this.describeTaskWithOptions(TaskId, headers, runtime);
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* @param request - DescribeTasksRequest
|
|
1655
|
+
* @param headers - map
|
|
1656
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1657
|
+
* @returns DescribeTasksResponse
|
|
1658
|
+
*/
|
|
1659
|
+
async describeTasksWithOptions(request, headers, runtime) {
|
|
1660
|
+
tea_util_1.default.validateModel(request);
|
|
1661
|
+
let query = {};
|
|
1662
|
+
if (!tea_util_1.default.isUnset(request.maxResults)) {
|
|
1663
|
+
query["MaxResults"] = request.maxResults;
|
|
1664
|
+
}
|
|
1665
|
+
if (!tea_util_1.default.isUnset(request.nextToken)) {
|
|
1666
|
+
query["NextToken"] = request.nextToken;
|
|
1667
|
+
}
|
|
1668
|
+
if (!tea_util_1.default.isUnset(request.taskStatus)) {
|
|
1669
|
+
query["TaskStatus"] = request.taskStatus;
|
|
1670
|
+
}
|
|
1671
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1672
|
+
headers: headers,
|
|
1673
|
+
query: openapi_util_1.default.query(query),
|
|
1674
|
+
});
|
|
1675
|
+
let params = new $OpenApi.Params({
|
|
1676
|
+
action: "DescribeTasks",
|
|
1677
|
+
version: "2023-08-08",
|
|
1678
|
+
protocol: "HTTPS",
|
|
1679
|
+
pathname: `/api/v1/tasks`,
|
|
1680
|
+
method: "GET",
|
|
1681
|
+
authType: "AK",
|
|
1682
|
+
style: "ROA",
|
|
1683
|
+
reqBodyType: "json",
|
|
1684
|
+
bodyType: "json",
|
|
1685
|
+
});
|
|
1686
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTasksResponse({}));
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* @param request - DescribeTasksRequest
|
|
1690
|
+
* @returns DescribeTasksResponse
|
|
1691
|
+
*/
|
|
1692
|
+
async describeTasks(request) {
|
|
1693
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1694
|
+
let headers = {};
|
|
1695
|
+
return await this.describeTasksWithOptions(request, headers, runtime);
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* @param request - DescribeTopRiskyResourcesRequest
|
|
1699
|
+
* @param headers - map
|
|
1700
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1701
|
+
* @returns DescribeTopRiskyResourcesResponse
|
|
1702
|
+
*/
|
|
1703
|
+
async describeTopRiskyResourcesWithOptions(request, headers, runtime) {
|
|
1704
|
+
tea_util_1.default.validateModel(request);
|
|
1705
|
+
let query = {};
|
|
1706
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
1707
|
+
query["ResourceType"] = request.resourceType;
|
|
1708
|
+
}
|
|
1709
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1710
|
+
headers: headers,
|
|
1711
|
+
query: openapi_util_1.default.query(query),
|
|
1712
|
+
});
|
|
1713
|
+
let params = new $OpenApi.Params({
|
|
1714
|
+
action: "DescribeTopRiskyResources",
|
|
1715
|
+
version: "2023-08-08",
|
|
1716
|
+
protocol: "HTTPS",
|
|
1717
|
+
pathname: `/api/v1/resources/top-risky`,
|
|
1718
|
+
method: "GET",
|
|
1719
|
+
authType: "AK",
|
|
1720
|
+
style: "ROA",
|
|
1721
|
+
reqBodyType: "json",
|
|
1722
|
+
bodyType: "json",
|
|
1723
|
+
});
|
|
1724
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTopRiskyResourcesResponse({}));
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* @param request - DescribeTopRiskyResourcesRequest
|
|
1728
|
+
* @returns DescribeTopRiskyResourcesResponse
|
|
1729
|
+
*/
|
|
1730
|
+
async describeTopRiskyResources(request) {
|
|
1731
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1732
|
+
let headers = {};
|
|
1733
|
+
return await this.describeTopRiskyResourcesWithOptions(request, headers, runtime);
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* @param request - DisableCheckProductRequest
|
|
1737
|
+
* @param headers - map
|
|
1738
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1739
|
+
* @returns DisableCheckProductResponse
|
|
1740
|
+
*/
|
|
1741
|
+
async disableCheckProductWithOptions(request, headers, runtime) {
|
|
1742
|
+
tea_util_1.default.validateModel(request);
|
|
1743
|
+
let body = {};
|
|
1744
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1745
|
+
body["ProductType"] = request.productType;
|
|
1746
|
+
}
|
|
1747
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1748
|
+
headers: headers,
|
|
1749
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1750
|
+
});
|
|
1751
|
+
let params = new $OpenApi.Params({
|
|
1752
|
+
action: "DisableCheckProduct",
|
|
1753
|
+
version: "2023-08-08",
|
|
1754
|
+
protocol: "HTTPS",
|
|
1755
|
+
pathname: `/api/v1/products/disable-check`,
|
|
1756
|
+
method: "POST",
|
|
1757
|
+
authType: "AK",
|
|
1758
|
+
style: "ROA",
|
|
1759
|
+
reqBodyType: "formData",
|
|
1760
|
+
bodyType: "json",
|
|
1761
|
+
});
|
|
1762
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DisableCheckProductResponse({}));
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* @param request - DisableCheckProductRequest
|
|
1766
|
+
* @returns DisableCheckProductResponse
|
|
1767
|
+
*/
|
|
1768
|
+
async disableCheckProduct(request) {
|
|
1769
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1770
|
+
let headers = {};
|
|
1771
|
+
return await this.disableCheckProductWithOptions(request, headers, runtime);
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* @param request - DisableCheckResourceRequest
|
|
1775
|
+
* @param headers - map
|
|
1776
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1777
|
+
* @returns DisableCheckResourceResponse
|
|
1778
|
+
*/
|
|
1779
|
+
async disableCheckResourceWithOptions(request, headers, runtime) {
|
|
1780
|
+
tea_util_1.default.validateModel(request);
|
|
1781
|
+
let body = {};
|
|
1782
|
+
if (!tea_util_1.default.isUnset(request.resourceArn)) {
|
|
1783
|
+
body["ResourceArn"] = request.resourceArn;
|
|
1784
|
+
}
|
|
1785
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1786
|
+
headers: headers,
|
|
1787
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1788
|
+
});
|
|
1789
|
+
let params = new $OpenApi.Params({
|
|
1790
|
+
action: "DisableCheckResource",
|
|
1791
|
+
version: "2023-08-08",
|
|
1792
|
+
protocol: "HTTPS",
|
|
1793
|
+
pathname: `/api/v1/resources/disable-check`,
|
|
1794
|
+
method: "POST",
|
|
1795
|
+
authType: "AK",
|
|
1796
|
+
style: "ROA",
|
|
1797
|
+
reqBodyType: "formData",
|
|
1798
|
+
bodyType: "json",
|
|
1799
|
+
});
|
|
1800
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DisableCheckResourceResponse({}));
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @param request - DisableCheckResourceRequest
|
|
1804
|
+
* @returns DisableCheckResourceResponse
|
|
1805
|
+
*/
|
|
1806
|
+
async disableCheckResource(request) {
|
|
1807
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1808
|
+
let headers = {};
|
|
1809
|
+
return await this.disableCheckResourceWithOptions(request, headers, runtime);
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* @param request - EnableCheckProductRequest
|
|
1813
|
+
* @param headers - map
|
|
1814
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1815
|
+
* @returns EnableCheckProductResponse
|
|
1816
|
+
*/
|
|
1817
|
+
async enableCheckProductWithOptions(request, headers, runtime) {
|
|
1818
|
+
tea_util_1.default.validateModel(request);
|
|
1819
|
+
let body = {};
|
|
1820
|
+
if (!tea_util_1.default.isUnset(request.productType)) {
|
|
1821
|
+
body["ProductType"] = request.productType;
|
|
1822
|
+
}
|
|
1823
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1824
|
+
headers: headers,
|
|
1825
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1826
|
+
});
|
|
1827
|
+
let params = new $OpenApi.Params({
|
|
1828
|
+
action: "EnableCheckProduct",
|
|
1829
|
+
version: "2023-08-08",
|
|
1830
|
+
protocol: "HTTPS",
|
|
1831
|
+
pathname: `/api/v1/products/enable-check`,
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
authType: "AK",
|
|
1834
|
+
style: "ROA",
|
|
1835
|
+
reqBodyType: "formData",
|
|
1836
|
+
bodyType: "json",
|
|
1837
|
+
});
|
|
1838
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EnableCheckProductResponse({}));
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* @param request - EnableCheckProductRequest
|
|
1842
|
+
* @returns EnableCheckProductResponse
|
|
1843
|
+
*/
|
|
1844
|
+
async enableCheckProduct(request) {
|
|
1845
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1846
|
+
let headers = {};
|
|
1847
|
+
return await this.enableCheckProductWithOptions(request, headers, runtime);
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* @param request - EnableCheckResourceRequest
|
|
1851
|
+
* @param headers - map
|
|
1852
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1853
|
+
* @returns EnableCheckResourceResponse
|
|
1854
|
+
*/
|
|
1855
|
+
async enableCheckResourceWithOptions(request, headers, runtime) {
|
|
1856
|
+
tea_util_1.default.validateModel(request);
|
|
1857
|
+
let body = {};
|
|
1858
|
+
if (!tea_util_1.default.isUnset(request.resourceArn)) {
|
|
1859
|
+
body["ResourceArn"] = request.resourceArn;
|
|
1860
|
+
}
|
|
1861
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1862
|
+
headers: headers,
|
|
1863
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1864
|
+
});
|
|
1865
|
+
let params = new $OpenApi.Params({
|
|
1866
|
+
action: "EnableCheckResource",
|
|
1867
|
+
version: "2023-08-08",
|
|
1868
|
+
protocol: "HTTPS",
|
|
1869
|
+
pathname: `/api/v1/resources/enable-check`,
|
|
1870
|
+
method: "POST",
|
|
1871
|
+
authType: "AK",
|
|
1872
|
+
style: "ROA",
|
|
1873
|
+
reqBodyType: "formData",
|
|
1874
|
+
bodyType: "json",
|
|
1875
|
+
});
|
|
1876
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EnableCheckResourceResponse({}));
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* @param request - EnableCheckResourceRequest
|
|
1880
|
+
* @returns EnableCheckResourceResponse
|
|
1881
|
+
*/
|
|
1882
|
+
async enableCheckResource(request) {
|
|
1883
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1884
|
+
let headers = {};
|
|
1885
|
+
return await this.enableCheckResourceWithOptions(request, headers, runtime);
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* @param headers - map
|
|
1889
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1890
|
+
* @returns GetBdrcServiceResponse
|
|
1891
|
+
*/
|
|
1892
|
+
async getBdrcServiceWithOptions(headers, runtime) {
|
|
1893
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1894
|
+
headers: headers,
|
|
1895
|
+
});
|
|
1896
|
+
let params = new $OpenApi.Params({
|
|
1897
|
+
action: "GetBdrcService",
|
|
1898
|
+
version: "2023-08-08",
|
|
1899
|
+
protocol: "HTTPS",
|
|
1900
|
+
pathname: `/api/v1/service`,
|
|
1901
|
+
method: "GET",
|
|
1902
|
+
authType: "AK",
|
|
1903
|
+
style: "ROA",
|
|
1904
|
+
reqBodyType: "json",
|
|
1905
|
+
bodyType: "json",
|
|
1906
|
+
});
|
|
1907
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetBdrcServiceResponse({}));
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* @returns GetBdrcServiceResponse
|
|
1911
|
+
*/
|
|
1912
|
+
async getBdrcService() {
|
|
1913
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1914
|
+
let headers = {};
|
|
1915
|
+
return await this.getBdrcServiceWithOptions(headers, runtime);
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* @param headers - map
|
|
1919
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1920
|
+
* @returns OpenBdrcServiceResponse
|
|
1921
|
+
*/
|
|
1922
|
+
async openBdrcServiceWithOptions(headers, runtime) {
|
|
1923
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1924
|
+
headers: headers,
|
|
1925
|
+
});
|
|
1926
|
+
let params = new $OpenApi.Params({
|
|
1927
|
+
action: "OpenBdrcService",
|
|
1928
|
+
version: "2023-08-08",
|
|
1929
|
+
protocol: "HTTPS",
|
|
1930
|
+
pathname: `/api/v1/service/open`,
|
|
1931
|
+
method: "POST",
|
|
1932
|
+
authType: "AK",
|
|
1933
|
+
style: "ROA",
|
|
1934
|
+
reqBodyType: "json",
|
|
1935
|
+
bodyType: "json",
|
|
1936
|
+
});
|
|
1937
|
+
return $tea.cast(await this.callApi(params, req, runtime), new OpenBdrcServiceResponse({}));
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* @returns OpenBdrcServiceResponse
|
|
1941
|
+
*/
|
|
1942
|
+
async openBdrcService() {
|
|
1943
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1944
|
+
let headers = {};
|
|
1945
|
+
return await this.openBdrcServiceWithOptions(headers, runtime);
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* @param request - UpdateResourcesRequest
|
|
1949
|
+
* @param headers - map
|
|
1950
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1951
|
+
* @returns UpdateResourcesResponse
|
|
1952
|
+
*/
|
|
1953
|
+
async updateResourcesWithOptions(request, headers, runtime) {
|
|
1954
|
+
tea_util_1.default.validateModel(request);
|
|
1955
|
+
let body = {};
|
|
1956
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
1957
|
+
body["ResourceType"] = request.resourceType;
|
|
1958
|
+
}
|
|
1959
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1960
|
+
headers: headers,
|
|
1961
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1962
|
+
});
|
|
1963
|
+
let params = new $OpenApi.Params({
|
|
1964
|
+
action: "UpdateResources",
|
|
1965
|
+
version: "2023-08-08",
|
|
1966
|
+
protocol: "HTTPS",
|
|
1967
|
+
pathname: `/api/v1/resources/update`,
|
|
1968
|
+
method: "POST",
|
|
1969
|
+
authType: "AK",
|
|
1970
|
+
style: "ROA",
|
|
1971
|
+
reqBodyType: "formData",
|
|
1972
|
+
bodyType: "json",
|
|
1973
|
+
});
|
|
1974
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourcesResponse({}));
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* @param request - UpdateResourcesRequest
|
|
1978
|
+
* @returns UpdateResourcesResponse
|
|
1979
|
+
*/
|
|
1980
|
+
async updateResources(request) {
|
|
1981
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1982
|
+
let headers = {};
|
|
1983
|
+
return await this.updateResourcesWithOptions(request, headers, runtime);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
exports.default = Client;
|
|
1987
|
+
//# sourceMappingURL=client.js.map
|