tencentcloud-sdk-nodejs 4.0.526 → 4.0.528

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 (54) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/SERVICE_CHANGELOG.md +175 -12
  3. package/package.json +1 -1
  4. package/products.md +13 -13
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdb/v20170320/cdb_client.ts +12 -0
  7. package/src/services/cdb/v20170320/cdb_models.ts +65 -0
  8. package/src/services/dcdb/v20180411/dcdb_client.ts +12 -0
  9. package/src/services/dcdb/v20180411/dcdb_models.ts +63 -0
  10. package/src/services/ims/v20201229/ims_client.ts +4 -0
  11. package/src/services/ims/v20201229/ims_models.ts +58 -12
  12. package/src/services/mariadb/v20170312/mariadb_client.ts +14 -2
  13. package/src/services/mariadb/v20170312/mariadb_models.ts +54 -19
  14. package/src/services/monitor/v20180724/monitor_models.ts +2 -2
  15. package/src/services/rum/v20210622/rum_client.ts +7 -7
  16. package/src/services/rum/v20210622/rum_models.ts +14 -14
  17. package/src/services/tdid/v20210519/tdid_client.ts +0 -14
  18. package/src/services/tdid/v20210519/tdid_models.ts +0 -15
  19. package/src/services/trp/v20210515/trp_client.ts +27 -1
  20. package/src/services/trp/v20210515/trp_models.ts +308 -76
  21. package/src/services/waf/v20180125/waf_client.ts +2 -2
  22. package/src/services/waf/v20180125/waf_models.ts +18 -13
  23. package/tencentcloud/common/sdk_version.d.ts +1 -1
  24. package/tencentcloud/common/sdk_version.js +1 -1
  25. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +5 -1
  26. package/tencentcloud/services/cdb/v20170320/cdb_client.js +6 -0
  27. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +54 -0
  28. package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +5 -1
  29. package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +6 -0
  30. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +53 -0
  31. package/tencentcloud/services/ims/v20201229/ims_client.d.ts +2 -0
  32. package/tencentcloud/services/ims/v20201229/ims_client.js +2 -0
  33. package/tencentcloud/services/ims/v20201229/ims_models.d.ts +52 -12
  34. package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +5 -1
  35. package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +6 -0
  36. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +48 -18
  37. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +2 -2
  38. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +7 -7
  39. package/tencentcloud/services/rum/v20210622/rum_client.js +7 -7
  40. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +14 -14
  41. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +1 -7
  42. package/tencentcloud/services/tdid/v20210519/tdid_client.js +0 -8
  43. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +0 -13
  44. package/tencentcloud/services/trp/v20210515/trp_client.d.ts +9 -1
  45. package/tencentcloud/services/trp/v20210515/trp_client.js +12 -0
  46. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +258 -63
  47. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +2 -2
  48. package/tencentcloud/services/waf/v20180125/waf_client.js +2 -2
  49. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +17 -13
  50. package/test/cdb.v20170320.test.js +10 -0
  51. package/test/dcdb.v20180411.test.js +10 -0
  52. package/test/mariadb.v20170312.test.js +10 -0
  53. package/test/tdid.v20210519.test.js +0 -10
  54. package/test/trp.v20210515.test.js +20 -0
