tencentcloud-sdk-nodejs 4.0.448 → 4.0.449
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 +179 -0
- package/SERVICE_CHANGELOG.md +277 -30
- package/package.json +1 -1
- package/products.md +9 -7
- package/src/common/sdk_version.ts +1 -1
- package/src/services/bpaas/index.ts +5 -0
- package/src/services/bpaas/v20181217/bpaas_client.ts +59 -0
- package/src/services/bpaas/v20181217/bpaas_models.ts +291 -0
- package/src/services/bpaas/v20181217/index.ts +6 -0
- package/src/services/cam/v20190116/cam_models.ts +2 -2
- package/src/services/ckafka/v20190819/ckafka_client.ts +2 -1
- package/src/services/ckafka/v20190819/ckafka_models.ts +86 -10
- package/src/services/ess/v20201111/ess_models.ts +1 -1
- package/src/services/index.ts +2 -0
- package/src/services/lcic/index.ts +5 -0
- package/src/services/lcic/v20220817/index.ts +6 -0
- package/src/services/lcic/v20220817/lcic_client.ts +115 -0
- package/src/services/lcic/v20220817/lcic_models.ts +371 -0
- package/src/services/live/v20180801/live_models.ts +19 -16
- package/src/services/organization/v20210331/organization_models.ts +7 -1
- package/src/services/postgres/v20170312/postgres_client.ts +1 -1
- package/src/services/postgres/v20170312/postgres_models.ts +76 -12
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/bpaas/index.d.ts +6 -0
- package/tencentcloud/services/bpaas/index.js +7 -0
- package/tencentcloud/services/bpaas/v20181217/bpaas_client.d.ts +18 -0
- package/tencentcloud/services/bpaas/v20181217/bpaas_client.js +43 -0
- package/tencentcloud/services/bpaas/v20181217/bpaas_models.d.ts +233 -0
- package/tencentcloud/services/bpaas/v20181217/bpaas_models.js +18 -0
- package/tencentcloud/services/bpaas/v20181217/index.d.ts +6 -0
- package/tencentcloud/services/bpaas/v20181217/index.js +9 -0
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +2 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +72 -8
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +2 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/lcic/index.d.ts +6 -0
- package/tencentcloud/services/lcic/index.js +7 -0
- package/tencentcloud/services/lcic/v20220817/index.d.ts +6 -0
- package/tencentcloud/services/lcic/v20220817/index.js +9 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +38 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.js +73 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +302 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.js +18 -0
- package/tencentcloud/services/live/v20180801/live_models.d.ts +16 -13
- package/tencentcloud/services/organization/v20210331/organization_models.d.ts +6 -1
- package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +1 -1
- package/tencentcloud/services/postgres/v20170312/postgres_client.js +1 -1
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +67 -11
- package/test/bpaas.v20181217.test.js +41 -0
- package/test/lcic.v20220817.test.js +91 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateRoom请求参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateRoomRequest {
|
|
5
|
+
/**
|
|
6
|
+
* 房间名称。
|
|
7
|
+
*/
|
|
8
|
+
Name: string;
|
|
9
|
+
/**
|
|
10
|
+
* 预定的房间开始时间,unix时间戳。
|
|
11
|
+
*/
|
|
12
|
+
StartTime: number;
|
|
13
|
+
/**
|
|
14
|
+
* 预定的房间结束时间,unix时间戳。
|
|
15
|
+
*/
|
|
16
|
+
EndTime: number;
|
|
17
|
+
/**
|
|
18
|
+
* 低代码互动课堂的SdkAppId。
|
|
19
|
+
*/
|
|
20
|
+
SdkAppId: number;
|
|
21
|
+
/**
|
|
22
|
+
* 分辨率。可以有如下取值:
|
|
23
|
+
1 标清
|
|
24
|
+
2 高清
|
|
25
|
+
3 全高清
|
|
26
|
+
*/
|
|
27
|
+
Resolution: number;
|
|
28
|
+
/**
|
|
29
|
+
* 最大连麦人数(不包括老师)。取值范围[0, 17)
|
|
30
|
+
*/
|
|
31
|
+
MaxMicNumber: number;
|
|
32
|
+
/**
|
|
33
|
+
* 房间子类型,可以有以下取值:
|
|
34
|
+
videodoc 文档+视频
|
|
35
|
+
video 纯视频
|
|
36
|
+
coteaching 双师
|
|
37
|
+
*/
|
|
38
|
+
SubType: string;
|
|
39
|
+
/**
|
|
40
|
+
* 老师ID。
|
|
41
|
+
*/
|
|
42
|
+
TeacherId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 进入房间时是否自动连麦。可以有以下取值:
|
|
45
|
+
0 不自动连麦(默认值)
|
|
46
|
+
1 自动连麦
|
|
47
|
+
*/
|
|
48
|
+
AutoMic?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 高音质模式。可以有以下取值:
|
|
51
|
+
0 不开启高音质(默认值)
|
|
52
|
+
1 开启高音质
|
|
53
|
+
*/
|
|
54
|
+
AudioQuality?: number;
|
|
55
|
+
/**
|
|
56
|
+
* 禁止录制。可以有以下取值:
|
|
57
|
+
0 不禁止录制(默认值)
|
|
58
|
+
1 禁止录制
|
|
59
|
+
*/
|
|
60
|
+
DisableRecord?: number;
|
|
61
|
+
/**
|
|
62
|
+
* 助教Id列表。
|
|
63
|
+
*/
|
|
64
|
+
Assistants?: Array<string>;
|
|
65
|
+
/**
|
|
66
|
+
* 录制布局。
|
|
67
|
+
*/
|
|
68
|
+
RecordLayout?: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* CreateSupervisor请求参数结构体
|
|
72
|
+
*/
|
|
73
|
+
export declare type CreateSupervisorRequest = null;
|
|
74
|
+
/**
|
|
75
|
+
* DescribeRoom返回参数结构体
|
|
76
|
+
*/
|
|
77
|
+
export interface DescribeRoomResponse {
|
|
78
|
+
/**
|
|
79
|
+
* 房间名称。
|
|
80
|
+
*/
|
|
81
|
+
Name: string;
|
|
82
|
+
/**
|
|
83
|
+
* 预定的房间开始时间,unix时间戳。
|
|
84
|
+
*/
|
|
85
|
+
StartTime: number;
|
|
86
|
+
/**
|
|
87
|
+
* 预定的房间结束时间,unix时间戳。
|
|
88
|
+
*/
|
|
89
|
+
EndTime: number;
|
|
90
|
+
/**
|
|
91
|
+
* 老师ID。
|
|
92
|
+
*/
|
|
93
|
+
TeacherId: string;
|
|
94
|
+
/**
|
|
95
|
+
* 低代码互动课堂的SdkAppId。
|
|
96
|
+
*/
|
|
97
|
+
SdkAppId: number;
|
|
98
|
+
/**
|
|
99
|
+
* 分辨率。可以有如下取值:
|
|
100
|
+
1 标清
|
|
101
|
+
2 高清
|
|
102
|
+
3 全高清
|
|
103
|
+
*/
|
|
104
|
+
Resolution: number;
|
|
105
|
+
/**
|
|
106
|
+
* 最大连麦人数(不包括老师)。取值范围[0, 17)
|
|
107
|
+
*/
|
|
108
|
+
MaxMicNumber: number;
|
|
109
|
+
/**
|
|
110
|
+
* 进入房间时是否自动连麦。可以有以下取值:
|
|
111
|
+
0 不自动连麦(默认值)
|
|
112
|
+
1 自动连麦
|
|
113
|
+
*/
|
|
114
|
+
AutoMic: number;
|
|
115
|
+
/**
|
|
116
|
+
* 高音质模式。可以有以下取值:
|
|
117
|
+
0 不开启高音质(默认值)
|
|
118
|
+
1 开启高音质
|
|
119
|
+
*/
|
|
120
|
+
AudioQuality: number;
|
|
121
|
+
/**
|
|
122
|
+
* 房间子类型,可以有以下取值:
|
|
123
|
+
videodoc 文档+视频
|
|
124
|
+
video 纯视频
|
|
125
|
+
coteaching 双师
|
|
126
|
+
*/
|
|
127
|
+
SubType: string;
|
|
128
|
+
/**
|
|
129
|
+
* 禁止录制。可以有以下取值:
|
|
130
|
+
0 不禁止录制(默认值)
|
|
131
|
+
1 禁止录制
|
|
132
|
+
*/
|
|
133
|
+
DisableRecord: number;
|
|
134
|
+
/**
|
|
135
|
+
* 助教Id列表。
|
|
136
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
137
|
+
*/
|
|
138
|
+
Assistants: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
141
|
+
*/
|
|
142
|
+
RequestId?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* RegisterUser请求参数结构体
|
|
146
|
+
*/
|
|
147
|
+
export interface RegisterUserRequest {
|
|
148
|
+
/**
|
|
149
|
+
* 低代码互动课堂的SdkAppId。
|
|
150
|
+
*/
|
|
151
|
+
SdkAppId: number;
|
|
152
|
+
/**
|
|
153
|
+
* 用户名称。
|
|
154
|
+
*/
|
|
155
|
+
Name?: string;
|
|
156
|
+
/**
|
|
157
|
+
* 用户在客户系统的Id,需要在同一应用下唯一。
|
|
158
|
+
*/
|
|
159
|
+
OriginId?: string;
|
|
160
|
+
/**
|
|
161
|
+
* 用户头像。
|
|
162
|
+
*/
|
|
163
|
+
Avatar?: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* LoginOriginId请求参数结构体
|
|
167
|
+
*/
|
|
168
|
+
export interface LoginOriginIdRequest {
|
|
169
|
+
/**
|
|
170
|
+
* 低代码互动课堂的SdkAppId。
|
|
171
|
+
*/
|
|
172
|
+
SdkAppId: number;
|
|
173
|
+
/**
|
|
174
|
+
* 用户在客户系统的Id,需要在同一应用下唯一。
|
|
175
|
+
*/
|
|
176
|
+
OriginId: string;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* DescribeUser请求参数结构体
|
|
180
|
+
*/
|
|
181
|
+
export interface DescribeUserRequest {
|
|
182
|
+
/**
|
|
183
|
+
* 用户Id。
|
|
184
|
+
*/
|
|
185
|
+
UserId: string;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* RegisterUser返回参数结构体
|
|
189
|
+
*/
|
|
190
|
+
export interface RegisterUserResponse {
|
|
191
|
+
/**
|
|
192
|
+
* 用户Id。
|
|
193
|
+
*/
|
|
194
|
+
UserId: string;
|
|
195
|
+
/**
|
|
196
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
197
|
+
*/
|
|
198
|
+
Token: string;
|
|
199
|
+
/**
|
|
200
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
201
|
+
*/
|
|
202
|
+
RequestId?: string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* LoginUser请求参数结构体
|
|
206
|
+
*/
|
|
207
|
+
export interface LoginUserRequest {
|
|
208
|
+
/**
|
|
209
|
+
* 注册获取的用户id。
|
|
210
|
+
*/
|
|
211
|
+
UserId: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* CreateSupervisor返回参数结构体
|
|
215
|
+
*/
|
|
216
|
+
export interface CreateSupervisorResponse {
|
|
217
|
+
/**
|
|
218
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
219
|
+
*/
|
|
220
|
+
RequestId?: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* CreateRoom返回参数结构体
|
|
224
|
+
*/
|
|
225
|
+
export interface CreateRoomResponse {
|
|
226
|
+
/**
|
|
227
|
+
* 房间ID。
|
|
228
|
+
*/
|
|
229
|
+
RoomId: number;
|
|
230
|
+
/**
|
|
231
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
232
|
+
*/
|
|
233
|
+
RequestId?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* DescribeUser返回参数结构体
|
|
237
|
+
*/
|
|
238
|
+
export interface DescribeUserResponse {
|
|
239
|
+
/**
|
|
240
|
+
* 应用Id。
|
|
241
|
+
*/
|
|
242
|
+
SdkAppId: number;
|
|
243
|
+
/**
|
|
244
|
+
* 用户Id。
|
|
245
|
+
*/
|
|
246
|
+
UserId: string;
|
|
247
|
+
/**
|
|
248
|
+
* 用户昵称。
|
|
249
|
+
*/
|
|
250
|
+
Name: string;
|
|
251
|
+
/**
|
|
252
|
+
* 用户头像Url。
|
|
253
|
+
*/
|
|
254
|
+
Avatar: string;
|
|
255
|
+
/**
|
|
256
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
257
|
+
*/
|
|
258
|
+
RequestId?: string;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* DescribeRoom请求参数结构体
|
|
262
|
+
*/
|
|
263
|
+
export interface DescribeRoomRequest {
|
|
264
|
+
/**
|
|
265
|
+
* 房间Id。
|
|
266
|
+
*/
|
|
267
|
+
RoomId: number;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* LoginOriginId返回参数结构体
|
|
271
|
+
*/
|
|
272
|
+
export interface LoginOriginIdResponse {
|
|
273
|
+
/**
|
|
274
|
+
* 用户Id。
|
|
275
|
+
*/
|
|
276
|
+
UserId: string;
|
|
277
|
+
/**
|
|
278
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
279
|
+
*/
|
|
280
|
+
Token: string;
|
|
281
|
+
/**
|
|
282
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
283
|
+
*/
|
|
284
|
+
RequestId?: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* LoginUser返回参数结构体
|
|
288
|
+
*/
|
|
289
|
+
export interface LoginUserResponse {
|
|
290
|
+
/**
|
|
291
|
+
* 用户Id。
|
|
292
|
+
*/
|
|
293
|
+
UserId: string;
|
|
294
|
+
/**
|
|
295
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
296
|
+
*/
|
|
297
|
+
Token: string;
|
|
298
|
+
/**
|
|
299
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
300
|
+
*/
|
|
301
|
+
RequestId?: string;
|
|
302
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6361,6 +6361,22 @@ export interface ModifyLiveSnapshotTemplateRequest {
|
|
|
6361
6361
|
* 模板 ID。
|
|
6362
6362
|
*/
|
|
6363
6363
|
TemplateId: number;
|
|
6364
|
+
/**
|
|
6365
|
+
* Cos 应用 ID。
|
|
6366
|
+
**注:此参数现在须必选。**
|
|
6367
|
+
*/
|
|
6368
|
+
CosAppId: number;
|
|
6369
|
+
/**
|
|
6370
|
+
* Cos Bucket名称。
|
|
6371
|
+
注:CosBucket参数值不能包含-[appid] 部分。
|
|
6372
|
+
**注:此参数现在须必选。**
|
|
6373
|
+
*/
|
|
6374
|
+
CosBucket: string;
|
|
6375
|
+
/**
|
|
6376
|
+
* Cos 地域。
|
|
6377
|
+
**注:此参数现在须必选。**
|
|
6378
|
+
*/
|
|
6379
|
+
CosRegion: string;
|
|
6364
6380
|
/**
|
|
6365
6381
|
* 模板名称。
|
|
6366
6382
|
长度上限:255字节。
|
|
@@ -6390,19 +6406,6 @@ export interface ModifyLiveSnapshotTemplateRequest {
|
|
|
6390
6406
|
1:开启。
|
|
6391
6407
|
*/
|
|
6392
6408
|
PornFlag?: number;
|
|
6393
|
-
/**
|
|
6394
|
-
* Cos 应用 ID。
|
|
6395
|
-
*/
|
|
6396
|
-
CosAppId?: number;
|
|
6397
|
-
/**
|
|
6398
|
-
* Cos Bucket名称。
|
|
6399
|
-
注:CosBucket参数值不能包含-[appid] 部分。
|
|
6400
|
-
*/
|
|
6401
|
-
CosBucket?: string;
|
|
6402
|
-
/**
|
|
6403
|
-
* Cos 地域。
|
|
6404
|
-
*/
|
|
6405
|
-
CosRegion?: string;
|
|
6406
6409
|
/**
|
|
6407
6410
|
* Cos Bucket文件夹前缀。
|
|
6408
6411
|
*/
|
|
@@ -105,6 +105,11 @@ export interface DescribeOrganizationResponse {
|
|
|
105
105
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
106
106
|
*/
|
|
107
107
|
IsAssignManager: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* 是否主体管理员 true-是、false-否
|
|
110
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
111
|
+
*/
|
|
112
|
+
IsAuthManager: boolean;
|
|
108
113
|
/**
|
|
109
114
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
110
115
|
*/
|
|
@@ -348,7 +353,7 @@ export interface DescribeOrganizationRequest {
|
|
|
348
353
|
*/
|
|
349
354
|
Lang?: string;
|
|
350
355
|
/**
|
|
351
|
-
*
|
|
356
|
+
* 产品简称(查询是否集团服务委派管理员必填)
|
|
352
357
|
*/
|
|
353
358
|
Product?: string;
|
|
354
359
|
}
|
|
@@ -116,7 +116,7 @@ export declare class Client extends AbstractClient {
|
|
|
116
116
|
*/
|
|
117
117
|
ModifyDBInstanceName(req: ModifyDBInstanceNameRequest, cb?: (error: string, rep: ModifyDBInstanceNameResponse) => void): Promise<ModifyDBInstanceNameResponse>;
|
|
118
118
|
/**
|
|
119
|
-
* 本接口(InquiryPriceUpgradeDBInstance
|
|
119
|
+
* 本接口(InquiryPriceUpgradeDBInstance)用于查询升级实例的价格。只支持按量计费实例。
|
|
120
120
|
*/
|
|
121
121
|
InquiryPriceUpgradeDBInstance(req: InquiryPriceUpgradeDBInstanceRequest, cb?: (error: string, rep: InquiryPriceUpgradeDBInstanceResponse) => void): Promise<InquiryPriceUpgradeDBInstanceResponse>;
|
|
122
122
|
/**
|
|
@@ -190,7 +190,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
190
190
|
return this.request("ModifyDBInstanceName", req, cb);
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* 本接口(InquiryPriceUpgradeDBInstance
|
|
193
|
+
* 本接口(InquiryPriceUpgradeDBInstance)用于查询升级实例的价格。只支持按量计费实例。
|
|
194
194
|
*/
|
|
195
195
|
async InquiryPriceUpgradeDBInstance(req, cb) {
|
|
196
196
|
return this.request("InquiryPriceUpgradeDBInstance", req, cb);
|
|
@@ -306,6 +306,26 @@ export interface CreateInstancesRequest {
|
|
|
306
306
|
* 使用KMS服务的地域,KMSRegion为空默认使用本地域的KMS,本地域不支持的情况下需自选其他KMS支持的地域。
|
|
307
307
|
*/
|
|
308
308
|
KMSRegion?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 数据库引擎,支持:
|
|
311
|
+
1、postgresql(云数据库PostgreSQL);
|
|
312
|
+
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
313
|
+
如不指定默认使用postgresql。
|
|
314
|
+
*/
|
|
315
|
+
DBEngine?: string;
|
|
316
|
+
/**
|
|
317
|
+
* 数据库引擎的配置信息,配置格式如下:
|
|
318
|
+
{"$key1":"$value1", "$key2":"$value2"}
|
|
319
|
+
|
|
320
|
+
各引擎支持如下:
|
|
321
|
+
1、mssql_compatible引擎:
|
|
322
|
+
migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。
|
|
323
|
+
defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
324
|
+
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。
|
|
325
|
+
serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:
|
|
326
|
+
"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。
|
|
327
|
+
*/
|
|
328
|
+
DBEngineConfig?: string;
|
|
309
329
|
}
|
|
310
330
|
/**
|
|
311
331
|
* 描述一种规格的信息
|
|
@@ -344,7 +364,7 @@ export interface SpecItemInfo {
|
|
|
344
364
|
*/
|
|
345
365
|
Qps: number;
|
|
346
366
|
/**
|
|
347
|
-
*
|
|
367
|
+
* 【该字段废弃】
|
|
348
368
|
*/
|
|
349
369
|
Pid: number;
|
|
350
370
|
/**
|
|
@@ -619,6 +639,13 @@ export interface DescribeProductConfigRequest {
|
|
|
619
639
|
* 可用区名称
|
|
620
640
|
*/
|
|
621
641
|
Zone?: string;
|
|
642
|
+
/**
|
|
643
|
+
* 数据库引擎,支持:
|
|
644
|
+
1、postgresql(云数据库PostgreSQL);
|
|
645
|
+
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
646
|
+
如不指定默认使用postgresql。
|
|
647
|
+
*/
|
|
648
|
+
DBEngine?: string;
|
|
622
649
|
}
|
|
623
650
|
/**
|
|
624
651
|
* InitDBInstances返回参数结构体
|
|
@@ -816,13 +843,25 @@ export interface InquiryPriceCreateDBInstancesRequest {
|
|
|
816
843
|
*/
|
|
817
844
|
Period: number;
|
|
818
845
|
/**
|
|
819
|
-
*
|
|
846
|
+
* 【弃字段,不再生效】,计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
|
|
820
847
|
*/
|
|
821
|
-
Pid
|
|
848
|
+
Pid?: number;
|
|
822
849
|
/**
|
|
823
850
|
* 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
|
|
824
851
|
*/
|
|
825
852
|
InstanceChargeType?: string;
|
|
853
|
+
/**
|
|
854
|
+
* 实例类型,默认primary,支持如下:
|
|
855
|
+
primary(双机高可用(一主一从))
|
|
856
|
+
readonly(只读实例)
|
|
857
|
+
*/
|
|
858
|
+
InstanceType?: string;
|
|
859
|
+
/**
|
|
860
|
+
* DB引擎,默认postgresql,支持如下:
|
|
861
|
+
postgresql(云数据库PostgreSQL)
|
|
862
|
+
mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
863
|
+
*/
|
|
864
|
+
DBEngine?: string;
|
|
826
865
|
}
|
|
827
866
|
/**
|
|
828
867
|
* 单条SlowQuery信息
|
|
@@ -938,6 +977,11 @@ export interface CloneDBInstanceResponse {
|
|
|
938
977
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
939
978
|
*/
|
|
940
979
|
BillId: string;
|
|
980
|
+
/**
|
|
981
|
+
* 克隆出的新实例ID,当前只支持后付费返回该值。
|
|
982
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
983
|
+
*/
|
|
984
|
+
DBInstanceId: string;
|
|
941
985
|
/**
|
|
942
986
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
943
987
|
*/
|
|
@@ -1060,11 +1104,11 @@ export interface OpenServerlessDBExtranetAccessResponse {
|
|
|
1060
1104
|
*/
|
|
1061
1105
|
export interface InquiryPriceCreateDBInstancesResponse {
|
|
1062
1106
|
/**
|
|
1063
|
-
*
|
|
1107
|
+
* 刊例价,单位:分
|
|
1064
1108
|
*/
|
|
1065
1109
|
OriginalPrice: number;
|
|
1066
1110
|
/**
|
|
1067
|
-
*
|
|
1111
|
+
* 折后实际付款金额,单位:分
|
|
1068
1112
|
*/
|
|
1069
1113
|
Price: number;
|
|
1070
1114
|
/**
|
|
@@ -2200,7 +2244,7 @@ export interface InquiryPriceUpgradeDBInstanceRequest {
|
|
|
2200
2244
|
*/
|
|
2201
2245
|
DBInstanceId: string;
|
|
2202
2246
|
/**
|
|
2203
|
-
*
|
|
2247
|
+
* 【废弃参数,不再生效】,实例计费类型。
|
|
2204
2248
|
*/
|
|
2205
2249
|
InstanceChargeType?: string;
|
|
2206
2250
|
}
|
|
@@ -2571,6 +2615,18 @@ export interface DBInstance {
|
|
|
2571
2615
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2572
2616
|
*/
|
|
2573
2617
|
IsSupportTDE: number;
|
|
2618
|
+
/**
|
|
2619
|
+
* 数据库引擎,支持:
|
|
2620
|
+
1、postgresql(云数据库PostgreSQL);
|
|
2621
|
+
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
2622
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2623
|
+
*/
|
|
2624
|
+
DBEngine: string;
|
|
2625
|
+
/**
|
|
2626
|
+
* 数据库引擎的配置信息
|
|
2627
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2628
|
+
*/
|
|
2629
|
+
DBEngineConfig: string;
|
|
2574
2630
|
}
|
|
2575
2631
|
/**
|
|
2576
2632
|
* DescribeProductConfig返回参数结构体
|
|
@@ -2744,10 +2800,6 @@ export interface CreateReadOnlyDBInstanceRequest {
|
|
|
2744
2800
|
* 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
|
|
2745
2801
|
*/
|
|
2746
2802
|
SpecCode: string;
|
|
2747
|
-
/**
|
|
2748
|
-
* PostgreSQL内核版本,目前强制和主实例保持一致
|
|
2749
|
-
*/
|
|
2750
|
-
DBVersion: string;
|
|
2751
2803
|
/**
|
|
2752
2804
|
* 实例容量大小,单位:GB。
|
|
2753
2805
|
*/
|
|
@@ -2773,7 +2825,11 @@ export interface CreateReadOnlyDBInstanceRequest {
|
|
|
2773
2825
|
*/
|
|
2774
2826
|
ProjectId?: number;
|
|
2775
2827
|
/**
|
|
2776
|
-
*
|
|
2828
|
+
* 【废弃】不再需要指定,内核版本号与主实例保持一致
|
|
2829
|
+
*/
|
|
2830
|
+
DBVersion?: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。如果主实例为后付费,只读实例必须也为后付费。
|
|
2777
2833
|
*/
|
|
2778
2834
|
InstanceChargeType?: string;
|
|
2779
2835
|
/**
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.bpaas.v20181217.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("bpaas.v20181217.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("bpaas.v20181217.GetBpaasApproveDetail", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.GetBpaasApproveDetail({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("bpaas.v20181217.OutApproveBpaasApplication", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.OutApproveBpaasApplication({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
})
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.lcic.v20220817.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("lcic.v20220817.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("lcic.v20220817.DescribeUser", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeUser({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("lcic.v20220817.LoginOriginId", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.LoginOriginId({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("lcic.v20220817.RegisterUser", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.RegisterUser({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("lcic.v20220817.LoginUser", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.LoginUser({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("lcic.v20220817.CreateSupervisor", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.CreateSupervisor({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("lcic.v20220817.DescribeRoom", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeRoom({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("lcic.v20220817.CreateRoom", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.CreateRoom({})
|
|
84
|
+
expect(data).to.be.ok
|
|
85
|
+
} catch(error) {
|
|
86
|
+
expect(error.requestId).to.be.ok
|
|
87
|
+
expect(error.code).to.be.ok
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
})
|