@ucloud-sdks/ucloud-sdk-js 0.2.60 → 0.2.62
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,295 @@
|
|
|
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 **udb_postgresql** service
|
|
10
|
+
*/
|
|
11
|
+
class UDBPostgreSQLClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* BackupUPgSQL - 创建备份服务
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/backup_u_pg_sql
|
|
19
|
+
*/
|
|
20
|
+
backupUPgSQL(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'BackupUPgSQL' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* BackupUPgSQLLog - 备份日志包
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/backup_u_pg_sql_log
|
|
28
|
+
*/
|
|
29
|
+
backupUPgSQLLog(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'BackupUPgSQLLog' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* CreateUPgSQLInstance - 创建PG云数据库
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_instance
|
|
37
|
+
*/
|
|
38
|
+
createUPgSQLInstance(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'CreateUPgSQLInstance' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* CreateUPgSQLParamTemplate - 创建PG参数模板
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_param_template
|
|
46
|
+
*/
|
|
47
|
+
createUPgSQLParamTemplate(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'CreateUPgSQLParamTemplate' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* CreateUPgSQLReadonly - 创建PG从库
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_readonly
|
|
55
|
+
*/
|
|
56
|
+
createUPgSQLReadonly(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'CreateUPgSQLReadonly' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* DeleteUPgSQLInstance - 删除PG实例
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/delete_u_pg_sql_instance
|
|
64
|
+
*/
|
|
65
|
+
deleteUPgSQLInstance(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DeleteUPgSQLInstance' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* DeleteUPgSQLParamTemplate - 删除参数模板
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/delete_u_pg_sql_param_template
|
|
73
|
+
*/
|
|
74
|
+
deleteUPgSQLParamTemplate(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'DeleteUPgSQLParamTemplate' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DownloadUPgSQLParamTemplate - 下载参数模板信息
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/download_u_pg_sql_param_template
|
|
82
|
+
*/
|
|
83
|
+
downloadUPgSQLParamTemplate(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DownloadUPgSQLParamTemplate' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* GetUPgSQLBackupStrategy - 获取备份策略
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_backup_strategy
|
|
91
|
+
*/
|
|
92
|
+
getUPgSQLBackupStrategy(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'GetUPgSQLBackupStrategy' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* GetUPgSQLBackupURL - 获取备份下载地址
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_backup_url
|
|
100
|
+
*/
|
|
101
|
+
getUPgSQLBackupURL(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'GetUPgSQLBackupURL' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* GetUPgSQLInstance - 获取PG云数据库实例描述
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance
|
|
109
|
+
*/
|
|
110
|
+
getUPgSQLInstance(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'GetUPgSQLInstance' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_log
|
|
118
|
+
*/
|
|
119
|
+
getUPgSQLInstanceLog(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'GetUPgSQLInstanceLog' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* GetUPgSQLInstanceParam - 获取实例参数信息
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_param
|
|
127
|
+
*/
|
|
128
|
+
getUPgSQLInstanceParam(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'GetUPgSQLInstanceParam' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* GetUPgSQLInstancePrice - 获取创建PG云数据库价格
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_price
|
|
136
|
+
*/
|
|
137
|
+
getUPgSQLInstancePrice(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'GetUPgSQLInstancePrice' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* GetUPgSQLParamTemplate - 获取模板信息
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_param_template
|
|
145
|
+
*/
|
|
146
|
+
getUPgSQLParamTemplate(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'GetUPgSQLParamTemplate' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_upgrade_price
|
|
154
|
+
*/
|
|
155
|
+
getUPgSQLUpgradePrice(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'GetUPgSQLUpgradePrice' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* ListUPgSQLBackup - 获取备份列表
|
|
161
|
+
*
|
|
162
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_backup
|
|
163
|
+
*/
|
|
164
|
+
listUPgSQLBackup(request) {
|
|
165
|
+
const args = Object.assign({ Action: 'ListUPgSQLBackup' }, (request || {}));
|
|
166
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* ListUPgSQLInstance - 获取PG云数据库列表
|
|
170
|
+
*
|
|
171
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_instance
|
|
172
|
+
*/
|
|
173
|
+
listUPgSQLInstance(request) {
|
|
174
|
+
const args = Object.assign({ Action: 'ListUPgSQLInstance' }, (request || {}));
|
|
175
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* ListUPgSQLLog - 获取数据库日志
|
|
179
|
+
*
|
|
180
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_log
|
|
181
|
+
*/
|
|
182
|
+
listUPgSQLLog(request) {
|
|
183
|
+
const args = Object.assign({ Action: 'ListUPgSQLLog' }, (request || {}));
|
|
184
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表
|
|
188
|
+
*
|
|
189
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_machine_type
|
|
190
|
+
*/
|
|
191
|
+
listUPgSQLMachineType(request) {
|
|
192
|
+
const args = Object.assign({ Action: 'ListUPgSQLMachineType' }, (request || {}));
|
|
193
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* ListUPgSQLParamTemplate - 获取可用参数模板列表
|
|
197
|
+
*
|
|
198
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_param_template
|
|
199
|
+
*/
|
|
200
|
+
listUPgSQLParamTemplate(request) {
|
|
201
|
+
const args = Object.assign({ Action: 'ListUPgSQLParamTemplate' }, (request || {}));
|
|
202
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* ListUPgSQLVersion - 获取UPgSQL支持版本列表
|
|
206
|
+
*
|
|
207
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_version
|
|
208
|
+
*/
|
|
209
|
+
listUPgSQLVersion(request) {
|
|
210
|
+
const args = Object.assign({ Action: 'ListUPgSQLVersion' }, (request || {}));
|
|
211
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* RestartUPgSQLInstance - 重启PG实例
|
|
215
|
+
*
|
|
216
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/restart_u_pg_sql_instance
|
|
217
|
+
*/
|
|
218
|
+
restartUPgSQLInstance(request) {
|
|
219
|
+
const args = Object.assign({ Action: 'RestartUPgSQLInstance' }, (request || {}));
|
|
220
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* StartUPgSQLInstance - 启动 PG实例
|
|
224
|
+
*
|
|
225
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/start_u_pg_sql_instance
|
|
226
|
+
*/
|
|
227
|
+
startUPgSQLInstance(request) {
|
|
228
|
+
const args = Object.assign({ Action: 'StartUPgSQLInstance' }, (request || {}));
|
|
229
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* StopUPgSQLCreatingReadonly - 停止创建从库
|
|
233
|
+
*
|
|
234
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/stop_u_pg_sql_creating_readonly
|
|
235
|
+
*/
|
|
236
|
+
stopUPgSQLCreatingReadonly(request) {
|
|
237
|
+
const args = Object.assign({ Action: 'StopUPgSQLCreatingReadonly' }, (request || {}));
|
|
238
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* StopUPgSQLInstance - 关闭PG实例
|
|
242
|
+
*
|
|
243
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/stop_u_pg_sql_instance
|
|
244
|
+
*/
|
|
245
|
+
stopUPgSQLInstance(request) {
|
|
246
|
+
const args = Object.assign({ Action: 'StopUPgSQLInstance' }, (request || {}));
|
|
247
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* UpdateUPgSQLAttribute - 更新数据库属性
|
|
251
|
+
*
|
|
252
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_attribute
|
|
253
|
+
*/
|
|
254
|
+
updateUPgSQLAttribute(request) {
|
|
255
|
+
const args = Object.assign({ Action: 'UpdateUPgSQLAttribute' }, (request || {}));
|
|
256
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* UpdateUPgSQLBackupStrategy - 修改备份策略
|
|
260
|
+
*
|
|
261
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_backup_strategy
|
|
262
|
+
*/
|
|
263
|
+
updateUPgSQLBackupStrategy(request) {
|
|
264
|
+
const args = Object.assign({ Action: 'UpdateUPgSQLBackupStrategy' }, (request || {}));
|
|
265
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* UpdateUPgSQLPassword - 更新数据库用户密码
|
|
269
|
+
*
|
|
270
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_password
|
|
271
|
+
*/
|
|
272
|
+
updateUPgSQLPassword(request) {
|
|
273
|
+
const args = Object.assign({ Action: 'UpdateUPgSQLPassword' }, (request || {}));
|
|
274
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* UpgradeUPgSQLInstance - 硬件规格升降级
|
|
278
|
+
*
|
|
279
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/upgrade_u_pg_sql_instance
|
|
280
|
+
*/
|
|
281
|
+
upgradeUPgSQLInstance(request) {
|
|
282
|
+
const args = Object.assign({ Action: 'UpgradeUPgSQLInstance' }, (request || {}));
|
|
283
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* UploadUPgSQLParamTemplate - 上传参数模板
|
|
287
|
+
*
|
|
288
|
+
* See also: https://docs.ucloud.cn/api/udbpostgresql-api/upload_u_pg_sql_param_template
|
|
289
|
+
*/
|
|
290
|
+
uploadUPgSQLParamTemplate(request) {
|
|
291
|
+
const args = Object.assign({ Action: 'UploadUPgSQLParamTemplate' }, (request || {}));
|
|
292
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.default = UDBPostgreSQLClient;
|