ksyun-sdk-node 1.0.5 → 1.4.8

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 (133) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/dist/base/BaseClient.js +133 -52
  3. package/dist/index.js +9 -12
  4. package/dist/lib/fetch.js +4 -5
  5. package/dist/lib/sign.js +31 -33
  6. package/dist/lib/signautreV4.js +167 -0
  7. package/dist/service/Actiontrail/v20190401/index.js +34 -37
  8. package/dist/service/Aicp/v20240612/index.js +511 -0
  9. package/dist/service/Bill/v20180601/index.js +49 -88
  10. package/dist/service/Bill/v20220601/index.js +64 -0
  11. package/dist/service/Bill_union/v20200101/index.js +151 -77
  12. package/dist/service/Bill_union/v20221222/index.js +142 -0
  13. package/dist/service/Bill_union/v20250801/index.js +66 -0
  14. package/dist/service/Bws/v20160304/index.js +111 -94
  15. package/dist/service/Cdn/v20160901/index.js +89 -0
  16. package/dist/service/Cdn/v20200630/index.js +410 -0
  17. package/dist/service/Cdn/v20200901/index.js +162 -0
  18. package/dist/service/Cdn/v20211201/index.js +45 -0
  19. package/dist/service/Cdn/v20250503/index.js +71 -0
  20. package/dist/service/Cen/v20160304/index.js +460 -0
  21. package/dist/service/Clickhouse/v20210101/index.js +546 -0
  22. package/dist/service/Ebs/v20160304/index.js +265 -268
  23. package/dist/service/Eip/v20160304/index.js +104 -107
  24. package/dist/service/Epc/v20151101/index.js +1735 -784
  25. package/dist/service/Iam/v20151101/index.js +872 -711
  26. package/dist/service/Iam/v20240513/index.js +47 -0
  27. package/dist/service/Iam/v20240703/index.js +44 -0
  28. package/dist/service/Kad/v20161122/index.js +84 -87
  29. package/dist/service/Kce/v20180314/index.js +320 -0
  30. package/dist/service/Kce/v20190806/index.js +482 -0
  31. package/dist/service/Kce/v20201231/index.js +63 -0
  32. package/dist/service/Kcf/v20211215/index.js +203 -0
  33. package/dist/service/Kcm/v20160304/index.js +120 -0
  34. package/dist/service/Kcrs/v20211109/index.js +851 -0
  35. package/dist/service/Kcs/v20160701/index.js +1106 -0
  36. package/dist/service/Kcs/v20170401/index.js +81 -0
  37. package/dist/service/Kead/v20200101/index.js +28 -31
  38. package/dist/service/Kec/v20160304/index.js +1695 -1466
  39. package/dist/service/Kes/v20201215/index.js +171 -0
  40. package/dist/service/Ket/v20170101/index.js +141 -0
  41. package/dist/service/Kkms/v20160304/index.js +167 -0
  42. package/dist/service/Klog/v20200731/index.js +331 -0
  43. package/dist/service/Kls/v20170101/index.js +194 -0
  44. package/dist/service/Kmr/v20210902/index.js +422 -0
  45. package/dist/service/Kmr/v20231231/index.js +154 -0
  46. package/dist/service/Kmr/v20240814/index.js +370 -0
  47. package/dist/service/Krds/v20160701/index.js +1302 -0
  48. package/dist/service/Krds/v20200825/index.js +174 -0
  49. package/dist/service/Memcached/v20180627/index.js +249 -0
  50. package/dist/service/Mongodb/v20170101/index.js +516 -501
  51. package/dist/service/Monitor/v20100525/index.js +70 -0
  52. package/dist/service/Monitor/v20181114/index.js +49 -0
  53. package/dist/service/Monitor/v20210101/index.js +216 -0
  54. package/dist/service/Monitor/v20220101/index.js +58 -0
  55. package/dist/service/Monitor/v20250101/index.js +71 -0
  56. package/dist/service/Rabbitmq/v20191017/index.js +242 -0
  57. package/dist/service/Resourcemanager/v20210320/index.js +113 -116
  58. package/dist/service/Sks/v20151101/index.js +72 -75
  59. package/dist/service/Slb/v20160304/index.js +1299 -790
  60. package/dist/service/Sts/v20151101/index.js +26 -29
  61. package/dist/service/Tagv2/v20200901/index.js +174 -0
  62. package/dist/service/Tidb/v20210520/index.js +363 -0
  63. package/dist/service/Trade/v20200114/index.js +23 -26
  64. package/dist/service/Trade/v20200831/index.js +25 -28
  65. package/dist/service/Vpc/v20160304/index.js +2015 -1045
  66. package/dist/service/Waf/v20200707/index.js +248 -0
  67. package/example/iam.js +2 -1
  68. package/example/res.js +2 -1
  69. package/package.json +1 -1
  70. package/src/base/BaseClient.js +131 -35
  71. package/src/lib/signautreV4.js +166 -0
  72. package/src/service/Actiontrail/v20190401/index.js +42 -42
  73. package/src/service/Aicp/v20240612/index.js +503 -0
  74. package/src/service/Bill/v20180601/index.js +61 -102
  75. package/src/service/Bill/v20220601/index.js +56 -0
  76. package/src/service/Bill_union/v20200101/index.js +181 -109
  77. package/src/service/Bill_union/v20221222/index.js +134 -0
  78. package/src/service/Bill_union/v20250801/index.js +58 -0
  79. package/src/service/Bws/v20160304/index.js +139 -119
  80. package/src/service/Cdn/v20160901/index.js +81 -0
  81. package/src/service/Cdn/v20200630/index.js +402 -0
  82. package/src/service/Cdn/v20200901/index.js +154 -0
  83. package/src/service/Cdn/v20211201/index.js +37 -0
  84. package/src/service/Cdn/v20250503/index.js +63 -0
  85. package/src/service/Cen/v20160304/index.js +452 -0
  86. package/src/service/Clickhouse/v20210101/index.js +538 -0
  87. package/src/service/Ebs/v20160304/index.js +365 -368
  88. package/src/service/Eip/v20160304/index.js +135 -136
  89. package/src/service/Epc/v20151101/index.js +1984 -1033
  90. package/src/service/Iam/v20151101/index.js +1155 -993
  91. package/src/service/Iam/v20240513/index.js +39 -0
  92. package/src/service/Iam/v20240703/index.js +36 -0
  93. package/src/service/Kad/v20161122/index.js +112 -112
  94. package/src/service/Kce/v20180314/index.js +312 -0
  95. package/src/service/Kce/v20190806/index.js +474 -0
  96. package/src/service/Kce/v20201231/index.js +55 -0
  97. package/src/service/Kcf/v20211215/index.js +195 -0
  98. package/src/service/Kcm/v20160304/index.js +112 -0
  99. package/src/service/Kcrs/v20211109/index.js +843 -0
  100. package/src/service/Kcs/v20160701/index.js +1098 -0
  101. package/src/service/Kcs/v20170401/index.js +73 -0
  102. package/src/service/Kead/v20200101/index.js +36 -36
  103. package/src/service/Kec/v20160304/index.js +2061 -1838
  104. package/src/service/Kes/v20201215/index.js +163 -0
  105. package/src/service/Ket/v20170101/index.js +133 -0
  106. package/src/service/Kkms/v20160304/index.js +159 -0
  107. package/src/service/Klog/v20200731/index.js +323 -0
  108. package/src/service/Kls/v20170101/index.js +186 -0
  109. package/src/service/Kmr/v20210902/index.js +414 -0
  110. package/src/service/Kmr/v20231231/index.js +146 -0
  111. package/src/service/Kmr/v20240814/index.js +362 -0
  112. package/src/service/Krds/v20160701/index.js +1294 -0
  113. package/src/service/Krds/v20200825/index.js +166 -0
  114. package/src/service/Memcached/v20180627/index.js +241 -0
  115. package/src/service/Mongodb/v20170101/index.js +672 -654
  116. package/src/service/Monitor/v20100525/index.js +62 -0
  117. package/src/service/Monitor/v20181114/index.js +41 -0
  118. package/src/service/Monitor/v20210101/index.js +208 -0
  119. package/src/service/Monitor/v20220101/index.js +50 -0
  120. package/src/service/Monitor/v20250101/index.js +63 -0
  121. package/src/service/Rabbitmq/v20191017/index.js +234 -0
  122. package/src/service/Resourcemanager/v20210320/index.js +157 -158
  123. package/src/service/Sks/v20151101/index.js +95 -96
  124. package/src/service/Slb/v20160304/index.js +1471 -959
  125. package/src/service/Sts/v20151101/index.js +34 -34
  126. package/src/service/Tagv2/v20200901/index.js +166 -0
  127. package/src/service/Tidb/v20210520/index.js +355 -0
  128. package/src/service/Trade/v20200114/index.js +31 -31
  129. package/src/service/Trade/v20200831/index.js +33 -33
  130. package/src/service/Vpc/v20160304/index.js +2404 -1432
  131. package/src/service/Waf/v20200707/index.js +240 -0
  132. package/src/service/Bill_union/v20211209/index.js +0 -35
  133. package/src/service/Slb/v20171210/index.js +0 -39
