tencentcloud-sdk-nodejs 4.0.275 → 4.0.276

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 (34) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/SERVICE_CHANGELOG.md +129 -249
  3. package/package.json +1 -1
  4. package/products.md +9 -9
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_client.ts +26 -0
  7. package/src/services/antiddos/v20200309/antiddos_models.ts +120 -0
  8. package/src/services/apm/v20210622/apm_models.ts +5 -0
  9. package/src/services/clb/v20180317/clb_models.ts +9 -4
  10. package/src/services/cpdp/v20190820/cpdp_models.ts +9 -9
  11. package/src/services/live/v20180801/live_models.ts +1 -1
  12. package/src/services/redis/v20180412/redis_client.ts +42 -6
  13. package/src/services/redis/v20180412/redis_models.ts +105 -0
  14. package/src/services/tsf/v20180326/tsf_client.ts +1 -1
  15. package/src/services/tsf/v20180326/tsf_models.ts +5 -0
  16. package/src/services/vpc/v20170312/vpc_models.ts +2 -2
  17. package/tencentcloud/common/sdk_version.d.ts +1 -1
  18. package/tencentcloud/common/sdk_version.js +1 -1
  19. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +9 -1
  20. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
  21. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +102 -0
  22. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +4 -0
  23. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +8 -4
  24. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +9 -9
  25. package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -1
  26. package/tencentcloud/services/redis/v20180412/redis_client.d.ts +15 -3
  27. package/tencentcloud/services/redis/v20180412/redis_client.js +21 -3
  28. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +90 -0
  29. package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +1 -1
  30. package/tencentcloud/services/tsf/v20180326/tsf_client.js +1 -1
  31. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +4 -0
  32. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
  33. package/test/antiddos.v20200309.test.js +20 -0
  34. package/test/redis.v20180412.test.js +32 -2
@@ -280,6 +280,23 @@ TypeId为标准架构时,MemSize是实例总内存容量;TypeId为集群架
280
280
  */
281
281
  TemplateId?: string;
282
282
  }
283
+ /**
284
+ * CreateReplicationGroup请求参数结构体
285
+ */
286
+ export interface CreateReplicationGroupRequest {
287
+ /**
288
+ * 实例ID
289
+ */
290
+ InstanceId: string;
291
+ /**
292
+ * 复制组名称
293
+ */
294
+ GroupName?: string;
295
+ /**
296
+ * 备注信息
297
+ */
298
+ Remark?: string;
299
+ }
283
300
  /**
284
301
  * DescribeInstanceZoneInfo请求参数结构体
285
302
  */
@@ -1145,6 +1162,19 @@ export interface DescribeInstanceDTSInfoResponse {
1145
1162
  */
1146
1163
  RequestId?: string;
1147
1164
  }
1165
+ /**
1166
+ * AddReplicationInstance返回参数结构体
1167
+ */
1168
+ export interface AddReplicationInstanceResponse {
1169
+ /**
1170
+ * 异步流程ID
1171
+ */
1172
+ TaskId: number;
1173
+ /**
1174
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1175
+ */
1176
+ RequestId?: string;
1177
+ }
1148
1178
  /**
1149
1179
  * DestroyPostpaidInstance返回参数结构体
1150
1180
  */
@@ -1691,6 +1721,23 @@ export interface DescribeInstanceMonitorTookDistRequest {
1691
1721
  */
1692
1722
  SpanType: number;
1693
1723
  }
1724
+ /**
1725
+ * DeleteReplicationInstance请求参数结构体
1726
+ */
1727
+ export interface DeleteReplicationInstanceRequest {
1728
+ /**
1729
+ * 复制组ID
1730
+ */
1731
+ GroupId: string;
1732
+ /**
1733
+ * 实例ID
1734
+ */
1735
+ InstanceId: string;
1736
+ /**
1737
+ * 数据同步类型,true:需要数据强同步,false:不需要强同步,仅限删除主实例
1738
+ */
1739
+ SyncType: boolean;
1740
+ }
1694
1741
  /**
1695
1742
  * KillMasterGroup请求参数结构体
1696
1743
  */
