tencentcloud-sdk-nodejs 4.0.610 → 4.0.612

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 (58) hide show
  1. package/CHANGELOG.md +282 -0
  2. package/SERVICE_CHANGELOG.md +289 -193
  3. package/package.json +1 -1
  4. package/products.md +19 -19
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdb/v20170320/cdb_models.ts +10 -0
  7. package/src/services/cfw/v20190904/cfw_models.ts +18 -1
  8. package/src/services/clb/v20180317/clb_client.ts +2 -1
  9. package/src/services/clb/v20180317/clb_models.ts +50 -5
  10. package/src/services/cms/v20190321/cms_client.ts +54 -102
  11. package/src/services/cms/v20190321/cms_models.ts +580 -702
  12. package/src/services/cwp/v20180228/cwp_models.ts +7 -3
  13. package/src/services/dcdb/v20180411/dcdb_client.ts +14 -1
  14. package/src/services/dcdb/v20180411/dcdb_models.ts +59 -9
  15. package/src/services/emr/v20190103/emr_client.ts +3 -3
  16. package/src/services/emr/v20190103/emr_models.ts +33 -1
  17. package/src/services/ess/v20201111/ess_models.ts +50 -45
  18. package/src/services/ocr/v20181119/ocr_client.ts +22 -8
  19. package/src/services/ocr/v20181119/ocr_models.ts +91 -21
  20. package/src/services/partners/v20180321/partners_client.ts +4 -2
  21. package/src/services/ssl/v20191205/ssl_client.ts +24 -12
  22. package/src/services/ssl/v20191205/ssl_models.ts +189 -79
  23. package/src/services/tcss/v20201101/tcss_client.ts +13 -0
  24. package/src/services/tcss/v20201101/tcss_models.ts +108 -0
  25. package/tencentcloud/common/sdk_version.d.ts +1 -1
  26. package/tencentcloud/common/sdk_version.js +1 -1
  27. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +8 -0
  28. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +15 -1
  29. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +0 -1
  30. package/tencentcloud/services/clb/v20180317/clb_client.js +0 -1
  31. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +44 -5
  32. package/tencentcloud/services/cms/v20190321/cms_client.d.ts +13 -37
  33. package/tencentcloud/services/cms/v20190321/cms_client.js +18 -48
  34. package/tencentcloud/services/cms/v20190321/cms_models.d.ts +455 -557
  35. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +4 -1
  36. package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +5 -1
  37. package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +6 -0
  38. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +52 -9
  39. package/tencentcloud/services/emr/v20190103/emr_client.d.ts +0 -1
  40. package/tencentcloud/services/emr/v20190103/emr_client.js +0 -1
  41. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +28 -1
  42. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +50 -45
  43. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +9 -3
  44. package/tencentcloud/services/ocr/v20181119/ocr_client.js +11 -3
  45. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +74 -16
  46. package/tencentcloud/services/partners/v20180321/partners_client.d.ts +3 -1
  47. package/tencentcloud/services/partners/v20180321/partners_client.js +3 -1
  48. package/tencentcloud/services/ssl/v20191205/ssl_client.d.ts +7 -3
  49. package/tencentcloud/services/ssl/v20191205/ssl_client.js +9 -3
  50. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +160 -70
  51. package/tencentcloud/services/tcss/v20201101/tcss_client.d.ts +5 -1
  52. package/tencentcloud/services/tcss/v20201101/tcss_client.js +6 -0
  53. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +91 -0
  54. package/test/cms.v20190321.test.js +12 -42
  55. package/test/dcdb.v20180411.test.js +10 -0
  56. package/test/ocr.v20181119.test.js +12 -2
  57. package/test/ssl.v20191205.test.js +12 -2
  58. package/test/tcss.v20201101.test.js +10 -0
