ksyun-sdk-node 1.0.5 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/base/BaseClient.js +90 -55
  2. package/dist/index.js +9 -12
  3. package/dist/lib/fetch.js +4 -5
  4. package/dist/lib/sign.js +31 -33
  5. package/dist/lib/signautreV4.js +167 -0
  6. package/dist/service/Actiontrail/v20190401/index.js +4 -7
  7. package/dist/service/Bill/v20180601/index.js +11 -50
  8. package/dist/service/Bill/v20220601/index.js +64 -0
  9. package/dist/service/Bill_union/v20200101/index.js +48 -10
  10. package/dist/service/Bill_union/v20221222/index.js +142 -0
  11. package/dist/service/Bws/v20160304/index.js +23 -6
  12. package/dist/service/Cdn/v20160901/index.js +42 -0
  13. package/dist/service/Cdn/v20200630/index.js +410 -0
  14. package/dist/service/Cdn/v20200901/index.js +162 -0
  15. package/dist/service/Cen/v20160304/index.js +460 -0
  16. package/dist/service/Clickhouse/v20210101/index.js +546 -0
  17. package/dist/service/Ebs/v20160304/index.js +3 -6
  18. package/dist/service/Eip/v20160304/index.js +3 -6
  19. package/dist/service/Epc/v20151101/index.js +36 -60
  20. package/dist/service/Iam/v20151101/index.js +61 -7
  21. package/dist/service/Kad/v20161122/index.js +3 -6
  22. package/dist/service/Kce/v20180314/index.js +320 -0
  23. package/dist/service/Kce/v20190806/index.js +482 -0
  24. package/dist/service/Kce/v20201231/index.js +63 -0
  25. package/dist/service/Kcf/v20211215/index.js +203 -0
  26. package/dist/service/Kcm/v20160304/index.js +120 -0
  27. package/dist/service/Kcrs/v20211109/index.js +851 -0
  28. package/dist/service/Kcs/v20160701/index.js +1106 -0
  29. package/dist/service/Kcs/v20170401/index.js +81 -0
  30. package/dist/service/Kead/v20200101/index.js +3 -6
  31. package/dist/service/Kec/v20160304/index.js +107 -42
  32. package/dist/service/Ket/v20170101/index.js +141 -0
  33. package/dist/service/Kkms/v20160304/index.js +167 -0
  34. package/dist/service/Klog/v20200731/index.js +804 -0
  35. package/dist/service/Kls/v20170101/index.js +194 -0
  36. package/dist/service/Krds/v20160701/index.js +1302 -0
  37. package/dist/service/Krds/v20200825/index.js +174 -0
  38. package/dist/service/Memcached/v20180627/index.js +249 -0
  39. package/dist/service/Mongodb/v20170101/index.js +22 -7
  40. package/dist/service/Monitor/v20100525/index.js +70 -0
  41. package/dist/service/Monitor/v20181114/index.js +49 -0
  42. package/dist/service/Monitor/v20210101/index.js +179 -0
  43. package/dist/service/Monitor/v20220101/index.js +68 -0
  44. package/dist/service/Rabbitmq/v20191017/index.js +242 -0
  45. package/dist/service/Resourcemanager/v20210320/index.js +3 -6
  46. package/dist/service/Sks/v20151101/index.js +3 -6
  47. package/dist/service/Slb/v20160304/index.js +517 -8
  48. package/dist/service/Sts/v20151101/index.js +4 -7
  49. package/dist/service/Tagv2/v20200901/index.js +174 -0
  50. package/dist/service/Tidb/v20210520/index.js +363 -0
  51. package/dist/service/Trade/v20200114/index.js +3 -6
  52. package/dist/service/Trade/v20200831/index.js +3 -6
  53. package/dist/service/Vpc/v20160304/index.js +239 -7
  54. package/dist/service/Waf/v20200707/index.js +248 -0
  55. package/package.json +1 -1
  56. package/src/base/BaseClient.js +85 -36
  57. package/src/lib/signautreV4.js +166 -0
  58. package/src/service/Actiontrail/v20190401/index.js +1 -1
  59. package/src/service/Bill/v20180601/index.js +6 -46
  60. package/src/service/Bill/v20220601/index.js +56 -0
  61. package/src/service/Bill_union/v20200101/index.js +37 -0
  62. package/src/service/Bill_union/v20221222/index.js +134 -0
  63. package/src/service/Bws/v20160304/index.js +20 -0
  64. package/src/service/{Bill_union/v20211209 → Cdn/v20160901}/index.js +6 -6
  65. package/src/service/Cdn/v20200630/index.js +402 -0
  66. package/src/service/Cdn/v20200901/index.js +154 -0
  67. package/src/service/Cen/v20160304/index.js +452 -0
  68. package/src/service/Clickhouse/v20210101/index.js +538 -0
  69. package/src/service/Ebs/v20160304/index.js +1 -4
  70. package/src/service/Epc/v20151101/index.js +26 -50
  71. package/src/service/Iam/v20151101/index.js +57 -0
  72. package/src/service/Kce/v20180314/index.js +312 -0
  73. package/src/service/Kce/v20190806/index.js +474 -0
  74. package/src/service/Kce/v20201231/index.js +55 -0
  75. package/src/service/Kcf/v20211215/index.js +197 -0
  76. package/src/service/Kcm/v20160304/index.js +112 -0
  77. package/src/service/Kcrs/v20211109/index.js +857 -0
  78. package/src/service/Kcs/v20160701/index.js +1101 -0
  79. package/src/service/Kcs/v20170401/index.js +73 -0
  80. package/src/service/Kec/v20160304/index.js +86 -22
  81. package/src/service/Ket/v20170101/index.js +133 -0
  82. package/src/service/Kkms/v20160304/index.js +159 -0
  83. package/src/service/Klog/v20200731/index.js +810 -0
  84. package/src/service/Kls/v20170101/index.js +186 -0
  85. package/src/service/Krds/v20160701/index.js +1296 -0
  86. package/src/service/Krds/v20200825/index.js +166 -0
  87. package/src/service/Memcached/v20180627/index.js +248 -0
  88. package/src/service/Mongodb/v20170101/index.js +18 -0
  89. package/src/service/Monitor/v20100525/index.js +62 -0
  90. package/src/service/{Slb/v20171210 → Monitor/v20181114}/index.js +13 -11
  91. package/src/service/Monitor/v20210101/index.js +172 -0
  92. package/src/service/Monitor/v20220101/index.js +60 -0
  93. package/src/service/Rabbitmq/v20191017/index.js +234 -0
  94. package/src/service/Slb/v20160304/index.js +512 -0
  95. package/src/service/Sts/v20151101/index.js +1 -1
  96. package/src/service/Tagv2/v20200901/index.js +166 -0
  97. package/src/service/Tidb/v20210520/index.js +355 -0
  98. package/src/service/Vpc/v20160304/index.js +235 -0
  99. package/src/service/Waf/v20200707/index.js +240 -0