@@ -2632,6 +2679,19 @@ export interface DescribeInstanceMonitorBigKeyTypeDistResponse {
2632
2679
  */
2633
2680
  RequestId?: string;
2634
2681
  }
2682
+ /**
2683
+ * DeleteReplicationInstance返回参数结构体
2684
+ */
2685
+ export interface DeleteReplicationInstanceResponse {
2686
+ /**
2687
+ * 异步任务ID
2688
+ */
2689
+ TaskId: number;
2690
+ /**
2691
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2692
+ */
2693
+ RequestId?: string;
2694
+ }
2635
2695
  /**
2636
2696
  * CleanUpInstance请求参数结构体
2637
2697
  */
@@ -3175,6 +3235,19 @@ export interface ModifyMaintenanceWindowResponse {
3175
3235
  */
3176
3236
  RequestId?: string;
3177
3237
  }
3238
+ /**
3239
+ * CreateReplicationGroup返回参数结构体
3240
+ */
3241
+ export interface CreateReplicationGroupResponse {
3242
+ /**
3243
+ * 异步流程ID
3244
+ */
3245
+ TaskId: number;
3246
+ /**
3247
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3248
+ */
3249
+ RequestId?: string;
3250
+ }
3178
3251
  /**
3179
3252
  * DescribeInstanceMonitorBigKeyTypeDist请求参数结构体
3180
3253
  */
@@ -3358,6 +3431,23 @@ export interface DescribeMaintenanceWindowRequest {
3358
3431
  */
3359
3432
  InstanceId: string;
3360
3433
  }
3434
+ /**
3435
+ * AddReplicationInstance请求参数结构体
3436
+ */
3437
+ export interface AddReplicationInstanceRequest {
3438
+ /**
3439
+ * 复制组ID
3440
+ */
3441
+ GroupId: string;
3442
+ /**
3443
+ * 实例ID
3444
+ */
3445
+ InstanceId: string;
3446
+ /**
3447
+ * 实例角色,rw可读写,r只读
3448
+ */
3449
+ InstanceRole: string;
3450
+ }
3361
3451
  /**
3362
3452
  * 实例节点类型
3363
3453
  */
@@ -559,7 +559,7 @@ COS相关文档请查阅:https://cloud.tencent.com/document/product/436
559
559
  */
560
560
  SearchBusinessLog(req: SearchBusinessLogRequest, cb?: (error: string, rep: SearchBusinessLogResponse) => void): Promise<SearchBusinessLogResponse>;
561
561
  /**
562
- * 部署容器应用
562
+ * 部署容器应用-更新
563
563
  */
564
564
  DeployContainerGroup(req: DeployContainerGroupRequest, cb?: (error: string, rep: DeployContainerGroupResponse) => void): Promise<DeployContainerGroupResponse>;
565
565
  /**
@@ -853,7 +853,7 @@ COS相关文档请查阅:https://cloud.tencent.com/document/product/436
853
853
  return this.request("SearchBusinessLog", req, cb);
854
854
  }
855
855
  /**
856
- * 部署容器应用
856
+ * 部署容器应用-更新
857
857
  */
858
858
  async DeployContainerGroup(req, cb) {
859
859
  return this.request("DeployContainerGroup", req, cb);
@@ -2703,6 +2703,10 @@ export interface DeployContainerGroupRequest {
2703
2703
  * 数据卷挂载点信息,list
2704
2704
  */
2705
2705
  VolumeMountInfoList?: Array<VolumeMountInfo>;
2706
+ /**
2707
+ * 是否清除数据卷信息,默认false
2708
+ */
2709
+ VolumeClean?: boolean;
2706
2710
  }
2707
2711
  /**
2708
2712
  * DescribeSimpleApplications请求参数结构体
@@ -1640,11 +1640,11 @@ export interface DescribeIpGeolocationDatabaseUrlResponse {
1640
1640
  /**
1641
1641
  * IP地理位置库下载链接地址。
1642
1642
  */
1643
- DownLoadUrl?: string;
1643
+ DownLoadUrl: string;
1644
1644
  /**
1645
1645
  * 链接到期时间。按照`ISO8601`标准表示,并且使用`UTC`时间。
1646
1646
  */
1647
- ExpiredAt?: string;
1647
+ ExpiredAt: string;
1648
1648
  /**
1649
1649
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1650
1650
  */
@@ -188,6 +188,16 @@ it("antiddos.v20200309.DisassociateDDoSEipAddress", async function () {
188
188
  }
189
189
  })