@@ -1,668 +1,683 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
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); }
5
6
  const BaseClient = require("../../../base/BaseClient.js");
6
-
7
7
  module.exports = class Client extends BaseClient {
8
8
  constructor(...args) {
9
9
  super(...args);
10
-
11
10
  _defineProperty(this, "_baseConfig", {
12
- 'protocol': 'http://',
13
- 'endpoint': 'mongodb.api.ksyun.com',
14
- 'config': {
15
- 'timeout': 60,
11
+ protocol: "http://",
12
+ endpoint: "mongodb.api.ksyun.com",
13
+ config: {
14
+ timeout: 60,
16
15
  //设置timeout
17
- 'headers': {
18
- 'Accept': 'application/json'
16
+ headers: {
17
+ Accept: "application/json"
19
18
  },
20
- 'credentials': {
21
- 'region': 'cn-shanghai-3',
22
- 'service': 'mongodb'
19
+ credentials: {
20
+ region: "cn-shanghai-3",
21
+ service: "mongodb"
23
22
  }
24
23
  }
25
24
  });
26
-
27
25
  _defineProperty(this, "_apiList", {
28
- 'CreateMongoDBInstance': {
29
- 'url': '/',
30
- 'method': 'POST',
31
- 'config': {
32
- 'query': {
33
- 'Version': '2017-01-01',
34
- 'Action': 'CreateMongoDBInstance'
35
- },
36
- 'headers': {
37
- 'Content-Type': 'application/x-www-form-urlencoded'
38
- }
39
- },
40
- 'paramsType': {
41
- 'PayType': 'String',
42
- 'AvailabilityZone': 'Filter',
43
- 'Name': 'String',
44
- 'DbVersion': 'String',
45
- 'NodeNum': 'Int',
46
- 'Storage': 'Int',
47
- 'Duration': 'Int',
48
- 'IamProjectId': 'String',
49
- 'VpcId': 'String',
50
- 'VnetId': 'String',
51
- 'InstancePassword': 'String',
52
- 'InstanceClass': 'String'
53
- }
54
- },
55
- 'DeleteMongoDBInstance': {
56
- 'url': '/',
57
- 'method': 'DELETE',
58
- 'config': {
59
- 'query': {
60
- 'Version': '2017-01-01',
61
- 'Action': 'DeleteMongoDBInstance'
62
- },
63
- 'headers': {
64
- 'Content-Type': 'application/json'
65
- }
26
+ CreateMongoDBInstance: {
27
+ url: "/",
28
+ method: "POST",
29
+ config: {
30
+ query: {
31
+ Version: "2017-01-01",
32
+ Action: "CreateMongoDBInstance"
33
+ },
34
+ headers: {
35
+ "Content-Type": "application/x-www-form-urlencoded"
36
+ }
37
+ },
38
+ paramsType: {
39
+ PayType: "String",
40
+ AvailabilityZone: "Filter",
41
+ Name: "String",
42
+ DbVersion: "String",
43
+ NodeNum: "Int",
44
+ Storage: "Int",
45
+ Duration: "Int",
46
+ IamProjectId: "String",
47
+ VpcId: "String",
48
+ VnetId: "String",
49
+ InstancePassword: "String",
50
+ InstanceClass: "String"
51
+ }
52
+ },
53
+ DeleteMongoDBInstance: {
54
+ url: "/",
55
+ method: "DELETE",
56
+ config: {
57
+ query: {
58
+ Version: "2017-01-01",
59
+ Action: "DeleteMongoDBInstance"
60
+ },
61
+ headers: {
62
+ "Content-Type": "application/json"
63
+ }
64
+ },
65
+ paramsType: {
66
+ InstanceId: "String"
67
+ }
68
+ },
69
+ DescribeMongoDBInstance: {
70
+ url: "/",
71
+ method: "GET",
72
+ config: {
73
+ query: {
74
+ Version: "2017-01-01",
75
+ Action: "DescribeMongoDBInstance"
76
+ },
77
+ headers: {
78
+ "Content-Type": "application/json"
79
+ }
66
80
  },
67
- 'paramsType': {
68
- 'InstanceId': 'String'
81
+ paramsType: {
82
+ InstanceId: "String"
69
83
  }
70
84
  },
71
- 'DescribeMongoDBInstance': {
72
- 'url': '/',
73
- 'method': 'GET',
74
- 'config': {
75
- 'query': {
76
- 'Version': '2017-01-01',
77
- 'Action': 'DescribeMongoDBInstance'
85
+ DescribeMongoDBInstances: {
86
+ url: "/",
87
+ method: "GET",
88
+ config: {
89
+ query: {
90
+ Version: "2017-01-01",
91
+ Action: "DescribeMongoDBInstances"
78
92
  },
79
- 'headers': {
80
- 'Content-Type': 'application/json'
93
+ headers: {
94
+ "Content-Type": "application/json"
81
95
  }
82
96
  },
83
- 'paramsType': {
84
- 'InstanceId': 'String'
97
+ paramsType: {
98
+ Area: "String",
99
+ Vip: "String",
100
+ VpcId: "String",
101
+ VnetId: "String",
102
+ IamProjectId: "String",
103
+ InstanceId: "String",
104
+ Name: "String",
105
+ Mode: "String",
106
+ DbVersion: "String",
107
+ Status: "String",
108
+ FuzzySearch: "String",
109
+ TagKey: "String",
110
+ TagValue: "String",
111
+ Offset: "Int",
112
+ Limit: "Int",
113
+ OrderBy: "String"
85
114
  }
86
115
  },
87
- 'DescribeMongoDBInstances': {
88
- 'url': '/',
89
- 'method': 'GET',
90
- 'config': {
91
- 'query': {
92
- 'Version': '2017-01-01',
93
- 'Action': 'DescribeMongoDBInstances'
116
+ DescribeMongoDBInstanceNode: {
117
+ url: "/",
118
+ method: "GET",
119
+ config: {
120
+ query: {
121
+ Version: "2017-01-01",
122
+ Action: "DescribeMongoDBInstanceNode"
94
123
  },
95
- 'headers': {
96
- 'Content-Type': 'application/json'
124
+ headers: {
125
+ "Content-Type": "application/json"
97
126
  }
98
127
  },
99
- 'paramsType': {
100
- 'Area': 'String',
101
- 'Vip': 'String',
102
- 'VpcId': 'String',
103
- 'VnetId': 'String',
104
- 'IamProjectId': 'String',
105
- 'InstanceId': 'String',
106
- 'Name': 'String',
107
- 'Mode': 'String',
108
- 'DbVersion': 'String',
109
- 'Status': 'String',
110
- 'FuzzySearch': 'String',
111
- 'TagKey': 'String',
112
- 'TagValue': 'String',
113
- 'Offset': 'Int',
114
- 'Limit': 'Int',
115
- 'OrderBy': 'String'
128
+ paramsType: {
129
+ InstanceId: "String",
130
+ NodeId: "String"
116
131
  }
117
132
  },
118
- 'DescribeMongoDBInstanceNode': {
119
- 'url': '/',
120
- 'method': 'GET',
121
- 'config': {
122
- 'query': {
123
- 'Version': '2017-01-01',
124
- 'Action': 'DescribeMongoDBInstanceNode'
133
+ RenameMongoDBInstance: {
134
+ url: "/",
135
+ method: "PUT",
136
+ config: {
137
+ query: {
138
+ Version: "2017-01-01",
139
+ Action: "RenameMongoDBInstance"
125
140
  },
126
- 'headers': {
127
- 'Content-Type': 'application/json'
141
+ headers: {
142
+ "Content-Type": "application/json"
128
143
  }
129
144
  },
130
- 'paramsType': {
131
- 'InstanceId': 'String'
145
+ paramsType: {
146
+ InstanceId: "String",
147
+ Name: "String"
132
148
  }
133
149
  },
134
- 'RenameMongoDBInstance': {
135
- 'url': '/',
136
- 'method': 'PUT',
137
- 'config': {
138
- 'query': {
139
- 'Version': '2017-01-01',
140
- 'Action': 'RenameMongoDBInstance'
150
+ ResetPasswordMongoDBInstance: {
151
+ url: "/",
152
+ method: "PUT",
153
+ config: {
154
+ query: {
155
+ Version: "2017-01-01",
156
+ Action: "ResetPasswordMongoDBInstance"
141
157
  },
142
- 'headers': {
143
- 'Content-Type': 'application/json'
158
+ headers: {
159
+ "Content-Type": "application/json"
144
160
  }
145
161
  },
146
- 'paramsType': {
147
- 'InstanceId': 'String',
148
- 'Name': 'String'
162
+ paramsType: {
163
+ InstanceId: "String",
164
+ InstancePassword: "String"
149
165
  }
150
166
  },
151
- 'ResetPasswordMongoDBInstance': {
152
- 'url': '/',
153
- 'method': 'PUT',
154
- 'config': {
155
- 'query': {
156
- 'Version': '2017-01-01',
157
- 'Action': 'ResetPasswordMongoDBInstance'
167
+ RestartMongoDBInstance: {
168
+ url: "/",
169
+ method: "PUT",
170
+ config: {
171
+ query: {
172
+ Version: "2017-01-01",
173
+ Action: "RestartMongoDBInstance"
158
174
  },
159
- 'headers': {
160
- 'Content-Type': 'application/json'
175
+ headers: {
176
+ "Content-Type": "application/json"
161
177
  }
162
178
  },
163
- 'paramsType': {
164
- 'InstanceId': 'String',
165
- 'InstancePassword': 'String'
179
+ paramsType: {
180
+ InstanceId: "String"
166
181
  }
167
182
  },
168
- 'RestartMongoDBInstance': {
169
- 'url': '/',
170
- 'method': 'PUT',
171
- 'config': {
172
- 'query': {
173
- 'Version': '2017-01-01',
174
- 'Action': 'RestartMongoDBInstance'
183
+ CreateMongoDBSnapshot: {
184
+ url: "/",
185
+ method: "POST",
186
+ config: {
187
+ query: {
188
+ Version: "2017-01-01",
189
+ Action: "CreateMongoDBSnapshot"
175
190
  },
176
- 'headers': {
177
- 'Content-Type': 'application/json'
191
+ headers: {
192
+ "Content-Type": "application/x-www-form-urlencoded"
178
193
  }
179
194
  },
180
- 'paramsType': {
181
- 'InstanceId': 'String'
195
+ paramsType: {
196
+ InstanceId: "String",
197
+ Name: "String",
198
+ BackupMode: "String"
182
199
  }
183
200
  },
184
- 'CreateMongoDBSnapshot': {
185
- 'url': '/',
186
- 'method': 'POST',
187
- 'config': {
188
- 'query': {
189
- 'Version': '2017-01-01',
190
- 'Action': 'CreateMongoDBSnapshot'
201
+ SetMongoDBTimingSnapshot: {
202
+ url: "/",
203
+ method: "PUT",
204
+ config: {
205
+ query: {
206
+ Version: "2017-01-01",
207
+ Action: "SetMongoDBTimingSnapshot"
191
208
  },
192
- 'headers': {
193
- 'Content-Type': 'application/x-www-form-urlencoded'
209
+ headers: {
210
+ "Content-Type": "application/json"
194
211
  }
195
212
  },
196
- 'paramsType': {
197
- 'InstanceId': 'String',
198
- 'Name': 'String',
199
- 'BackupMode': 'String'
213
+ paramsType: {
214
+ InstanceId: "String",
215
+ TimingSwitch: "String",
216
+ Timezone: "String",
217
+ TimeCycle: "String"
200
218
  }
201
219
  },
202
- 'SetMongoDBTimingSnapshot': {
203
- 'url': '/',
204
- 'method': 'PUT',
205
- 'config': {
206
- 'query': {
207
- 'Version': '2017-01-01',
208
- 'Action': 'SetMongoDBTimingSnapshot'
220
+ DescribeMongoDBSnapshot: {
221
+ url: "/",
222
+ method: "GET",
223
+ config: {
224
+ query: {
225
+ Version: "2017-01-01",
226
+ Action: "DescribeMongoDBSnapshot"
209
227
  },
210
- 'headers': {
211
- 'Content-Type': 'application/json'
228
+ headers: {
229
+ "Content-Type": "application/json"
212
230
  }
213
231
  },
214
- 'paramsType': {
215
- 'InstanceId': 'String',
216
- 'TimingSwitch': 'String',
217
- 'Timezone': 'String',
218
- 'TimeCycle': 'String'
232
+ paramsType: {
233
+ InstanceId: "String"
219
234
  }
220
235
  },
221
- 'DescribeMongoDBSnapshot': {
222
- 'url': '/',
223
- 'method': 'GET',
224
- 'config': {
225
- 'query': {
226
- 'Version': '2017-01-01',
227
- 'Action': 'DescribeMongoDBSnapshot'
236
+ DeleteMongoDBSnapshot: {
237
+ url: "/",
238
+ method: "DELETE",
239
+ config: {
240
+ query: {
241
+ Version: "2017-01-01",
242
+ Action: "DeleteMongoDBSnapshot"
228
243
  },
229
- 'headers': {
230
- 'Content-Type': 'application/json'
244
+ headers: {
245
+ "Content-Type": "application/json"
231
246
  }
232
247
  },
233
- 'paramsType': {
234
- 'InstanceId': 'String'
248
+ paramsType: {
249
+ InstanceId: "String",
250
+ SnapshotId: "String"
235
251
  }
236
252
  },
237
- 'DeleteMongoDBSnapshot': {
238
- 'url': '/',
239
- 'method': 'DELETE',
240
- 'config': {
241
- 'query': {
242
- 'Version': '2017-01-01',
243
- 'Action': 'DeleteMongoDBSnapshot'
253
+ RenameMongoDBSnapshot: {
254
+ url: "/",
255
+ method: "PUT",
256
+ config: {
257
+ query: {
258
+ Version: "2017-01-01",
259
+ Action: "RenameMongoDBSnapshot"
244
260
  },
245
- 'headers': {
246
- 'Content-Type': 'application/json'
261
+ headers: {
262
+ "Content-Type": "application/json"
247
263
  }
248
264
  },
249
- 'paramsType': {
250
- 'InstanceId': 'String',
251
- 'SnapshotId': 'String'
265
+ paramsType: {
266
+ InstanceId: "String",
267
+ SnapshotId: "String",
268
+ Name: "String"
252
269
  }
253
270
  },
254
- 'RenameMongoDBSnapshot': {
255
- 'url': '/',
256
- 'method': 'PUT',
257
- 'config': {
258
- 'query': {
259
- 'Version': '2017-01-01',
260
- 'Action': 'RenameMongoDBSnapshot'
271
+ AddSecurityGroupRule: {
272
+ url: "/",
273
+ method: "POST",
274
+ config: {
275
+ query: {
276
+ Version: "2017-01-01",
277
+ Action: "AddSecurityGroupRule"
261
278
  },
262
- 'headers': {
263
- 'Content-Type': 'application/json'
279
+ headers: {
280
+ "Content-Type": "application/x-www-form-urlencoded"
264
281
  }
265
282
  },
266
- 'paramsType': {
267
- 'InstanceId': 'String',
268
- 'SnapshotId': 'String',
269
- 'Name': 'String'
283
+ paramsType: {
284
+ InstanceId: "String",
285
+ Cidrs: "String",
286
+ Type: "String"
270
287
  }
271
288
  },
272
- 'AddSecurityGroupRule': {
273
- 'url': '/',
274
- 'method': 'POST',
275
- 'config': {
276
- 'query': {
277
- 'Version': '2017-01-01',
278
- 'Action': 'AddSecurityGroupRule'
289
+ ListSecurityGroupRules: {
290
+ url: "/",
291
+ method: "GET",
292
+ config: {
293
+ query: {
294
+ Version: "2017-01-01",
295
+ Action: "ListSecurityGroupRules"
279
296
  },
280
- 'headers': {
281
- 'Content-Type': 'application/x-www-form-urlencoded'
297
+ headers: {
298
+ "Content-Type": "application/json"
282
299
  }
283
300
  },
284
- 'paramsType': {
285
- 'InstanceId': 'String',
286
- 'Cidrs': 'String',
287
- 'Type': 'String'
301
+ paramsType: {
302
+ InstanceId: "String"
288
303
  }
289
304
  },
290
- 'ListSecurityGroupRules': {
291
- 'url': '/',
292
- 'method': 'GET',
293
- 'config': {
294
- 'query': {
295
- 'Version': '2017-01-01',
296
- 'Action': 'ListSecurityGroupRules'
305
+ UpdateMongoDBInstance: {
306
+ url: "/",
307
+ method: "POST",
308
+ config: {
309
+ query: {
310
+ Version: "2017-01-01",
311
+ Action: "UpdateMongoDBInstance"
297
312
  },
298
- 'headers': {
299
- 'Content-Type': 'application/json'
313
+ headers: {
314
+ "Content-Type": "application/x-www-form-urlencoded"
300
315
  }
301
316
  },
302
- 'paramsType': {
303
- 'InstanceId': 'String'
317
+ paramsType: {
318
+ InstanceId: "String",
319
+ InstanceClass: "String",
320
+ Storage: "Int"
304
321
  }
305
322
  },
306
- 'UpdateMongoDBInstance': {
307
- 'url': '/',
308
- 'method': 'POST',
309
- 'config': {
310
- 'query': {
311
- 'Version': '2017-01-01',
312
- 'Action': 'UpdateMongoDBInstance'
323
+ AddSecondaryInstance: {
324
+ url: "/",
325
+ method: "PUT",
326
+ config: {
327
+ query: {
328
+ Version: "2017-01-01",
329
+ Action: "AddSecondaryInstance"
313
330
  },
314
- 'headers': {
315
- 'Content-Type': 'application/x-www-form-urlencoded'
331
+ headers: {
332
+ "Content-Type": "application/json"
316
333
  }
317
334
  },
318
- 'paramsType': {
319
- 'InstanceId': 'String',
320
- 'InstanceClass': 'String',
321
- 'Storage': 'Int'
335
+ paramsType: {
336
+ InstanceId: "String",
337
+ NodeNum: "String"
322
338
  }
323
339
  },
324
- 'AddSecondaryInstance': {
325
- 'url': '/',
326
- 'method': 'PUT',
327
- 'config': {
328
- 'query': {
329
- 'Version': '2017-01-01',
330
- 'Action': 'AddSecondaryInstance'
340
+ DescribeMongoDBShardNode: {
341
+ url: "/",
342
+ method: "GET",
343
+ config: {
344
+ query: {
345
+ Version: "2017-01-01",
346
+ Action: "DescribeMongoDBShardNode"
331
347
  },
332
- 'headers': {
333
- 'Content-Type': 'application/json'
348
+ headers: {
349
+ "Content-Type": "application/json"
334
350
  }
335
351
  },
336
- 'paramsType': {
337
- 'InstanceId': 'String',
338
- 'NodeNum': 'String'
352
+ paramsType: {
353
+ InstanceId: "String"
339
354
  }
340
355
  },
341
- 'DescribeMongoDBShardNode': {
342
- 'url': '/',
343
- 'method': 'GET',
344
- 'config': {
345
- 'query': {
346
- 'Version': '2017-01-01',
347
- 'Action': 'DescribeMongoDBShardNode'
356
+ DescribeValidRegion: {
357
+ url: "/",
358
+ method: "GET",
359
+ config: {
360
+ query: {
361
+ Version: "2017-01-01",
362
+ Action: "DescribeValidRegion"
348
363
  },
349
- 'headers': {
350
- 'Content-Type': 'application/json'
364
+ headers: {
365
+ "Content-Type": "application/json"
351
366
  }
352
367
  },
353
- 'paramsType': {
354
- 'InstanceId': 'String'
368
+ paramsType: {
369
+ Action: "String"
355
370
  }
356
371
  },
357
- 'DescribeValidRegion': {
358
- 'url': '/',
359
- 'method': 'GET',
360
- 'config': {
361
- 'query': {
362
- 'Version': '2017-01-01',
363
- 'Action': 'DescribeValidRegion'
372
+ AllocateEip: {
373
+ url: "/",
374
+ method: "POST",
375
+ config: {
376
+ query: {
377
+ Version: "2017-01-01",
378
+ Action: "AllocateEip"
364
379
  },
365
- 'headers': {
366
- 'Content-Type': 'application/json'
380
+ headers: {
381
+ "Content-Type": "application/x-www-form-urlencoded"
367
382
  }
368
383
  },
369
- 'paramsType': {
370
- 'Action': 'String'
384
+ paramsType: {
385
+ InstanceId: "String",
386
+ Type: "String"
371
387
  }
372
388
  },
373
- 'AllocateEip': {
374
- 'url': '/',
375
- 'method': 'POST',
376
- 'config': {
377
- 'query': {
378
- 'Version': '2017-01-01',
379
- 'Action': 'AllocateEip'
389
+ DeallocateEip: {
390
+ url: "/",
391
+ method: "POST",
392
+ config: {
393
+ query: {
394
+ Version: "2017-01-01",
395
+ Action: "DeallocateEip"
380
396
  },
381
- 'headers': {
382
- 'Content-Type': 'application/x-www-form-urlencoded'
397
+ headers: {
398
+ "Content-Type": "application/x-www-form-urlencoded"
383
399
  }
384
400
  },
385
- 'paramsType': {
386
- 'InstanceId': 'String',
387
- 'Type': 'String'
401
+ paramsType: {
402
+ InstanceId: "String"
388
403
  }
389
404
  },
390
- 'DeallocateEip': {
391
- 'url': '/',
392
- 'method': 'POST',
393
- 'config': {
394
- 'query': {
395
- 'Version': '2017-01-01',
396
- 'Action': 'DeallocateEip'
405
+ DescribeRegions: {
406
+ url: "/",
407
+ method: "GET",
408
+ config: {
409
+ query: {
410
+ Version: "2017-01-01",
411
+ Action: "DescribeRegions"
397
412
  },
398
- 'headers': {
399
- 'Content-Type': 'application/x-www-form-urlencoded'
413
+ headers: {
414
+ "Content-Type": "application/json"
400
415
  }
401
416
  },
402
- 'paramsType': {
403
- 'InstanceId': 'String'
417
+ paramsType: {
418
+ Action: "String"
404
419
  }
405
420
  },
406
- 'DescribeRegions': {
407
- 'url': '/',
408
- 'method': 'GET',
409
- 'config': {
410
- 'query': {
411
- 'Version': '2017-01-01',
412
- 'Action': 'DescribeRegions'
421
+ CreateMongoDBShardInstance: {
422
+ url: "/",
423
+ method: "POST",
424
+ config: {
425
+ query: {
426
+ Version: "2017-01-01",
427
+ Action: "CreateMongoDBShardInstance"
413
428
  },
414
- 'headers': {
415
- 'Content-Type': 'application/json'
429
+ headers: {
430
+ "Content-Type": "application/x-www-form-urlencoded"
416
431
  }
417
432
  },
418
- 'paramsType': {
419
- 'Action': 'String'
433
+ paramsType: {
434
+ PayType: "String",
435
+ AvailabilityZone: "Filter",
436
+ Name: "String",
437
+ DbVersion: "String",
438
+ Storage: "String",
439
+ Duration: "Int",
440
+ IamProjectId: "String",
441
+ VpcId: "String",
442
+ VnetId: "String",
443
+ InstancePassword: "String",
444
+ ShardClass: "String",
445
+ ShardNum: "Int",
446
+ MongosNum: "Int",
447
+ MongosClass: "String"
420
448
  }
421
449
  },
422
- 'CreateMongoDBShardInstance': {
423
- 'url': '/',
424
- 'method': 'POST',
425
- 'config': {
426
- 'query': {
427
- 'Version': '2017-01-01',
428
- 'Action': 'CreateMongoDBShardInstance'
450
+ DownloadSnapshot: {
451
+ url: "/",
452
+ method: "GET",
453
+ config: {
454
+ query: {
455
+ Version: "2017-01-01",
456
+ Action: "DownloadSnapshot"
429
457
  },
430
- 'headers': {
431
- 'Content-Type': 'application/x-www-form-urlencoded'
458
+ headers: {
459
+ "Content-Type": "application/json"
432
460
  }
433
461
  },
434
- 'paramsType': {
435
- 'PayType': 'String',
436
- 'AvailabilityZone': 'Filter',
437
- 'Name': 'String',
438
- 'DbVersion': 'String',
439
- 'Storage': 'String',
440
- 'Duration': 'Int',
441
- 'IamProjectId': 'String',
442
- 'VpcId': 'String',
443
- 'VnetId': 'String',
444
- 'InstancePassword': 'String',
445
- 'ShardClass': 'String',
446
- 'ShardNum': 'Int',
447
- 'MongosNum': 'Int',
448
- 'MongosClass': 'String'
462
+ paramsType: {
463
+ SnapshotId: "String"
449
464
  }
450
465
  },
451
- 'DownloadSnapshot': {
452
- 'url': '/',
453
- 'method': 'GET',
454
- 'config': {
455
- 'query': {
456
- 'Version': '2017-01-01',
457
- 'Action': 'DownloadSnapshot'
466
+ CloneInstance: {
467
+ url: "/",
468
+ method: "POST",
469
+ config: {
470
+ query: {
471
+ Version: "2017-01-01",
472
+ Action: "CloneInstance"
458
473
  },
459
- 'headers': {
460
- 'Content-Type': 'application/json'
474
+ headers: {
475
+ "Content-Type": "application/x-www-form-urlencoded"
461
476
  }
462
477
  },
463
- 'paramsType': {
464
- 'SnapshotId': 'String'
478
+ paramsType: {
479
+ PayType: "String",
480
+ AvailabilityZone: "String",
481
+ Name: "String",
482
+ Duration: "Int",
483
+ IamProjectId: "String",
484
+ VpcId: "String",
485
+ VnetId: "String",
486
+ InstancePassword: "String",
487
+ SnapshotId: "String",
488
+ InstanceId: "String"
465
489
  }
466
490
  },
467
- 'CloneInstance': {
468
- 'url': '/',
469
- 'method': 'POST',
470
- 'config': {
471
- 'query': {
472
- 'Version': '2017-01-01',
473
- 'Action': 'CloneInstance'
491
+ DescribeShardNode: {
492
+ url: "/",
493
+ method: "GET",
494
+ config: {
495
+ query: {
496
+ Version: "2017-01-01",
497
+ Action: "DescribeShardNode"
474
498
  },
475
- 'headers': {
476
- 'Content-Type': 'application/x-www-form-urlencoded'
499
+ headers: {
500
+ "Content-Type": "application/json"
477
501
  }
478
502
  },
479
- 'paramsType': {
480
- 'PayType': 'String',
481
- 'AvailabilityZone': 'String',
482
- 'Name': 'String',
483
- 'Duration': 'Int',
484
- 'IamProjectId': 'String',
485
- 'VpcId': 'String',
486
- 'VnetId': 'String',
487
- 'InstancePassword': 'String',
488
- 'SnapshotId': 'String',
489
- 'InstanceId': 'String'
503
+ paramsType: {
504
+ InstanceId: "String"
490
505
  }
491
506
  },
492
- 'DescribeShardNode': {
493
- 'url': '/',
494
- 'method': 'GET',
495
- 'config': {
496
- 'query': {
497
- 'Version': '2017-01-01',
498
- 'Action': 'DescribeShardNode'
507
+ DescribeInstanceStatistic: {
508
+ url: "/",
509
+ method: "GET",
510
+ config: {
511
+ query: {
512
+ Version: "2017-01-01",
513
+ Action: "DescribeInstanceStatistic"
499
514
  },
500
- 'headers': {
501
- 'Content-Type': 'application/json'
515
+ headers: {
516
+ "Content-Type": "application/json"
502
517
  }
503
518
  },
504
- 'paramsType': {
505
- 'InstanceId': 'String'
519
+ paramsType: {
520
+ Action: "String"
521
+ }
522
+ },
523
+ AddClusterNode: {
524
+ url: "/",
525
+ method: "POST",
526
+ config: {
527
+ query: {
528
+ Version: "2017-01-01",
529
+ Action: "AddClusterNode"
530
+ },
531
+ headers: {
532
+ "Content-Type": "application/x-www-form-urlencoded"
533
+ }
534
+ },
535
+ paramsType: {
536
+ InstanceId: "String",
537
+ NodeType: "String",
538
+ NodeClass: "String",
539
+ NodeStorage: "Int"
506
540
  }
507
541
  },
508
- 'DescribeInstanceStatistic': {
509
- 'url': '/',
510
- 'method': 'GET',
511
- 'config': {
512
- 'query': {
513
- 'Version': '2017-01-01',
514
- 'Action': 'DescribeInstanceStatistic'
542
+ DeleteClusterNode: {
543
+ url: "/",
544
+ method: "POST",
545
+ config: {
546
+ query: {
547
+ Version: "2017-01-01",
548
+ Action: "DeleteClusterNode"
515
549
  },
516
- 'headers': {
517
- 'Content-Type': 'application/json'
550
+ headers: {
551
+ "Content-Type": "application/x-www-form-urlencoded"
518
552
  }
519
553
  },
520
- 'paramsType': {
521
- 'Action': 'String'
522
- }
523
- },
524
- 'AddClusterNode': {
525
- 'url': '/',
526
- 'method': 'POST',
527
- 'config': {
528
- 'query': {
529
- 'Version': '2017-01-01',
530
- 'Action': 'AddClusterNode'
531
- },
532
- 'headers': {
533
- 'Content-Type': 'application/x-www-form-urlencoded'
534
- }
535
- },
536
- 'paramsType': {
537
- 'InstanceId': 'String',
538
- 'NodeType': 'String',
539
- 'NodeClass': 'String',
540
- 'NodeStorage': 'Int'
554
+ paramsType: {
555
+ InstanceId: "String",
556
+ NodeId: "String"
541
557
  }
542
558
  },
543
- 'DeleteClusterNode': {
544
- 'url': '/',
545
- 'method': 'POST',
546
- 'config': {
547
- 'query': {
548
- 'Version': '2017-01-01',
549
- 'Action': 'DeleteClusterNode'
559
+ DescribeSlowLogDetail: {
560
+ url: "/",
561
+ method: "GET",
562
+ config: {
563
+ query: {
564
+ Version: "2017-01-01",
565
+ Action: "DescribeSlowLogDetail"
550
566
  },
551
- 'headers': {
552
- 'Content-Type': 'application/x-www-form-urlencoded'
567
+ headers: {
568
+ "Content-Type": "application/json"
553
569
  }
554
570
  },
555
- 'paramsType': {
556
- 'InstanceId': 'String',
557
- 'NodeId': 'String'
571
+ paramsType: {
572
+ InstanceId: "String",
573
+ NodeId: "String",
574
+ InstanceType: "String",
575
+ Database: "String",
576
+ StartTime: "String",
577
+ EndTime: "String",
578
+ Marker: "Int",
579
+ MaxRecords: "Int"
558
580
  }
559
581
  },
560
- 'DescribeSlowLogDetail': {
561
- 'url': '/',
562
- 'method': 'GET',
563
- 'config': {
564
- 'query': {
565
- 'Version': '2017-01-01',
566
- 'Action': 'DescribeSlowLogDetail'
582
+ DescribeSlowLogStatistics: {
583
+ url: "/",
584
+ method: "GET",
585
+ config: {
586
+ query: {
587
+ Version: "2017-01-01",
588
+ Action: "DescribeSlowLogStatistics"
567
589
  },
568
- 'headers': {
569
- 'Content-Type': 'application/json'
590
+ headers: {
591
+ "Content-Type": "application/json"
570
592
  }
571
593
  },
572
- 'paramsType': {
573
- 'InstanceId': 'String',
574
- 'NodeId': 'String',
575
- 'InstanceType': 'String',
576
- 'Database': 'String',
577
- 'StartTime': 'String',
578
- 'EndTime': 'String',
579
- 'Marker': 'Int',
580
- 'MaxRecords': 'Int'
594
+ paramsType: {
595
+ InstanceId: "String",
596
+ NodeId: "String",
597
+ InstanceType: "String",
598
+ StartTime: "String",
599
+ EndTime: "String",
600
+ Marker: "Int",
601
+ MaxRecords: "Int"
581
602
  }
582
603
  },
583
- 'DescribeSlowLogStatistics': {
584
- 'url': '/',
585
- 'method': 'GET',
586
- 'config': {
587
- 'query': {
588
- 'Version': '2017-01-01',
589
- 'Action': 'DescribeSlowLogStatistics'
604
+ DescribeSlowLogDatabase: {
605
+ url: "/",
606
+ method: "GET",
607
+ config: {
608
+ query: {
609
+ Version: "2017-01-01",
610
+ Action: "DescribeSlowLogDatabase"
590
611
  },
591
- 'headers': {
592
- 'Content-Type': 'application/json'
612
+ headers: {
613
+ "Content-Type": "application/json"
593
614
  }
594
615
  },
595
- 'paramsType': {
596
- 'InstanceId': 'String',
597
- 'NodeId': 'String',
598
- 'InstanceType': 'String',
599
- 'StartTime': 'String',
600
- 'EndTime': 'String',
601
- 'Marker': 'Int',
602
- 'MaxRecords': 'Int'
616
+ paramsType: {
617
+ InstanceId: "String",
618
+ NodeId: "String",
619
+ InstanceType: "String",
620
+ StartTime: "String",
621
+ EndTime: "String"
603
622
  }
604
623
  },
605
- 'DescribeSlowLogDatabase': {
606
- 'url': '/',
607
- 'method': 'GET',
608
- 'config': {
609
- 'query': {
610
- 'Version': '2017-01-01',
611
- 'Action': 'DescribeSlowLogDatabase'
624
+ DescribeSlowLogLineChart: {
625
+ url: "/",
626
+ method: "GET",
627
+ config: {
628
+ query: {
629
+ Version: "2017-01-01",
630
+ Action: "DescribeSlowLogLineChart"
612
631
  },
613
- 'headers': {
614
- 'Content-Type': 'application/json'
632
+ headers: {
633
+ "Content-Type": "application/json"
615
634
  }
616
635
  },
617
- 'paramsType': {
618
- 'InstanceId': 'String',
619
- 'NodeId': 'String',
620
- 'InstanceType': 'String',
621
- 'StartTime': 'String',
622
- 'EndTime': 'String'
636
+ paramsType: {
637
+ InstanceId: "String",
638
+ NodeId: "String",
639
+ InstanceType: "String",
640
+ StartTime: "String",
641
+ EndTime: "String"
623
642
  }
624
- },
625
- 'DescribeSlowLogLineChart': {
626
- 'url': '/',
627
- 'method': 'GET',
628
- 'config': {
629
- 'query': {
630
- 'Version': '2017-01-01',
631
- 'Action': 'DescribeSlowLogLineChart'
643
+ },
644
+ UpdateMongoDBInstanceCluster: {
645
+ url: "/",
646
+ method: "POST",
647
+ config: {
648
+ query: {
649
+ Version: "2017-01-01",
650
+ Action: "UpdateMongoDBInstanceCluster"
632
651
  },
633
- 'headers': {
634
- 'Content-Type': 'application/json'
652
+ headers: {
653
+ "Content-Type": "application/x-www-form-urlencoded"
635
654
  }
636
- },
637
- 'paramsType': {
638
- 'InstanceId': 'String',
639
- 'NodeId': 'String',
640
- 'InstanceType': 'String',
641
- 'StartTime': 'String',
642
- 'EndTime': 'String'
643
- }
644
- },
645
- 'UpdateMongoDBInstanceCluster': {
646
- 'url': '/',
647
- 'method': 'POST',
648
- 'config': {
649
- 'query': {
650
- 'Version': '2017-01-01',
651
- 'Action': 'UpdateMongoDBInstanceCluster'
652
- },
653
- 'headers': {
654
- 'Content-Type': 'application/x-www-form-urlencoded'
655
- }
656
- },
657
- 'paramsType': {
658
- 'InstanceId': 'String',
659
- 'InstanceClass': 'String',
660
- 'NodeType': 'String',
661
- 'NodeId': 'String',
662
- 'Storage': 'Int'
655
+ },
656
+ paramsType: {
657
+ InstanceId: "String",
658
+ InstanceClass: "String",
659
+ NodeType: "String",
660
+ NodeId: "String",
661
+ Storage: "Int"
662
+ }
663
+ },
664
+ DescribeClusterForRestore: {
665
+ url: "/",
666
+ method: "GET",
667
+ config: {
668
+ query: {
669
+ Version: "2017-01-01",
670
+ Action: "DescribeClusterForRestore"
671
+ },
672
+ headers: {
673
+ "Content-Type": "application/json"
674
+ }
675
+ },
676
+ paramsType: {
677
+ InstanceId: "String",
678
+ ResetTimePoint: "String"
663
679
  }
664
680
  }
665
681
  });
666
682
  }
667
-
668
683
  };