tencentcloud-sdk-nodejs 4.0.255 → 4.0.256

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +341 -27
  2. package/package.json +1 -1
  3. package/products.md +14 -14
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/as/v20180419/as_client.ts +15 -1
  6. package/src/services/as/v20180419/as_models.ts +65 -5
  7. package/src/services/ckafka/v20190819/ckafka_models.ts +14 -2
  8. package/src/services/clb/v20180317/clb_client.ts +24 -11
  9. package/src/services/clb/v20180317/clb_models.ts +155 -64
  10. package/src/services/cme/v20191029/cme_models.ts +10 -10
  11. package/src/services/eiam/v20210420/eiam_models.ts +30 -0
  12. package/src/services/mongodb/v20190725/mongodb_client.ts +19 -3
  13. package/src/services/mongodb/v20190725/mongodb_models.ts +297 -62
  14. package/src/services/mrs/v20200910/mrs_models.ts +6 -0
  15. package/src/services/rum/v20210622/rum_models.ts +20 -0
  16. package/src/services/tcb/v20180608/tcb_models.ts +1 -1
  17. package/src/services/tdmq/v20200217/tdmq_models.ts +11 -1
  18. package/src/services/tse/v20201207/tse_models.ts +5 -0
  19. package/tencentcloud/common/sdk_version.d.ts +1 -1
  20. package/tencentcloud/common/sdk_version.js +1 -1
  21. package/tencentcloud/services/as/v20180419/as_client.d.ts +5 -1
  22. package/tencentcloud/services/as/v20180419/as_client.js +6 -0
  23. package/tencentcloud/services/as/v20180419/as_models.d.ts +57 -5
  24. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +12 -2
  25. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +9 -5
  26. package/tencentcloud/services/clb/v20180317/clb_client.js +11 -5
  27. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +133 -56
  28. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +8 -9
  29. package/tencentcloud/services/eiam/v20210420/eiam_models.d.ts +25 -0
  30. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +5 -1
  31. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +6 -0
  32. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +249 -55
  33. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +5 -0
  34. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +16 -0
  35. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +1 -1
  36. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +9 -1
  37. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +4 -0
  38. package/test/as.v20180419.test.js +10 -0
  39. package/test/clb.v20180317.test.js +12 -2
  40. package/test/mongodb.v20190725.test.js +10 -0
@@ -211,6 +211,43 @@ export interface CreateBackupDBInstanceResponse {
211
211
  */
212
212
  RequestId?: string;
213
213
  }
214
+ /**
215
+ * 实例分片详情
216
+ */
217
+ export interface ShardInfo {
218
+ /**
219
+ * 分片已使用容量
220
+ */
221
+ UsedVolume: number;
222
+ /**
223
+ * 分片ID
224
+ */
225
+ ReplicaSetId: string;
226
+ /**
227
+ * 分片名
228
+ */
229
+ ReplicaSetName: string;
230
+ /**
231
+ * 分片内存规格,单位为MB
232
+ */
233
+ Memory: number;
234
+ /**
235
+ * 分片磁盘规格,单位为MB
236
+ */
237
+ Volume: number;
238
+ /**
239
+ * 分片Oplog大小,单位为MB
240
+ */
241
+ OplogSize: number;
242
+ /**
243
+ * 分片从节点数
244
+ */
245
+ SecondaryNum: number;
246
+ /**
247
+ * 分片物理id
248
+ */
249
+ RealReplicaSetId: string;
250
+ }
214
251
  /**
215
252
  * 数据库实例价格
216
253
  */
@@ -569,6 +606,39 @@ export interface BackupInfo {
569
606
  */
570
607
  BackupMethod: number;
571
608
  }
609
+ /**
610
+ * 安全组信息
611
+ */
612
+ export interface SecurityGroup {
613
+ /**
614
+ * 所属项目id
615
+ */
616
+ ProjectId: number;
617
+ /**
618
+ * 创建时间
619
+ */
620
+ CreateTime: string;
621
+ /**
622
+ * 入站规则
623
+ */
624
+ Inbound: Array<SecurityGroupBound>;
625
+ /**
626
+ * 出站规则
627
+ */
628
+ Outbound: Array<SecurityGroupBound>;
629
+ /**
630
+ * 安全组id
631
+ */
632
+ SecurityGroupId: string;
633
+ /**
634
+ * 安全组名称
635
+ */
636
+ SecurityGroupName: string;
637
+ /**
638
+ * 安全组备注
639
+ */
640
+ SecurityGroupRemark: string;
641
+ }
572
642
  /**
573
643
  * InquirePriceRenewDBInstances请求参数结构体
574
644
  */
