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
@@ -0,0 +1,197 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ 'protocol': 'http://',
6
+ 'endpoint': 'kcf.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': 'kcf',
15
+ },
16
+ },
17
+ }
18
+ _apiList = {
19
+ 'GetLogDate': {
20
+ 'url': '/',
21
+ 'method': 'GET',
22
+ 'config': {
23
+ 'query': {
24
+ 'Version': '2021-12-15',
25
+ 'Action': 'GetLogDate',
26
+ },
27
+ 'headers': {
28
+ 'Content-Type': 'application/x-www-form-urlencoded'
29
+ },
30
+ },
31
+ 'paramsType': {
32
+ 'id': 'Int',
33
+ }
34
+ },
35
+ 'CreateFunction': {
36
+ 'url': '/',
37
+ 'method': 'GET',
38
+ 'config': {
39
+ 'query': {
40
+ 'Version': '2021-12-15',
41
+ 'Action': 'CreateFunction',
42
+ },
43
+ 'headers': {
44
+ 'Content-Type': 'application/json'
45
+ },
46
+ },
47
+ 'paramsType': {
48
+ 'Id': 'String',
49
+ 'Name': 'String',
50
+ 'Namespace': 'String',
51
+ 'Runtime': 'String',
52
+ 'CaPort': 'Int',
53
+ 'StartupCommand': 'Array',
54
+ 'Description': 'String',
55
+ 'Timeout': 'Int',
56
+ 'MemorySize': 'Int',
57
+ 'SingleInstanceConcurrency': 'Int',
58
+ 'InternetAccess': 'Boolean',
59
+ 'Code': 'Object',
60
+ 'Environment': 'Object',
61
+ 'VpcConfig': 'Object',
62
+ 'LogConfig': 'Object',
63
+ 'LivenessProbeConfig': 'Object',
64
+ 'ReadinessProbeConfig': 'Object',
65
+ 'Layers': 'Array',
66
+ }
67
+ },
68
+ 'CheckFunctionService': {
69
+ 'url': '/',
70
+ 'method': 'GET',
71
+ 'config': {
72
+ 'query': {
73
+ 'Version': '2021-12-15',
74
+ 'Action': 'CheckFunctionService',
75
+ },
76
+ 'headers': {
77
+ 'Content-Type': 'application/x-www-form-urlencoded'
78
+ },
79
+ },
80
+ 'paramsType': {
81
+ }
82
+ },
83
+ 'OpenFunctionService': {
84
+ 'url': '/',
85
+ 'method': 'GET',
86
+ 'config': {
87
+ 'query': {
88
+ 'Version': '2021-12-15',
89
+ 'Action': 'OpenFunctionService',
90
+ },
91
+ 'headers': {
92
+ 'Content-Type': 'application/x-www-form-urlencoded'
93
+ },
94
+ },
95
+ 'paramsType': {
96
+ }
97
+ },
98
+ 'DeleteFunction': {
99
+ 'url': '/',
100
+ 'method': 'GET',
101
+ 'config': {
102
+ 'query': {
103
+ 'Version': '2021-12-15',
104
+ 'Action': 'DeleteFunction',
105
+ },
106
+ 'headers': {
107
+ 'Content-Type': 'application/x-www-form-urlencoded'
108
+ },
109
+ },
110
+ 'paramsType': {
111
+ 'Id': 'String',
112
+ }
113
+ },
114
+ 'CreateTrigger': {
115
+ 'url': '/',
116
+ 'method': 'GET',
117
+ 'config': {
118
+ 'query': {
119
+ 'Version': '2021-12-15',
120
+ 'Action': 'CreateTrigger',
121
+ },
122
+ 'headers': {
123
+ 'Content-Type': 'application/json'
124
+ },
125
+ },
126
+ 'paramsType': {
127
+ 'FunctionId': 'String',
128
+ 'TriggerName': 'String',
129
+ 'Type': 'String',
130
+ 'Enable': 'Boolean',
131
+ 'TriggerDesc': 'Object',
132
+ }
133
+ },
134
+ 'DeleteTrigger': {
135
+ 'url': '/',
136
+ 'method': 'GET',
137
+ 'config': {
138
+ 'query': {
139
+ 'Version': '2021-12-15',
140
+ 'Action': 'DeleteTrigger',
141
+ },
142
+ 'headers': {
143
+ 'Content-Type': 'application/x-www-form-urlencoded'
144
+ },
145
+ },
146
+ 'paramsType': {
147
+ 'Id': 'String',
148
+ }
149
+ },
150
+ 'ModifyFunction': {
151
+ 'url': '/',
152
+ 'method': 'GET',
153
+ 'config': {
154
+ 'query': {
155
+ 'Version': '2021-12-15',
156
+ 'Action': 'ModifyFunction',
157
+ },
158
+ 'headers': {
159
+ 'Content-Type': 'application/json'
160
+ },
161
+ },
162
+ 'paramsType': {
163
+ 'Id': 'String',
164
+ 'Runtime': 'String',
165
+ 'CaPort': 'Int',
166
+ 'StartupCommand': 'Array',
167
+ 'Timeout': 'Int',
168
+ 'MemorySize': 'Int',
169
+ 'SingleInstanceConcurrency': 'Int',
170
+ 'InternetAccess': 'Boolean',
171
+ 'Code': 'Object',
172
+ 'Environment': 'Object',
173
+ 'VpcConfig': 'Object',
174
+ 'LogConfig': 'Object',
175
+ 'LivenessProbeConfig': 'Object',
176
+ 'ReadinessProbeConfig': 'Object',
177
+ 'Layers': 'Array',
178
+ }
179
+ },
180
+ 'DescribeTriggers': {
181
+ 'url': '/',
182
+ 'method': 'GET',
183
+ 'config': {
184
+ 'query': {
185
+ 'Version': '2021-12-15',
186
+ 'Action': 'DescribeTriggers',
187
+ },
188
+ 'headers': {
189
+ 'Content-Type': 'application/x-www-form-urlencoded'
190
+ },
191
+ },
192
+ 'paramsType': {
193
+ 'FunctionId': 'String',
194
+ }
195
+ },
196
+ }
197
+ }
@@ -0,0 +1,112 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ 'protocol': 'http://',
6
+ 'endpoint': 'kcm.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': 'kcm',
15
+ },
16
+ },
17
+ }
18
+ _apiList = {
19
+ 'ApplyCertificate': {
20
+ 'url': '/',
21
+ 'method': 'POST',
22
+ 'config': {
23
+ 'query': {
24
+ 'Version': '2016-03-04',
25
+ 'Action': 'ApplyCertificate',
26
+ },
27
+ 'headers': {
28
+ 'Content-Type': 'application/x-www-form-urlencoded'
29
+ },
30
+ },
31
+ 'paramsType': {
32
+ 'MainDomain': 'String',
33
+ 'CertificateCode': 'String',
34
+ 'YearLength': 'Int',
35
+ 'DomainCount': 'Int',
36
+ 'WildcardCount': 'Int',
37
+ 'ProductId': 'String',
38
+ 'SubOrderId': 'String',
39
+ 'ProjectId': 'Int',
40
+ }
41
+ },
42
+ 'UpdateCertificate': {
43
+ 'url': '/',
44
+ 'method': 'POST',
45
+ 'config': {
46
+ 'query': {
47
+ 'Version': '2016-03-04',
48
+ 'Action': 'UpdateCertificate',
49
+ },
50
+ 'headers': {
51
+ 'Content-Type': 'application/x-www-form-urlencoded'
52
+ },
53
+ },
54
+ 'paramsType': {
55
+ 'CertificateId': 'String',
56
+ 'AuthMethod': 'String',
57
+ 'CSR': 'String',
58
+ 'ContactId': 'Int',
59
+ 'CompanyId': 'Int',
60
+ 'CompanyName': 'String',
61
+ 'Department': 'String',
62
+ 'State': 'String',
63
+ 'City': 'String',
64
+ 'Address': 'String',
65
+ 'CompanyPhone': 'String',
66
+ 'PostalCode': 'String',
67
+ 'DcvEmail': 'String',
68
+ 'AdditionalDomains': 'String',
69
+ 'Wildcards': 'String',
70
+ 'Contact': 'String',
71
+ 'IsSubmit': 'String',
72
+ 'BusinessLicence': 'String',
73
+ 'CsrSource': 'String',
74
+ 'Algorithm': 'String',
75
+ }
76
+ },
77
+ 'ListCertificates': {
78
+ 'url': '/',
79
+ 'method': 'GET',
80
+ 'config': {
81
+ 'query': {
82
+ 'Version': '2016-03-04',
83
+ 'Action': 'ListCertificates',
84
+ },
85
+ 'headers': {
86
+ 'Content-Type': 'application/json'
87
+ },
88
+ },
89
+ 'paramsType': {
90
+ 'CertificateId': 'Filter',
91
+ 'ProjectId': 'Filter',
92
+ 'Filter': 'Filter',
93
+ }
94
+ },
95
+ 'GetCertificateDetail': {
96
+ 'url': '/',
97
+ 'method': 'GET',
98
+ 'config': {
99
+ 'query': {
100
+ 'Version': '2016-03-04',
101
+ 'Action': 'GetCertificateDetail',
102
+ },
103
+ 'headers': {
104
+ 'Content-Type': 'application/json'
105
+ },
106
+ },
107
+ 'paramsType': {
108
+ 'CertificateId': 'String',
109
+ }
110
+ },
111
+ }
112
+ }