@@ -375,6 +375,8 @@ module.exports = class Client extends BaseClient {
375
375
  'PortRangeFrom': 'Int',
376
376
  'PortRangeTo': 'Int',
377
377
  'RuleTag': 'String',
378
+ 'Priority': 'Int',
379
+ 'Policy': 'String',
378
380
  }
379
381
  },
380
382
  'RevokeSecurityGroupEntry': {
@@ -1243,6 +1245,24 @@ module.exports = class Client extends BaseClient {
1243
1245
  'NextToken': 'String',
1244
1246
  }
1245
1247
  },
1248
+ 'ModifyPrivateIpAddressAttribute': {
1249
+ 'url': '/',
1250
+ 'method': 'GET',
1251
+ 'config': {
1252
+ 'query': {
1253
+ 'Version': '2016-03-04',
1254
+ 'Action': 'ModifyPrivateIpAddressAttribute',
1255
+ },
1256
+ 'headers': {
1257
+ 'Content-Type': 'application/x-www-form-urlencoded'
1258
+ },
1259
+ },
1260
+ 'paramsType': {
1261
+ 'SubnetId': 'String',
1262
+ 'PrivateIpAddress': 'String',
1263
+ 'Status': 'String',
1264
+ }
1265
+ },
1246
1266
  'DeleteNetworkInterface': {
1247
1267
  'url': '/',
1248
1268
  'method': 'GET',
@@ -1295,6 +1315,92 @@ module.exports = class Client extends BaseClient {
1295
1315
  'NetworkInterfaceId': 'String',
1296
1316
  }
1297
1317
  },