@@ -1224,6 +1224,12 @@ class Client extends abstract_client_1.AbstractClient {
1224
1224
  async DescribeImageRiskSummary(req, cb) {
1225
1225
  return this.request("DescribeImageRiskSummary", req, cb);
1226
1226
  }
1227
+ /**
1228
+ * 查询漏洞影响的仓库镜像列表
1229
+ */
1230
+ async DescribeVulRegistryImageList(req, cb) {
1231
+ return this.request("DescribeVulRegistryImageList", req, cb);
1232
+ }
1227
1233
  /**
1228
1234
  * 查询应急漏洞列表
1229
1235
  */
@@ -10367,6 +10367,43 @@ export interface ModifyVirusFileStatusRequest {
10367
10367
  */
10368
10368
  AutoIsolate?: boolean;
10369
10369
  }
10370
+ /**
10371
+ * 漏洞影响的仓库镜像列表
10372
+ */
10373
+ export interface VulAffectedRegistryImageInfo {
10374
+ /**
10375
+ * 镜像ID
10376
+ */
10377
+ ImageID: string;
10378
+ /**
10379
+ * 镜像名称
10380
+ */
10381
+ ImageName: string;
10382
+ /**
10383
+ * 镜像版本
10384
+ */
10385
+ ImageTag: string;
10386
+ /**
10387
+ * 镜像命名空间
10388
+ */
10389
+ Namespace: string;
10390
+ /**
10391
+ * 镜像地址
10392
+ */
10393
+ ImageRepoAddress: string;
10394
+ /**
10395
+ * 组件列表
10396
+ */
10397
+ ComponentList: Array<VulAffectedImageComponentInfo>;
10398
+ /**
10399
+ * 是否为镜像的最新版本
10400
+ */
10401
+ IsLatestImage: boolean;
10402
+ /**
10403
+ * 内部镜像资产ID
10404
+ */
10405
+ ImageAssetId: number;
10406
+ }
10370
10407
  /**
10371
10408
  * CreateVulContainerExportJob返回参数结构体
10372
10409
  */
@@ -13133,6 +13170,43 @@ export interface DescribeK8sApiAbnormalRuleInfoRequest {
13133
13170
  */
13134
13171
  RuleID: string;
13135
13172
  }
13173
+ /**
13174
+ * DescribeVulRegistryImageList请求参数结构体
13175
+ */
13176
+ export interface DescribeVulRegistryImageListRequest {
13177
+ /**
13178
+ * 漏洞ID
13179
+ */
13180
+ PocID: string;
13181
+ /**
13182
+ * 需要返回的数量,默认为10,最大值为100
13183
+ */
13184
+ Limit?: number;
13185
+ /**
13186
+ * 偏移量,默认为0。
13187
+ */
13188
+ Offset?: number;
13189
+ /**
13190
+ * 过滤条件。
13191
+ OnlyAffectedNewestImage bool 是否影响最新镜像
13192
+ ImageDigest 镜像Digest,支持模糊查询
13193
+ ImageId 镜像ID,支持模糊查询
13194
+ Namespace 命名空间,支持模糊查询
13195
+ ImageTag 镜像版本,支持模糊查询
13196
+ InstanceName 实例名称,支持模糊查询
13197
+ ImageName 镜像名,支持模糊查询
13198
+ ImageRepoAddress 镜像地址,支持模糊查询
13199
+ */
13200
+ Filters?: Array<AssetFilters>;
13201
+ /**
13202
+ * 排序方式
13203
+ */
13204
+ Order?: string;
13205
+ /**
13206
+ * 排序字段
13207
+ */
13208
+ By?: string;
13209
+ }
13136
13210
  /**
13137
13211
  * 运行时安全事件基本信息
13138
13212
  */
@@ -15676,6 +15750,23 @@ Name 可取值:ClusterName,ClusterId,ClusterType,Region,ClusterCheckMode,Clust
15676
15750
  */
15677
15751
  Order?: string;
15678
15752
  }
