@ucloud-sdks/ucloud-sdk-js 0.2.5 → 0.2.7

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.
@@ -0,0 +1,241 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const client_1 = __importDefault(require("../../core/client"));
7
+ const request_1 = __importDefault(require("../../core/request"));
8
+ /**
9
+ * This client is used to call actions of **umongodb** service
10
+ */
11
+ class UMongoDBClient extends client_1.default {
12
+ constructor({ config, credential, }) {
13
+ super({ config, credential });
14
+ }
15
+ /**
16
+ * BackupUMongoDBCluster - 备份集群数据库
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/umongodb-api/backup_umon_go_db_cluster
19
+ */
20
+ backupUMongoDBCluster(request) {
21
+ const args = Object.assign({ Action: 'BackupUMongoDBCluster' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
24
+ /**
25
+ * BackupUMongoDBLog - 日志打包
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/umongodb-api/backup_umon_go_db_log
28
+ */
29
+ backupUMongoDBLog(request) {
30
+ const args = Object.assign({ Action: 'BackupUMongoDBLog' }, (request || {}));
31
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
32
+ }
33
+ /**
34
+ * CreateUMongoDBConfigTemplate - 创建配置模板
35
+ *
36
+ * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_config_template
37
+ */
38
+ createUMongoDBConfigTemplate(request) {
39
+ const args = Object.assign({ Action: 'CreateUMongoDBConfigTemplate' }, (request || {}));
40
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
41
+ }
42
+ /**
43
+ * CreateUMongoDBReplSet - 创建一个Mongodb副本集群
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_repl_set
46
+ */
47
+ createUMongoDBReplSet(request) {
48
+ const args = Object.assign({ Action: 'CreateUMongoDBReplSet' }, (request || {}));
49
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
50
+ }
51
+ /**
52
+ * CreateUMongoDBShardedCluster - 创建一个Mongodb分片集群
53
+ *
54
+ * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_sharded_cluster
55
+ */
56
+ createUMongoDBShardedCluster(request) {
57
+ const args = Object.assign({ Action: 'CreateUMongoDBShardedCluster' }, (request || {}));
58
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
+ }
60
+ /**
61
+ * DescribeUMongoDBBackupURL - 获取实例备份下载链接
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/umongodb-api/describe_umon_go_db_backup_url
64
+ */
65
+ describeUMongoDBBackupURL(request) {
66
+ const args = Object.assign({ Action: 'DescribeUMongoDBBackupURL' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
69
+ /**
70
+ * DescribeUMongoDBInstance - 描述MongoDB实例
71
+ *
72
+ * See also: https://docs.ucloud.cn/api/umongodb-api/describe_umon_go_db_instance
73
+ */
74
+ describeUMongoDBInstance(request) {
75
+ const args = Object.assign({ Action: 'DescribeUMongoDBInstance' }, (request || {}));
76
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
+ }
78
+ /**
79
+ * GetUMongoDBBackupParam - 获取实例备份策略
80
+ *
81
+ * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_backup_param
82
+ */
83
+ getUMongoDBBackupParam(request) {
84
+ const args = Object.assign({ Action: 'GetUMongoDBBackupParam' }, (request || {}));
85
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
86
+ }
87
+ /**
88
+ * GetUMongoDBCfgTempItem - 获取配置模板内容
89
+ *
90
+ * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_cfg_temp_item
91
+ */
92
+ getUMongoDBCfgTempItem(request) {
93
+ const args = Object.assign({ Action: 'GetUMongoDBCfgTempItem' }, (request || {}));
94
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
+ }
96
+ /**
97
+ * GetUMongoDBLog - 查询某一段时间内集群节点的错误日志或慢查询日志
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_log
100
+ */
101
+ getUMongoDBLog(request) {
102
+ const args = Object.assign({ Action: 'GetUMongoDBLog' }, (request || {}));
103
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
+ }
105
+ /**
106
+ * GetUMongoDBRecoverTimeRange - 获取UMongoDB可回档时间范围
107
+ *
108
+ * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_recover_time_range
109
+ */
110
+ getUMongoDBRecoverTimeRange(request) {
111
+ const args = Object.assign({ Action: 'GetUMongoDBRecoverTimeRange' }, (request || {}));
112
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
113
+ }
114
+ /**
115
+ * ListUMongoDBBackup - 拉取实例备份列表
116
+ *
117
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_backup
118
+ */
119
+ listUMongoDBBackup(request) {
120
+ const args = Object.assign({ Action: 'ListUMongoDBBackup' }, (request || {}));
121
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
122
+ }
123
+ /**
124
+ * ListUMongoDBConfigTemplate - 拉取配置模板
125
+ *
126
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_config_template
127
+ */
128
+ listUMongoDBConfigTemplate(request) {
129
+ const args = Object.assign({ Action: 'ListUMongoDBConfigTemplate' }, (request || {}));
130
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
131
+ }
132
+ /**
133
+ * ListUMongoDBInstances - 获取副本集/分片集群列表
134
+ *
135
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_instances
136
+ */
137
+ listUMongoDBInstances(request) {
138
+ const args = Object.assign({ Action: 'ListUMongoDBInstances' }, (request || {}));
139
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
140
+ }
141
+ /**
142
+ * ListUMongoDBLogPackage - 日志打包列表
143
+ *
144
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_log_package
145
+ */
146
+ listUMongoDBLogPackage(request) {
147
+ const args = Object.assign({ Action: 'ListUMongoDBLogPackage' }, (request || {}));
148
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
149
+ }
150
+ /**
151
+ * ListUMongoDBMachineSpec - 获取UMongoDB支持机器类型列表
152
+ *
153
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_machine_spec
154
+ */
155
+ listUMongoDBMachineSpec(request) {
156
+ const args = Object.assign({ Action: 'ListUMongoDBMachineSpec' }, (request || {}));
157
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
+ }
159
+ /**
160
+ * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表
161
+ *
162
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_machine_type
163
+ */
164
+ listUMongoDBMachineType(request) {
165
+ const args = Object.assign({ Action: 'ListUMongoDBMachineType' }, (request || {}));
166
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
167
+ }
168
+ /**
169
+ * ListUMongoDBVersion - 获取UMongoDB支持版本列表
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_version
172
+ */
173
+ listUMongoDBVersion(request) {
174
+ const args = Object.assign({ Action: 'ListUMongoDBVersion' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
177
+ /**
178
+ * ModifyUMongoDBAdminPassword - 修改MongoDB集群root密码
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_admin_password
181
+ */
182
+ modifyUMongoDBAdminPassword(request) {
183
+ const args = Object.assign({ Action: 'ModifyUMongoDBAdminPassword' }, (request || {}));
184
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
+ }
186
+ /**
187
+ * ModifyUMongoDBAttribute - 修改MongoDB集群名称
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_attribute
190
+ */
191
+ modifyUMongoDBAttribute(request) {
192
+ const args = Object.assign({ Action: 'ModifyUMongoDBAttribute' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
195
+ /**
196
+ * ModifyUMongoDBBackupParam - 修改实例备份策略
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_backup_param
199
+ */
200
+ modifyUMongoDBBackupParam(request) {
201
+ const args = Object.assign({ Action: 'ModifyUMongoDBBackupParam' }, (request || {}));
202
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
203
+ }
204
+ /**
205
+ * ResizeUMongoDBInstance - 集群配置升降级
206
+ *
207
+ * See also: https://docs.ucloud.cn/api/umongodb-api/resize_umon_go_db_instance
208
+ */
209
+ resizeUMongoDBInstance(request) {
210
+ const args = Object.assign({ Action: 'ResizeUMongoDBInstance' }, (request || {}));
211
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
212
+ }
213
+ /**
214
+ * RestartUMongoDBCluster - 重启集群
215
+ *
216
+ * See also: https://docs.ucloud.cn/api/umongodb-api/restart_umon_go_db_cluster
217
+ */
218
+ restartUMongoDBCluster(request) {
219
+ const args = Object.assign({ Action: 'RestartUMongoDBCluster' }, (request || {}));
220
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
221
+ }
222
+ /**
223
+ * StartUMongoDBCluster - 启动集群
224
+ *
225
+ * See also: https://docs.ucloud.cn/api/umongodb-api/start_umon_go_db_cluster
226
+ */
227
+ startUMongoDBCluster(request) {
228
+ const args = Object.assign({ Action: 'StartUMongoDBCluster' }, (request || {}));
229
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
230
+ }
231
+ /**
232
+ * StopUMongoDBCluster - 停止集群
233
+ *
234
+ * See also: https://docs.ucloud.cn/api/umongodb-api/stop_umon_go_db_cluster
235
+ */
236
+ stopUMongoDBCluster(request) {
237
+ const args = Object.assign({ Action: 'StopUMongoDBCluster' }, (request || {}));
238
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
239
+ }
240
+ }
241
+ exports.default = UMongoDBClient;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.5",
4
+ "version": "0.2.7",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,