1318
+ 'CreateHaVip': {
1319
+ 'url': '/',
1320
+ 'method': 'GET',
1321
+ 'config': {
1322
+ 'query': {
1323
+ 'Version': '2016-03-04',
1324
+ 'Action': 'CreateHaVip',
1325
+ },
1326
+ 'headers': {
1327
+ 'Content-Type': 'application/x-www-form-urlencoded'
1328
+ },
1329
+ },
1330
+ 'paramsType': {
1331
+ 'SubnetId': 'String',
1332
+ 'IpAddress': 'String',
1333
+ }
1334
+ },
1335
+ 'DeleteHaVip': {
1336
+ 'url': '/',
1337
+ 'method': 'GET',
1338
+ 'config': {
1339
+ 'query': {
1340
+ 'Version': '2016-03-04',
1341
+ 'Action': 'DeleteHaVip',
1342
+ },
1343
+ 'headers': {
1344
+ 'Content-Type': 'application/x-www-form-urlencoded'
1345
+ },
1346
+ },
1347
+ 'paramsType': {
1348
+ 'HaVipId': 'String',
1349
+ }
1350
+ },
1351
+ 'AssociateHaVip': {
1352
+ 'url': '/',
1353
+ 'method': 'GET',
1354
+ 'config': {
1355
+ 'query': {
1356
+ 'Version': '2016-03-04',
1357
+ 'Action': 'AssociateHaVip',
1358
+ },
1359
+ 'headers': {
1360
+ 'Content-Type': 'application/x-www-form-urlencoded'
1361
+ },
1362
+ },
1363
+ 'paramsType': {
1364
+ 'NetworkInterfaceId': 'String',
1365
+ 'HaVipId': 'String',
1366
+ }
1367
+ },
1368
+ 'UnAssociateHaVip': {
1369
+ 'url': '/',
1370
+ 'method': 'GET',
1371
+ 'config': {
1372
+ 'query': {
1373
+ 'Version': '2016-03-04',
1374
+ 'Action': 'UnAssociateHaVip',
1375
+ },
1376
+ 'headers': {
1377
+ 'Content-Type': 'application/x-www-form-urlencoded'
1378
+ },
1379
+ },
1380
+ 'paramsType': {
1381
+ 'NetworkInterfaceId': 'String',
1382
+ 'HaVipId': 'String',
1383
+ }
1384
+ },
1385
+ 'DescribeHaVip': {
1386
+ 'url': '/',
1387
+ 'method': 'GET',
1388
+ 'config': {
1389
+ 'query': {
1390
+ 'Version': '2016-03-04',
1391
+ 'Action': 'DescribeHaVip',
1392
+ },
1393
+ 'headers': {
1394
+ 'Content-Type': 'application/x-www-form-urlencoded'
1395
+ },
1396
+ },
1397
+ 'paramsType': {
1398
+ 'HaVipId': 'Filter',
1399
+ 'Filter': 'Filter',
1400
+ 'MaxResults': 'Int',
1401
+ 'NextToken': 'String',
1402
+ }
1403
+ },
1298
1404
  'DeleteDirectConnectGatewayRoute': {
1299
1405
  'url': '/',
1300
1406
  'method': 'GET',
@@ -1431,5 +1537,134 @@ module.exports = class Client extends BaseClient {
1431
1537
  'PrivateIpAddress': 'Filter',
1432
1538
  }
1433
1539
  },