@@ -878,6 +948,51 @@ export interface OfflineIsolatedDBInstanceRequest {
878
948
  */
879
949
  InstanceId: string;
880
950
  }
951
+ /**
952
+ * 实例可修改参数integer类型集合。
953
+ */
954
+ export interface InstanceIntegerParam {
955
+ /**
956
+ * 当前值
957
+ */
958
+ CurrentValue: string;
959
+ /**
960
+ * 默认值
961
+ */
962
+ DefaultValue: string;
963
+ /**
964
+ * 最大值
965
+ */
966
+ Max: string;
967
+ /**
968
+ * 最小值
969
+ */
970
+ Min: string;
971
+ /**
972
+ * 是否徐亚哦重启后生效 1:需要重启;0:无需重启
973
+ */
974
+ NeedRestart: string;
975
+ /**
976
+ * 参数名称
977
+ */
978
+ ParamName: string;
979
+ /**
980
+ * 参数说明
981
+ */
982
+ Tips: Array<string>;
983
+ /**
984
+ * 参数类型
985
+ */
986
+ ValueType: string;
987
+ /**
988
+ * 是否正常获取到,1:未正常获取;0:正常获取,仅对前端有实际意义;
989
+ */
990
+ Status: number;
991
+ /**
992
+ * 暂时未用到,前端使用redis侧代码,为了兼容,保留该参数
993
+ */
994
+ Unit: string;
995
+ }
881
996
  /**
882
997
  * DescribeCurrentOp请求参数结构体
883
998
  */
@@ -1024,6 +1139,35 @@ export interface CreateDBInstanceResponse {
1024
1139
  */
1025
1140
  RequestId?: string;
1026
1141
  }
1142
+ /**
1143
+ * DescribeInstanceParams返回参数结构体
1144
+ */
1145
+ export interface DescribeInstanceParamsResponse {
1146
+ /**
1147
+ * 值为枚举类型参数集合
1148
+ */
1149
+ InstanceEnumParam: Array<InstanceEnumParam>;
1150
+ /**
1151
+ * 值为integer类型参数集合
1152
+ */
1153
+ InstanceIntegerParam: Array<InstanceIntegerParam>;
1154
+ /**
1155
+ * 值为text类型的参数集合
1156
+ */
1157
+ InstanceTextParam: Array<InstanceTextParam>;
1158
+ /**
1159
+ * 值为混合类型的参数集合
1160
+ */
1161
+ InstanceMultiParam: Array<InstanceMultiParam>;
1162
+ /**
1163
+ * 当前实例支持修改的参数个数统计 如0
1164
+ */
1165
+ TotalCount: number;
1166
+ /**
1167
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1168
+ */
1169
+ RequestId?: string;
1170
+ }
1027
1171
  /**
1028
1172
  * DescribeSlowLogs请求参数结构体
1029
1173
  */
@@ -1128,6 +1272,43 @@ export interface DescribeDBBackupsRequest {
1128
1272
  */
1129
1273
  Offset?: number;
1130
1274
  }
1275
+ /**
1276
+ * 实例可修改参数Multi类型集合。
1277
+ */
1278
+ export interface InstanceMultiParam {
1279
+ /**
1280
+ * 当前值
1281
+ */
1282
+ CurrentValue: string;
1283
+ /**
1284
+ * 默认值
1285
+ */
1286
+ DefaultValue: string;
1287
+ /**
1288
+ * 指导值范围
1289
+ */
1290
+ EnumValue: Array<string>;
1291
+ /**
1292
+ * 是否需要重启
1293
+ */
1294
+ NeedRestart: string;
1295
+ /**
1296
+ * 参数名称
1297
+ */
1298
+ ParamName: string;
1299
+ /**
1300
+ * 状态值
1301
+ */
1302
+ Status: number;
1303
+ /**
1304
+ * 参数说明
1305
+ */
1306
+ Tips: Array<string>;
1307
+ /**
1308
+ * 值类型,multi混合类型
1309
+ */
1310
+ ValueType: string;
1311
+ }
1131
1312
  /**
1132
1313
  * DescribeClientConnections请求参数结构体
1133
1314
  */