15753
+ /**
15754
+ * DescribeVulRegistryImageList返回参数结构体
15755
+ */
15756
+ export interface DescribeVulRegistryImageListResponse {
15757
+ /**
15758
+ * 镜像总数
15759
+ */
15760
+ TotalCount: number;
15761
+ /**
15762
+ * 仓库镜像列表
15763
+ */
15764
+ List: Array<VulAffectedRegistryImageInfo>;
15765
+ /**
15766
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
15767
+ */
15768
+ RequestId?: string;
15769
+ }
15679
15770
  /**
15680
15771
  * CreateVulDefenceEventExportJob返回参数结构体
15681
15772
  */
@@ -18,39 +18,9 @@ const client = new tencentcloud.cms.v20190321.Client({
18
18
  })
19
19
  describe("cms.v20190321.test.js", function () {
20
20
 
21
- it("cms.v20190321.DeleteTextSample", async function () {
22
- try {
23
- const data = await client.DeleteTextSample({})
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("cms.v20190321.CreateTextSample", async function () {
32
- try {
33
- const data = await client.CreateTextSample({})
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("cms.v20190321.CreateFileSample", async function () {
42
- try {
43
- const data = await client.CreateFileSample({})
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("cms.v20190321.DescribeTextSample", async function () {
21
+ it("cms.v20190321.TextModeration", async function () {
52
22
  try {
53
- const data = await client.DescribeTextSample({})
23
+ const data = await client.TextModeration({})
54
24
  expect(data).to.be.ok
55
25
  } catch(error) {
56
26
  expect(error.requestId).to.be.ok
@@ -58,9 +28,9 @@ it("cms.v20190321.DescribeTextSample", async function () {
58
28
  }
59
29
  })
60
30
 
61
- it("cms.v20190321.ManualReview", async function () {
31
+ it("cms.v20190321.ImageModeration", async function () {
62
32
  try {
63
- const data = await client.ManualReview({})
33
+ const data = await client.ImageModeration({})
64
34
  expect(data).to.be.ok
65
35
  } catch(error) {
66
36
  expect(error.requestId).to.be.ok
@@ -68,9 +38,9 @@ it("cms.v20190321.ManualReview", async function () {
68
38
  }
69
39
  })
70
40
 
71
- it("cms.v20190321.DescribeFileSample", async function () {
41
+ it("cms.v20190321.DescribeLibSamples", async function () {
72
42
  try {
73
- const data = await client.DescribeFileSample({})
43
+ const data = await client.DescribeLibSamples({})
74
44
  expect(data).to.be.ok
75
45
  } catch(error) {
76
46
  expect(error.requestId).to.be.ok
@@ -78,9 +48,9 @@ it("cms.v20190321.DescribeFileSample", async function () {
78
48
  }
79
49
  })
80
50
 
81
- it("cms.v20190321.TextModeration", async function () {
51
+ it("cms.v20190321.DescribeKeywordsLibs", async function () {
82
52
  try {
83
- const data = await client.TextModeration({})
53
+ const data = await client.DescribeKeywordsLibs({})
84
54
  expect(data).to.be.ok
85
55
  } catch(error) {
86
56
  expect(error.requestId).to.be.ok
@@ -88,9 +58,9 @@ it("cms.v20190321.TextModeration", async function () {
88
58
  }
89
59
  })
90
60
 
91
- it("cms.v20190321.ImageModeration", async function () {
61
+ it("cms.v20190321.CreateKeywordsSamples", async function () {
92
62
  try {
93
- const data = await client.ImageModeration({})
63
+ const data = await client.CreateKeywordsSamples({})
94
64
  expect(data).to.be.ok
95
65
  } catch(error) {
96
66
  expect(error.requestId).to.be.ok
@@ -98,9 +68,9 @@ it("cms.v20190321.ImageModeration", async function () {
98
68
  }
99
69
  })
100
70
 
101
- it("cms.v20190321.DeleteFileSample", async function () {
71
+ it("cms.v20190321.DeleteLibSamples", async function () {
102
72
  try {
103
- const data = await client.DeleteFileSample({})
73
+ const data = await client.DeleteLibSamples({})
104
74
  expect(data).to.be.ok
105
75
  } catch(error) {
106
76
  expect(error.requestId).to.be.ok
@@ -28,6 +28,16 @@ it("dcdb.v20180411.DescribeAccountPrivileges", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("dcdb.v20180411.ModifyAccountConfig", async function () {
32
+ try {
33
+ const data = await client.ModifyAccountConfig({})
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
+
31
41
  it("dcdb.v20180411.UpgradeDedicatedDCDBInstance", async function () {
32
42
  try {
33
43
  const data = await client.UpgradeDedicatedDCDBInstance({})
@@ -228,9 +228,9 @@ it("ocr.v20181119.QuotaInvoiceOCR", async function () {
228
228
  }
229
229
  })
230
230
 
231
- it("ocr.v20181119.VinOCR", async function () {
231
+ it("ocr.v20181119.RecognizePhilippinesUMIDOCR", async function () {
232
232
  try {
233
- const data = await client.VinOCR({})
233
+ const data = await client.RecognizePhilippinesUMIDOCR({})
234
234
  expect(data).to.be.ok
235
235
  } catch(error) {
236
236
  expect(error.requestId).to.be.ok
@@ -348,6 +348,16 @@ it("ocr.v20181119.RecognizeOnlineTaxiItineraryOCR", async function () {
348
348
  }
349
349
  })
350
350
 
351
+ it("ocr.v20181119.VinOCR", async function () {
352
+ try {
353
+ const data = await client.VinOCR({})
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("ocr.v20181119.HKIDCardOCR", async function () {
352
362
  try {
353
363
  const data = await client.HKIDCardOCR({})
@@ -128,6 +128,16 @@ it("ssl.v20191205.SubmitCertificateInformation", async function () {
128
128
  }
129
129
  })
130
130
 
131
+ it("ssl.v20191205.UpdateCertificateRecordRollback", async function () {
132
+ try {
133
+ const data = await client.UpdateCertificateRecordRollback({})
134
+ expect(data).to.be.ok
135
+ } catch(error) {
136
+ expect(error.requestId).to.be.ok
137
+ expect(error.code).to.be.ok
138
+ }
139
+ })
140
+
131
141
  it("ssl.v20191205.DescribeHostDdosInstanceList", async function () {
132
142
  try {
133
143
  const data = await client.DescribeHostDdosInstanceList({})
@@ -468,9 +478,9 @@ it("ssl.v20191205.DescribeHostApiGatewayInstanceList", async function () {
468
478
  }
469
479
  })
470
480
 
471
- it("ssl.v20191205.UpdateCertificateRecordRollback", async function () {
481
+ it("ssl.v20191205.CreateCertificateByPackage", async function () {
472
482
  try {
473
- const data = await client.UpdateCertificateRecordRollback({})
483
+ const data = await client.CreateCertificateByPackage({})
474
484
  expect(data).to.be.ok
475
485
  } catch(error) {
476
486
  expect(error.requestId).to.be.ok
@@ -2008,6 +2008,16 @@ it("tcss.v20201101.DescribeImageRiskSummary", async function () {
2008
2008
  }
2009
2009
  })
2010
2010
 
2011
+ it("tcss.v20201101.DescribeVulRegistryImageList", async function () {
2012
+ try {
2013
+ const data = await client.DescribeVulRegistryImageList({})
2014
+ expect(data).to.be.ok
2015
+ } catch(error) {
2016
+ expect(error.requestId).to.be.ok
2017
+ expect(error.code).to.be.ok
2018
+ }
2019
+ })
2020
+
2011
2021
  it("tcss.v20201101.DescribeEmergencyVulList", async function () {
2012
2022
  try {
2013
2023
  const data = await client.DescribeEmergencyVulList({})