tencentcloud-sdk-nodejs 4.0.626 → 4.0.627
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/CHANGELOG.md +144 -0
- package/SERVICE_CHANGELOG.md +192 -170
- package/package.json +1 -1
- package/products.md +9 -9
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_client.ts +18 -6
- package/src/services/cdb/v20170320/cdb_models.ts +28 -0
- package/src/services/clb/v20180317/clb_models.ts +1 -1
- package/src/services/cynosdb/v20190107/cynosdb_client.ts +13 -0
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +33 -0
- package/src/services/emr/v20190103/emr_models.ts +2 -2
- package/src/services/ocr/v20181119/ocr_models.ts +2 -2
- package/src/services/tbp/v20190311/tbp_models.ts +5 -5
- package/src/services/vod/v20180717/vod_client.ts +127 -41
- package/src/services/vod/v20180717/vod_models.ts +939 -164
- package/src/services/yinsuda/v20220527/yinsuda_client.ts +13 -0
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +87 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +7 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +9 -3
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +26 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +5 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +6 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +30 -0
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +2 -2
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +2 -2
- package/tencentcloud/services/tbp/v20190311/tbp_models.d.ts +5 -5
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +33 -13
- package/tencentcloud/services/vod/v20180717/vod_client.js +47 -17
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +909 -170
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +5 -1
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.js +6 -0
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +84 -0
- package/test/cdb.v20170320.test.js +12 -2
- package/test/cynosdb.v20190107.test.js +10 -0
- package/test/vod.v20180717.test.js +66 -16
- package/test/yinsuda.v20220527.test.js +10 -0
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
DescribeDataBackupOverviewResponse,
|
|
39
39
|
DeleteAuditPolicyRequest,
|
|
40
40
|
BackupSummaryItem,
|
|
41
|
+
CreateDatabaseRequest,
|
|
41
42
|
ModifyInstanceParamRequest,
|
|
42
43
|
CreateParamTemplateRequest,
|
|
43
44
|
DescribeSupportedPrivilegesRequest,
|
|
@@ -135,6 +136,7 @@ import {
|
|
|
135
136
|
ModifyAccountPasswordResponse,
|
|
136
137
|
ReleaseIsolatedDBInstancesRequest,
|
|
137
138
|
BinlogInfo,
|
|
139
|
+
CreateDatabaseResponse,
|
|
138
140
|
DescribeErrorLogDataResponse,
|
|
139
141
|
AddTimeWindowRequest,
|
|
140
142
|
ImportRecord,
|
|
@@ -787,6 +789,16 @@ export class Client extends AbstractClient {
|
|
|
787
789
|
return this.request("SwitchDBInstanceMasterSlave", req, cb)
|
|
788
790
|
}
|
|
789
791
|
|
|
792
|
+
/**
|
|
793
|
+
* 本接口(DeleteAuditPolicy)用于删除用户的审计策略。
|
|
794
|
+
*/
|
|
795
|
+
async DeleteAuditPolicy(
|
|
796
|
+
req: DeleteAuditPolicyRequest,
|
|
797
|
+
cb?: (error: string, rep: DeleteAuditPolicyResponse) => void
|
|
798
|
+
): Promise<DeleteAuditPolicyResponse> {
|
|
799
|
+
return this.request("DeleteAuditPolicy", req, cb)
|
|
800
|
+
}
|
|
801
|
+
|
|
790
802
|
/**
|
|
791
803
|
* 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
|
|
792
804
|
*/
|
|
@@ -1016,13 +1028,13 @@ export class Client extends AbstractClient {
|
|
|
1016
1028
|
}
|
|
1017
1029
|
|
|
1018
1030
|
/**
|
|
1019
|
-
* 本接口(
|
|
1031
|
+
* 本接口(CreateDatabase)用于在云数据库实例中创建数据库。
|
|
1020
1032
|
*/
|
|
1021
|
-
async
|
|
1022
|
-
req:
|
|
1023
|
-
cb?: (error: string, rep:
|
|
1024
|
-
): Promise<
|
|
1025
|
-
return this.request("
|
|
1033
|
+
async CreateDatabase(
|
|
1034
|
+
req: CreateDatabaseRequest,
|
|
1035
|
+
cb?: (error: string, rep: CreateDatabaseResponse) => void
|
|
1036
|
+
): Promise<CreateDatabaseResponse> {
|
|
1037
|
+
return this.request("CreateDatabase", req, cb)
|
|
1026
1038
|
}
|
|
1027
1039
|
|
|
1028
1040
|
/**
|
|
@@ -608,6 +608,24 @@ export interface BackupSummaryItem {
|
|
|
608
608
|
BackupVolume: number
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
+
/**
|
|
612
|
+
* CreateDatabase请求参数结构体
|
|
613
|
+
*/
|
|
614
|
+
export interface CreateDatabaseRequest {
|
|
615
|
+
/**
|
|
616
|
+
* 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
|
617
|
+
*/
|
|
618
|
+
InstanceId: string
|
|
619
|
+
/**
|
|
620
|
+
* 数据库名称。
|
|
621
|
+
*/
|
|
622
|
+
DBName: string
|
|
623
|
+
/**
|
|
624
|
+
* 字符集,可选值:utf8,gbk,latin1,utf8mb4。
|
|
625
|
+
*/
|
|
626
|
+
CharacterSetName: string
|
|
627
|
+
}
|
|
628
|
+
|
|
611
629
|
/**
|
|
612
630
|
* ModifyInstanceParam请求参数结构体
|
|
613
631
|
*/
|
|
@@ -2848,6 +2866,16 @@ export interface BinlogInfo {
|
|
|
2848
2866
|
InstanceId: string
|
|
2849
2867
|
}
|
|
2850
2868
|
|
|
2869
|
+
/**
|
|
2870
|
+
* CreateDatabase返回参数结构体
|
|
2871
|
+
*/
|
|
2872
|
+
export interface CreateDatabaseResponse {
|
|
2873
|
+
/**
|
|
2874
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2875
|
+
*/
|
|
2876
|
+
RequestId?: string
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2851
2879
|
/**
|
|
2852
2880
|
* DescribeErrorLogData返回参数结构体
|
|
2853
2881
|
*/
|
|
@@ -204,7 +204,7 @@ OPEN:公网属性, INTERNAL:内网属性。
|
|
|
204
204
|
*/
|
|
205
205
|
ProjectId?: number
|
|
206
206
|
/**
|
|
207
|
-
* 仅适用于公网负载均衡。IP版本,可取值:IPV4、IPV6、IPv6FullChain
|
|
207
|
+
* 仅适用于公网负载均衡。IP版本,可取值:IPV4、IPV6、IPv6FullChain,不区分大小写,默认值 IPV4。说明:取值为IPV6表示为IPV6 NAT64版本;取值为IPv6FullChain,表示为IPv6版本。
|
|
208
208
|
*/
|
|
209
209
|
AddressIPVersion?: string
|
|
210
210
|
/**
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
|
+
ProxySpec,
|
|
21
22
|
RemoveClusterSlaveZoneRequest,
|
|
22
23
|
ModifyClusterNameRequest,
|
|
23
24
|
ModifyProxyRwSplitRequest,
|
|
@@ -60,6 +61,7 @@ import {
|
|
|
60
61
|
DescribeZonesRequest,
|
|
61
62
|
ClusterInstanceDetail,
|
|
62
63
|
AddClusterSlaveZoneResponse,
|
|
64
|
+
DescribeProxySpecsResponse,
|
|
63
65
|
OldAddrInfo,
|
|
64
66
|
ModifyClusterNameResponse,
|
|
65
67
|
SlowQueriesItem,
|
|
@@ -104,6 +106,7 @@ import {
|
|
|
104
106
|
DescribeClustersRequest,
|
|
105
107
|
ParamItem,
|
|
106
108
|
ModifyClusterStorageResponse,
|
|
109
|
+
DescribeProxySpecsRequest,
|
|
107
110
|
CloseClusterPasswordComplexityRequest,
|
|
108
111
|
ModifyDBInstanceSecurityGroupsResponse,
|
|
109
112
|
DeleteAuditLogFileResponse,
|
|
@@ -494,6 +497,16 @@ export class Client extends AbstractClient {
|
|
|
494
497
|
return this.request("CloseProxy", req, cb)
|
|
495
498
|
}
|
|
496
499
|
|
|
500
|
+
/**
|
|
501
|
+
* 查询数据库代理规格
|
|
502
|
+
*/
|
|
503
|
+
async DescribeProxySpecs(
|
|
504
|
+
req?: DescribeProxySpecsRequest,
|
|
505
|
+
cb?: (error: string, rep: DescribeProxySpecsResponse) => void
|
|
506
|
+
): Promise<DescribeProxySpecsResponse> {
|
|
507
|
+
return this.request("DescribeProxySpecs", req, cb)
|
|
508
|
+
}
|
|
509
|
+
|
|
497
510
|
/**
|
|
498
511
|
* 该接口(DescribeClusterDetail)显示集群详情
|
|
499
512
|
*/
|
|
@@ -15,6 +15,20 @@
|
|
|
15
15
|
* under the License.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* 数据库代理规格
|
|
20
|
+
*/
|
|
21
|
+
export interface ProxySpec {
|
|
22
|
+
/**
|
|
23
|
+
* 数据库代理cpu核数
|
|
24
|
+
*/
|
|
25
|
+
Cpu: number
|
|
26
|
+
/**
|
|
27
|
+
* 数据库代理内存
|
|
28
|
+
*/
|
|
29
|
+
Mem: number
|
|
30
|
+
}
|
|
31
|
+
|
|
18
32
|
/**
|
|
19
33
|
* RemoveClusterSlaveZone请求参数结构体
|
|
20
34
|
*/
|
|
@@ -857,6 +871,20 @@ export interface AddClusterSlaveZoneResponse {
|
|
|
857
871
|
RequestId?: string
|
|
858
872
|
}
|
|
859
873
|
|
|
874
|
+
/**
|
|
875
|
+
* DescribeProxySpecs返回参数结构体
|
|
876
|
+
*/
|
|
877
|
+
export interface DescribeProxySpecsResponse {
|
|
878
|
+
/**
|
|
879
|
+
* 数据库代理规格列表
|
|
880
|
+
*/
|
|
881
|
+
ProxySpecs: Array<ProxySpec>
|
|
882
|
+
/**
|
|
883
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
884
|
+
*/
|
|
885
|
+
RequestId?: string
|
|
886
|
+
}
|
|
887
|
+
|
|
860
888
|
/**
|
|
861
889
|
* 数据库地址
|
|
862
890
|
*/
|
|
@@ -1956,6 +1984,11 @@ export interface ModifyClusterStorageResponse {
|
|
|
1956
1984
|
RequestId?: string
|
|
1957
1985
|
}
|
|
1958
1986
|
|
|
1987
|
+
/**
|
|
1988
|
+
* DescribeProxySpecs请求参数结构体
|
|
1989
|
+
*/
|
|
1990
|
+
export type DescribeProxySpecsRequest = null
|
|
1991
|
+
|
|
1959
1992
|
/**
|
|
1960
1993
|
* CloseClusterPasswordComplexity请求参数结构体
|
|
1961
1994
|
*/
|
|
@@ -4346,12 +4346,12 @@ export interface StrategyConfig {
|
|
|
4346
4346
|
*/
|
|
4347
4347
|
RollingRestartSwitch?: number
|
|
4348
4348
|
/**
|
|
4349
|
-
*
|
|
4349
|
+
* 滚动重启每批次的重启数量,最大重启台数为 99999 台
|
|
4350
4350
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4351
4351
|
*/
|
|
4352
4352
|
BatchSize?: number
|
|
4353
4353
|
/**
|
|
4354
|
-
* 滚动重启每批停止等待时间
|
|
4354
|
+
* 滚动重启每批停止等待时间 ,最大间隔为 5 分钟 单位是秒
|
|
4355
4355
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4356
4356
|
*/
|
|
4357
4357
|
TimeWait?: number
|
|
@@ -2858,7 +2858,7 @@ export interface RecognizeGeneralInvoiceRequest {
|
|
|
2858
2858
|
/**
|
|
2859
2859
|
* 图片的 Base64 值。
|
|
2860
2860
|
支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
2861
|
-
支持的图片大小:所下载图片经Base64编码后不超过
|
|
2861
|
+
支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。
|
|
2862
2862
|
支持的图片像素:单边介于20-10000px之间。
|
|
2863
2863
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
2864
2864
|
*/
|
|
@@ -2866,7 +2866,7 @@ export interface RecognizeGeneralInvoiceRequest {
|
|
|
2866
2866
|
/**
|
|
2867
2867
|
* 图片的 Url 地址。
|
|
2868
2868
|
支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
2869
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过
|
|
2869
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。
|
|
2870
2870
|
支持的图片像素:单边介于20-10000px之间。
|
|
2871
2871
|
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
2872
2872
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
@@ -55,15 +55,15 @@ export interface TextProcessResponse {
|
|
|
55
55
|
*/
|
|
56
56
|
ResponseText?: string
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* 结果类型 {中间逻辑出错:0; 任务型机器人:1; 问答型机器人:2; 闲聊型机器人:3; 未匹配上,返回预设兜底话术:5; 未匹配上,返回相似问题列表:6}。
|
|
59
59
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
ResultType?: string
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* 机器人应答。
|
|
64
64
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
ResponseMessage?: ResponseMessage
|
|
67
67
|
/**
|
|
68
68
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
69
69
|
*/
|
|
@@ -199,7 +199,7 @@ export interface ResponseMessage {
|
|
|
199
199
|
* 消息组列表。
|
|
200
200
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
201
201
|
*/
|
|
202
|
-
GroupList?: Group
|
|
202
|
+
GroupList?: Array<Group>
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
/**
|