1540
+ 'DescribeVpnGatewayRoutes': {
1541
+ 'url': '/',
1542
+ 'method': 'GET',
1543
+ 'config': {
1544
+ 'query': {
1545
+ 'Version': '2016-03-04',
1546
+ 'Action': 'DescribeVpnGatewayRoutes',
1547
+ },
1548
+ 'headers': {
1549
+ 'Content-Type': 'application/x-www-form-urlencoded'
1550
+ },
1551
+ },
1552
+ 'paramsType': {
1553
+ 'vpnGatewayId': 'String',
1554
+ 'Filter': 'Filter',
1555
+ 'maxResults': 'Int',
1556
+ 'nextToken': 'String',
1557
+ }
1558
+ },
1559
+ 'CreateVpnGatewayRoute': {
1560
+ 'url': '/',
1561
+ 'method': 'POST',
1562
+ 'config': {
1563
+ 'query': {
1564
+ 'Version': '2016-03-04',
1565
+ 'Action': 'CreateVpnGatewayRoute',
1566
+ },
1567
+ 'headers': {
1568
+ 'Content-Type': 'application/x-www-form-urlencoded'
1569
+ },
1570
+ },
1571
+ 'paramsType': {
1572
+ 'VpnGatewayId': 'String',
1573
+ 'DestinationCidrBlock': 'String',
1574
+ 'NextHopType': 'String',
1575
+ 'NextHopInstanceId': 'String',
1576
+ }
1577
+ },
1578
+ 'DeleteVpnGatewayRoute': {
1579
+ 'url': '/',
1580
+ 'method': 'GET',
1581
+ 'config': {
1582
+ 'query': {
1583
+ 'Version': '2016-03-04',
1584
+ 'Action': 'DeleteVpnGatewayRoute',
1585
+ },
1586
+ 'headers': {
1587
+ 'Content-Type': 'application/x-www-form-urlencoded'
1588
+ },
1589
+ },
1590
+ 'paramsType': {
1591
+ 'VpnGatewayRouteId': 'String',
1592
+ }
1593
+ },
1594
+ 'DescribeVpnTunnelIpsecStatus': {
1595
+ 'url': '/',
1596
+ 'method': 'GET',
1597
+ 'config': {
1598
+ 'query': {
1599
+ 'Version': '2016-03-04',
1600
+ 'Action': 'DescribeVpnTunnelIpsecStatus',
1601
+ },
1602
+ 'headers': {
1603
+ 'Content-Type': 'application/x-www-form-urlencoded'
1604
+ },
1605
+ },
1606
+ 'paramsType': {
1607
+ 'IsMaster': 'Int',
1608
+ 'VpnTunnelId': 'Filter',
1609
+ }
1610
+ },
1611
+ 'QueryNatTopVifMonitor': {
1612
+ 'url': '/',
1613
+ 'method': 'GET',
1614
+ 'config': {
1615
+ 'query': {
1616
+ 'Version': '2016-03-04',
1617
+ 'Action': 'QueryNatTopVifMonitor',
1618
+ },
1619
+ 'headers': {
1620
+ 'Content-Type': 'application/x-www-form-urlencoded'
1621
+ },
1622
+ },
1623
+ 'paramsType': {
1624
+ 'NatId': 'String',
1625
+ 'StartTime': 'String',
1626
+ 'EndTime': 'String',
1627
+ 'SortType': 'String',
1628
+ 'InstanceType': 'String',
1629
+ 'ip': 'String',
1630
+ }
1631
+ },
1632
+ 'ModifyNatIpStatus': {
1633
+ 'url': '/',
1634
+ 'method': 'GET',
1635
+ 'config': {
1636
+ 'query': {
1637
+ 'Version': '2016-03-04',
1638
+ 'Action': 'ModifyNatIpStatus',
1639
+ },
1640
+ 'headers': {
1641
+ 'Content-Type': 'application/x-www-form-urlencoded'
1642
+ },
1643
+ },
1644
+ 'paramsType': {
1645
+ 'NatIpId': 'String',
1646
+ 'Enabled': 'Boolean',
1647
+ }
1648
+ },
1649
+ 'QueryPeerTopVifMonitor': {
1650
+ 'url': '/',
1651
+ 'method': 'GET',
1652
+ 'config': {
1653
+ 'query': {
1654
+ 'Version': '2016-03-04',
1655
+ 'Action': 'QueryPeerTopVifMonitor',
1656
+ },
1657
+ 'headers': {
1658
+ 'Content-Type': 'application/x-www-form-urlencoded'
1659
+ },
1660
+ },
1661
+ 'paramsType': {
1662
+ 'VpcId': 'String',
1663
+ 'StartTime': 'String',
1664
+ 'EndTime': 'String',
1665
+ 'SortType': 'String',
1666
+ 'Ip': 'String',
1667
+ }
1668
+ },
1434
1669
  }
