tencentcloud-sdk-nodejs 4.0.318 → 4.0.319

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 +143 -0
  2. package/SERVICE_CHANGELOG.md +197 -101
  3. package/package.json +1 -1
  4. package/products.md +12 -11
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/batch/v20170312/batch_models.ts +27 -2
  7. package/src/services/cat/v20180409/cat_client.ts +12 -0
  8. package/src/services/cat/v20180409/cat_models.ts +50 -0
  9. package/src/services/cfg/index.ts +5 -0
  10. package/src/services/cfg/v20210820/cfg_client.ts +169 -0
  11. package/src/services/cfg/v20210820/cfg_models.ts +1227 -0
  12. package/src/services/cfg/v20210820/index.ts +6 -0
  13. package/src/services/cvm/v20170312/cvm_models.ts +3 -2
  14. package/src/services/index.ts +1 -0
  15. package/src/services/live/v20180801/live_client.ts +1 -1
  16. package/src/services/nlp/v20190408/nlp_client.ts +6 -46
  17. package/src/services/nlp/v20190408/nlp_models.ts +37 -212
  18. package/src/services/partners/v20180321/partners_client.ts +4 -5
  19. package/src/services/partners/v20180321/partners_models.ts +18 -3
  20. package/src/services/redis/v20180412/redis_models.ts +1 -1
  21. package/src/services/ses/v20201002/ses_client.ts +3 -2
  22. package/src/services/tke/v20180525/tke_models.ts +1 -1
  23. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  24. package/src/services/vpc/v20170312/vpc_models.ts +6 -6
  25. package/tencentcloud/common/sdk_version.d.ts +1 -1
  26. package/tencentcloud/common/sdk_version.js +1 -1
  27. package/tencentcloud/services/batch/v20170312/batch_models.d.ts +22 -0
  28. package/tencentcloud/services/cat/v20180409/cat_client.d.ts +5 -1
  29. package/tencentcloud/services/cat/v20180409/cat_client.js +6 -0
  30. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +42 -0
  31. package/tencentcloud/services/cfg/index.d.ts +6 -0
  32. package/tencentcloud/services/cfg/index.js +7 -0
  33. package/tencentcloud/services/cfg/v20210820/cfg_client.d.ts +50 -0
  34. package/tencentcloud/services/cfg/v20210820/cfg_client.js +91 -0
  35. package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +1015 -0
  36. package/tencentcloud/services/cfg/v20210820/cfg_models.js +18 -0
  37. package/tencentcloud/services/cfg/v20210820/index.d.ts +6 -0
  38. package/tencentcloud/services/cfg/v20210820/index.js +9 -0
  39. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -0
  40. package/tencentcloud/services/index.d.ts +1 -0
  41. package/tencentcloud/services/index.js +2 -0
  42. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  43. package/tencentcloud/services/live/v20180801/live_client.js +1 -1
  44. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +1 -13
  45. package/tencentcloud/services/nlp/v20190408/nlp_client.js +0 -18
  46. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +35 -187
  47. package/tencentcloud/services/partners/v20180321/partners_client.d.ts +3 -4
  48. package/tencentcloud/services/partners/v20180321/partners_client.js +3 -4
  49. package/tencentcloud/services/partners/v20180321/partners_models.d.ts +15 -3
  50. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +1 -1
  51. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -0
  52. package/tencentcloud/services/ses/v20201002/ses_client.js +1 -0
  53. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +1 -1
  54. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  55. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +6 -6
  56. package/test/cat.v20180409.test.js +10 -0
  57. package/test/cfg.v20210820.test.js +121 -0
  58. package/test/nlp.v20190408.test.js +0 -30