@@ -1184,37 +1365,41 @@ export interface ModifyDBInstanceSpecResponse {
1184
1365
  RequestId?: string;
1185
1366
  }
1186
1367
  /**
1187
- * 安全组信息
1368
+ * 实例可修改参数text类型集合。
1188
1369
  */
1189
- export interface SecurityGroup {
1370
+ export interface InstanceTextParam {
1190
1371
  /**
1191
- * 所属项目id
1372
+ * 当前值(暂未使用)
1192
1373
  */
1193
- ProjectId: number;
1374
+ CurrentValue: string;
1194
1375
  /**
1195
- * 创建时间
1376
+ * 默认值(暂未使用)
1196
1377
  */
1197
- CreateTime: string;
1378
+ DefaultValue: string;
1198
1379
  /**
1199
- * 入站规则
1380
+ * 是否需要重启(暂未使用)
1200
1381
  */
1201
- Inbound: Array<SecurityGroupBound>;
1382
+ NeedRestart: string;
1202
1383
  /**
1203
- * 出站规则
1384
+ * 参数名称(暂未使用)
1204
1385
  */
1205
- Outbound: Array<SecurityGroupBound>;
1386
+ ParamName: string;
1206
1387
  /**
1207
- * 安全组id
1388
+ * text类型值(暂未使用)
1208
1389
  */
1209
- SecurityGroupId: string;
1390
+ TextValue: string;
1210
1391
  /**
1211
- * 安全组名称
1392
+ * 说明(暂未使用)
1212
1393
  */
1213
- SecurityGroupName: string;
1394
+ Tips: Array<string>;
1214
1395
  /**
1215
- * 安全组备注
1396
+ * 值类型(暂未使用)
1216
1397
  */
1217
- SecurityGroupRemark: string;
1398
+ ValueType: string;
1399
+ /**
1400
+ * 值获取状态(暂未使用)
1401
+ */
1402
+ Status: string;
1218
1403
  }
1219
1404
  /**
1220
1405
  * OfflineIsolatedDBInstance返回参数结构体
@@ -1314,6 +1499,43 @@ export interface RenewDBInstancesResponse {
1314
1499
  */
1315
1500
  RequestId?: string;
1316
1501
  }
1502
+ /**
1503
+ * 实例可修改参数枚举类型集合。
1504
+ */
1505
+ export interface InstanceEnumParam {
1506
+ /**
1507
+ * 参数当前值
1508
+ */
1509
+ CurrentValue: string;
1510
+ /**
1511
+ * 默认值
1512
+ */
1513
+ DefaultValue: string;
1514
+ /**
1515
+ * 枚举值,所有支持的值
1516
+ */
1517
+ EnumValue: Array<string>;
1518
+ /**
1519
+ * 是否需要重启后生效,"1"需要,"0"无需重启
1520
+ */
1521
+ NeedRestart: string;
1522
+ /**
1523
+ * 参数名称
1524
+ */
1525
+ ParamName: string;
1526
+ /**
1527
+ * 中英文说明
1528
+ */
1529
+ Tips: Array<string>;
1530
+ /**
1531
+ * 参数值类型说明
1532
+ */
1533
+ ValueType: string;
1534
+ /**
1535
+ * 是否获取到参数,1为获取,前端正常显示,0:前段显示loading
1536
+ */
1537
+ Status: number;
1538
+ }
1317
1539
  /**
1318
1540
  * DescribeBackupDownloadTask返回参数结构体
1319
1541
  */
@@ -1703,21 +1925,13 @@ export interface CreateBackupDBInstanceRequest {
1703
1925
  BackupRemark?: string;
1704
1926
  }
1705
1927
  /**
1706
- * 需要终止的操作
1928
+ * DescribeInstanceParams请求参数结构体
1707
1929
  */