1435
1670
  }
@@ -0,0 +1,240 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ 'protocol': 'http://',
6
+ 'endpoint': 'waf.api.ksyun.com',
7
+ 'config': {
8
+ 'timeout': 60, //设置timeout
9
+ 'headers': {
10
+ 'Accept': 'application/json'
11
+ },
12
+ 'credentials': {
13
+ 'region': 'cn-shanghai-3',
14
+ 'service': 'waf',
15
+ },
16
+ },
17
+ }
18
+ _apiList = {
19
+ 'CreateDomain': {
20
+ 'url': '/',
21
+ 'method': 'GET',
22
+ 'config': {
23
+ 'query': {
24
+ 'Version': '2020-07-07',
25
+ 'Action': 'CreateDomain',
26
+ },
27
+ 'headers': {
28
+ 'Content-Type': 'application/x-www-form-urlencoded'
29
+ },
30
+ },
31
+ 'paramsType': {
32
+ 'ResourceRecord': 'String',
33
+ 'HttpRewrite': 'Boolean',
34
+ 'HttpSource': 'Boolean',
35
+ 'CertificateId': 'String',
36
+ 'CertificateRegion': 'String',
37
+ 'LbMethod': 'String',
38
+ 'HasProxy': 'Boolean',
39
+ 'ProjectId': 'Int',
40
+ 'HeaderMark': 'String',
41
+ 'HeaderValue': 'String',
42
+ 'HealthMonitor': 'String',
43
+ 'HttpPort': 'Filter',
44
+ 'HttpsPort': 'Filter',
45
+ 'Sources': 'String',
46
+ }
47
+ },
48
+ 'DescribeDomains': {
49
+ 'url': '/',
50
+ 'method': 'GET',
51
+ 'config': {
52
+ 'query': {
53
+ 'Version': '2020-07-07',
54
+ 'Action': 'DescribeDomains',
55
+ },
56
+ 'headers': {
57
+ 'Content-Type': 'application/x-www-form-urlencoded'
58
+ },
59
+ },
60
+ 'paramsType': {
61
+ 'ResourceRecord': 'String',
62
+ }
63
+ },
64
+ 'ModifyDomain': {
65
+ 'url': '/',
66
+ 'method': 'GET',
67
+ 'config': {
68
+ 'query': {
69
+ 'Version': '2020-07-07',
70
+ 'Action': 'ModifyDomain',
71
+ },
72
+ 'headers': {
73
+ 'Content-Type': 'application/x-www-form-urlencoded'
74
+ },
75
+ },
76
+ 'paramsType': {
77
+ 'ResourceRecordId': 'String',
78
+ 'HttpRewrite': 'Boolean',
79
+ 'HttpSource': 'Boolean',
80
+ 'CertificateId': 'String',
81
+ 'CertificateRegion': 'String',
82
+ 'LbMethod': 'String',
83
+ 'HasProxy': 'Boolean',
84
+ 'ProjectId': 'Int',
85
+ 'HeaderMark': 'String',
86
+ 'HeaderValue': 'String',
87
+ 'HealthMonitor': 'String',
88
+ 'HttpPort': 'Filter',
89
+ 'HttpsPort': 'Filter',
90
+ 'Sources': 'String',
91
+ }
92
+ },
93
+ 'DeleteDomain': {
94
+ 'url': '/',
95
+ 'method': 'GET',
96
+ 'config': {
97
+ 'query': {
98
+ 'Version': '2020-07-07',
99
+ 'Action': 'DeleteDomain',
100
+ },
101
+ 'headers': {
102
+ 'Content-Type': 'application/x-www-form-urlencoded'
103
+ },
104
+ },
105
+ 'paramsType': {
106
+ 'ResourceRecordId': 'String',
107
+ }
108
+ },
109
+ 'CreateAccessControlRule': {
110
+ 'url': '/',
111
+ 'method': 'GET',
112
+ 'config': {
113
+ 'query': {
114
+ 'Version': '2020-07-07',
115
+ 'Action': 'CreateAccessControlRule',
116
+ },
117
+ 'headers': {
118
+ 'Content-Type': 'application/x-www-form-urlencoded'
119
+ },
120
+ },
121
+ 'paramsType': {
122
+ 'ResourceRecordId': 'String',
123
+ 'RuleName': 'String',
124
+ 'RuleType': 'String',
125
+ 'ArgName': 'String',
126
+ 'RuleData': 'String',
127
+ 'MatchRule': 'Int',
128
+ 'Level': 'Int',
129
+ 'RuleAction': 'Int',
130
+ 'Status': 'Boolean',
131
+ }
132
+ },
133
+ 'DescribeAccessControlRules': {
134
+ 'url': '/',
135
+ 'method': 'GET',
136
+ 'config': {
137
+ 'query': {
138
+ 'Version': '2020-07-07',
139
+ 'Action': 'DescribeAccessControlRules',
140
+ },
141
+ 'headers': {
142
+ 'Content-Type': 'application/x-www-form-urlencoded'
143
+ },
144
+ },
145
+ 'paramsType': {
146
+ 'RuleId': 'String',
147
+ 'ResourceRecordId': 'String',
148
+ 'RuleName': 'String',
149
+ }
150
+ },
151
+ 'ModifyAccessControlRule': {
152
+ 'url': '/',
153
+ 'method': 'GET',
154
+ 'config': {
155
+ 'query': {
156
+ 'Version': '2020-07-07',
157
+ 'Action': 'ModifyAccessControlRule',
158
+ },
159
+ 'headers': {
160
+ 'Content-Type': 'application/x-www-form-urlencoded'
161
+ },
162
+ },
163
+ 'paramsType': {
164
+ 'RuleId': 'String',
165
+ 'RuleName': 'String',
166
+ 'RuleType': 'String',
167
+ 'RuleData': 'String',
168
+ 'MatchRule': 'String',
169
+ 'ArgName': 'String',
170
+ 'Level': 'Int',
171
+ 'RuleAction': 'Int',
172
+ 'Status': 'Boolean',
173
+ }
174
+ },
175
+ 'DeleteAccessControlRule': {
176
+ 'url': '/',
177
+ 'method': 'GET',
178
+ 'config': {
179
+ 'query': {
180
+ 'Version': '2020-07-07',
181
+ 'Action': 'DeleteAccessControlRule',
182
+ },
183
+ 'headers': {
184
+ 'Content-Type': 'application/x-www-form-urlencoded'
185
+ },
186
+ },
187
+ 'paramsType': {
188
+ 'RuleId': 'String',
189
+ }
190
+ },
191
+ 'DescribeCertificates': {
192
+ 'url': '/',
193
+ 'method': 'GET',
194
+ 'config': {
195
+ 'query': {
196
+ 'Version': '2020-07-07',
197
+ 'Action': 'DescribeCertificates',
198
+ },
199
+ 'headers': {
200
+ 'Content-Type': 'application/x-www-form-urlencoded'
201
+ },
202
+ },
203
+ 'paramsType': {
204
+ 'Request': 'String',
205
+ }
206
+ },
207
+ 'CreateIpv6Protection': {
208
+ 'url': '/',
209
+ 'method': 'GET',
210
+ 'config': {
211
+ 'query': {
212
+ 'Version': '2020-07-07',
213
+ 'Action': 'CreateIpv6Protection',
214
+ },
215
+ 'headers': {
216
+ 'Content-Type': 'application/x-www-form-urlencoded'
217
+ },
218
+ },
219
+ 'paramsType': {
220
+ 'ResourceRecordId': 'Array',
221
+ }
222
+ },
223
+ 'DeleteIpv6Protection': {
224
+ 'url': '/',
225
+ 'method': 'GET',
226
+ 'config': {
227
+ 'query': {
228
+ 'Version': '2020-07-07',
229
+ 'Action': 'DeleteIpv6Protection',
230
+ },
231
+ 'headers': {
232
+ 'Content-Type': 'application/x-www-form-urlencoded'
233
+ },
234
+ },
235
+ 'paramsType': {
236
+ 'ResourceRecordId': 'Array',
237
+ }
238
+ },
239
+ }
240
+ }