190
190
 
191
+ it("antiddos.v20200309.DescribeDDoSConnectLimitList", async function () {
192
+ try {
193
+ const data = await client.DescribeDDoSConnectLimitList({})
194
+ expect(data).to.be.ok
195
+ } catch(error) {
196
+ expect(error.requestId).to.be.ok
197
+ expect(error.code).to.be.ok
198
+ }
199
+ })
200
+
191
201
  it("antiddos.v20200309.CreateBoundIP", async function () {
192
202
  try {
193
203
  const data = await client.CreateBoundIP({})
@@ -548,6 +558,16 @@ it("antiddos.v20200309.CreateL7RuleCerts", async function () {
548
558
  }
549
559
  })
550
560
 
561
+ it("antiddos.v20200309.DescribeListPortAclList", async function () {
562
+ try {
563
+ const data = await client.DescribeListPortAclList({})
564
+ expect(data).to.be.ok
565
+ } catch(error) {
566
+ expect(error.requestId).to.be.ok
567
+ expect(error.code).to.be.ok
568
+ }
569
+ })
570
+
551
571
  it("antiddos.v20200309.ModifyDDoSGeoIPBlockConfig", async function () {
552
572
  try {
553
573
  const data = await client.ModifyDDoSGeoIPBlockConfig({})
@@ -98,9 +98,9 @@ it("redis.v20180412.DescribeTaskList", async function () {
98
98
  }
99
99
  })
100
100
 
101
- it("redis.v20180412.UpgradeInstance", async function () {
101
+ it("redis.v20180412.DeleteReplicationInstance", async function () {
102
102
  try {
103
- const data = await client.UpgradeInstance({})
103
+ const data = await client.DeleteReplicationInstance({})
104
104
  expect(data).to.be.ok
105
105
  } catch(error) {
106
106
  expect(error.requestId).to.be.ok
@@ -188,6 +188,16 @@ it("redis.v20180412.DescribeInstanceShards", async function () {
188
188
  }
189
189
  })
190
190
 
191
+ it("redis.v20180412.UpgradeInstance", async function () {
192
+ try {
193
+ const data = await client.UpgradeInstance({})
194
+ expect(data).to.be.ok
195
+ } catch(error) {
196
+ expect(error.requestId).to.be.ok
197
+ expect(error.code).to.be.ok
198
+ }
199
+ })
200
+
191
201
  it("redis.v20180412.RestoreInstance", async function () {
192
202
  try {
193
203
  const data = await client.RestoreInstance({})
@@ -218,6 +228,16 @@ it("redis.v20180412.DeleteParamTemplate", async function () {
218
228
  }
219
229
  })
220
230
 
231
+ it("redis.v20180412.AddReplicationInstance", async function () {
232
+ try {
233
+ const data = await client.AddReplicationInstance({})
234
+ expect(data).to.be.ok
235
+ } catch(error) {
236
+ expect(error.requestId).to.be.ok
237
+ expect(error.code).to.be.ok
238
+ }
239
+ })
240
+
221
241
  it("redis.v20180412.DescribeMaintenanceWindow", async function () {
222
242
  try {
223
243
  const data = await client.DescribeMaintenanceWindow({})
@@ -278,6 +298,16 @@ it("redis.v20180412.ModifyNetworkConfig", async function () {
278
298
  }
279
299
  })
280
300
 
301
+ it("redis.v20180412.CreateReplicationGroup", async function () {
302
+ try {
303
+ const data = await client.CreateReplicationGroup({})
304
+ expect(data).to.be.ok
305
+ } catch(error) {
306
+ expect(error.requestId).to.be.ok
307
+ expect(error.code).to.be.ok
308
+ }
309
+ })
310
+
281
311
  it("redis.v20180412.DescribeInstanceMonitorSIP", async function () {
282
312
  try {
283
313
  const data = await client.DescribeInstanceMonitorSIP({})