@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/src/client.ts ADDED
@@ -0,0 +1,3061 @@
1
+ // This file is auto-generated, don't edit it
2
+ /**
3
+ */
4
+ import Util, * as $Util from '@alicloud/tea-util';
5
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
+ import OpenApiUtil from '@alicloud/openapi-util';
7
+ import EndpointUtil from '@alicloud/endpoint-util';
8
+ import * as $tea from '@alicloud/tea-typescript';
9
+
10
+ export class CheckRulesRequest extends $tea.Model {
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * acs:ecs:123***890:cn-shanghai:instance/i-001***90
17
+ */
18
+ resourceArn?: string;
19
+ /**
20
+ * @example
21
+ * rule-000***dav
22
+ */
23
+ ruleId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ resourceArn: 'ResourceArn',
27
+ ruleId: 'RuleId',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ resourceArn: 'string',
34
+ ruleId: 'string',
35
+ };
36
+ }
37
+
38
+ constructor(map?: { [key: string]: any }) {
39
+ super(map);
40
+ }
41
+ }
42
+
43
+ export class CheckRulesResponseBody extends $tea.Model {
44
+ data?: CheckRulesResponseBodyData;
45
+ /**
46
+ * @example
47
+ * 700683DE-0154-56D4-8D76-3B7A2C2C7DF9
48
+ */
49
+ requestId?: string;
50
+ static names(): { [key: string]: string } {
51
+ return {
52
+ data: 'Data',
53
+ requestId: 'RequestId',
54
+ };
55
+ }
56
+
57
+ static types(): { [key: string]: any } {
58
+ return {
59
+ data: CheckRulesResponseBodyData,
60
+ requestId: 'string',
61
+ };
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
69
+ export class CheckRulesResponse extends $tea.Model {
70
+ headers?: { [key: string]: string };
71
+ statusCode?: number;
72
+ body?: CheckRulesResponseBody;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ headers: 'headers',
76
+ statusCode: 'statusCode',
77
+ body: 'body',
78
+ };
79
+ }
80
+
81
+ static types(): { [key: string]: any } {
82
+ return {
83
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
84
+ statusCode: 'number',
85
+ body: CheckRulesResponseBody,
86
+ };
87
+ }
88
+
89
+ constructor(map?: { [key: string]: any }) {
90
+ super(map);
91
+ }
92
+ }
93
+
94
+ export class CloseBdrcServiceResponseBody extends $tea.Model {
95
+ /**
96
+ * @example
97
+ * 663D8898-E0B5-5964-BF28-A191CE6A1825
98
+ */
99
+ requestId?: string;
100
+ static names(): { [key: string]: string } {
101
+ return {
102
+ requestId: 'RequestId',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ requestId: 'string',
109
+ };
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
117
+ export class CloseBdrcServiceResponse extends $tea.Model {
118
+ headers?: { [key: string]: string };
119
+ statusCode?: number;
120
+ body?: CloseBdrcServiceResponseBody;
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ headers: 'headers',
124
+ statusCode: 'statusCode',
125
+ body: 'body',
126
+ };
127
+ }
128
+
129
+ static types(): { [key: string]: any } {
130
+ return {
131
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
132
+ statusCode: 'number',
133
+ body: CloseBdrcServiceResponseBody,
134
+ };
135
+ }
136
+
137
+ constructor(map?: { [key: string]: any }) {
138
+ super(map);
139
+ }
140
+ }
141
+
142
+ export class DescribeCheckDetailsRequest extends $tea.Model {
143
+ /**
144
+ * @example
145
+ * 10
146
+ */
147
+ maxResults?: number;
148
+ /**
149
+ * @example
150
+ * cae**********699
151
+ */
152
+ nextToken?: string;
153
+ /**
154
+ * @remarks
155
+ * This parameter is required.
156
+ *
157
+ * @example
158
+ * acs:ecs:123***890:cn-shanghai:instance/i-001***90
159
+ */
160
+ resourceArn?: string;
161
+ /**
162
+ * @example
163
+ * rule-000***dav
164
+ */
165
+ ruleId?: string;
166
+ static names(): { [key: string]: string } {
167
+ return {
168
+ maxResults: 'MaxResults',
169
+ nextToken: 'NextToken',
170
+ resourceArn: 'ResourceArn',
171
+ ruleId: 'RuleId',
172
+ };
173
+ }
174
+
175
+ static types(): { [key: string]: any } {
176
+ return {
177
+ maxResults: 'number',
178
+ nextToken: 'string',
179
+ resourceArn: 'string',
180
+ ruleId: 'string',
181
+ };
182
+ }
183
+
184
+ constructor(map?: { [key: string]: any }) {
185
+ super(map);
186
+ }
187
+ }
188
+
189
+ export class DescribeCheckDetailsResponseBody extends $tea.Model {
190
+ data?: DescribeCheckDetailsResponseBodyData;
191
+ /**
192
+ * @example
193
+ * 92793A50-0B97-59F1-BAEA-EAED83BA1998
194
+ */
195
+ requestId?: string;
196
+ static names(): { [key: string]: string } {
197
+ return {
198
+ data: 'Data',
199
+ requestId: 'RequestId',
200
+ };
201
+ }
202
+
203
+ static types(): { [key: string]: any } {
204
+ return {
205
+ data: DescribeCheckDetailsResponseBodyData,
206
+ requestId: 'string',
207
+ };
208
+ }
209
+
210
+ constructor(map?: { [key: string]: any }) {
211
+ super(map);
212
+ }
213
+ }
214
+
215
+ export class DescribeCheckDetailsResponse extends $tea.Model {
216
+ headers?: { [key: string]: string };
217
+ statusCode?: number;
218
+ body?: DescribeCheckDetailsResponseBody;
219
+ static names(): { [key: string]: string } {
220
+ return {
221
+ headers: 'headers',
222
+ statusCode: 'statusCode',
223
+ body: 'body',
224
+ };
225
+ }
226
+
227
+ static types(): { [key: string]: any } {
228
+ return {
229
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
230
+ statusCode: 'number',
231
+ body: DescribeCheckDetailsResponseBody,
232
+ };
233
+ }
234
+
235
+ constructor(map?: { [key: string]: any }) {
236
+ super(map);
237
+ }
238
+ }
239
+
240
+ export class DescribeProductsResponseBody extends $tea.Model {
241
+ data?: DescribeProductsResponseBodyData;
242
+ /**
243
+ * @example
244
+ * 30FB202A-1D22-5394-AB02-4477CDFCF51F
245
+ */
246
+ requestId?: string;
247
+ static names(): { [key: string]: string } {
248
+ return {
249
+ data: 'Data',
250
+ requestId: 'RequestId',
251
+ };
252
+ }
253
+
254
+ static types(): { [key: string]: any } {
255
+ return {
256
+ data: DescribeProductsResponseBodyData,
257
+ requestId: 'string',
258
+ };
259
+ }
260
+
261
+ constructor(map?: { [key: string]: any }) {
262
+ super(map);
263
+ }
264
+ }
265
+
266
+ export class DescribeProductsResponse extends $tea.Model {
267
+ headers?: { [key: string]: string };
268
+ statusCode?: number;
269
+ body?: DescribeProductsResponseBody;
270
+ static names(): { [key: string]: string } {
271
+ return {
272
+ headers: 'headers',
273
+ statusCode: 'statusCode',
274
+ body: 'body',
275
+ };
276
+ }
277
+
278
+ static types(): { [key: string]: any } {
279
+ return {
280
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
281
+ statusCode: 'number',
282
+ body: DescribeProductsResponseBody,
283
+ };
284
+ }
285
+
286
+ constructor(map?: { [key: string]: any }) {
287
+ super(map);
288
+ }
289
+ }
290
+
291
+ export class DescribeResourcesRequest extends $tea.Model {
292
+ /**
293
+ * @example
294
+ * rule-000c***yc9
295
+ */
296
+ failedRuleTemplate?: string;
297
+ /**
298
+ * @example
299
+ * 10
300
+ */
301
+ maxResults?: number;
302
+ /**
303
+ * @example
304
+ * cae**********699
305
+ */
306
+ nextToken?: string;
307
+ /**
308
+ * @example
309
+ * i-0003***110
310
+ */
311
+ resourceId?: string;
312
+ /**
313
+ * @example
314
+ * ACS::ECS::Instance
315
+ */
316
+ resourceType?: string;
317
+ /**
318
+ * @example
319
+ * protectionScore
320
+ */
321
+ sortBy?: string;
322
+ /**
323
+ * @example
324
+ * ASC
325
+ */
326
+ sortOrder?: string;
327
+ static names(): { [key: string]: string } {
328
+ return {
329
+ failedRuleTemplate: 'FailedRuleTemplate',
330
+ maxResults: 'MaxResults',
331
+ nextToken: 'NextToken',
332
+ resourceId: 'ResourceId',
333
+ resourceType: 'ResourceType',
334
+ sortBy: 'SortBy',
335
+ sortOrder: 'SortOrder',
336
+ };
337
+ }
338
+
339
+ static types(): { [key: string]: any } {
340
+ return {
341
+ failedRuleTemplate: 'string',
342
+ maxResults: 'number',
343
+ nextToken: 'string',
344
+ resourceId: 'string',
345
+ resourceType: 'string',
346
+ sortBy: 'string',
347
+ sortOrder: 'string',
348
+ };
349
+ }
350
+
351
+ constructor(map?: { [key: string]: any }) {
352
+ super(map);
353
+ }
354
+ }
355
+
356
+ export class DescribeResourcesResponseBody extends $tea.Model {
357
+ data?: DescribeResourcesResponseBodyData;
358
+ /**
359
+ * @example
360
+ * 700683DE-0154-56D4-8D76-3B7A2C2C7DF9
361
+ */
362
+ requestId?: string;
363
+ static names(): { [key: string]: string } {
364
+ return {
365
+ data: 'Data',
366
+ requestId: 'RequestId',
367
+ };
368
+ }
369
+
370
+ static types(): { [key: string]: any } {
371
+ return {
372
+ data: DescribeResourcesResponseBodyData,
373
+ requestId: 'string',
374
+ };
375
+ }
376
+
377
+ constructor(map?: { [key: string]: any }) {
378
+ super(map);
379
+ }
380
+ }
381
+
382
+ export class DescribeResourcesResponse extends $tea.Model {
383
+ headers?: { [key: string]: string };
384
+ statusCode?: number;
385
+ body?: DescribeResourcesResponseBody;
386
+ static names(): { [key: string]: string } {
387
+ return {
388
+ headers: 'headers',
389
+ statusCode: 'statusCode',
390
+ body: 'body',
391
+ };
392
+ }
393
+
394
+ static types(): { [key: string]: any } {
395
+ return {
396
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
397
+ statusCode: 'number',
398
+ body: DescribeResourcesResponseBody,
399
+ };
400
+ }
401
+
402
+ constructor(map?: { [key: string]: any }) {
403
+ super(map);
404
+ }
405
+ }
406
+
407
+ export class DescribeRulesRequest extends $tea.Model {
408
+ /**
409
+ * @example
410
+ * 10
411
+ */
412
+ maxResults?: number;
413
+ /**
414
+ * @example
415
+ * cae**********699
416
+ */
417
+ nextToken?: string;
418
+ /**
419
+ * @example
420
+ * ACS::ECS::Instance
421
+ */
422
+ resourceType?: string;
423
+ static names(): { [key: string]: string } {
424
+ return {
425
+ maxResults: 'MaxResults',
426
+ nextToken: 'NextToken',
427
+ resourceType: 'ResourceType',
428
+ };
429
+ }
430
+
431
+ static types(): { [key: string]: any } {
432
+ return {
433
+ maxResults: 'number',
434
+ nextToken: 'string',
435
+ resourceType: 'string',
436
+ };
437
+ }
438
+
439
+ constructor(map?: { [key: string]: any }) {
440
+ super(map);
441
+ }
442
+ }
443
+
444
+ export class DescribeRulesResponseBody extends $tea.Model {
445
+ data?: DescribeRulesResponseBodyData;
446
+ /**
447
+ * @example
448
+ * 86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9
449
+ */
450
+ requestId?: string;
451
+ static names(): { [key: string]: string } {
452
+ return {
453
+ data: 'Data',
454
+ requestId: 'RequestId',
455
+ };
456
+ }
457
+
458
+ static types(): { [key: string]: any } {
459
+ return {
460
+ data: DescribeRulesResponseBodyData,
461
+ requestId: 'string',
462
+ };
463
+ }
464
+
465
+ constructor(map?: { [key: string]: any }) {
466
+ super(map);
467
+ }
468
+ }
469
+
470
+ export class DescribeRulesResponse extends $tea.Model {
471
+ headers?: { [key: string]: string };
472
+ statusCode?: number;
473
+ body?: DescribeRulesResponseBody;
474
+ static names(): { [key: string]: string } {
475
+ return {
476
+ headers: 'headers',
477
+ statusCode: 'statusCode',
478
+ body: 'body',
479
+ };
480
+ }
481
+
482
+ static types(): { [key: string]: any } {
483
+ return {
484
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
485
+ statusCode: 'number',
486
+ body: DescribeRulesResponseBody,
487
+ };
488
+ }
489
+
490
+ constructor(map?: { [key: string]: any }) {
491
+ super(map);
492
+ }
493
+ }
494
+
495
+ export class DescribeTaskResponseBody extends $tea.Model {
496
+ data?: DescribeTaskResponseBodyData;
497
+ /**
498
+ * @example
499
+ * 14DFF801-A4E3-5136-AAB8-7D246012CD7A
500
+ */
501
+ requestId?: string;
502
+ static names(): { [key: string]: string } {
503
+ return {
504
+ data: 'Data',
505
+ requestId: 'RequestId',
506
+ };
507
+ }
508
+
509
+ static types(): { [key: string]: any } {
510
+ return {
511
+ data: DescribeTaskResponseBodyData,
512
+ requestId: 'string',
513
+ };
514
+ }
515
+
516
+ constructor(map?: { [key: string]: any }) {
517
+ super(map);
518
+ }
519
+ }
520
+
521
+ export class DescribeTaskResponse extends $tea.Model {
522
+ headers?: { [key: string]: string };
523
+ statusCode?: number;
524
+ body?: DescribeTaskResponseBody;
525
+ static names(): { [key: string]: string } {
526
+ return {
527
+ headers: 'headers',
528
+ statusCode: 'statusCode',
529
+ body: 'body',
530
+ };
531
+ }
532
+
533
+ static types(): { [key: string]: any } {
534
+ return {
535
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
536
+ statusCode: 'number',
537
+ body: DescribeTaskResponseBody,
538
+ };
539
+ }
540
+
541
+ constructor(map?: { [key: string]: any }) {
542
+ super(map);
543
+ }
544
+ }
545
+
546
+ export class DescribeTasksRequest extends $tea.Model {
547
+ /**
548
+ * @example
549
+ * 10
550
+ */
551
+ maxResults?: number;
552
+ /**
553
+ * @example
554
+ * cae**********699
555
+ */
556
+ nextToken?: string;
557
+ /**
558
+ * @example
559
+ * RUNNING
560
+ */
561
+ taskStatus?: string;
562
+ static names(): { [key: string]: string } {
563
+ return {
564
+ maxResults: 'MaxResults',
565
+ nextToken: 'NextToken',
566
+ taskStatus: 'TaskStatus',
567
+ };
568
+ }
569
+
570
+ static types(): { [key: string]: any } {
571
+ return {
572
+ maxResults: 'number',
573
+ nextToken: 'string',
574
+ taskStatus: 'string',
575
+ };
576
+ }
577
+
578
+ constructor(map?: { [key: string]: any }) {
579
+ super(map);
580
+ }
581
+ }
582
+
583
+ export class DescribeTasksResponseBody extends $tea.Model {
584
+ data?: DescribeTasksResponseBodyData;
585
+ /**
586
+ * @example
587
+ * AE43C4CB-8074-5EBD-9806-8CA6D12800B1
588
+ */
589
+ requestId?: string;
590
+ static names(): { [key: string]: string } {
591
+ return {
592
+ data: 'Data',
593
+ requestId: 'RequestId',
594
+ };
595
+ }
596
+
597
+ static types(): { [key: string]: any } {
598
+ return {
599
+ data: DescribeTasksResponseBodyData,
600
+ requestId: 'string',
601
+ };
602
+ }
603
+
604
+ constructor(map?: { [key: string]: any }) {
605
+ super(map);
606
+ }
607
+ }
608
+
609
+ export class DescribeTasksResponse extends $tea.Model {
610
+ headers?: { [key: string]: string };
611
+ statusCode?: number;
612
+ body?: DescribeTasksResponseBody;
613
+ static names(): { [key: string]: string } {
614
+ return {
615
+ headers: 'headers',
616
+ statusCode: 'statusCode',
617
+ body: 'body',
618
+ };
619
+ }
620
+
621
+ static types(): { [key: string]: any } {
622
+ return {
623
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
624
+ statusCode: 'number',
625
+ body: DescribeTasksResponseBody,
626
+ };
627
+ }
628
+
629
+ constructor(map?: { [key: string]: any }) {
630
+ super(map);
631
+ }
632
+ }
633
+
634
+ export class DescribeTopRiskyResourcesRequest extends $tea.Model {
635
+ /**
636
+ * @example
637
+ * ACS::ECS::Instance
638
+ */
639
+ resourceType?: string;
640
+ static names(): { [key: string]: string } {
641
+ return {
642
+ resourceType: 'ResourceType',
643
+ };
644
+ }
645
+
646
+ static types(): { [key: string]: any } {
647
+ return {
648
+ resourceType: 'string',
649
+ };
650
+ }
651
+
652
+ constructor(map?: { [key: string]: any }) {
653
+ super(map);
654
+ }
655
+ }
656
+
657
+ export class DescribeTopRiskyResourcesResponseBody extends $tea.Model {
658
+ data?: DescribeTopRiskyResourcesResponseBodyData;
659
+ /**
660
+ * @example
661
+ * 34081B20-C4C0-514F-93F6-8EEC3D1A587E
662
+ */
663
+ requestId?: string;
664
+ static names(): { [key: string]: string } {
665
+ return {
666
+ data: 'Data',
667
+ requestId: 'RequestId',
668
+ };
669
+ }
670
+
671
+ static types(): { [key: string]: any } {
672
+ return {
673
+ data: DescribeTopRiskyResourcesResponseBodyData,
674
+ requestId: 'string',
675
+ };
676
+ }
677
+
678
+ constructor(map?: { [key: string]: any }) {
679
+ super(map);
680
+ }
681
+ }
682
+
683
+ export class DescribeTopRiskyResourcesResponse extends $tea.Model {
684
+ headers?: { [key: string]: string };
685
+ statusCode?: number;
686
+ body?: DescribeTopRiskyResourcesResponseBody;
687
+ static names(): { [key: string]: string } {
688
+ return {
689
+ headers: 'headers',
690
+ statusCode: 'statusCode',
691
+ body: 'body',
692
+ };
693
+ }
694
+
695
+ static types(): { [key: string]: any } {
696
+ return {
697
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
698
+ statusCode: 'number',
699
+ body: DescribeTopRiskyResourcesResponseBody,
700
+ };
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+
708
+ export class DisableCheckProductRequest extends $tea.Model {
709
+ /**
710
+ * @remarks
711
+ * This parameter is required.
712
+ *
713
+ * @example
714
+ * ecs
715
+ */
716
+ productType?: string;
717
+ static names(): { [key: string]: string } {
718
+ return {
719
+ productType: 'ProductType',
720
+ };
721
+ }
722
+
723
+ static types(): { [key: string]: any } {
724
+ return {
725
+ productType: 'string',
726
+ };
727
+ }
728
+
729
+ constructor(map?: { [key: string]: any }) {
730
+ super(map);
731
+ }
732
+ }
733
+
734
+ export class DisableCheckProductResponseBody extends $tea.Model {
735
+ /**
736
+ * @example
737
+ * 89E3CBB7-16F3-52AE-BD32-31A43A2A807F
738
+ */
739
+ requestId?: string;
740
+ static names(): { [key: string]: string } {
741
+ return {
742
+ requestId: 'RequestId',
743
+ };
744
+ }
745
+
746
+ static types(): { [key: string]: any } {
747
+ return {
748
+ requestId: 'string',
749
+ };
750
+ }
751
+
752
+ constructor(map?: { [key: string]: any }) {
753
+ super(map);
754
+ }
755
+ }
756
+
757
+ export class DisableCheckProductResponse extends $tea.Model {
758
+ headers?: { [key: string]: string };
759
+ statusCode?: number;
760
+ body?: DisableCheckProductResponseBody;
761
+ static names(): { [key: string]: string } {
762
+ return {
763
+ headers: 'headers',
764
+ statusCode: 'statusCode',
765
+ body: 'body',
766
+ };
767
+ }
768
+
769
+ static types(): { [key: string]: any } {
770
+ return {
771
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
772
+ statusCode: 'number',
773
+ body: DisableCheckProductResponseBody,
774
+ };
775
+ }
776
+
777
+ constructor(map?: { [key: string]: any }) {
778
+ super(map);
779
+ }
780
+ }
781
+
782
+ export class DisableCheckResourceRequest extends $tea.Model {
783
+ /**
784
+ * @remarks
785
+ * This parameter is required.
786
+ *
787
+ * @example
788
+ * acs:ecs:123***890:cn-shanghai:instance/i-001***90
789
+ */
790
+ resourceArn?: string;
791
+ static names(): { [key: string]: string } {
792
+ return {
793
+ resourceArn: 'ResourceArn',
794
+ };
795
+ }
796
+
797
+ static types(): { [key: string]: any } {
798
+ return {
799
+ resourceArn: 'string',
800
+ };
801
+ }
802
+
803
+ constructor(map?: { [key: string]: any }) {
804
+ super(map);
805
+ }
806
+ }
807
+
808
+ export class DisableCheckResourceResponseBody extends $tea.Model {
809
+ /**
810
+ * @example
811
+ * 86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9
812
+ */
813
+ requestId?: string;
814
+ static names(): { [key: string]: string } {
815
+ return {
816
+ requestId: 'RequestId',
817
+ };
818
+ }
819
+
820
+ static types(): { [key: string]: any } {
821
+ return {
822
+ requestId: 'string',
823
+ };
824
+ }
825
+
826
+ constructor(map?: { [key: string]: any }) {
827
+ super(map);
828
+ }
829
+ }
830
+
831
+ export class DisableCheckResourceResponse extends $tea.Model {
832
+ headers?: { [key: string]: string };
833
+ statusCode?: number;
834
+ body?: DisableCheckResourceResponseBody;
835
+ static names(): { [key: string]: string } {
836
+ return {
837
+ headers: 'headers',
838
+ statusCode: 'statusCode',
839
+ body: 'body',
840
+ };
841
+ }
842
+
843
+ static types(): { [key: string]: any } {
844
+ return {
845
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
846
+ statusCode: 'number',
847
+ body: DisableCheckResourceResponseBody,
848
+ };
849
+ }
850
+
851
+ constructor(map?: { [key: string]: any }) {
852
+ super(map);
853
+ }
854
+ }
855
+
856
+ export class EnableCheckProductRequest extends $tea.Model {
857
+ /**
858
+ * @remarks
859
+ * This parameter is required.
860
+ *
861
+ * @example
862
+ * ecs
863
+ */
864
+ productType?: string;
865
+ static names(): { [key: string]: string } {
866
+ return {
867
+ productType: 'ProductType',
868
+ };
869
+ }
870
+
871
+ static types(): { [key: string]: any } {
872
+ return {
873
+ productType: 'string',
874
+ };
875
+ }
876
+
877
+ constructor(map?: { [key: string]: any }) {
878
+ super(map);
879
+ }
880
+ }
881
+
882
+ export class EnableCheckProductResponseBody extends $tea.Model {
883
+ /**
884
+ * @example
885
+ * 8724BC18-904D-5A0D-BFF4-F0554F0037E7
886
+ */
887
+ requestId?: string;
888
+ static names(): { [key: string]: string } {
889
+ return {
890
+ requestId: 'RequestId',
891
+ };
892
+ }
893
+
894
+ static types(): { [key: string]: any } {
895
+ return {
896
+ requestId: 'string',
897
+ };
898
+ }
899
+
900
+ constructor(map?: { [key: string]: any }) {
901
+ super(map);
902
+ }
903
+ }
904
+
905
+ export class EnableCheckProductResponse extends $tea.Model {
906
+ headers?: { [key: string]: string };
907
+ statusCode?: number;
908
+ body?: EnableCheckProductResponseBody;
909
+ static names(): { [key: string]: string } {
910
+ return {
911
+ headers: 'headers',
912
+ statusCode: 'statusCode',
913
+ body: 'body',
914
+ };
915
+ }
916
+
917
+ static types(): { [key: string]: any } {
918
+ return {
919
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
920
+ statusCode: 'number',
921
+ body: EnableCheckProductResponseBody,
922
+ };
923
+ }
924
+
925
+ constructor(map?: { [key: string]: any }) {
926
+ super(map);
927
+ }
928
+ }
929
+
930
+ export class EnableCheckResourceRequest extends $tea.Model {
931
+ /**
932
+ * @remarks
933
+ * This parameter is required.
934
+ *
935
+ * @example
936
+ * acs:ecs:123***890:cn-shanghai:instance/i-001***90
937
+ */
938
+ resourceArn?: string;
939
+ static names(): { [key: string]: string } {
940
+ return {
941
+ resourceArn: 'ResourceArn',
942
+ };
943
+ }
944
+
945
+ static types(): { [key: string]: any } {
946
+ return {
947
+ resourceArn: 'string',
948
+ };
949
+ }
950
+
951
+ constructor(map?: { [key: string]: any }) {
952
+ super(map);
953
+ }
954
+ }
955
+
956
+ export class EnableCheckResourceResponseBody extends $tea.Model {
957
+ /**
958
+ * @example
959
+ * E583A0FF-803C-51C4-9AC9-E029471ACD6A
960
+ */
961
+ requestId?: string;
962
+ static names(): { [key: string]: string } {
963
+ return {
964
+ requestId: 'RequestId',
965
+ };
966
+ }
967
+
968
+ static types(): { [key: string]: any } {
969
+ return {
970
+ requestId: 'string',
971
+ };
972
+ }
973
+
974
+ constructor(map?: { [key: string]: any }) {
975
+ super(map);
976
+ }
977
+ }
978
+
979
+ export class EnableCheckResourceResponse extends $tea.Model {
980
+ headers?: { [key: string]: string };
981
+ statusCode?: number;
982
+ body?: EnableCheckResourceResponseBody;
983
+ static names(): { [key: string]: string } {
984
+ return {
985
+ headers: 'headers',
986
+ statusCode: 'statusCode',
987
+ body: 'body',
988
+ };
989
+ }
990
+
991
+ static types(): { [key: string]: any } {
992
+ return {
993
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
994
+ statusCode: 'number',
995
+ body: EnableCheckResourceResponseBody,
996
+ };
997
+ }
998
+
999
+ constructor(map?: { [key: string]: any }) {
1000
+ super(map);
1001
+ }
1002
+ }
1003
+
1004
+ export class GetBdrcServiceResponseBody extends $tea.Model {
1005
+ data?: GetBdrcServiceResponseBodyData;
1006
+ /**
1007
+ * @example
1008
+ * 5748C531-80B1-5C31-8421-63A1830B9E48
1009
+ */
1010
+ requestId?: string;
1011
+ static names(): { [key: string]: string } {
1012
+ return {
1013
+ data: 'Data',
1014
+ requestId: 'RequestId',
1015
+ };
1016
+ }
1017
+
1018
+ static types(): { [key: string]: any } {
1019
+ return {
1020
+ data: GetBdrcServiceResponseBodyData,
1021
+ requestId: 'string',
1022
+ };
1023
+ }
1024
+
1025
+ constructor(map?: { [key: string]: any }) {
1026
+ super(map);
1027
+ }
1028
+ }
1029
+
1030
+ export class GetBdrcServiceResponse extends $tea.Model {
1031
+ headers?: { [key: string]: string };
1032
+ statusCode?: number;
1033
+ body?: GetBdrcServiceResponseBody;
1034
+ static names(): { [key: string]: string } {
1035
+ return {
1036
+ headers: 'headers',
1037
+ statusCode: 'statusCode',
1038
+ body: 'body',
1039
+ };
1040
+ }
1041
+
1042
+ static types(): { [key: string]: any } {
1043
+ return {
1044
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1045
+ statusCode: 'number',
1046
+ body: GetBdrcServiceResponseBody,
1047
+ };
1048
+ }
1049
+
1050
+ constructor(map?: { [key: string]: any }) {
1051
+ super(map);
1052
+ }
1053
+ }
1054
+
1055
+ export class OpenBdrcServiceResponseBody extends $tea.Model {
1056
+ /**
1057
+ * @example
1058
+ * 86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9
1059
+ */
1060
+ requestId?: string;
1061
+ static names(): { [key: string]: string } {
1062
+ return {
1063
+ requestId: 'RequestId',
1064
+ };
1065
+ }
1066
+
1067
+ static types(): { [key: string]: any } {
1068
+ return {
1069
+ requestId: 'string',
1070
+ };
1071
+ }
1072
+
1073
+ constructor(map?: { [key: string]: any }) {
1074
+ super(map);
1075
+ }
1076
+ }
1077
+
1078
+ export class OpenBdrcServiceResponse extends $tea.Model {
1079
+ headers?: { [key: string]: string };
1080
+ statusCode?: number;
1081
+ body?: OpenBdrcServiceResponseBody;
1082
+ static names(): { [key: string]: string } {
1083
+ return {
1084
+ headers: 'headers',
1085
+ statusCode: 'statusCode',
1086
+ body: 'body',
1087
+ };
1088
+ }
1089
+
1090
+ static types(): { [key: string]: any } {
1091
+ return {
1092
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1093
+ statusCode: 'number',
1094
+ body: OpenBdrcServiceResponseBody,
1095
+ };
1096
+ }
1097
+
1098
+ constructor(map?: { [key: string]: any }) {
1099
+ super(map);
1100
+ }
1101
+ }
1102
+
1103
+ export class UpdateResourcesRequest extends $tea.Model {
1104
+ /**
1105
+ * @example
1106
+ * ACS::ECS::Instance
1107
+ */
1108
+ resourceType?: string;
1109
+ static names(): { [key: string]: string } {
1110
+ return {
1111
+ resourceType: 'ResourceType',
1112
+ };
1113
+ }
1114
+
1115
+ static types(): { [key: string]: any } {
1116
+ return {
1117
+ resourceType: 'string',
1118
+ };
1119
+ }
1120
+
1121
+ constructor(map?: { [key: string]: any }) {
1122
+ super(map);
1123
+ }
1124
+ }
1125
+
1126
+ export class UpdateResourcesResponseBody extends $tea.Model {
1127
+ data?: UpdateResourcesResponseBodyData;
1128
+ /**
1129
+ * @example
1130
+ * 5B2F09BF-CEBD-5A7E-AC01-E7F86169A5E5
1131
+ */
1132
+ requestId?: string;
1133
+ static names(): { [key: string]: string } {
1134
+ return {
1135
+ data: 'Data',
1136
+ requestId: 'RequestId',
1137
+ };
1138
+ }
1139
+
1140
+ static types(): { [key: string]: any } {
1141
+ return {
1142
+ data: UpdateResourcesResponseBodyData,
1143
+ requestId: 'string',
1144
+ };
1145
+ }
1146
+
1147
+ constructor(map?: { [key: string]: any }) {
1148
+ super(map);
1149
+ }
1150
+ }
1151
+
1152
+ export class UpdateResourcesResponse extends $tea.Model {
1153
+ headers?: { [key: string]: string };
1154
+ statusCode?: number;
1155
+ body?: UpdateResourcesResponseBody;
1156
+ static names(): { [key: string]: string } {
1157
+ return {
1158
+ headers: 'headers',
1159
+ statusCode: 'statusCode',
1160
+ body: 'body',
1161
+ };
1162
+ }
1163
+
1164
+ static types(): { [key: string]: any } {
1165
+ return {
1166
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1167
+ statusCode: 'number',
1168
+ body: UpdateResourcesResponseBody,
1169
+ };
1170
+ }
1171
+
1172
+ constructor(map?: { [key: string]: any }) {
1173
+ super(map);
1174
+ }
1175
+ }
1176
+
1177
+ export class CheckRulesResponseBodyData extends $tea.Model {
1178
+ /**
1179
+ * @example
1180
+ * t-0000e4w0u1v592zdf6s7
1181
+ */
1182
+ taskId?: string;
1183
+ static names(): { [key: string]: string } {
1184
+ return {
1185
+ taskId: 'TaskId',
1186
+ };
1187
+ }
1188
+
1189
+ static types(): { [key: string]: any } {
1190
+ return {
1191
+ taskId: 'string',
1192
+ };
1193
+ }
1194
+
1195
+ constructor(map?: { [key: string]: any }) {
1196
+ super(map);
1197
+ }
1198
+ }
1199
+
1200
+ export class DescribeCheckDetailsResponseBodyDataContent extends $tea.Model {
1201
+ /**
1202
+ * @example
1203
+ * PASSED
1204
+ */
1205
+ checkStatus?: string;
1206
+ /**
1207
+ * @example
1208
+ * 1701725715
1209
+ */
1210
+ checkTime?: number;
1211
+ /**
1212
+ * @example
1213
+ * {"ecsAutoSnapshotPolicyIds":[],"hbrBackupPlans":[{"planId":"po-xxxxxxxx","sourceType":"UDM_ECS"}]}
1214
+ */
1215
+ detail?: string;
1216
+ /**
1217
+ * @example
1218
+ * ecs
1219
+ */
1220
+ productType?: string;
1221
+ /**
1222
+ * @example
1223
+ * acs:ecs:123***890:cn-shanghai:instance/i-001***90
1224
+ */
1225
+ resourceArn?: string;
1226
+ /**
1227
+ * @example
1228
+ * i-xxxxxxxx
1229
+ */
1230
+ resourceId?: string;
1231
+ /**
1232
+ * @example
1233
+ * test server
1234
+ */
1235
+ resourceName?: string;
1236
+ /**
1237
+ * @example
1238
+ * ACS::ECS::Instance
1239
+ */
1240
+ resourceType?: string;
1241
+ /**
1242
+ * @example
1243
+ * rule-xxxxxxxx
1244
+ */
1245
+ ruleId?: string;
1246
+ /**
1247
+ * @example
1248
+ * ecs-backup
1249
+ */
1250
+ ruleTemplate?: string;
1251
+ static names(): { [key: string]: string } {
1252
+ return {
1253
+ checkStatus: 'CheckStatus',
1254
+ checkTime: 'CheckTime',
1255
+ detail: 'Detail',
1256
+ productType: 'ProductType',
1257
+ resourceArn: 'ResourceArn',
1258
+ resourceId: 'ResourceId',
1259
+ resourceName: 'ResourceName',
1260
+ resourceType: 'ResourceType',
1261
+ ruleId: 'RuleId',
1262
+ ruleTemplate: 'RuleTemplate',
1263
+ };
1264
+ }
1265
+
1266
+ static types(): { [key: string]: any } {
1267
+ return {
1268
+ checkStatus: 'string',
1269
+ checkTime: 'number',
1270
+ detail: 'string',
1271
+ productType: 'string',
1272
+ resourceArn: 'string',
1273
+ resourceId: 'string',
1274
+ resourceName: 'string',
1275
+ resourceType: 'string',
1276
+ ruleId: 'string',
1277
+ ruleTemplate: 'string',
1278
+ };
1279
+ }
1280
+
1281
+ constructor(map?: { [key: string]: any }) {
1282
+ super(map);
1283
+ }
1284
+ }
1285
+
1286
+ export class DescribeCheckDetailsResponseBodyData extends $tea.Model {
1287
+ content?: DescribeCheckDetailsResponseBodyDataContent[];
1288
+ /**
1289
+ * @example
1290
+ * 10
1291
+ */
1292
+ maxResults?: number;
1293
+ /**
1294
+ * @example
1295
+ * CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAOTzWWYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3NTcwMzY2MjMwNzY2ODcyMzAzMTY2Nzg3ODY5MzY=
1296
+ */
1297
+ nextToken?: string;
1298
+ /**
1299
+ * @example
1300
+ * 100
1301
+ */
1302
+ totalCount?: number;
1303
+ static names(): { [key: string]: string } {
1304
+ return {
1305
+ content: 'Content',
1306
+ maxResults: 'MaxResults',
1307
+ nextToken: 'NextToken',
1308
+ totalCount: 'TotalCount',
1309
+ };
1310
+ }
1311
+
1312
+ static types(): { [key: string]: any } {
1313
+ return {
1314
+ content: { 'type': 'array', 'itemType': DescribeCheckDetailsResponseBodyDataContent },
1315
+ maxResults: 'number',
1316
+ nextToken: 'string',
1317
+ totalCount: 'number',
1318
+ };
1319
+ }
1320
+
1321
+ constructor(map?: { [key: string]: any }) {
1322
+ super(map);
1323
+ }
1324
+ }
1325
+
1326
+ export class DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange extends $tea.Model {
1327
+ /**
1328
+ * @example
1329
+ * 0
1330
+ */
1331
+ from?: number;
1332
+ /**
1333
+ * @example
1334
+ * 60
1335
+ */
1336
+ to?: number;
1337
+ static names(): { [key: string]: string } {
1338
+ return {
1339
+ from: 'From',
1340
+ to: 'To',
1341
+ };
1342
+ }
1343
+
1344
+ static types(): { [key: string]: any } {
1345
+ return {
1346
+ from: 'number',
1347
+ to: 'number',
1348
+ };
1349
+ }
1350
+
1351
+ constructor(map?: { [key: string]: any }) {
1352
+ super(map);
1353
+ }
1354
+ }
1355
+
1356
+ export class DescribeProductsResponseBodyDataContentProtectionScoreDistribution extends $tea.Model {
1357
+ /**
1358
+ * @example
1359
+ * 5
1360
+ */
1361
+ count?: number;
1362
+ range?: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange;
1363
+ static names(): { [key: string]: string } {
1364
+ return {
1365
+ count: 'Count',
1366
+ range: 'Range',
1367
+ };
1368
+ }
1369
+
1370
+ static types(): { [key: string]: any } {
1371
+ return {
1372
+ count: 'number',
1373
+ range: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange,
1374
+ };
1375
+ }
1376
+
1377
+ constructor(map?: { [key: string]: any }) {
1378
+ super(map);
1379
+ }
1380
+ }
1381
+
1382
+ export class DescribeProductsResponseBodyDataContent extends $tea.Model {
1383
+ /**
1384
+ * @example
1385
+ * 1
1386
+ */
1387
+ checkFailedCount?: number;
1388
+ /**
1389
+ * @example
1390
+ * 1
1391
+ */
1392
+ checkFailedResourceCount?: number;
1393
+ /**
1394
+ * @example
1395
+ * 1
1396
+ */
1397
+ disableCheckResourceCount?: number;
1398
+ /**
1399
+ * @example
1400
+ * true
1401
+ */
1402
+ enableCheck?: boolean;
1403
+ /**
1404
+ * @example
1405
+ * oss
1406
+ */
1407
+ productType?: string;
1408
+ /**
1409
+ * @example
1410
+ * 90
1411
+ */
1412
+ protectionScore?: number;
1413
+ protectionScoreDistribution?: DescribeProductsResponseBodyDataContentProtectionScoreDistribution[];
1414
+ /**
1415
+ * @example
1416
+ * 1726036498
1417
+ */
1418
+ protectionScoreUpdatedTime?: number;
1419
+ /**
1420
+ * @example
1421
+ * 1
1422
+ */
1423
+ riskCount?: number;
1424
+ /**
1425
+ * @example
1426
+ * 1
1427
+ */
1428
+ riskyResourceCount?: number;
1429
+ /**
1430
+ * @example
1431
+ * 100
1432
+ */
1433
+ totalResourceCount?: number;
1434
+ static names(): { [key: string]: string } {
1435
+ return {
1436
+ checkFailedCount: 'CheckFailedCount',
1437
+ checkFailedResourceCount: 'CheckFailedResourceCount',
1438
+ disableCheckResourceCount: 'DisableCheckResourceCount',
1439
+ enableCheck: 'EnableCheck',
1440
+ productType: 'ProductType',
1441
+ protectionScore: 'ProtectionScore',
1442
+ protectionScoreDistribution: 'ProtectionScoreDistribution',
1443
+ protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
1444
+ riskCount: 'RiskCount',
1445
+ riskyResourceCount: 'RiskyResourceCount',
1446
+ totalResourceCount: 'TotalResourceCount',
1447
+ };
1448
+ }
1449
+
1450
+ static types(): { [key: string]: any } {
1451
+ return {
1452
+ checkFailedCount: 'number',
1453
+ checkFailedResourceCount: 'number',
1454
+ disableCheckResourceCount: 'number',
1455
+ enableCheck: 'boolean',
1456
+ productType: 'string',
1457
+ protectionScore: 'number',
1458
+ protectionScoreDistribution: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContentProtectionScoreDistribution },
1459
+ protectionScoreUpdatedTime: 'number',
1460
+ riskCount: 'number',
1461
+ riskyResourceCount: 'number',
1462
+ totalResourceCount: 'number',
1463
+ };
1464
+ }
1465
+
1466
+ constructor(map?: { [key: string]: any }) {
1467
+ super(map);
1468
+ }
1469
+ }
1470
+
1471
+ export class DescribeProductsResponseBodyData extends $tea.Model {
1472
+ content?: DescribeProductsResponseBodyDataContent[];
1473
+ /**
1474
+ * @example
1475
+ * 10
1476
+ */
1477
+ maxResults?: number;
1478
+ /**
1479
+ * @example
1480
+ * b4fd3cffcacafd65e3818a0b9b2ff9a2
1481
+ */
1482
+ nextToken?: string;
1483
+ /**
1484
+ * @example
1485
+ * 50
1486
+ */
1487
+ totalCount?: number;
1488
+ static names(): { [key: string]: string } {
1489
+ return {
1490
+ content: 'Content',
1491
+ maxResults: 'MaxResults',
1492
+ nextToken: 'NextToken',
1493
+ totalCount: 'TotalCount',
1494
+ };
1495
+ }
1496
+
1497
+ static types(): { [key: string]: any } {
1498
+ return {
1499
+ content: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContent },
1500
+ maxResults: 'number',
1501
+ nextToken: 'string',
1502
+ totalCount: 'number',
1503
+ };
1504
+ }
1505
+
1506
+ constructor(map?: { [key: string]: any }) {
1507
+ super(map);
1508
+ }
1509
+ }
1510
+
1511
+ export class DescribeResourcesResponseBodyDataContent extends $tea.Model {
1512
+ /**
1513
+ * @example
1514
+ * 0
1515
+ */
1516
+ archiveDataSize?: number;
1517
+ /**
1518
+ * @example
1519
+ * 0
1520
+ */
1521
+ checkFailedCount?: number;
1522
+ /**
1523
+ * @example
1524
+ * 0
1525
+ */
1526
+ coldArchiveDataSize?: number;
1527
+ /**
1528
+ * @example
1529
+ * 1697798340
1530
+ */
1531
+ createTime?: number;
1532
+ /**
1533
+ * @example
1534
+ * 0
1535
+ */
1536
+ enableCheck?: boolean;
1537
+ /**
1538
+ * @example
1539
+ * 0
1540
+ */
1541
+ iaDataSize?: number;
1542
+ /**
1543
+ * @example
1544
+ * ecs
1545
+ */
1546
+ productType?: string;
1547
+ /**
1548
+ * @example
1549
+ * 0
1550
+ */
1551
+ protectionScore?: number;
1552
+ /**
1553
+ * @example
1554
+ * 0
1555
+ */
1556
+ protectionScoreUpdatedTime?: number;
1557
+ /**
1558
+ * @example
1559
+ * cn-hangzhou
1560
+ */
1561
+ regionId?: string;
1562
+ /**
1563
+ * @example
1564
+ * acs:ecs:cn-hangzhou:xxxxxxxx:instance/xxxxx
1565
+ */
1566
+ resourceArn?: string;
1567
+ /**
1568
+ * @example
1569
+ * i-xxxxxxxx
1570
+ */
1571
+ resourceId?: string;
1572
+ /**
1573
+ * @example
1574
+ * test server
1575
+ */
1576
+ resourceName?: string;
1577
+ /**
1578
+ * @example
1579
+ * ACS::ECS::Instance
1580
+ */
1581
+ resourceType?: string;
1582
+ /**
1583
+ * @example
1584
+ * 0
1585
+ */
1586
+ riskCount?: number;
1587
+ /**
1588
+ * @example
1589
+ * 0
1590
+ */
1591
+ standardDataSize?: number;
1592
+ /**
1593
+ * @example
1594
+ * Running
1595
+ */
1596
+ status?: string;
1597
+ /**
1598
+ * @example
1599
+ * 0
1600
+ */
1601
+ totalDataSize?: number;
1602
+ /**
1603
+ * @remarks
1604
+ * vSwitch ID
1605
+ *
1606
+ * @example
1607
+ * vsw-xxxxxxxx
1608
+ */
1609
+ vSwitchId?: string;
1610
+ /**
1611
+ * @remarks
1612
+ * vpc ID
1613
+ *
1614
+ * @example
1615
+ * vpc-xxxxxxxx
1616
+ */
1617
+ vpcId?: string;
1618
+ /**
1619
+ * @example
1620
+ * cn-hangzhou-i
1621
+ */
1622
+ zoneId?: string;
1623
+ static names(): { [key: string]: string } {
1624
+ return {
1625
+ archiveDataSize: 'ArchiveDataSize',
1626
+ checkFailedCount: 'CheckFailedCount',
1627
+ coldArchiveDataSize: 'ColdArchiveDataSize',
1628
+ createTime: 'CreateTime',
1629
+ enableCheck: 'EnableCheck',
1630
+ iaDataSize: 'IaDataSize',
1631
+ productType: 'ProductType',
1632
+ protectionScore: 'ProtectionScore',
1633
+ protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
1634
+ regionId: 'RegionId',
1635
+ resourceArn: 'ResourceArn',
1636
+ resourceId: 'ResourceId',
1637
+ resourceName: 'ResourceName',
1638
+ resourceType: 'ResourceType',
1639
+ riskCount: 'RiskCount',
1640
+ standardDataSize: 'StandardDataSize',
1641
+ status: 'Status',
1642
+ totalDataSize: 'TotalDataSize',
1643
+ vSwitchId: 'VSwitchId',
1644
+ vpcId: 'VpcId',
1645
+ zoneId: 'ZoneId',
1646
+ };
1647
+ }
1648
+
1649
+ static types(): { [key: string]: any } {
1650
+ return {
1651
+ archiveDataSize: 'number',
1652
+ checkFailedCount: 'number',
1653
+ coldArchiveDataSize: 'number',
1654
+ createTime: 'number',
1655
+ enableCheck: 'boolean',
1656
+ iaDataSize: 'number',
1657
+ productType: 'string',
1658
+ protectionScore: 'number',
1659
+ protectionScoreUpdatedTime: 'number',
1660
+ regionId: 'string',
1661
+ resourceArn: 'string',
1662
+ resourceId: 'string',
1663
+ resourceName: 'string',
1664
+ resourceType: 'string',
1665
+ riskCount: 'number',
1666
+ standardDataSize: 'number',
1667
+ status: 'string',
1668
+ totalDataSize: 'number',
1669
+ vSwitchId: 'string',
1670
+ vpcId: 'string',
1671
+ zoneId: 'string',
1672
+ };
1673
+ }
1674
+
1675
+ constructor(map?: { [key: string]: any }) {
1676
+ super(map);
1677
+ }
1678
+ }
1679
+
1680
+ export class DescribeResourcesResponseBodyData extends $tea.Model {
1681
+ content?: DescribeResourcesResponseBodyDataContent[];
1682
+ /**
1683
+ * @example
1684
+ * 100
1685
+ */
1686
+ maxResults?: number;
1687
+ /**
1688
+ * @example
1689
+ * fb836242f4225fa0f0e0257362dfc6dd
1690
+ */
1691
+ nextToken?: string;
1692
+ /**
1693
+ * @example
1694
+ * 149
1695
+ */
1696
+ totalCount?: number;
1697
+ static names(): { [key: string]: string } {
1698
+ return {
1699
+ content: 'Content',
1700
+ maxResults: 'MaxResults',
1701
+ nextToken: 'NextToken',
1702
+ totalCount: 'TotalCount',
1703
+ };
1704
+ }
1705
+
1706
+ static types(): { [key: string]: any } {
1707
+ return {
1708
+ content: { 'type': 'array', 'itemType': DescribeResourcesResponseBodyDataContent },
1709
+ maxResults: 'number',
1710
+ nextToken: 'string',
1711
+ totalCount: 'number',
1712
+ };
1713
+ }
1714
+
1715
+ constructor(map?: { [key: string]: any }) {
1716
+ super(map);
1717
+ }
1718
+ }
1719
+
1720
+ export class DescribeRulesResponseBodyDataContent extends $tea.Model {
1721
+ /**
1722
+ * @example
1723
+ * 0
1724
+ */
1725
+ checkFailedResourceCount?: number;
1726
+ /**
1727
+ * @example
1728
+ * PASSED
1729
+ */
1730
+ checkStatus?: string;
1731
+ /**
1732
+ * @example
1733
+ * 1704157635
1734
+ */
1735
+ checkTime?: number;
1736
+ /**
1737
+ * @example
1738
+ * ecs
1739
+ */
1740
+ productType?: string;
1741
+ /**
1742
+ * @example
1743
+ * ACS::ECS::Instance
1744
+ */
1745
+ resourceType?: string;
1746
+ /**
1747
+ * @example
1748
+ * 0
1749
+ */
1750
+ riskyResourceCount?: number;
1751
+ /**
1752
+ * @example
1753
+ * rule-bp11ggd8wr762
1754
+ */
1755
+ ruleId?: string;
1756
+ /**
1757
+ * @example
1758
+ * ecs-backup
1759
+ */
1760
+ ruleTemplate?: string;
1761
+ /**
1762
+ * @example
1763
+ * 1
1764
+ */
1765
+ totalResourceCount?: number;
1766
+ static names(): { [key: string]: string } {
1767
+ return {
1768
+ checkFailedResourceCount: 'CheckFailedResourceCount',
1769
+ checkStatus: 'CheckStatus',
1770
+ checkTime: 'CheckTime',
1771
+ productType: 'ProductType',
1772
+ resourceType: 'ResourceType',
1773
+ riskyResourceCount: 'RiskyResourceCount',
1774
+ ruleId: 'RuleId',
1775
+ ruleTemplate: 'RuleTemplate',
1776
+ totalResourceCount: 'TotalResourceCount',
1777
+ };
1778
+ }
1779
+
1780
+ static types(): { [key: string]: any } {
1781
+ return {
1782
+ checkFailedResourceCount: 'number',
1783
+ checkStatus: 'string',
1784
+ checkTime: 'number',
1785
+ productType: 'string',
1786
+ resourceType: 'string',
1787
+ riskyResourceCount: 'number',
1788
+ ruleId: 'string',
1789
+ ruleTemplate: 'string',
1790
+ totalResourceCount: 'number',
1791
+ };
1792
+ }
1793
+
1794
+ constructor(map?: { [key: string]: any }) {
1795
+ super(map);
1796
+ }
1797
+ }
1798
+
1799
+ export class DescribeRulesResponseBodyData extends $tea.Model {
1800
+ content?: DescribeRulesResponseBodyDataContent[];
1801
+ /**
1802
+ * @example
1803
+ * 10
1804
+ */
1805
+ maxResults?: number;
1806
+ /**
1807
+ * @example
1808
+ * 0975951c75d7b41464c8d08ae17043ca
1809
+ */
1810
+ nextToken?: string;
1811
+ /**
1812
+ * @example
1813
+ * 42
1814
+ */
1815
+ totalCount?: number;
1816
+ static names(): { [key: string]: string } {
1817
+ return {
1818
+ content: 'Content',
1819
+ maxResults: 'MaxResults',
1820
+ nextToken: 'NextToken',
1821
+ totalCount: 'TotalCount',
1822
+ };
1823
+ }
1824
+
1825
+ static types(): { [key: string]: any } {
1826
+ return {
1827
+ content: { 'type': 'array', 'itemType': DescribeRulesResponseBodyDataContent },
1828
+ maxResults: 'number',
1829
+ nextToken: 'string',
1830
+ totalCount: 'number',
1831
+ };
1832
+ }
1833
+
1834
+ constructor(map?: { [key: string]: any }) {
1835
+ super(map);
1836
+ }
1837
+ }
1838
+
1839
+ export class DescribeTaskResponseBodyData extends $tea.Model {
1840
+ /**
1841
+ * @example
1842
+ * 1724983927
1843
+ */
1844
+ completeTime?: number;
1845
+ /**
1846
+ * @example
1847
+ * too many requests.
1848
+ */
1849
+ errorMessage?: string;
1850
+ executionId?: string;
1851
+ /**
1852
+ * @example
1853
+ * 1719026680
1854
+ */
1855
+ expireTime?: number;
1856
+ /**
1857
+ * @example
1858
+ * 100
1859
+ */
1860
+ progress?: number;
1861
+ /**
1862
+ * @example
1863
+ * 784076D6-BD6D-5564-9CEA-834EB11F0C62
1864
+ */
1865
+ requestId?: string;
1866
+ /**
1867
+ * @example
1868
+ * 1724983927
1869
+ */
1870
+ startTime?: number;
1871
+ taskDescription?: string;
1872
+ /**
1873
+ * @example
1874
+ * {"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]}
1875
+ */
1876
+ taskDetail?: string;
1877
+ /**
1878
+ * @example
1879
+ * t-xxxxxxxx
1880
+ */
1881
+ taskId?: string;
1882
+ /**
1883
+ * @example
1884
+ * test5566
1885
+ */
1886
+ taskName?: string;
1887
+ taskPriority?: string;
1888
+ /**
1889
+ * @example
1890
+ * RUNNING
1891
+ */
1892
+ taskStatus?: string;
1893
+ /**
1894
+ * @example
1895
+ * UPDATE_RESOURCES
1896
+ */
1897
+ taskType?: string;
1898
+ static names(): { [key: string]: string } {
1899
+ return {
1900
+ completeTime: 'CompleteTime',
1901
+ errorMessage: 'ErrorMessage',
1902
+ executionId: 'ExecutionId',
1903
+ expireTime: 'ExpireTime',
1904
+ progress: 'Progress',
1905
+ requestId: 'RequestId',
1906
+ startTime: 'StartTime',
1907
+ taskDescription: 'TaskDescription',
1908
+ taskDetail: 'TaskDetail',
1909
+ taskId: 'TaskId',
1910
+ taskName: 'TaskName',
1911
+ taskPriority: 'TaskPriority',
1912
+ taskStatus: 'TaskStatus',
1913
+ taskType: 'TaskType',
1914
+ };
1915
+ }
1916
+
1917
+ static types(): { [key: string]: any } {
1918
+ return {
1919
+ completeTime: 'number',
1920
+ errorMessage: 'string',
1921
+ executionId: 'string',
1922
+ expireTime: 'number',
1923
+ progress: 'number',
1924
+ requestId: 'string',
1925
+ startTime: 'number',
1926
+ taskDescription: 'string',
1927
+ taskDetail: 'string',
1928
+ taskId: 'string',
1929
+ taskName: 'string',
1930
+ taskPriority: 'string',
1931
+ taskStatus: 'string',
1932
+ taskType: 'string',
1933
+ };
1934
+ }
1935
+
1936
+ constructor(map?: { [key: string]: any }) {
1937
+ super(map);
1938
+ }
1939
+ }
1940
+
1941
+ export class DescribeTasksResponseBodyDataContent extends $tea.Model {
1942
+ /**
1943
+ * @example
1944
+ * 1724983927
1945
+ */
1946
+ completeTime?: number;
1947
+ /**
1948
+ * @example
1949
+ * device not online
1950
+ */
1951
+ errorMessage?: string;
1952
+ /**
1953
+ * @example
1954
+ * empty
1955
+ */
1956
+ executionId?: string;
1957
+ /**
1958
+ * @example
1959
+ * 1724983927
1960
+ */
1961
+ expireTime?: number;
1962
+ /**
1963
+ * @example
1964
+ * 100
1965
+ */
1966
+ progress?: number;
1967
+ /**
1968
+ * @example
1969
+ * AE43C4CB-8074-5EBD-9806-8CA6D12800B1
1970
+ */
1971
+ requestId?: string;
1972
+ /**
1973
+ * @example
1974
+ * 1724983927
1975
+ */
1976
+ startTime?: number;
1977
+ /**
1978
+ * @example
1979
+ * empty
1980
+ */
1981
+ taskDescription?: string;
1982
+ /**
1983
+ * @example
1984
+ * {"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]}
1985
+ */
1986
+ taskDetail?: string;
1987
+ /**
1988
+ * @example
1989
+ * t-0000e4w0u1v592zdf6s7
1990
+ */
1991
+ taskId?: string;
1992
+ /**
1993
+ * @example
1994
+ * empty
1995
+ */
1996
+ taskName?: string;
1997
+ /**
1998
+ * @example
1999
+ * HIGH
2000
+ */
2001
+ taskPriority?: string;
2002
+ /**
2003
+ * @example
2004
+ * RUNNING
2005
+ */
2006
+ taskStatus?: string;
2007
+ /**
2008
+ * @example
2009
+ * UPDATE_RESOURCES
2010
+ */
2011
+ taskType?: string;
2012
+ static names(): { [key: string]: string } {
2013
+ return {
2014
+ completeTime: 'CompleteTime',
2015
+ errorMessage: 'ErrorMessage',
2016
+ executionId: 'ExecutionId',
2017
+ expireTime: 'ExpireTime',
2018
+ progress: 'Progress',
2019
+ requestId: 'RequestId',
2020
+ startTime: 'StartTime',
2021
+ taskDescription: 'TaskDescription',
2022
+ taskDetail: 'TaskDetail',
2023
+ taskId: 'TaskId',
2024
+ taskName: 'TaskName',
2025
+ taskPriority: 'TaskPriority',
2026
+ taskStatus: 'TaskStatus',
2027
+ taskType: 'TaskType',
2028
+ };
2029
+ }
2030
+
2031
+ static types(): { [key: string]: any } {
2032
+ return {
2033
+ completeTime: 'number',
2034
+ errorMessage: 'string',
2035
+ executionId: 'string',
2036
+ expireTime: 'number',
2037
+ progress: 'number',
2038
+ requestId: 'string',
2039
+ startTime: 'number',
2040
+ taskDescription: 'string',
2041
+ taskDetail: 'string',
2042
+ taskId: 'string',
2043
+ taskName: 'string',
2044
+ taskPriority: 'string',
2045
+ taskStatus: 'string',
2046
+ taskType: 'string',
2047
+ };
2048
+ }
2049
+
2050
+ constructor(map?: { [key: string]: any }) {
2051
+ super(map);
2052
+ }
2053
+ }
2054
+
2055
+ export class DescribeTasksResponseBodyData extends $tea.Model {
2056
+ content?: DescribeTasksResponseBodyDataContent[];
2057
+ /**
2058
+ * @example
2059
+ * 10
2060
+ */
2061
+ maxResults?: number;
2062
+ /**
2063
+ * @example
2064
+ * f4b8c2504545a3b41af5e75147d17d12e3818a0b9b2ff9a2
2065
+ */
2066
+ nextToken?: string;
2067
+ /**
2068
+ * @example
2069
+ * 100
2070
+ */
2071
+ totalCount?: number;
2072
+ static names(): { [key: string]: string } {
2073
+ return {
2074
+ content: 'Content',
2075
+ maxResults: 'MaxResults',
2076
+ nextToken: 'NextToken',
2077
+ totalCount: 'TotalCount',
2078
+ };
2079
+ }
2080
+
2081
+ static types(): { [key: string]: any } {
2082
+ return {
2083
+ content: { 'type': 'array', 'itemType': DescribeTasksResponseBodyDataContent },
2084
+ maxResults: 'number',
2085
+ nextToken: 'string',
2086
+ totalCount: 'number',
2087
+ };
2088
+ }
2089
+
2090
+ constructor(map?: { [key: string]: any }) {
2091
+ super(map);
2092
+ }
2093
+ }
2094
+
2095
+ export class DescribeTopRiskyResourcesResponseBodyDataContent extends $tea.Model {
2096
+ /**
2097
+ * @example
2098
+ * 0
2099
+ */
2100
+ archiveDataSize?: number;
2101
+ /**
2102
+ * @example
2103
+ * 0
2104
+ */
2105
+ checkFailedCount?: number;
2106
+ /**
2107
+ * @example
2108
+ * 0
2109
+ */
2110
+ coldArchiveDataSize?: number;
2111
+ /**
2112
+ * @example
2113
+ * 1697798340
2114
+ */
2115
+ createTime?: number;
2116
+ /**
2117
+ * @example
2118
+ * true
2119
+ */
2120
+ enableCheck?: boolean;
2121
+ /**
2122
+ * @example
2123
+ * 0
2124
+ */
2125
+ iaDataSize?: number;
2126
+ /**
2127
+ * @example
2128
+ * ecs
2129
+ */
2130
+ productType?: string;
2131
+ /**
2132
+ * @example
2133
+ * 90
2134
+ */
2135
+ protectionScore?: number;
2136
+ /**
2137
+ * @example
2138
+ * 1726036498
2139
+ */
2140
+ protectionScoreUpdatedTime?: number;
2141
+ /**
2142
+ * @example
2143
+ * cn-hangzhou
2144
+ */
2145
+ regionId?: string;
2146
+ /**
2147
+ * @example
2148
+ * acs:ecs:cn-hangzhou:xxxxxxxx:instance/xxxxx
2149
+ */
2150
+ resourceArn?: string;
2151
+ /**
2152
+ * @example
2153
+ * i-xxxxxxxx
2154
+ */
2155
+ resourceId?: string;
2156
+ /**
2157
+ * @example
2158
+ * test-server
2159
+ */
2160
+ resourceName?: string;
2161
+ /**
2162
+ * @example
2163
+ * ACS::ECS::Instance
2164
+ */
2165
+ resourceType?: string;
2166
+ /**
2167
+ * @example
2168
+ * 0
2169
+ */
2170
+ riskCount?: number;
2171
+ /**
2172
+ * @example
2173
+ * 0
2174
+ */
2175
+ standardDataSize?: number;
2176
+ /**
2177
+ * @example
2178
+ * Running
2179
+ */
2180
+ status?: string;
2181
+ /**
2182
+ * @example
2183
+ * 0
2184
+ */
2185
+ totalDataSize?: number;
2186
+ /**
2187
+ * @remarks
2188
+ * vSwitch ID
2189
+ *
2190
+ * @example
2191
+ * vsw-xxxxxxxx
2192
+ */
2193
+ vSwitchId?: string;
2194
+ /**
2195
+ * @remarks
2196
+ * vpc ID
2197
+ *
2198
+ * @example
2199
+ * vpc-xxxxxxxx
2200
+ */
2201
+ vpcId?: string;
2202
+ /**
2203
+ * @example
2204
+ * cn-hangzhou-j
2205
+ */
2206
+ zoneId?: string;
2207
+ static names(): { [key: string]: string } {
2208
+ return {
2209
+ archiveDataSize: 'ArchiveDataSize',
2210
+ checkFailedCount: 'CheckFailedCount',
2211
+ coldArchiveDataSize: 'ColdArchiveDataSize',
2212
+ createTime: 'CreateTime',
2213
+ enableCheck: 'EnableCheck',
2214
+ iaDataSize: 'IaDataSize',
2215
+ productType: 'ProductType',
2216
+ protectionScore: 'ProtectionScore',
2217
+ protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
2218
+ regionId: 'RegionId',
2219
+ resourceArn: 'ResourceArn',
2220
+ resourceId: 'ResourceId',
2221
+ resourceName: 'ResourceName',
2222
+ resourceType: 'ResourceType',
2223
+ riskCount: 'RiskCount',
2224
+ standardDataSize: 'StandardDataSize',
2225
+ status: 'Status',
2226
+ totalDataSize: 'TotalDataSize',
2227
+ vSwitchId: 'VSwitchId',
2228
+ vpcId: 'VpcId',
2229
+ zoneId: 'ZoneId',
2230
+ };
2231
+ }
2232
+
2233
+ static types(): { [key: string]: any } {
2234
+ return {
2235
+ archiveDataSize: 'number',
2236
+ checkFailedCount: 'number',
2237
+ coldArchiveDataSize: 'number',
2238
+ createTime: 'number',
2239
+ enableCheck: 'boolean',
2240
+ iaDataSize: 'number',
2241
+ productType: 'string',
2242
+ protectionScore: 'number',
2243
+ protectionScoreUpdatedTime: 'number',
2244
+ regionId: 'string',
2245
+ resourceArn: 'string',
2246
+ resourceId: 'string',
2247
+ resourceName: 'string',
2248
+ resourceType: 'string',
2249
+ riskCount: 'number',
2250
+ standardDataSize: 'number',
2251
+ status: 'string',
2252
+ totalDataSize: 'number',
2253
+ vSwitchId: 'string',
2254
+ vpcId: 'string',
2255
+ zoneId: 'string',
2256
+ };
2257
+ }
2258
+
2259
+ constructor(map?: { [key: string]: any }) {
2260
+ super(map);
2261
+ }
2262
+ }
2263
+
2264
+ export class DescribeTopRiskyResourcesResponseBodyData extends $tea.Model {
2265
+ content?: DescribeTopRiskyResourcesResponseBodyDataContent[];
2266
+ /**
2267
+ * @example
2268
+ * 10
2269
+ */
2270
+ maxResults?: number;
2271
+ /**
2272
+ * @example
2273
+ * e557bc9a65fe22cb5e2a3b240f06b0de
2274
+ */
2275
+ nextToken?: string;
2276
+ /**
2277
+ * @example
2278
+ * 10
2279
+ */
2280
+ totalCount?: number;
2281
+ static names(): { [key: string]: string } {
2282
+ return {
2283
+ content: 'Content',
2284
+ maxResults: 'MaxResults',
2285
+ nextToken: 'NextToken',
2286
+ totalCount: 'TotalCount',
2287
+ };
2288
+ }
2289
+
2290
+ static types(): { [key: string]: any } {
2291
+ return {
2292
+ content: { 'type': 'array', 'itemType': DescribeTopRiskyResourcesResponseBodyDataContent },
2293
+ maxResults: 'number',
2294
+ nextToken: 'string',
2295
+ totalCount: 'number',
2296
+ };
2297
+ }
2298
+
2299
+ constructor(map?: { [key: string]: any }) {
2300
+ super(map);
2301
+ }
2302
+ }
2303
+
2304
+ export class GetBdrcServiceResponseBodyData extends $tea.Model {
2305
+ /**
2306
+ * @example
2307
+ * 1726169608
2308
+ */
2309
+ openTime?: number;
2310
+ /**
2311
+ * @example
2312
+ * 1726169608
2313
+ */
2314
+ protectionScoreUpdatedTime?: number;
2315
+ /**
2316
+ * @example
2317
+ * SUCCESS
2318
+ */
2319
+ serviceInitializeStatus?: string;
2320
+ /**
2321
+ * @example
2322
+ * OPENED
2323
+ */
2324
+ serviceStatus?: string;
2325
+ static names(): { [key: string]: string } {
2326
+ return {
2327
+ openTime: 'OpenTime',
2328
+ protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
2329
+ serviceInitializeStatus: 'ServiceInitializeStatus',
2330
+ serviceStatus: 'ServiceStatus',
2331
+ };
2332
+ }
2333
+
2334
+ static types(): { [key: string]: any } {
2335
+ return {
2336
+ openTime: 'number',
2337
+ protectionScoreUpdatedTime: 'number',
2338
+ serviceInitializeStatus: 'string',
2339
+ serviceStatus: 'string',
2340
+ };
2341
+ }
2342
+
2343
+ constructor(map?: { [key: string]: any }) {
2344
+ super(map);
2345
+ }
2346
+ }
2347
+
2348
+ export class UpdateResourcesResponseBodyData extends $tea.Model {
2349
+ /**
2350
+ * @example
2351
+ * t-bp1ewftyzmeg3bl4dtd2
2352
+ */
2353
+ taskId?: string;
2354
+ static names(): { [key: string]: string } {
2355
+ return {
2356
+ taskId: 'TaskId',
2357
+ };
2358
+ }
2359
+
2360
+ static types(): { [key: string]: any } {
2361
+ return {
2362
+ taskId: 'string',
2363
+ };
2364
+ }
2365
+
2366
+ constructor(map?: { [key: string]: any }) {
2367
+ super(map);
2368
+ }
2369
+ }
2370
+
2371
+
2372
+ export default class Client extends OpenApi {
2373
+
2374
+ constructor(config: $OpenApi.Config) {
2375
+ super(config);
2376
+ this._endpointRule = "";
2377
+ this.checkConfig(config);
2378
+ this._endpoint = this.getEndpoint("bdrc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2379
+ }
2380
+
2381
+
2382
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
2383
+ if (!Util.empty(endpoint)) {
2384
+ return endpoint;
2385
+ }
2386
+
2387
+ if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
2388
+ return endpointMap[regionId];
2389
+ }
2390
+
2391
+ return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2392
+ }
2393
+
2394
+ /**
2395
+ * @param request - CheckRulesRequest
2396
+ * @param headers - map
2397
+ * @param runtime - runtime options for this request RuntimeOptions
2398
+ * @returns CheckRulesResponse
2399
+ */
2400
+ async checkRulesWithOptions(request: CheckRulesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckRulesResponse> {
2401
+ Util.validateModel(request);
2402
+ let body : {[key: string ]: any} = { };
2403
+ if (!Util.isUnset(request.resourceArn)) {
2404
+ body["ResourceArn"] = request.resourceArn;
2405
+ }
2406
+
2407
+ if (!Util.isUnset(request.ruleId)) {
2408
+ body["RuleId"] = request.ruleId;
2409
+ }
2410
+
2411
+ let req = new $OpenApi.OpenApiRequest({
2412
+ headers: headers,
2413
+ body: OpenApiUtil.parseToMap(body),
2414
+ });
2415
+ let params = new $OpenApi.Params({
2416
+ action: "CheckRules",
2417
+ version: "2023-08-08",
2418
+ protocol: "HTTPS",
2419
+ pathname: `/api/v1/rules/check`,
2420
+ method: "POST",
2421
+ authType: "AK",
2422
+ style: "ROA",
2423
+ reqBodyType: "formData",
2424
+ bodyType: "json",
2425
+ });
2426
+ return $tea.cast<CheckRulesResponse>(await this.callApi(params, req, runtime), new CheckRulesResponse({}));
2427
+ }
2428
+
2429
+ /**
2430
+ * @param request - CheckRulesRequest
2431
+ * @returns CheckRulesResponse
2432
+ */
2433
+ async checkRules(request: CheckRulesRequest): Promise<CheckRulesResponse> {
2434
+ let runtime = new $Util.RuntimeOptions({ });
2435
+ let headers : {[key: string ]: string} = { };
2436
+ return await this.checkRulesWithOptions(request, headers, runtime);
2437
+ }
2438
+
2439
+ /**
2440
+ * @param headers - map
2441
+ * @param runtime - runtime options for this request RuntimeOptions
2442
+ * @returns CloseBdrcServiceResponse
2443
+ */
2444
+ async closeBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CloseBdrcServiceResponse> {
2445
+ let req = new $OpenApi.OpenApiRequest({
2446
+ headers: headers,
2447
+ });
2448
+ let params = new $OpenApi.Params({
2449
+ action: "CloseBdrcService",
2450
+ version: "2023-08-08",
2451
+ protocol: "HTTPS",
2452
+ pathname: `/api/v1/service/close`,
2453
+ method: "POST",
2454
+ authType: "AK",
2455
+ style: "ROA",
2456
+ reqBodyType: "json",
2457
+ bodyType: "json",
2458
+ });
2459
+ return $tea.cast<CloseBdrcServiceResponse>(await this.callApi(params, req, runtime), new CloseBdrcServiceResponse({}));
2460
+ }
2461
+
2462
+ /**
2463
+ * @returns CloseBdrcServiceResponse
2464
+ */
2465
+ async closeBdrcService(): Promise<CloseBdrcServiceResponse> {
2466
+ let runtime = new $Util.RuntimeOptions({ });
2467
+ let headers : {[key: string ]: string} = { };
2468
+ return await this.closeBdrcServiceWithOptions(headers, runtime);
2469
+ }
2470
+
2471
+ /**
2472
+ * @param request - DescribeCheckDetailsRequest
2473
+ * @param headers - map
2474
+ * @param runtime - runtime options for this request RuntimeOptions
2475
+ * @returns DescribeCheckDetailsResponse
2476
+ */
2477
+ async describeCheckDetailsWithOptions(request: DescribeCheckDetailsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeCheckDetailsResponse> {
2478
+ Util.validateModel(request);
2479
+ let query : {[key: string ]: any} = { };
2480
+ if (!Util.isUnset(request.maxResults)) {
2481
+ query["MaxResults"] = request.maxResults;
2482
+ }
2483
+
2484
+ if (!Util.isUnset(request.nextToken)) {
2485
+ query["NextToken"] = request.nextToken;
2486
+ }
2487
+
2488
+ if (!Util.isUnset(request.resourceArn)) {
2489
+ query["ResourceArn"] = request.resourceArn;
2490
+ }
2491
+
2492
+ if (!Util.isUnset(request.ruleId)) {
2493
+ query["RuleId"] = request.ruleId;
2494
+ }
2495
+
2496
+ let req = new $OpenApi.OpenApiRequest({
2497
+ headers: headers,
2498
+ query: OpenApiUtil.query(query),
2499
+ });
2500
+ let params = new $OpenApi.Params({
2501
+ action: "DescribeCheckDetails",
2502
+ version: "2023-08-08",
2503
+ protocol: "HTTPS",
2504
+ pathname: `/api/v1/check-details`,
2505
+ method: "GET",
2506
+ authType: "AK",
2507
+ style: "ROA",
2508
+ reqBodyType: "json",
2509
+ bodyType: "json",
2510
+ });
2511
+ return $tea.cast<DescribeCheckDetailsResponse>(await this.callApi(params, req, runtime), new DescribeCheckDetailsResponse({}));
2512
+ }
2513
+
2514
+ /**
2515
+ * @param request - DescribeCheckDetailsRequest
2516
+ * @returns DescribeCheckDetailsResponse
2517
+ */
2518
+ async describeCheckDetails(request: DescribeCheckDetailsRequest): Promise<DescribeCheckDetailsResponse> {
2519
+ let runtime = new $Util.RuntimeOptions({ });
2520
+ let headers : {[key: string ]: string} = { };
2521
+ return await this.describeCheckDetailsWithOptions(request, headers, runtime);
2522
+ }
2523
+
2524
+ /**
2525
+ * @param headers - map
2526
+ * @param runtime - runtime options for this request RuntimeOptions
2527
+ * @returns DescribeProductsResponse
2528
+ */
2529
+ async describeProductsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeProductsResponse> {
2530
+ let req = new $OpenApi.OpenApiRequest({
2531
+ headers: headers,
2532
+ });
2533
+ let params = new $OpenApi.Params({
2534
+ action: "DescribeProducts",
2535
+ version: "2023-08-08",
2536
+ protocol: "HTTPS",
2537
+ pathname: `/api/v1/products`,
2538
+ method: "GET",
2539
+ authType: "AK",
2540
+ style: "ROA",
2541
+ reqBodyType: "json",
2542
+ bodyType: "json",
2543
+ });
2544
+ return $tea.cast<DescribeProductsResponse>(await this.callApi(params, req, runtime), new DescribeProductsResponse({}));
2545
+ }
2546
+
2547
+ /**
2548
+ * @returns DescribeProductsResponse
2549
+ */
2550
+ async describeProducts(): Promise<DescribeProductsResponse> {
2551
+ let runtime = new $Util.RuntimeOptions({ });
2552
+ let headers : {[key: string ]: string} = { };
2553
+ return await this.describeProductsWithOptions(headers, runtime);
2554
+ }
2555
+
2556
+ /**
2557
+ * @param request - DescribeResourcesRequest
2558
+ * @param headers - map
2559
+ * @param runtime - runtime options for this request RuntimeOptions
2560
+ * @returns DescribeResourcesResponse
2561
+ */
2562
+ async describeResourcesWithOptions(request: DescribeResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourcesResponse> {
2563
+ Util.validateModel(request);
2564
+ let query : {[key: string ]: any} = { };
2565
+ if (!Util.isUnset(request.failedRuleTemplate)) {
2566
+ query["FailedRuleTemplate"] = request.failedRuleTemplate;
2567
+ }
2568
+
2569
+ if (!Util.isUnset(request.maxResults)) {
2570
+ query["MaxResults"] = request.maxResults;
2571
+ }
2572
+
2573
+ if (!Util.isUnset(request.nextToken)) {
2574
+ query["NextToken"] = request.nextToken;
2575
+ }
2576
+
2577
+ if (!Util.isUnset(request.resourceId)) {
2578
+ query["ResourceId"] = request.resourceId;
2579
+ }
2580
+
2581
+ if (!Util.isUnset(request.resourceType)) {
2582
+ query["ResourceType"] = request.resourceType;
2583
+ }
2584
+
2585
+ if (!Util.isUnset(request.sortBy)) {
2586
+ query["SortBy"] = request.sortBy;
2587
+ }
2588
+
2589
+ if (!Util.isUnset(request.sortOrder)) {
2590
+ query["SortOrder"] = request.sortOrder;
2591
+ }
2592
+
2593
+ let req = new $OpenApi.OpenApiRequest({
2594
+ headers: headers,
2595
+ query: OpenApiUtil.query(query),
2596
+ });
2597
+ let params = new $OpenApi.Params({
2598
+ action: "DescribeResources",
2599
+ version: "2023-08-08",
2600
+ protocol: "HTTPS",
2601
+ pathname: `/api/v1/resources`,
2602
+ method: "GET",
2603
+ authType: "AK",
2604
+ style: "ROA",
2605
+ reqBodyType: "json",
2606
+ bodyType: "json",
2607
+ });
2608
+ return $tea.cast<DescribeResourcesResponse>(await this.callApi(params, req, runtime), new DescribeResourcesResponse({}));
2609
+ }
2610
+
2611
+ /**
2612
+ * @param request - DescribeResourcesRequest
2613
+ * @returns DescribeResourcesResponse
2614
+ */
2615
+ async describeResources(request: DescribeResourcesRequest): Promise<DescribeResourcesResponse> {
2616
+ let runtime = new $Util.RuntimeOptions({ });
2617
+ let headers : {[key: string ]: string} = { };
2618
+ return await this.describeResourcesWithOptions(request, headers, runtime);
2619
+ }
2620
+
2621
+ /**
2622
+ * @param request - DescribeRulesRequest
2623
+ * @param headers - map
2624
+ * @param runtime - runtime options for this request RuntimeOptions
2625
+ * @returns DescribeRulesResponse
2626
+ */
2627
+ async describeRulesWithOptions(request: DescribeRulesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeRulesResponse> {
2628
+ Util.validateModel(request);
2629
+ let query : {[key: string ]: any} = { };
2630
+ if (!Util.isUnset(request.maxResults)) {
2631
+ query["MaxResults"] = request.maxResults;
2632
+ }
2633
+
2634
+ if (!Util.isUnset(request.nextToken)) {
2635
+ query["NextToken"] = request.nextToken;
2636
+ }
2637
+
2638
+ if (!Util.isUnset(request.resourceType)) {
2639
+ query["ResourceType"] = request.resourceType;
2640
+ }
2641
+
2642
+ let req = new $OpenApi.OpenApiRequest({
2643
+ headers: headers,
2644
+ query: OpenApiUtil.query(query),
2645
+ });
2646
+ let params = new $OpenApi.Params({
2647
+ action: "DescribeRules",
2648
+ version: "2023-08-08",
2649
+ protocol: "HTTPS",
2650
+ pathname: `/api/v1/rules`,
2651
+ method: "GET",
2652
+ authType: "AK",
2653
+ style: "ROA",
2654
+ reqBodyType: "json",
2655
+ bodyType: "json",
2656
+ });
2657
+ return $tea.cast<DescribeRulesResponse>(await this.callApi(params, req, runtime), new DescribeRulesResponse({}));
2658
+ }
2659
+
2660
+ /**
2661
+ * @param request - DescribeRulesRequest
2662
+ * @returns DescribeRulesResponse
2663
+ */
2664
+ async describeRules(request: DescribeRulesRequest): Promise<DescribeRulesResponse> {
2665
+ let runtime = new $Util.RuntimeOptions({ });
2666
+ let headers : {[key: string ]: string} = { };
2667
+ return await this.describeRulesWithOptions(request, headers, runtime);
2668
+ }
2669
+
2670
+ /**
2671
+ * @param headers - map
2672
+ * @param runtime - runtime options for this request RuntimeOptions
2673
+ * @returns DescribeTaskResponse
2674
+ */
2675
+ async describeTaskWithOptions(TaskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTaskResponse> {
2676
+ let req = new $OpenApi.OpenApiRequest({
2677
+ headers: headers,
2678
+ });
2679
+ let params = new $OpenApi.Params({
2680
+ action: "DescribeTask",
2681
+ version: "2023-08-08",
2682
+ protocol: "HTTPS",
2683
+ pathname: `/api/v1/tasks/${OpenApiUtil.getEncodeParam(TaskId)}`,
2684
+ method: "GET",
2685
+ authType: "AK",
2686
+ style: "ROA",
2687
+ reqBodyType: "json",
2688
+ bodyType: "json",
2689
+ });
2690
+ return $tea.cast<DescribeTaskResponse>(await this.callApi(params, req, runtime), new DescribeTaskResponse({}));
2691
+ }
2692
+
2693
+ /**
2694
+ * @returns DescribeTaskResponse
2695
+ */
2696
+ async describeTask(TaskId: string): Promise<DescribeTaskResponse> {
2697
+ let runtime = new $Util.RuntimeOptions({ });
2698
+ let headers : {[key: string ]: string} = { };
2699
+ return await this.describeTaskWithOptions(TaskId, headers, runtime);
2700
+ }
2701
+
2702
+ /**
2703
+ * @param request - DescribeTasksRequest
2704
+ * @param headers - map
2705
+ * @param runtime - runtime options for this request RuntimeOptions
2706
+ * @returns DescribeTasksResponse
2707
+ */
2708
+ async describeTasksWithOptions(request: DescribeTasksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTasksResponse> {
2709
+ Util.validateModel(request);
2710
+ let query : {[key: string ]: any} = { };
2711
+ if (!Util.isUnset(request.maxResults)) {
2712
+ query["MaxResults"] = request.maxResults;
2713
+ }
2714
+
2715
+ if (!Util.isUnset(request.nextToken)) {
2716
+ query["NextToken"] = request.nextToken;
2717
+ }
2718
+
2719
+ if (!Util.isUnset(request.taskStatus)) {
2720
+ query["TaskStatus"] = request.taskStatus;
2721
+ }
2722
+
2723
+ let req = new $OpenApi.OpenApiRequest({
2724
+ headers: headers,
2725
+ query: OpenApiUtil.query(query),
2726
+ });
2727
+ let params = new $OpenApi.Params({
2728
+ action: "DescribeTasks",
2729
+ version: "2023-08-08",
2730
+ protocol: "HTTPS",
2731
+ pathname: `/api/v1/tasks`,
2732
+ method: "GET",
2733
+ authType: "AK",
2734
+ style: "ROA",
2735
+ reqBodyType: "json",
2736
+ bodyType: "json",
2737
+ });
2738
+ return $tea.cast<DescribeTasksResponse>(await this.callApi(params, req, runtime), new DescribeTasksResponse({}));
2739
+ }
2740
+
2741
+ /**
2742
+ * @param request - DescribeTasksRequest
2743
+ * @returns DescribeTasksResponse
2744
+ */
2745
+ async describeTasks(request: DescribeTasksRequest): Promise<DescribeTasksResponse> {
2746
+ let runtime = new $Util.RuntimeOptions({ });
2747
+ let headers : {[key: string ]: string} = { };
2748
+ return await this.describeTasksWithOptions(request, headers, runtime);
2749
+ }
2750
+
2751
+ /**
2752
+ * @param request - DescribeTopRiskyResourcesRequest
2753
+ * @param headers - map
2754
+ * @param runtime - runtime options for this request RuntimeOptions
2755
+ * @returns DescribeTopRiskyResourcesResponse
2756
+ */
2757
+ async describeTopRiskyResourcesWithOptions(request: DescribeTopRiskyResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTopRiskyResourcesResponse> {
2758
+ Util.validateModel(request);
2759
+ let query : {[key: string ]: any} = { };
2760
+ if (!Util.isUnset(request.resourceType)) {
2761
+ query["ResourceType"] = request.resourceType;
2762
+ }
2763
+
2764
+ let req = new $OpenApi.OpenApiRequest({
2765
+ headers: headers,
2766
+ query: OpenApiUtil.query(query),
2767
+ });
2768
+ let params = new $OpenApi.Params({
2769
+ action: "DescribeTopRiskyResources",
2770
+ version: "2023-08-08",
2771
+ protocol: "HTTPS",
2772
+ pathname: `/api/v1/resources/top-risky`,
2773
+ method: "GET",
2774
+ authType: "AK",
2775
+ style: "ROA",
2776
+ reqBodyType: "json",
2777
+ bodyType: "json",
2778
+ });
2779
+ return $tea.cast<DescribeTopRiskyResourcesResponse>(await this.callApi(params, req, runtime), new DescribeTopRiskyResourcesResponse({}));
2780
+ }
2781
+
2782
+ /**
2783
+ * @param request - DescribeTopRiskyResourcesRequest
2784
+ * @returns DescribeTopRiskyResourcesResponse
2785
+ */
2786
+ async describeTopRiskyResources(request: DescribeTopRiskyResourcesRequest): Promise<DescribeTopRiskyResourcesResponse> {
2787
+ let runtime = new $Util.RuntimeOptions({ });
2788
+ let headers : {[key: string ]: string} = { };
2789
+ return await this.describeTopRiskyResourcesWithOptions(request, headers, runtime);
2790
+ }
2791
+
2792
+ /**
2793
+ * @param request - DisableCheckProductRequest
2794
+ * @param headers - map
2795
+ * @param runtime - runtime options for this request RuntimeOptions
2796
+ * @returns DisableCheckProductResponse
2797
+ */
2798
+ async disableCheckProductWithOptions(request: DisableCheckProductRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DisableCheckProductResponse> {
2799
+ Util.validateModel(request);
2800
+ let body : {[key: string ]: any} = { };
2801
+ if (!Util.isUnset(request.productType)) {
2802
+ body["ProductType"] = request.productType;
2803
+ }
2804
+
2805
+ let req = new $OpenApi.OpenApiRequest({
2806
+ headers: headers,
2807
+ body: OpenApiUtil.parseToMap(body),
2808
+ });
2809
+ let params = new $OpenApi.Params({
2810
+ action: "DisableCheckProduct",
2811
+ version: "2023-08-08",
2812
+ protocol: "HTTPS",
2813
+ pathname: `/api/v1/products/disable-check`,
2814
+ method: "POST",
2815
+ authType: "AK",
2816
+ style: "ROA",
2817
+ reqBodyType: "formData",
2818
+ bodyType: "json",
2819
+ });
2820
+ return $tea.cast<DisableCheckProductResponse>(await this.callApi(params, req, runtime), new DisableCheckProductResponse({}));
2821
+ }
2822
+
2823
+ /**
2824
+ * @param request - DisableCheckProductRequest
2825
+ * @returns DisableCheckProductResponse
2826
+ */
2827
+ async disableCheckProduct(request: DisableCheckProductRequest): Promise<DisableCheckProductResponse> {
2828
+ let runtime = new $Util.RuntimeOptions({ });
2829
+ let headers : {[key: string ]: string} = { };
2830
+ return await this.disableCheckProductWithOptions(request, headers, runtime);
2831
+ }
2832
+
2833
+ /**
2834
+ * @param request - DisableCheckResourceRequest
2835
+ * @param headers - map
2836
+ * @param runtime - runtime options for this request RuntimeOptions
2837
+ * @returns DisableCheckResourceResponse
2838
+ */
2839
+ async disableCheckResourceWithOptions(request: DisableCheckResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DisableCheckResourceResponse> {
2840
+ Util.validateModel(request);
2841
+ let body : {[key: string ]: any} = { };
2842
+ if (!Util.isUnset(request.resourceArn)) {
2843
+ body["ResourceArn"] = request.resourceArn;
2844
+ }
2845
+
2846
+ let req = new $OpenApi.OpenApiRequest({
2847
+ headers: headers,
2848
+ body: OpenApiUtil.parseToMap(body),
2849
+ });
2850
+ let params = new $OpenApi.Params({
2851
+ action: "DisableCheckResource",
2852
+ version: "2023-08-08",
2853
+ protocol: "HTTPS",
2854
+ pathname: `/api/v1/resources/disable-check`,
2855
+ method: "POST",
2856
+ authType: "AK",
2857
+ style: "ROA",
2858
+ reqBodyType: "formData",
2859
+ bodyType: "json",
2860
+ });
2861
+ return $tea.cast<DisableCheckResourceResponse>(await this.callApi(params, req, runtime), new DisableCheckResourceResponse({}));
2862
+ }
2863
+
2864
+ /**
2865
+ * @param request - DisableCheckResourceRequest
2866
+ * @returns DisableCheckResourceResponse
2867
+ */
2868
+ async disableCheckResource(request: DisableCheckResourceRequest): Promise<DisableCheckResourceResponse> {
2869
+ let runtime = new $Util.RuntimeOptions({ });
2870
+ let headers : {[key: string ]: string} = { };
2871
+ return await this.disableCheckResourceWithOptions(request, headers, runtime);
2872
+ }
2873
+
2874
+ /**
2875
+ * @param request - EnableCheckProductRequest
2876
+ * @param headers - map
2877
+ * @param runtime - runtime options for this request RuntimeOptions
2878
+ * @returns EnableCheckProductResponse
2879
+ */
2880
+ async enableCheckProductWithOptions(request: EnableCheckProductRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EnableCheckProductResponse> {
2881
+ Util.validateModel(request);
2882
+ let body : {[key: string ]: any} = { };
2883
+ if (!Util.isUnset(request.productType)) {
2884
+ body["ProductType"] = request.productType;
2885
+ }
2886
+
2887
+ let req = new $OpenApi.OpenApiRequest({
2888
+ headers: headers,
2889
+ body: OpenApiUtil.parseToMap(body),
2890
+ });
2891
+ let params = new $OpenApi.Params({
2892
+ action: "EnableCheckProduct",
2893
+ version: "2023-08-08",
2894
+ protocol: "HTTPS",
2895
+ pathname: `/api/v1/products/enable-check`,
2896
+ method: "POST",
2897
+ authType: "AK",
2898
+ style: "ROA",
2899
+ reqBodyType: "formData",
2900
+ bodyType: "json",
2901
+ });
2902
+ return $tea.cast<EnableCheckProductResponse>(await this.callApi(params, req, runtime), new EnableCheckProductResponse({}));
2903
+ }
2904
+
2905
+ /**
2906
+ * @param request - EnableCheckProductRequest
2907
+ * @returns EnableCheckProductResponse
2908
+ */
2909
+ async enableCheckProduct(request: EnableCheckProductRequest): Promise<EnableCheckProductResponse> {
2910
+ let runtime = new $Util.RuntimeOptions({ });
2911
+ let headers : {[key: string ]: string} = { };
2912
+ return await this.enableCheckProductWithOptions(request, headers, runtime);
2913
+ }
2914
+
2915
+ /**
2916
+ * @param request - EnableCheckResourceRequest
2917
+ * @param headers - map
2918
+ * @param runtime - runtime options for this request RuntimeOptions
2919
+ * @returns EnableCheckResourceResponse
2920
+ */
2921
+ async enableCheckResourceWithOptions(request: EnableCheckResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EnableCheckResourceResponse> {
2922
+ Util.validateModel(request);
2923
+ let body : {[key: string ]: any} = { };
2924
+ if (!Util.isUnset(request.resourceArn)) {
2925
+ body["ResourceArn"] = request.resourceArn;
2926
+ }
2927
+
2928
+ let req = new $OpenApi.OpenApiRequest({
2929
+ headers: headers,
2930
+ body: OpenApiUtil.parseToMap(body),
2931
+ });
2932
+ let params = new $OpenApi.Params({
2933
+ action: "EnableCheckResource",
2934
+ version: "2023-08-08",
2935
+ protocol: "HTTPS",
2936
+ pathname: `/api/v1/resources/enable-check`,
2937
+ method: "POST",
2938
+ authType: "AK",
2939
+ style: "ROA",
2940
+ reqBodyType: "formData",
2941
+ bodyType: "json",
2942
+ });
2943
+ return $tea.cast<EnableCheckResourceResponse>(await this.callApi(params, req, runtime), new EnableCheckResourceResponse({}));
2944
+ }
2945
+
2946
+ /**
2947
+ * @param request - EnableCheckResourceRequest
2948
+ * @returns EnableCheckResourceResponse
2949
+ */
2950
+ async enableCheckResource(request: EnableCheckResourceRequest): Promise<EnableCheckResourceResponse> {
2951
+ let runtime = new $Util.RuntimeOptions({ });
2952
+ let headers : {[key: string ]: string} = { };
2953
+ return await this.enableCheckResourceWithOptions(request, headers, runtime);
2954
+ }
2955
+
2956
+ /**
2957
+ * @param headers - map
2958
+ * @param runtime - runtime options for this request RuntimeOptions
2959
+ * @returns GetBdrcServiceResponse
2960
+ */
2961
+ async getBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetBdrcServiceResponse> {
2962
+ let req = new $OpenApi.OpenApiRequest({
2963
+ headers: headers,
2964
+ });
2965
+ let params = new $OpenApi.Params({
2966
+ action: "GetBdrcService",
2967
+ version: "2023-08-08",
2968
+ protocol: "HTTPS",
2969
+ pathname: `/api/v1/service`,
2970
+ method: "GET",
2971
+ authType: "AK",
2972
+ style: "ROA",
2973
+ reqBodyType: "json",
2974
+ bodyType: "json",
2975
+ });
2976
+ return $tea.cast<GetBdrcServiceResponse>(await this.callApi(params, req, runtime), new GetBdrcServiceResponse({}));
2977
+ }
2978
+
2979
+ /**
2980
+ * @returns GetBdrcServiceResponse
2981
+ */
2982
+ async getBdrcService(): Promise<GetBdrcServiceResponse> {
2983
+ let runtime = new $Util.RuntimeOptions({ });
2984
+ let headers : {[key: string ]: string} = { };
2985
+ return await this.getBdrcServiceWithOptions(headers, runtime);
2986
+ }
2987
+
2988
+ /**
2989
+ * @param headers - map
2990
+ * @param runtime - runtime options for this request RuntimeOptions
2991
+ * @returns OpenBdrcServiceResponse
2992
+ */
2993
+ async openBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OpenBdrcServiceResponse> {
2994
+ let req = new $OpenApi.OpenApiRequest({
2995
+ headers: headers,
2996
+ });
2997
+ let params = new $OpenApi.Params({
2998
+ action: "OpenBdrcService",
2999
+ version: "2023-08-08",
3000
+ protocol: "HTTPS",
3001
+ pathname: `/api/v1/service/open`,
3002
+ method: "POST",
3003
+ authType: "AK",
3004
+ style: "ROA",
3005
+ reqBodyType: "json",
3006
+ bodyType: "json",
3007
+ });
3008
+ return $tea.cast<OpenBdrcServiceResponse>(await this.callApi(params, req, runtime), new OpenBdrcServiceResponse({}));
3009
+ }
3010
+
3011
+ /**
3012
+ * @returns OpenBdrcServiceResponse
3013
+ */
3014
+ async openBdrcService(): Promise<OpenBdrcServiceResponse> {
3015
+ let runtime = new $Util.RuntimeOptions({ });
3016
+ let headers : {[key: string ]: string} = { };
3017
+ return await this.openBdrcServiceWithOptions(headers, runtime);
3018
+ }
3019
+
3020
+ /**
3021
+ * @param request - UpdateResourcesRequest
3022
+ * @param headers - map
3023
+ * @param runtime - runtime options for this request RuntimeOptions
3024
+ * @returns UpdateResourcesResponse
3025
+ */
3026
+ async updateResourcesWithOptions(request: UpdateResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourcesResponse> {
3027
+ Util.validateModel(request);
3028
+ let body : {[key: string ]: any} = { };
3029
+ if (!Util.isUnset(request.resourceType)) {
3030
+ body["ResourceType"] = request.resourceType;
3031
+ }
3032
+
3033
+ let req = new $OpenApi.OpenApiRequest({
3034
+ headers: headers,
3035
+ body: OpenApiUtil.parseToMap(body),
3036
+ });
3037
+ let params = new $OpenApi.Params({
3038
+ action: "UpdateResources",
3039
+ version: "2023-08-08",
3040
+ protocol: "HTTPS",
3041
+ pathname: `/api/v1/resources/update`,
3042
+ method: "POST",
3043
+ authType: "AK",
3044
+ style: "ROA",
3045
+ reqBodyType: "formData",
3046
+ bodyType: "json",
3047
+ });
3048
+ return $tea.cast<UpdateResourcesResponse>(await this.callApi(params, req, runtime), new UpdateResourcesResponse({}));
3049
+ }
3050
+
3051
+ /**
3052
+ * @param request - UpdateResourcesRequest
3053
+ * @returns UpdateResourcesResponse
3054
+ */
3055
+ async updateResources(request: UpdateResourcesRequest): Promise<UpdateResourcesResponse> {
3056
+ let runtime = new $Util.RuntimeOptions({ });
3057
+ let headers : {[key: string ]: string} = { };
3058
+ return await this.updateResourcesWithOptions(request, headers, runtime);
3059
+ }
3060
+
3061
+ }