1708
- export interface Operation {
1930
+ export interface DescribeInstanceParamsRequest {
1709
1931
  /**
1710
- * 操作所在的分片名
1711
- */
1712
- ReplicaSetName: string;
1713
- /**
1714
- * 操作所在的节点名
1715
- */
1716
- NodeName: string;
1717
- /**
1718
- * 操作序号
1932
+ * 实例ID
1719
1933
  */
1720
- OpId: number;
1934
+ InstanceId: string;
1721
1935
  }
1722
1936
  /**
1723
1937
  * 描述了实例的计费模式
@@ -1766,39 +1980,19 @@ export interface RenewDBInstancesRequest {
1766
1980
  InstanceChargePrepaid: InstanceChargePrepaid;
1767
1981
  }
1768
1982
  /**
1769
- * 实例分片详情
1983
+ * 需要终止的操作
1770
1984
  */
1771
- export interface ShardInfo {
1772
- /**
1773
- * 分片已使用容量
1774
- */
1775
- UsedVolume: number;
1776
- /**
1777
- * 分片ID
1778
- */
1779
- ReplicaSetId: string;
1985
+ export interface Operation {
1780
1986
  /**
1781
- * 分片名
1987
+ * 操作所在的分片名
1782
1988
  */
1783
1989
  ReplicaSetName: string;
1784
1990
  /**
1785
- * 分片内存规格,单位为MB
1786
- */
1787
- Memory: number;
1788
- /**
1789
- * 分片磁盘规格,单位为MB
1790
- */
1791
- Volume: number;
1792
- /**
1793
- * 分片Oplog大小,单位为MB
1794
- */
1795
- OplogSize: number;
1796
- /**
1797
- * 分片从节点数
1991
+ * 操作所在的节点名
1798
1992
  */
1799
- SecondaryNum: number;
1993
+ NodeName: string;
1800
1994
  /**
1801
- * 分片物理id
1995
+ * 操作序号
1802
1996
  */
1803
- RealReplicaSetId: string;
1997
+ OpId: number;
1804
1998
  }
@@ -97,6 +97,11 @@ export interface Template {
97
97
  注意:此字段可能返回 null,表示取不到有效值。
98
98
  */
99
99
  OcrText: string;
100
+ /**
101
+ * OCR拼接后文本
102
+ 注意:此字段可能返回 null,表示取不到有效值。
103
+ */
104
+ OcrResult: string;
100
105
  }
101
106
  /**
102
107
  * 弹性质地
@@ -181,6 +181,10 @@ export interface DescribeDataPerformancePageRequest {
181
181
  * 耗时计算方式
182
182
  */
183
183
  CostType?: string;
184
+ /**
185
+ * 环境变量
186
+ */
187
+ Env?: string;
184
188
  }
185
189
  /**
186
190
  * DescribeProjects返回参数结构体
@@ -487,6 +491,10 @@ export interface DescribeDataEventUrlRequest {
487
491
  * 筛选条件
488
492
  */
489
493
  Name?: string;
494
+ /**
495
+ * 环境
496
+ */
497
+ Env?: string;
490
498
  }
491
499
  /**
492
500
  * DescribeDataPvUrlStatistics请求参数结构体
@@ -572,6 +580,10 @@ export interface DescribeDataPvUrlStatisticsRequest {
572
580
  * 浏览器
573
581
  */
574
582
  Browser?: string;
583
+ /**
584
+ * 环境
585
+ */
586
+ Env?: string;
575
587
  }
576
588
  /**
577
589
  * DescribeError返回参数结构体
@@ -678,6 +690,10 @@ export interface DescribeDataLogUrlStatisticsRequest {
678
690
  * 浏览器
679
691
  */
680
692
  Browser?: string;
693
+ /**
694
+ * 环境区分
695
+ */
696
+ Env?: string;
681
697
  }
682
698
  /**
683
699
  * DescribeDataPvUrlStatistics返回参数结构体
@@ -4859,7 +4859,7 @@ export interface ModifyCloudBaseRunServerVersionResponse {
4859
4859
  * 返回结果(succ为成功)
4860
4860
  注意:此字段可能返回 null,表示取不到有效值。
4861
4861
  */
4862
- Result?: string;
4862
+ Result: string;
4863
4863
  /**
4864
4864
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4865
4865
  */