@@ -430,12 +430,12 @@ export interface AddCustomRuleResponse {
430
430
  /**
431
431
  * 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
432
432
  */
433
- Success: ResponseCode;
433
+ Success?: ResponseCode;
434
434
  /**
435
435
  * 添加成功的规则ID
436
436
  注意:此字段可能返回 null,表示取不到有效值。
437
437
  */
438
- RuleId: number;
438
+ RuleId?: number;
439
439
  /**
440
440
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
441
441
  */
@@ -471,7 +471,7 @@ export interface UpsertIpAccessControlRequest {
471
471
  */
472
472
  Items: Array<string>;
473
473
  /**
474
- * clb-waf或者sparta-waf
474
+ * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
475
475
  */
476
476
  Edition?: string;
477
477
  /**
@@ -1245,7 +1245,7 @@ export interface ModifyCustomRuleStatusResponse {
1245
1245
  /**
1246
1246
  * 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
1247
1247
  */
1248
- Success: ResponseCode;
1248
+ Success?: ResponseCode;
1249
1249
  /**
1250
1250
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1251
1251
  */
@@ -1738,13 +1738,17 @@ export interface AddCustomRuleRequest {
1738
1738
  */
1739
1739
  Redirect?: string;
1740
1740
  /**
1741
- * "clb-waf"或者"sparta-waf"
1741
+ * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
1742
1742
  */
1743
1743
  Edition?: string;
1744
1744
  /**
1745
1745
  * 放行的详情
1746
1746
  */
1747
1747
  Bypass?: string;
1748
+ /**
1749
+ * 添加规则的来源,默认为空
1750
+ */
1751
+ EventId?: string;
1748
1752
  }
1749
1753
  /**
1750
1754
  * 业务安全资源信息
@@ -1895,12 +1899,12 @@ export interface DescribeDomainsResponse {
1895
1899
  /**
1896
1900
  * 总数
1897
1901
  */
1898
- Total: number;
1902
+ Total?: number;
1899
1903
  /**
1900
1904
  * domain列表
1901
1905
  注意:此字段可能返回 null,表示取不到有效值。
1902
1906
  */
1903
- Domains: Array<DomainInfo>;
1907
+ Domains?: Array<DomainInfo>;
1904
1908
  /**
1905
1909
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1906
1910
  */
@@ -2177,12 +2181,12 @@ export interface UpsertIpAccessControlResponse {
2177
2181
  * 添加或修改失败的条目
2178
2182
  注意:此字段可能返回 null,表示取不到有效值。
2179
2183
  */
2180
- FailedItems: string;
2184
+ FailedItems?: string;
2181
2185
  /**
2182
2186
  * 添加或修改失败的数目
2183
2187
  注意:此字段可能返回 null,表示取不到有效值。
2184
2188
  */
2185
- FailedCount: number;
2189
+ FailedCount?: number;
2186
2190
  /**
2187
2191
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2188
2192
  */
@@ -2289,19 +2293,19 @@ export declare type DescribeWafThreatenIntelligenceRequest = null;
2289
2293
  */
2290
2294
  export interface DescribeAccessIndexResponse {
2291
2295
  /**
2292
- * 是否生效
2296
+ * 是否生效,true表示生效,false表示未生效
2293
2297
  */
2294
- Status: boolean;
2298
+ Status?: boolean;
2295
2299
  /**
2296
2300
  * 索引配置信息
2297
2301
  注意:此字段可能返回 null,表示取不到有效值。
2298
2302
  注意:此字段可能返回 null,表示取不到有效值。
2299
2303
  */
2300
- Rule: AccessRuleInfo;
2304
+ Rule?: AccessRuleInfo;
2301
2305
  /**
2302
2306
  * 索引修改时间,初始值为索引创建时间。
2303
2307
  */
2304
- ModifyTime: string;
2308
+ ModifyTime?: string;
2305
2309
  /**
2306
2310
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2307
2311
  */
@@ -48,6 +48,16 @@ it("cdb.v20170320.CreateAuditPolicy", async function () {
48
48
  }
49
49
  })
50
50
 
51
+ it("cdb.v20170320.DescribeDBFeatures", async function () {
52
+ try {
53
+ const data = await client.DescribeDBFeatures({})
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
+
51
61
  it("cdb.v20170320.DescribeDataBackupOverview", async function () {
52
62
  try {
53
63
  const data = await client.DescribeDataBackupOverview({})
@@ -298,6 +298,16 @@ it("dcdb.v20180411.IsolateHourDCDBInstance", async function () {
298
298
  }
299
299
  })
300
300
 
301
+ it("dcdb.v20180411.UpgradeHourDCDBInstance", async function () {
302
+ try {
303
+ const data = await client.UpgradeHourDCDBInstance({})
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
+
301
311
  it("dcdb.v20180411.DescribeDBSyncMode", async function () {
302
312
  try {
303
313
  const data = await client.DescribeDBSyncMode({})
@@ -668,6 +668,16 @@ it("mariadb.v20170312.DisassociateSecurityGroups", async function () {
668
668
  }
669
669
  })
670
670
 
671
+ it("mariadb.v20170312.DescribeDBEncryptAttributes", async function () {
672
+ try {
673
+ const data = await client.DescribeDBEncryptAttributes({})
674
+ expect(data).to.be.ok
675
+ } catch(error) {
676
+ expect(error.requestId).to.be.ok
677
+ expect(error.code).to.be.ok
678
+ }
679
+ })
680
+
671
681
  it("mariadb.v20170312.ModifyLogFileRetentionPeriod", async function () {
672
682
  try {
673
683
  const data = await client.ModifyLogFileRetentionPeriod({})
@@ -368,16 +368,6 @@ it("tdid.v20210519.GetDidDocument", async function () {
368
368
  }
369
369
  })
370
370
 
371
- it("tdid.v20210519.VerifyPurchase", async function () {
372
- try {
373
- const data = await client.VerifyPurchase({})
374
- expect(data).to.be.ok
375
- } catch(error) {
376
- expect(error.requestId).to.be.ok
377
- expect(error.code).to.be.ok
378
- }
379
- })
380
-
381
371
  it("tdid.v20210519.GetDidServiceList", async function () {
382
372
  try {
383
373
  const data = await client.GetDidServiceList({})
@@ -268,6 +268,16 @@ it("trp.v20210515.DeleteMerchant", async function () {
268
268
  }
269
269
  })
270
270
 
271
+ it("trp.v20210515.DescribeScanStats", async function () {
272
+ try {
273
+ const data = await client.DescribeScanStats({})
274
+ expect(data).to.be.ok
275
+ } catch(error) {
276
+ expect(error.requestId).to.be.ok
277
+ expect(error.code).to.be.ok
278
+ }
279
+ })
280
+
271
281
  it("trp.v20210515.DescribeCodePackStatus", async function () {
272
282
  try {
273
283
  const data = await client.DescribeCodePackStatus({})
@@ -398,6 +408,16 @@ it("trp.v20210515.DescribeCodePacks", async function () {
398
408
  }
399
409
  })
400
410
 
411
+ it("trp.v20210515.DescribeScanLogs", async function () {
412
+ try {
413
+ const data = await client.DescribeScanLogs({})
414
+ expect(data).to.be.ok
415
+ } catch(error) {
416
+ expect(error.requestId).to.be.ok
417
+ expect(error.code).to.be.ok
418
+ }
419
+ })
420
+
401
421
  it("trp.v20210515.ModifyCodeBatch", async function () {
402
422
  try {
403
423
  const data = await client.ModifyCodeBatch({})