@@ -1836,11 +1836,11 @@ export interface DescribeNatGatewaySourceIpTranslationNatRulesResponse {
1836
1836
  * NAT网关SNAT规则对象数组。
1837
1837
  注意:此字段可能返回 null,表示取不到有效值。
1838
1838
  */
1839
- SourceIpTranslationNatRuleSet?: Array<SourceIpTranslationNatRule>;
1839
+ SourceIpTranslationNatRuleSet: Array<SourceIpTranslationNatRule>;
1840
1840
  /**
1841
1841
  * 符合条件的NAT网关端口转发规则对象数目。
1842
1842
  */
1843
- TotalCount?: number;
1843
+ TotalCount: number;
1844
1844
  /**
1845
1845
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1846
1846
  */
@@ -3059,11 +3059,11 @@ export interface DescribeNatGatewaysResponse {
3059
3059
  /**
3060
3060
  * NAT网关对象数组。
3061
3061
  */
3062
- NatGatewaySet?: Array<NatGateway>;
3062
+ NatGatewaySet: Array<NatGateway>;
3063
3063
  /**
3064
3064
  * 符合条件的NAT网关对象个数。
3065
3065
  */
3066
- TotalCount?: number;
3066
+ TotalCount: number;
3067
3067
  /**
3068
3068
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3069
3069
  */
@@ -3620,11 +3620,11 @@ export interface DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse
3620
3620
  /**
3621
3621
  * NAT网关端口转发规则对象数组。
3622
3622
  */
3623
- NatGatewayDestinationIpPortTranslationNatRuleSet?: Array<NatGatewayDestinationIpPortTranslationNatRule>;
3623
+ NatGatewayDestinationIpPortTranslationNatRuleSet: Array<NatGatewayDestinationIpPortTranslationNatRule>;
3624
3624
  /**
3625
3625
  * 符合条件的NAT网关端口转发规则对象数目。
3626
3626
  */
3627
- TotalCount?: number;
3627
+ TotalCount: number;
3628
3628
  /**
3629
3629
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3630
3630
  */
@@ -188,6 +188,16 @@ it("cat.v20180409.GetDailyAvailRatio", async function () {
188
188
  }
189
189
  })
190
190
 
191
+ it("cat.v20180409.DescribeProbeMetricData", async function () {
192
+ try {
193
+ const data = await client.DescribeProbeMetricData({})
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("cat.v20180409.ResumeProbeTask", async function () {
192
202
  try {
193
203
  const data = await client.ResumeProbeTask({})
@@ -0,0 +1,121 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.cfg.v20210820.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("cfg.v20210820.test.js", function () {
20
+
21
+ it("cfg.v20210820.CreateTaskFromTemplate", async function () {
22
+ try {
23
+ const data = await client.CreateTaskFromTemplate({})
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("cfg.v20210820.DescribeTemplate", async function () {
32
+ try {
33
+ const data = await client.DescribeTemplate({})
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("cfg.v20210820.ExecuteTaskInstance", async function () {
42
+ try {
43
+ const data = await client.ExecuteTaskInstance({})
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("cfg.v20210820.DescribeTemplateList", async function () {
52
+ try {
53
+ const data = await client.DescribeTemplateList({})
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("cfg.v20210820.ModifyTaskRunStatus", async function () {
62
+ try {
63
+ const data = await client.ModifyTaskRunStatus({})
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("cfg.v20210820.DescribeTaskList", async function () {
72
+ try {
73
+ const data = await client.DescribeTaskList({})
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("cfg.v20210820.DescribeTaskExecuteLogs", async function () {
82
+ try {
83
+ const data = await client.DescribeTaskExecuteLogs({})
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
+ it("cfg.v20210820.DescribeTask", async function () {
92
+ try {
93
+ const data = await client.DescribeTask({})
94
+ expect(data).to.be.ok
95
+ } catch(error) {
96
+ expect(error.requestId).to.be.ok
97
+ expect(error.code).to.be.ok
98
+ }
99
+ })
100
+
101
+ it("cfg.v20210820.ExecuteTask", async function () {
102
+ try {
103
+ const data = await client.ExecuteTask({})
104
+ expect(data).to.be.ok
105
+ } catch(error) {
106
+ expect(error.requestId).to.be.ok
107
+ expect(error.code).to.be.ok
108
+ }
109
+ })
110
+
111
+ it("cfg.v20210820.DeleteTask", async function () {
112
+ try {
113
+ const data = await client.DeleteTask({})
114
+ expect(data).to.be.ok
115
+ } catch(error) {
116
+ expect(error.requestId).to.be.ok
117
+ expect(error.code).to.be.ok
118
+ }
119
+ })
120
+
121
+ })
@@ -28,16 +28,6 @@ it("nlp.v20190408.DescribeDict", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("nlp.v20190408.DescribeEntity", async function () {
32
- try {
33
- const data = await client.DescribeEntity({})
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
31
  it("nlp.v20190408.SearchWordItems", async function () {
42
32
  try {
43
33
  const data = await client.SearchWordItems({})
@@ -108,16 +98,6 @@ it("nlp.v20190408.CreateDict", async function () {
108
98
  }
109
99
  })
110
100
 
111
- it("nlp.v20190408.DescribeRelation", async function () {
112
- try {
113
- const data = await client.DescribeRelation({})
114
- expect(data).to.be.ok
115
- } catch(error) {
116
- expect(error.requestId).to.be.ok
117
- expect(error.code).to.be.ok
118
- }
119
- })
120
-
121
101
  it("nlp.v20190408.TextClassification", async function () {
122
102
  try {
123
103
  const data = await client.TextClassification({})
@@ -228,16 +208,6 @@ it("nlp.v20190408.LexicalAnalysis", async function () {
228
208
  }
229
209
  })
230
210
 
231
- it("nlp.v20190408.DescribeTriple", async function () {
232
- try {
233
- const data = await client.DescribeTriple({})
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
-
241
211
  it("nlp.v20190408.KeywordsExtraction", async function () {
242
212
  try {
243
213
  const data = await client.KeywordsExtraction({})