ksyun-sdk-node 1.4.9 → 1.5.1
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/dist/service/Aicp/v20240612/index.js +24 -0
- package/dist/service/Bws/v20160304/index.js +3 -0
- package/dist/service/Cdn/v20250503/index.js +0 -333
- package/dist/service/Cdn/v3/index.js +600 -0
- package/dist/service/Cen/v20160304/index.js +147 -103
- package/dist/service/Clickhouse/v20210101/index.js +204 -19
- package/dist/service/Cloud_advisor/v20250610/index.js +81 -0
- package/dist/service/Dmp/v20240101/index.js +362 -0
- package/dist/service/Dts/v20180108/index.js +386 -0
- package/dist/service/Ebs/v20160304/index.js +197 -34
- package/dist/service/Eip/v20160304/index.js +79 -1
- package/dist/service/Influxdb/v20191010/index.js +504 -0
- package/dist/service/Kad/v20161122/index.js +32 -0
- package/dist/service/Kce/v20190806/index.js +234 -43
- package/dist/service/Kce/v20201231/index.js +2 -2
- package/dist/service/Kce/v20230101/index.js +193 -0
- package/dist/service/Kce/v20230306/index.js +434 -0
- package/dist/service/Kce/v20231115/index.js +65 -0
- package/dist/service/Kce2/v20230101/index.js +313 -0
- package/dist/service/Kci/v20200702/index.js +336 -0
- package/dist/service/Kcm/v20160304/index.js +113 -3
- package/dist/service/Kcrs/v20211109/index.js +88 -92
- package/dist/service/Kcs/v20160701/index.js +165 -23
- package/dist/service/Kcs/v20170401/index.js +1 -36
- package/dist/service/Kcs/v20240701/index.js +45 -0
- package/dist/service/Kead/v20200101/index.js +37 -8
- package/dist/service/Ked/v1/index.js +805 -0
- package/dist/service/Ket/v20170101/index.js +42 -0
- package/dist/service/Kfw/v20160304/index.js +59 -0
- package/dist/service/Kingpay/v1/index.js +44 -0
- package/dist/service/Knad/v20230323/index.js +333 -0
- package/dist/service/Kpfs/v20240930/index.js +181 -0
- package/dist/service/Krds/v20160701/index.js +505 -96
- package/dist/service/Krds/v20200825/index.js +48 -8
- package/dist/service/Milvus/v20231010/index.js +366 -0
- package/dist/service/Mongodb/v20170101/index.js +163 -13
- package/dist/service/Mongodb/v20250101/index.js +44 -0
- package/dist/service/Pdns/v20160304/index.js +636 -0
- package/dist/service/Postgresql/v20181225/index.js +950 -0
- package/dist/service/Rabbitmq/v20191017/index.js +107 -6
- package/dist/service/Relyt/v20240117/index.js +45 -0
- package/dist/service/Sks/v20151101/index.js +2 -1
- package/dist/service/Slb/v20160304/index.js +426 -53
- package/dist/service/Slb/v20250430/index.js +750 -0
- package/dist/service/Sqlserver/v20190425/index.js +872 -0
- package/dist/service/Sts/v20151101/index.js +19 -0
- package/dist/service/Tagv2/v20200901/index.js +42 -6
- package/dist/service/Ter/v20240415/index.js +114 -0
- package/dist/service/Tidb/v20210520/index.js +415 -21
- package/dist/service/Trade/v20250220/index.js +97 -0
- package/dist/service/Trade/v20250321/index.js +93 -0
- package/dist/service/Trade/v20250828/index.js +56 -0
- package/dist/service/Vpc/v20160304/index.js +32 -0
- package/dist/service/Waf/v20200707/index.js +188 -5
- package/package.json +1 -1
- package/src/service/Aicp/v20240612/index.js +24 -0
- package/src/service/Bws/v20160304/index.js +3 -0
- package/src/service/Cdn/{v20250503 → v3}/index.js +196 -0
- package/src/service/Cen/v20160304/index.js +144 -100
- package/src/service/Clickhouse/v20210101/index.js +203 -18
- package/src/service/Cloud_advisor/v20250610/index.js +73 -0
- package/src/service/Dmp/v20240101/index.js +354 -0
- package/src/service/Dts/v20180108/index.js +378 -0
- package/src/service/Ebs/v20160304/index.js +194 -31
- package/src/service/Eip/v20160304/index.js +79 -1
- package/src/service/Influxdb/v20191010/index.js +496 -0
- package/src/service/Kad/v20161122/index.js +32 -0
- package/src/service/Kce/v20190806/index.js +233 -42
- package/src/service/Kce/v20201231/index.js +2 -2
- package/src/service/Kce/v20230101/index.js +185 -0
- package/src/service/Kce/v20230306/index.js +426 -0
- package/src/service/Kce/v20231115/index.js +57 -0
- package/src/service/Kce2/v20230101/index.js +305 -0
- package/src/service/Kci/v20200702/index.js +328 -0
- package/src/service/Kcm/v20160304/index.js +110 -0
- package/src/service/Kcrs/v20211109/index.js +87 -91
- package/src/service/Kcs/v20160701/index.js +164 -22
- package/src/service/Kcs/v20170401/index.js +1 -36
- package/src/service/Kcs/v20240701/index.js +37 -0
- package/src/service/Kead/v20200101/index.js +37 -8
- package/src/service/Ked/v1/index.js +797 -0
- package/src/service/Ket/v20170101/index.js +42 -0
- package/src/service/Kfw/v20160304/index.js +51 -0
- package/src/service/Kingpay/v1/index.js +36 -0
- package/src/service/Knad/v20230323/index.js +325 -0
- package/src/service/Kpfs/v20240930/index.js +173 -0
- package/src/service/Krds/v20160701/index.js +502 -93
- package/src/service/Krds/v20200825/index.js +48 -8
- package/src/service/Milvus/v20231010/index.js +358 -0
- package/src/service/Mongodb/v20170101/index.js +162 -12
- package/src/service/Mongodb/v20250101/index.js +36 -0
- package/src/service/Pdns/v20160304/index.js +628 -0
- package/src/service/Postgresql/v20181225/index.js +942 -0
- package/src/service/Rabbitmq/v20191017/index.js +107 -6
- package/src/service/Relyt/v20240117/index.js +37 -0
- package/src/service/Sks/v20151101/index.js +1 -0
- package/src/service/Slb/v20160304/index.js +416 -43
- package/src/service/Slb/v20250430/index.js +742 -0
- package/src/service/Sqlserver/v20190425/index.js +864 -0
- package/src/service/Sts/v20151101/index.js +19 -0
- package/src/service/Tagv2/v20200901/index.js +42 -6
- package/src/service/Ter/v20240415/index.js +106 -0
- package/src/service/Tidb/v20210520/index.js +412 -18
- package/src/service/Trade/v20250220/index.js +89 -0
- package/src/service/Trade/v20250321/index.js +85 -0
- package/src/service/Trade/v20250828/index.js +48 -0
- package/src/service/Vpc/v20160304/index.js +32 -0
- package/src/service/Waf/v20200707/index.js +187 -4
|
@@ -32,7 +32,7 @@ module.exports = class Client extends BaseClient {
|
|
|
32
32
|
Action: "ListInstance"
|
|
33
33
|
},
|
|
34
34
|
headers: {
|
|
35
|
-
"Content-Type": "application/
|
|
35
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
paramsType: {
|
|
@@ -54,7 +54,7 @@ module.exports = class Client extends BaseClient {
|
|
|
54
54
|
Action: "DescribeInstance"
|
|
55
55
|
},
|
|
56
56
|
headers: {
|
|
57
|
-
"Content-Type": "application/
|
|
57
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
paramsType: {
|
|
@@ -95,7 +95,8 @@ module.exports = class Client extends BaseClient {
|
|
|
95
95
|
Az: "String",
|
|
96
96
|
NodeNum: "Int",
|
|
97
97
|
PreferredBackupTime: "String",
|
|
98
|
-
SecurityGroupId: "String"
|
|
98
|
+
SecurityGroupId: "String",
|
|
99
|
+
ProductWhat: "Int"
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
DeleteInstance: {
|
|
@@ -107,7 +108,7 @@ module.exports = class Client extends BaseClient {
|
|
|
107
108
|
Action: "DeleteInstance"
|
|
108
109
|
},
|
|
109
110
|
headers: {
|
|
110
|
-
"Content-Type": "application/
|
|
111
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
111
112
|
}
|
|
112
113
|
},
|
|
113
114
|
paramsType: {
|
|
@@ -115,6 +116,22 @@ module.exports = class Client extends BaseClient {
|
|
|
115
116
|
DeleteDirectly: "Boolean"
|
|
116
117
|
}
|
|
117
118
|
},
|
|
119
|
+
RestartInstance: {
|
|
120
|
+
url: "/",
|
|
121
|
+
method: "POST",
|
|
122
|
+
config: {
|
|
123
|
+
query: {
|
|
124
|
+
Version: "2021-01-01",
|
|
125
|
+
Action: "RestartInstance"
|
|
126
|
+
},
|
|
127
|
+
headers: {
|
|
128
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
paramsType: {
|
|
132
|
+
instanceIds: "String"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
118
135
|
RenameInstance: {
|
|
119
136
|
url: "/",
|
|
120
137
|
method: "POST",
|
|
@@ -141,7 +158,7 @@ module.exports = class Client extends BaseClient {
|
|
|
141
158
|
Action: "ListSecurityGroup"
|
|
142
159
|
},
|
|
143
160
|
headers: {
|
|
144
|
-
"Content-Type": "application/
|
|
161
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
145
162
|
}
|
|
146
163
|
},
|
|
147
164
|
paramsType: {
|
|
@@ -157,7 +174,7 @@ module.exports = class Client extends BaseClient {
|
|
|
157
174
|
Action: "DescribeSecurityGroup"
|
|
158
175
|
},
|
|
159
176
|
headers: {
|
|
160
|
-
"Content-Type": "application/
|
|
177
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
161
178
|
}
|
|
162
179
|
},
|
|
163
180
|
paramsType: {
|
|
@@ -192,7 +209,7 @@ module.exports = class Client extends BaseClient {
|
|
|
192
209
|
Action: "DeleteSecurityGroup"
|
|
193
210
|
},
|
|
194
211
|
headers: {
|
|
195
|
-
"Content-Type": "application/
|
|
212
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
196
213
|
}
|
|
197
214
|
},
|
|
198
215
|
paramsType: {
|
|
@@ -301,7 +318,7 @@ module.exports = class Client extends BaseClient {
|
|
|
301
318
|
Action: "DeleteSecurityRule"
|
|
302
319
|
},
|
|
303
320
|
headers: {
|
|
304
|
-
"Content-Type": "application/
|
|
321
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
305
322
|
}
|
|
306
323
|
},
|
|
307
324
|
paramsType: {
|
|
@@ -319,7 +336,7 @@ module.exports = class Client extends BaseClient {
|
|
|
319
336
|
Action: "ListSecuredInstance"
|
|
320
337
|
},
|
|
321
338
|
headers: {
|
|
322
|
-
"Content-Type": "application/
|
|
339
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
323
340
|
}
|
|
324
341
|
},
|
|
325
342
|
paramsType: {
|
|
@@ -340,7 +357,7 @@ module.exports = class Client extends BaseClient {
|
|
|
340
357
|
Action: "ListUnsecuredInstance"
|
|
341
358
|
},
|
|
342
359
|
headers: {
|
|
343
|
-
"Content-Type": "application/
|
|
360
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
344
361
|
}
|
|
345
362
|
},
|
|
346
363
|
paramsType: {
|
|
@@ -359,7 +376,7 @@ module.exports = class Client extends BaseClient {
|
|
|
359
376
|
Action: "ListRecycledInstance"
|
|
360
377
|
},
|
|
361
378
|
headers: {
|
|
362
|
-
"Content-Type": "application/
|
|
379
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
363
380
|
}
|
|
364
381
|
},
|
|
365
382
|
paramsType: {
|
|
@@ -396,7 +413,7 @@ module.exports = class Client extends BaseClient {
|
|
|
396
413
|
Action: "DropRecycledInstance"
|
|
397
414
|
},
|
|
398
415
|
headers: {
|
|
399
|
-
"Content-Type": "application/
|
|
416
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
400
417
|
}
|
|
401
418
|
},
|
|
402
419
|
paramsType: {
|
|
@@ -412,7 +429,7 @@ module.exports = class Client extends BaseClient {
|
|
|
412
429
|
Action: "ListRegion"
|
|
413
430
|
},
|
|
414
431
|
headers: {
|
|
415
|
-
"Content-Type": "application/
|
|
432
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
416
433
|
}
|
|
417
434
|
},
|
|
418
435
|
paramsType: {
|
|
@@ -428,7 +445,7 @@ module.exports = class Client extends BaseClient {
|
|
|
428
445
|
Action: "DescRegion"
|
|
429
446
|
},
|
|
430
447
|
headers: {
|
|
431
|
-
"Content-Type": "application/
|
|
448
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
432
449
|
}
|
|
433
450
|
},
|
|
434
451
|
paramsType: {
|
|
@@ -481,7 +498,7 @@ module.exports = class Client extends BaseClient {
|
|
|
481
498
|
Action: "DescribeEngineDefaultParameters"
|
|
482
499
|
},
|
|
483
500
|
headers: {
|
|
484
|
-
"Content-Type": "application/
|
|
501
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
485
502
|
}
|
|
486
503
|
},
|
|
487
504
|
paramsType: {
|
|
@@ -498,12 +515,12 @@ module.exports = class Client extends BaseClient {
|
|
|
498
515
|
Action: "ModifyDBParameterGroup"
|
|
499
516
|
},
|
|
500
517
|
headers: {
|
|
501
|
-
"Content-Type": "application/
|
|
518
|
+
"Content-Type": "application/json"
|
|
502
519
|
}
|
|
503
520
|
},
|
|
504
521
|
paramsType: {
|
|
505
522
|
InstanceId: "String",
|
|
506
|
-
Parameters: "
|
|
523
|
+
Parameters: "String",
|
|
507
524
|
ConfigType: "String"
|
|
508
525
|
}
|
|
509
526
|
},
|
|
@@ -516,7 +533,7 @@ module.exports = class Client extends BaseClient {
|
|
|
516
533
|
Action: "DescribeDBInstanceParameters"
|
|
517
534
|
},
|
|
518
535
|
headers: {
|
|
519
|
-
"Content-Type": "application/
|
|
536
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
520
537
|
}
|
|
521
538
|
},
|
|
522
539
|
paramsType: {
|
|
@@ -533,13 +550,181 @@ module.exports = class Client extends BaseClient {
|
|
|
533
550
|
Action: "ResetDBParameter"
|
|
534
551
|
},
|
|
535
552
|
headers: {
|
|
536
|
-
"Content-Type": "application/
|
|
553
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
537
554
|
}
|
|
538
555
|
},
|
|
539
556
|
paramsType: {
|
|
540
557
|
InstanceId: "String",
|
|
541
558
|
ConfigType: "String"
|
|
542
559
|
}
|
|
560
|
+
},
|
|
561
|
+
DescribeBuckets: {
|
|
562
|
+
url: "/",
|
|
563
|
+
method: "GET",
|
|
564
|
+
config: {
|
|
565
|
+
query: {
|
|
566
|
+
Version: "2021-01-01",
|
|
567
|
+
Action: "DescribeBuckets"
|
|
568
|
+
},
|
|
569
|
+
headers: {
|
|
570
|
+
"Content-Type": "application/json"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
paramsType: {}
|
|
574
|
+
},
|
|
575
|
+
OperateHotAndColdSeparation: {
|
|
576
|
+
url: "/",
|
|
577
|
+
method: "GET",
|
|
578
|
+
config: {
|
|
579
|
+
query: {
|
|
580
|
+
Version: "2021-01-01",
|
|
581
|
+
Action: "OperateHotAndColdSeparation"
|
|
582
|
+
},
|
|
583
|
+
headers: {
|
|
584
|
+
"Content-Type": "application/json"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
paramsType: {}
|
|
588
|
+
},
|
|
589
|
+
CreateInstanceAccount: {
|
|
590
|
+
url: "/",
|
|
591
|
+
method: "POST",
|
|
592
|
+
config: {
|
|
593
|
+
query: {
|
|
594
|
+
Version: "2021-01-01",
|
|
595
|
+
Action: "CreateInstanceAccount"
|
|
596
|
+
},
|
|
597
|
+
headers: {
|
|
598
|
+
"Content-Type": "application/json"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
paramsType: {
|
|
602
|
+
Name: "String",
|
|
603
|
+
Password: "String",
|
|
604
|
+
InstanceId: "String",
|
|
605
|
+
Description: "String"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
ModifyInstanceAccountPrivileges: {
|
|
609
|
+
url: "/",
|
|
610
|
+
method: "POST",
|
|
611
|
+
config: {
|
|
612
|
+
query: {
|
|
613
|
+
Version: "2021-01-01",
|
|
614
|
+
Action: "ModifyInstanceAccountPrivileges"
|
|
615
|
+
},
|
|
616
|
+
headers: {
|
|
617
|
+
"Content-Type": "application/json"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
paramsType: {
|
|
621
|
+
InstanceId: "String",
|
|
622
|
+
InstanceAccountName: "String",
|
|
623
|
+
InstanceAccountPrivileges: "Filter"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
DeleteInstanceAccount: {
|
|
627
|
+
url: "/",
|
|
628
|
+
method: "GET",
|
|
629
|
+
config: {
|
|
630
|
+
query: {
|
|
631
|
+
Version: "2021-01-01",
|
|
632
|
+
Action: "DeleteInstanceAccount"
|
|
633
|
+
},
|
|
634
|
+
headers: {
|
|
635
|
+
"Content-Type": "application/json"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
paramsType: {
|
|
639
|
+
InstanceId: "String",
|
|
640
|
+
InstanceAccountName: "String"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
DescribeInstanceAccounts: {
|
|
644
|
+
url: "/",
|
|
645
|
+
method: "GET",
|
|
646
|
+
config: {
|
|
647
|
+
query: {
|
|
648
|
+
Version: "2021-01-01",
|
|
649
|
+
Action: "DescribeInstanceAccounts"
|
|
650
|
+
},
|
|
651
|
+
headers: {
|
|
652
|
+
"Content-Type": "application/json"
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
paramsType: {
|
|
656
|
+
InstanceId: "String"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
DescribeInstanceDatabases: {
|
|
660
|
+
url: "/",
|
|
661
|
+
method: "GET",
|
|
662
|
+
config: {
|
|
663
|
+
query: {
|
|
664
|
+
Version: "2021-01-01",
|
|
665
|
+
Action: "DescribeInstanceDatabases"
|
|
666
|
+
},
|
|
667
|
+
headers: {
|
|
668
|
+
"Content-Type": "application/json"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
paramsType: {
|
|
672
|
+
InstanceId: "String"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
ModifyInstanceAccountInfo: {
|
|
676
|
+
url: "/",
|
|
677
|
+
method: "POST",
|
|
678
|
+
config: {
|
|
679
|
+
query: {
|
|
680
|
+
Version: "2021-01-01",
|
|
681
|
+
Action: "ModifyInstanceAccountInfo"
|
|
682
|
+
},
|
|
683
|
+
headers: {
|
|
684
|
+
"Content-Type": "application/json"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
paramsType: {
|
|
688
|
+
InstanceId: "String",
|
|
689
|
+
InstanceAccountName: "String",
|
|
690
|
+
InstanceAccountPassword: "String",
|
|
691
|
+
InstanceAccountDescription: "String"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
DescribeInstanceShardInfo: {
|
|
695
|
+
url: "/",
|
|
696
|
+
method: "GET",
|
|
697
|
+
config: {
|
|
698
|
+
query: {
|
|
699
|
+
Version: "2021-01-01",
|
|
700
|
+
Action: "DescribeInstanceShardInfo"
|
|
701
|
+
},
|
|
702
|
+
headers: {
|
|
703
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
paramsType: {
|
|
707
|
+
InstanceId: "String"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
UpdateInstanceTrialOrder: {
|
|
711
|
+
url: "/",
|
|
712
|
+
method: "GET",
|
|
713
|
+
config: {
|
|
714
|
+
query: {
|
|
715
|
+
Version: "2021-01-01",
|
|
716
|
+
Action: "UpdateInstanceTrialOrder"
|
|
717
|
+
},
|
|
718
|
+
headers: {
|
|
719
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
paramsType: {
|
|
723
|
+
InstanceId: "String",
|
|
724
|
+
OperateType: "String",
|
|
725
|
+
Duration: "Int",
|
|
726
|
+
BillType: "Int"
|
|
727
|
+
}
|
|
543
728
|
}
|
|
544
729
|
});
|
|
545
730
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
_defineProperty(this, "_baseConfig", {
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "cloud-advisor.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
15
|
+
//设置timeout
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
18
|
+
},
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "cloud-advisor"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
GetReport: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "POST",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2025-06-10",
|
|
32
|
+
Action: "GetReport"
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
paramsType: {
|
|
39
|
+
taskIDs: "Array",
|
|
40
|
+
startTime: "String",
|
|
41
|
+
endTime: "String"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
CreateTask: {
|
|
45
|
+
url: "/",
|
|
46
|
+
method: "POST",
|
|
47
|
+
config: {
|
|
48
|
+
query: {
|
|
49
|
+
Version: "2025-06-10",
|
|
50
|
+
Action: "CreateTask"
|
|
51
|
+
},
|
|
52
|
+
headers: {
|
|
53
|
+
"Content-Type": "application/json"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
paramsType: {
|
|
57
|
+
inspectionItemIDs: "Array",
|
|
58
|
+
productGroupIds: "Array",
|
|
59
|
+
inspectionItemTypes: "Array"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
ListInspectionItem: {
|
|
63
|
+
url: "/",
|
|
64
|
+
method: "POST",
|
|
65
|
+
config: {
|
|
66
|
+
query: {
|
|
67
|
+
Version: "2025-06-10",
|
|
68
|
+
Action: "ListInspectionItem"
|
|
69
|
+
},
|
|
70
|
+
headers: {
|
|
71
|
+
"Content-Type": "application/json"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
paramsType: {
|
|
75
|
+
pageNum: "Int",
|
|
76
|
+
pageSize: "Int"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|