@@ -2772,6 +2772,10 @@ export interface ModifyRocketMQTopicRequest {
2772
2772
  * 说明信息,最大128个字符
2773
2773
  */
2774
2774
  Remark: string;
2775
+ /**
2776
+ * 分区数,全局类型无效,不可小于当前分区数
2777
+ */
2778
+ PartitionNum?: number;
2775
2779
  }
2776
2780
  /**
2777
2781
  * RocketMQ集群基本信息
@@ -4043,7 +4047,7 @@ export interface CreateRocketMQTopicRequest {
4043
4047
  */
4044
4048
  Namespaces: Array<string>;
4045
4049
  /**
4046
- * 主题类型,可选值为Normal, GlobalOrder, PartitionedOrder, Transaction
4050
+ * 主题类型,可选值为Normal, GlobalOrder, PartitionedOrder
4047
4051
  */
4048
4052
  Type: string;
4049
4053
  /**
@@ -4054,6 +4058,10 @@ export interface CreateRocketMQTopicRequest {
4054
4058
  * 主题说明,最大128个字符
4055
4059
  */
4056
4060
  Remark?: string;
4061
+ /**
4062
+ * 分区数,全局顺序无效
4063
+ */
4064
+ PartitionNum?: number;
4057
4065
  }
4058
4066
  /**
4059
4067
  * CreateRole返回参数结构体
@@ -18,6 +18,10 @@ export interface DescribeSREInstancesRequest {
18
18
  * 查询类型
19
19
  */
20
20
  QueryType?: string;
21
+ /**
22
+ * 调用方来源
23
+ */
24
+ QuerySource?: string;
21
25
  }
22
26
  /**
23
27
  * 微服务注册引擎实例
@@ -178,6 +178,16 @@ it("as.v20180419.CreateScheduledAction", async function () {
178
178
  }
179
179
  })
180
180
 
181
+ it("as.v20180419.DescribeAutoScalingAdvices", async function () {
182
+ try {
183
+ const data = await client.DescribeAutoScalingAdvices({})
184
+ expect(data).to.be.ok
185
+ } catch(error) {
186
+ expect(error.requestId).to.be.ok
187
+ expect(error.code).to.be.ok
188
+ }
189
+ })
190
+
181
191
  it("as.v20180419.RemoveInstances", async function () {
182
192
  try {
183
193
  const data = await client.RemoveInstances({})
@@ -348,6 +348,16 @@ it("clb.v20180317.DescribeLBListeners", async function () {
348
348
  }
349
349
  })
350
350
 
351
+ it("clb.v20180317.ModifyTargetGroupInstancesPort", async function () {
352
+ try {
353
+ const data = await client.ModifyTargetGroupInstancesPort({})
354
+ expect(data).to.be.ok
355
+ } catch(error) {
356
+ expect(error.requestId).to.be.ok
357
+ expect(error.code).to.be.ok
358
+ }
359
+ })
360
+
351
361
  it("clb.v20180317.DeregisterTargetGroupInstances", async function () {
352
362
  try {
353
363
  const data = await client.DeregisterTargetGroupInstances({})
@@ -678,9 +688,9 @@ it("clb.v20180317.CloneLoadBalancer", async function () {
678
688
  }
679
689
  })
680
690
 
681
- it("clb.v20180317.ModifyTargetGroupInstancesPort", async function () {
691
+ it("clb.v20180317.DescribeCrossTargets", async function () {
682
692
  try {
683
- const data = await client.ModifyTargetGroupInstancesPort({})
693
+ const data = await client.DescribeCrossTargets({})
684
694
  expect(data).to.be.ok
685
695
  } catch(error) {
686
696
  expect(error.requestId).to.be.ok
@@ -218,6 +218,16 @@ it("mongodb.v20190725.ModifyDBInstanceSpec", async function () {
218
218
  }
219
219
  })
220
220
 
221
+ it("mongodb.v20190725.DescribeInstanceParams", async function () {
222
+ try {
223
+ const data = await client.DescribeInstanceParams({})
224
+ expect(data).to.be.ok
225
+ } catch(error) {
226
+ expect(error.requestId).to.be.ok
227
+ expect(error.code).to.be.ok
228
+ }
229
+ })
230
+
221
231
  it("mongodb.v20190725.DescribeSpecInfo", async function () {
222
232
  try {
223
233
  const data = await client.DescribeSpecInfo({})