tencentcloud-sdk-nodejs 4.0.285 → 4.0.286
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 +100 -0
- package/SERVICE_CHANGELOG.md +198 -5
- package/package.json +1 -1
- package/products.md +11 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +4 -4
- package/src/services/cdb/v20170320/cdb_models.ts +9 -4
- package/src/services/cfs/v20190719/cfs_models.ts +5 -0
- package/src/services/clb/v20180317/clb_models.ts +4 -3
- package/src/services/facefusion/v20181201/facefusion_models.ts +2 -2
- package/src/services/index.ts +1 -0
- package/src/services/mariadb/v20170312/mariadb_client.ts +13 -0
- package/src/services/mariadb/v20170312/mariadb_models.ts +65 -0
- package/src/services/smh/index.ts +5 -0
- package/src/services/smh/v20210712/index.ts +6 -0
- package/src/services/smh/v20210712/smh_client.ts +155 -0
- package/src/services/smh/v20210712/smh_models.ts +655 -0
- package/src/services/ssl/v20191205/ssl_models.ts +6 -0
- package/src/services/tat/v20201028/tat_models.ts +1 -1
- package/src/services/tke/v20180525/tke_models.ts +35 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +4 -4
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +8 -4
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +4 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -1
- package/tencentcloud/services/facefusion/v20181201/facefusion_models.d.ts +2 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +5 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +6 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +55 -0
- package/tencentcloud/services/smh/index.d.ts +6 -0
- package/tencentcloud/services/smh/index.js +7 -0
- package/tencentcloud/services/smh/v20210712/index.d.ts +6 -0
- package/tencentcloud/services/smh/v20210712/index.js +9 -0
- package/tencentcloud/services/smh/v20210712/smh_client.d.ts +50 -0
- package/tencentcloud/services/smh/v20210712/smh_client.js +91 -0
- package/tencentcloud/services/smh/v20210712/smh_models.d.ts +538 -0
- package/tencentcloud/services/smh/v20210712/smh_models.js +18 -0
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +5 -0
- package/tencentcloud/services/tat/v20201028/tat_models.d.ts +1 -1
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +34 -2
- package/test/mariadb.v20170312.test.js +10 -0
- package/test/smh.v20210712.test.js +121 -0
|
@@ -1939,6 +1939,26 @@ export interface SecurityGroup {
|
|
|
1939
1939
|
Outbound: Array<SecurityGroupBound>
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
+
/**
|
|
1943
|
+
* DescribeDatabaseTable请求参数结构体
|
|
1944
|
+
*/
|
|
1945
|
+
export interface DescribeDatabaseTableRequest {
|
|
1946
|
+
/**
|
|
1947
|
+
* 实例 ID,形如:dcdbt-ow7t8lmc。
|
|
1948
|
+
*/
|
|
1949
|
+
InstanceId: string
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* 数据库名称,通过 DescribeDatabases 接口获取。
|
|
1953
|
+
*/
|
|
1954
|
+
DbName: string
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* 表名称,通过 DescribeDatabaseObjects 接口获取。
|
|
1958
|
+
*/
|
|
1959
|
+
Table: string
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1942
1962
|
/**
|
|
1943
1963
|
* OpenDBExtranetAccess返回参数结构体
|
|
1944
1964
|
*/
|
|
@@ -2004,6 +2024,21 @@ export interface DeleteAccountRequest {
|
|
|
2004
2024
|
Host: string
|
|
2005
2025
|
}
|
|
2006
2026
|
|
|
2027
|
+
/**
|
|
2028
|
+
* 数据库列信息
|
|
2029
|
+
*/
|
|
2030
|
+
export interface TableColumn {
|
|
2031
|
+
/**
|
|
2032
|
+
* 列名称
|
|
2033
|
+
*/
|
|
2034
|
+
Col: string
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* 列类型
|
|
2038
|
+
*/
|
|
2039
|
+
Type: string
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2007
2042
|
/**
|
|
2008
2043
|
* CreateTmpInstances返回参数结构体
|
|
2009
2044
|
*/
|
|
@@ -3600,6 +3635,36 @@ export interface CreateHourDBInstanceRequest {
|
|
|
3600
3635
|
RollbackTime?: string
|
|
3601
3636
|
}
|
|
3602
3637
|
|
|
3638
|
+
/**
|
|
3639
|
+
* DescribeDatabaseTable返回参数结构体
|
|
3640
|
+
*/
|
|
3641
|
+
export interface DescribeDatabaseTableResponse {
|
|
3642
|
+
/**
|
|
3643
|
+
* 实例名称。
|
|
3644
|
+
*/
|
|
3645
|
+
InstanceId?: string
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* 数据库名称。
|
|
3649
|
+
*/
|
|
3650
|
+
DbName?: string
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* 表名称。
|
|
3654
|
+
*/
|
|
3655
|
+
Table?: string
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* 列信息。
|
|
3659
|
+
*/
|
|
3660
|
+
Cols?: Array<TableColumn>
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3664
|
+
*/
|
|
3665
|
+
RequestId?: string
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3603
3668
|
/**
|
|
3604
3669
|
* DescribeAccountPrivileges请求参数结构体
|
|
3605
3670
|
*/
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
ModifyLibraryResponse,
|
|
22
|
+
DescribeLibrariesResponse,
|
|
23
|
+
SendSmsCodeResponse,
|
|
24
|
+
Instance,
|
|
25
|
+
TrafficPackage,
|
|
26
|
+
DeleteLibraryRequest,
|
|
27
|
+
DescribeTrafficPackagesRequest,
|
|
28
|
+
DescribeTrafficPackagesResponse,
|
|
29
|
+
DescribeLibrarySecretRequest,
|
|
30
|
+
DescribeLibrarySecretResponse,
|
|
31
|
+
SendSmsCodeRequest,
|
|
32
|
+
DescribeOfficialInstancesRequest,
|
|
33
|
+
DescribeLibrariesRequest,
|
|
34
|
+
LibraryExtension,
|
|
35
|
+
VerifySmsCodeResponse,
|
|
36
|
+
ModifyLibraryRequest,
|
|
37
|
+
DescribeOfficialOverviewRequest,
|
|
38
|
+
DeleteLibraryResponse,
|
|
39
|
+
DescribeOfficialInstancesResponse,
|
|
40
|
+
VerifySmsCodeRequest,
|
|
41
|
+
CreateLibraryResponse,
|
|
42
|
+
Library,
|
|
43
|
+
CreateLibraryRequest,
|
|
44
|
+
DescribeOfficialOverviewResponse,
|
|
45
|
+
} from "./smh_models"
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* smh client
|
|
49
|
+
* @class
|
|
50
|
+
*/
|
|
51
|
+
export class Client extends AbstractClient {
|
|
52
|
+
constructor(clientConfig: ClientConfig) {
|
|
53
|
+
super("smh.tencentcloudapi.com", "2021-07-12", clientConfig)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 查询官方云盘实例
|
|
58
|
+
*/
|
|
59
|
+
async DescribeOfficialInstances(
|
|
60
|
+
req: DescribeOfficialInstancesRequest,
|
|
61
|
+
cb?: (error: string, rep: DescribeOfficialInstancesResponse) => void
|
|
62
|
+
): Promise<DescribeOfficialInstancesResponse> {
|
|
63
|
+
return this.request("DescribeOfficialInstances", req, cb)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* 创建 PaaS 服务媒体库
|
|
68
|
+
*/
|
|
69
|
+
async CreateLibrary(
|
|
70
|
+
req: CreateLibraryRequest,
|
|
71
|
+
cb?: (error: string, rep: CreateLibraryResponse) => void
|
|
72
|
+
): Promise<CreateLibraryResponse> {
|
|
73
|
+
return this.request("CreateLibrary", req, cb)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 发送用于换绑官方云盘实例的超级管理员账号的短信验证码
|
|
78
|
+
*/
|
|
79
|
+
async SendSmsCode(
|
|
80
|
+
req: SendSmsCodeRequest,
|
|
81
|
+
cb?: (error: string, rep: SendSmsCodeResponse) => void
|
|
82
|
+
): Promise<SendSmsCodeResponse> {
|
|
83
|
+
return this.request("SendSmsCode", req, cb)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 验证短信验证码以换绑官方云盘实例的超级管理员账号
|
|
88
|
+
*/
|
|
89
|
+
async VerifySmsCode(
|
|
90
|
+
req: VerifySmsCodeRequest,
|
|
91
|
+
cb?: (error: string, rep: VerifySmsCodeResponse) => void
|
|
92
|
+
): Promise<VerifySmsCodeResponse> {
|
|
93
|
+
return this.request("VerifySmsCode", req, cb)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 查询 PaaS 服务媒体库列表
|
|
98
|
+
*/
|
|
99
|
+
async DescribeLibraries(
|
|
100
|
+
req: DescribeLibrariesRequest,
|
|
101
|
+
cb?: (error: string, rep: DescribeLibrariesResponse) => void
|
|
102
|
+
): Promise<DescribeLibrariesResponse> {
|
|
103
|
+
return this.request("DescribeLibraries", req, cb)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* 修改 PaaS 服务媒体库配置项
|
|
108
|
+
*/
|
|
109
|
+
async ModifyLibrary(
|
|
110
|
+
req: ModifyLibraryRequest,
|
|
111
|
+
cb?: (error: string, rep: ModifyLibraryResponse) => void
|
|
112
|
+
): Promise<ModifyLibraryResponse> {
|
|
113
|
+
return this.request("ModifyLibrary", req, cb)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 查询官方云盘实例概览数据
|
|
118
|
+
*/
|
|
119
|
+
async DescribeOfficialOverview(
|
|
120
|
+
req?: DescribeOfficialOverviewRequest,
|
|
121
|
+
cb?: (error: string, rep: DescribeOfficialOverviewResponse) => void
|
|
122
|
+
): Promise<DescribeOfficialOverviewResponse> {
|
|
123
|
+
return this.request("DescribeOfficialOverview", req, cb)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 查询流量资源包
|
|
128
|
+
*/
|
|
129
|
+
async DescribeTrafficPackages(
|
|
130
|
+
req: DescribeTrafficPackagesRequest,
|
|
131
|
+
cb?: (error: string, rep: DescribeTrafficPackagesResponse) => void
|
|
132
|
+
): Promise<DescribeTrafficPackagesResponse> {
|
|
133
|
+
return this.request("DescribeTrafficPackages", req, cb)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 删除 PaaS 服务媒体库
|
|
138
|
+
*/
|
|
139
|
+
async DeleteLibrary(
|
|
140
|
+
req: DeleteLibraryRequest,
|
|
141
|
+
cb?: (error: string, rep: DeleteLibraryResponse) => void
|
|
142
|
+
): Promise<DeleteLibraryResponse> {
|
|
143
|
+
return this.request("DeleteLibrary", req, cb)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 查询 PaaS 服务媒体库密钥
|
|
148
|
+
*/
|
|
149
|
+
async DescribeLibrarySecret(
|
|
150
|
+
req: DescribeLibrarySecretRequest,
|
|
151
|
+
cb?: (error: string, rep: DescribeLibrarySecretResponse) => void
|
|
152
|
+
): Promise<DescribeLibrarySecretResponse> {
|
|
153
|
+
return this.request("DescribeLibrarySecret", req, cb)
|
|
154
|
+
}
|
|
155
|
+
}
|