@ucloud-sdks/ucloud-sdk-js 0.2.10 → 0.2.13
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.
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +7 -0
- package/lib/services/udb/index.d.ts +1002 -138
- package/lib/services/udb/index.js +93 -3
- package/lib/services/ukafka/index.d.ts +8 -8
- package/lib/services/uwsc/index.d.ts +544 -0
- package/lib/services/uwsc/index.js +115 -0
- package/package.json +1 -1
|
@@ -111,6 +111,15 @@ class UDBClient extends client_1.default {
|
|
|
111
111
|
const args = Object.assign({ Action: 'CreateUDBInstanceByRecovery' }, (request || {}));
|
|
112
112
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* CreateUDBMySQLInstance - 创建UDB实例(包括创建mysql NVMe、共享型和O2实例以及从备份恢复实例)
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/udb-api/create_udb_my_sql_instance
|
|
118
|
+
*/
|
|
119
|
+
createUDBMySQLInstance(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'CreateUDBMySQLInstance' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
114
123
|
/**
|
|
115
124
|
* CreateUDBParamGroup - 从已有配置文件创建新配置文件
|
|
116
125
|
*
|
|
@@ -138,6 +147,15 @@ class UDBClient extends client_1.default {
|
|
|
138
147
|
const args = Object.assign({ Action: 'CreateUDBRouteInstance' }, (request || {}));
|
|
139
148
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* CreateUDBSQLServerInstance - 创建UDB实例(包括创建SQLServer实例以及从备份恢复实例)
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/udb-api/create_udb_sql_server_instance
|
|
154
|
+
*/
|
|
155
|
+
createUDBSQLServerInstance(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'CreateUDBSQLServerInstance' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
141
159
|
/**
|
|
142
160
|
* CreateUDBSlave - 创建UDB实例的slave
|
|
143
161
|
*
|
|
@@ -175,7 +193,7 @@ class UDBClient extends client_1.default {
|
|
|
175
193
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
194
|
}
|
|
177
195
|
/**
|
|
178
|
-
* DescribeUDBBackup - 列表UDB
|
|
196
|
+
* DescribeUDBBackup - 列表UDB实例备份信息.Zone不填表示多可用区,填代表单可用区
|
|
179
197
|
*
|
|
180
198
|
* See also: https://docs.ucloud.cn/api/udb-api/describe_udb_backup
|
|
181
199
|
*/
|
|
@@ -193,7 +211,16 @@ class UDBClient extends client_1.default {
|
|
|
193
211
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
212
|
}
|
|
195
213
|
/**
|
|
196
|
-
*
|
|
214
|
+
* DescribeUDBBinlogBackup - 列表UDB实例Binlog自动备份信息
|
|
215
|
+
*
|
|
216
|
+
* See also: https://docs.ucloud.cn/api/udb-api/describe_udb_binlog_backup
|
|
217
|
+
*/
|
|
218
|
+
describeUDBBinlogBackup(request) {
|
|
219
|
+
const args = Object.assign({ Action: 'DescribeUDBBinlogBackup' }, (request || {}));
|
|
220
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* DescribeUDBBinlogBackupURL - 获取UDB的Binlog或者错误日志或者慢查询日志的备份地址
|
|
197
224
|
*
|
|
198
225
|
* See also: https://docs.ucloud.cn/api/udb-api/describe_udb_binlog_backup_url
|
|
199
226
|
*/
|
|
@@ -283,7 +310,7 @@ class UDBClient extends client_1.default {
|
|
|
283
310
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
284
311
|
}
|
|
285
312
|
/**
|
|
286
|
-
* DescribeUDBLogBackupURL - 获取UDB
|
|
313
|
+
* DescribeUDBLogBackupURL - 获取UDB的错误日志或者慢查询日志备份地址
|
|
287
314
|
*
|
|
288
315
|
* See also: https://docs.ucloud.cn/api/udb-api/describe_udb_log_backup_url
|
|
289
316
|
*/
|
|
@@ -381,6 +408,33 @@ class UDBClient extends client_1.default {
|
|
|
381
408
|
const args = Object.assign({ Action: 'GetUDBClientConnNum' }, (request || {}));
|
|
382
409
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
383
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* GetUDBInstanceSSLCertURL - 获取SSL证书下载地址
|
|
413
|
+
*
|
|
414
|
+
* See also: https://docs.ucloud.cn/api/udb-api/get_udb_instance_ssl_cert_url
|
|
415
|
+
*/
|
|
416
|
+
getUDBInstanceSSLCertURL(request) {
|
|
417
|
+
const args = Object.assign({ Action: 'GetUDBInstanceSSLCertURL' }, (request || {}));
|
|
418
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* ListUDBMachineType - 获取UDB云数据库支持的计算规格列表,暂不支持获取跨可用区实例的计算规格,目前支持的数据库品类包括:NVMe版和SSD云盘版MySQL
|
|
422
|
+
*
|
|
423
|
+
* See also: https://docs.ucloud.cn/api/udb-api/list_udb_machine_type
|
|
424
|
+
*/
|
|
425
|
+
listUDBMachineType(request) {
|
|
426
|
+
const args = Object.assign({ Action: 'ListUDBMachineType' }, (request || {}));
|
|
427
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* ListUDBUserTables - 查看udb实例所有的用户表集合 (只包括引擎为innodb和myisam的表)
|
|
431
|
+
*
|
|
432
|
+
* See also: https://docs.ucloud.cn/api/udb-api/list_udb_user_tables
|
|
433
|
+
*/
|
|
434
|
+
listUDBUserTables(request) {
|
|
435
|
+
const args = Object.assign({ Action: 'ListUDBUserTables' }, (request || {}));
|
|
436
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
437
|
+
}
|
|
384
438
|
/**
|
|
385
439
|
* ModifyUDBInstanceName - 重命名UDB实例
|
|
386
440
|
*
|
|
@@ -399,6 +453,24 @@ class UDBClient extends client_1.default {
|
|
|
399
453
|
const args = Object.assign({ Action: 'ModifyUDBInstancePassword' }, (request || {}));
|
|
400
454
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
401
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* ModifyUDBInstanceRemarkName - 修改UDB实例备注信息
|
|
458
|
+
*
|
|
459
|
+
* See also: https://docs.ucloud.cn/api/udb-api/modify_udb_instance_remark_name
|
|
460
|
+
*/
|
|
461
|
+
modifyUDBInstanceRemarkName(request) {
|
|
462
|
+
const args = Object.assign({ Action: 'ModifyUDBInstanceRemarkName' }, (request || {}));
|
|
463
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* ModifyUDBInstanceSSL - 调整SSL的信息
|
|
467
|
+
*
|
|
468
|
+
* See also: https://docs.ucloud.cn/api/udb-api/modify_udb_instance_ssl
|
|
469
|
+
*/
|
|
470
|
+
modifyUDBInstanceSSL(request) {
|
|
471
|
+
const args = Object.assign({ Action: 'ModifyUDBInstanceSSL' }, (request || {}));
|
|
472
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
473
|
+
}
|
|
402
474
|
/**
|
|
403
475
|
* PromoteUDBInstanceToHA - 普通db升级为高可用(只针对mysql5.5及以上版本SSD机型的实例) ,对于NVMe机型的单点升级高可用,虽然也能使用该操作再加上SwitchUDBInstanceToHA,但是更建议直接调用新的API接口(UpgradeUDBInstanceToHA)
|
|
404
476
|
*
|
|
@@ -444,6 +516,15 @@ class UDBClient extends client_1.default {
|
|
|
444
516
|
const args = Object.assign({ Action: 'RestartUDBInstance' }, (request || {}));
|
|
445
517
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
446
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* RollbackUDBInstance - 在原实例回档指定库表
|
|
521
|
+
*
|
|
522
|
+
* See also: https://docs.ucloud.cn/api/udb-api/rollback_udb_instance
|
|
523
|
+
*/
|
|
524
|
+
rollbackUDBInstance(request) {
|
|
525
|
+
const args = Object.assign({ Action: 'RollbackUDBInstance' }, (request || {}));
|
|
526
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
527
|
+
}
|
|
447
528
|
/**
|
|
448
529
|
* SetUDBRWSplitting - 设置读写分离的模式
|
|
449
530
|
*
|
|
@@ -525,6 +606,15 @@ class UDBClient extends client_1.default {
|
|
|
525
606
|
const args = Object.assign({ Action: 'UpgradeUDBInstanceToHA' }, (request || {}));
|
|
526
607
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
527
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* UpgradeUDBVersion - 升级db实例版本
|
|
611
|
+
*
|
|
612
|
+
* See also: https://docs.ucloud.cn/api/udb-api/upgrade_udb_version
|
|
613
|
+
*/
|
|
614
|
+
upgradeUDBVersion(request) {
|
|
615
|
+
const args = Object.assign({ Action: 'UpgradeUDBVersion' }, (request || {}));
|
|
616
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
617
|
+
}
|
|
528
618
|
/**
|
|
529
619
|
* UploadUDBParamGroup - 导入UDB配置
|
|
530
620
|
*
|
|
@@ -126,14 +126,6 @@ export interface CreateUKafkaInstanceRequest {
|
|
|
126
126
|
* kafka版本,支持的版本可通过ListUKafkaFrameworkVersion 接口返回字段的FrameworkVersions获取
|
|
127
127
|
*/
|
|
128
128
|
FrameworkVersion: string;
|
|
129
|
-
/**
|
|
130
|
-
* VPCID
|
|
131
|
-
*/
|
|
132
|
-
VPCId: string;
|
|
133
|
-
/**
|
|
134
|
-
* 子网 ID
|
|
135
|
-
*/
|
|
136
|
-
SubnetId: string;
|
|
137
129
|
/**
|
|
138
130
|
* 付费方式
|
|
139
131
|
*/
|
|
@@ -150,6 +142,14 @@ export interface CreateUKafkaInstanceRequest {
|
|
|
150
142
|
* 实例名,可自定义。只能包含中英文、数字以及- _ .
|
|
151
143
|
*/
|
|
152
144
|
InstanceName: string;
|
|
145
|
+
/**
|
|
146
|
+
* VPCID,不填时为默认VPCID
|
|
147
|
+
*/
|
|
148
|
+
VPCId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 子网 ID,不填时为默认子网 ID
|
|
151
|
+
*/
|
|
152
|
+
SubnetId?: string;
|
|
153
153
|
/**
|
|
154
154
|
* 业务组,默认Default
|
|
155
155
|
*/
|