tencentcloud-sdk-nodejs 4.0.296 → 4.0.297

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 (41) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/SERVICE_CHANGELOG.md +130 -54
  3. package/package.json +1 -1
  4. package/products.md +8 -7
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ame/v20190916/ame_models.ts +10 -2
  7. package/src/services/antiddos/v20200309/antiddos_models.ts +6 -1
  8. package/src/services/apigateway/v20180808/apigateway_models.ts +1 -1
  9. package/src/services/cam/v20190116/cam_models.ts +1 -1
  10. package/src/services/cloudaudit/v20190319/cloudaudit_client.ts +43 -7
  11. package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +109 -64
  12. package/src/services/cls/v20201016/cls_models.ts +6 -5
  13. package/src/services/ess/index.ts +5 -0
  14. package/src/services/ess/v20201111/ess_client.ts +148 -0
  15. package/src/services/ess/v20201111/ess_models.ts +857 -0
  16. package/src/services/ess/v20201111/index.ts +6 -0
  17. package/src/services/index.ts +1 -0
  18. package/src/services/vpc/v20170312/vpc_models.ts +3 -2
  19. package/tencentcloud/common/sdk_version.d.ts +1 -1
  20. package/tencentcloud/common/sdk_version.js +1 -1
  21. package/tencentcloud/services/ame/v20190916/ame_models.d.ts +9 -2
  22. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +5 -1
  23. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +1 -1
  24. package/tencentcloud/services/cam/v20190116/cam_models.d.ts +1 -1
  25. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.d.ts +15 -3
  26. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.js +21 -3
  27. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +91 -52
  28. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +4 -3
  29. package/tencentcloud/services/ess/index.d.ts +6 -0
  30. package/tencentcloud/services/ess/index.js +7 -0
  31. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +46 -0
  32. package/tencentcloud/services/ess/v20201111/ess_client.js +85 -0
  33. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +707 -0
  34. package/tencentcloud/services/ess/v20201111/ess_models.js +18 -0
  35. package/tencentcloud/services/ess/v20201111/index.d.ts +6 -0
  36. package/tencentcloud/services/ess/v20201111/index.js +9 -0
  37. package/tencentcloud/services/index.d.ts +1 -0
  38. package/tencentcloud/services/index.js +2 -0
  39. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -0
  40. package/test/cloudaudit.v20190319.test.js +32 -2
  41. package/test/ess.v20201111.test.js +111 -0
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20201111 = void 0;
4
+ const Models = require("./ess_models");
5
+ const ess_client_1 = require("./ess_client");
6
+ exports.v20201111 = {
7
+ Client: ess_client_1.Client,
8
+ Models: Models
9
+ };
@@ -72,6 +72,7 @@ export { eiam } from "./eiam";
72
72
  export { eis } from "./eis";
73
73
  export { emr } from "./emr";
74
74
  export { es } from "./es";
75
+ export { ess } from "./ess";
75
76
  export { essbasic } from "./essbasic";
76
77
  export { facefusion } from "./facefusion";
77
78
  export { faceid } from "./faceid";
@@ -148,6 +148,8 @@ var emr_1 = require("./emr");
148
148
  Object.defineProperty(exports, "emr", { enumerable: true, get: function () { return emr_1.emr; } });
149
149
  var es_1 = require("./es");
150
150
  Object.defineProperty(exports, "es", { enumerable: true, get: function () { return es_1.es; } });
151
+ var ess_1 = require("./ess");
152
+ Object.defineProperty(exports, "ess", { enumerable: true, get: function () { return ess_1.ess; } });
151
153
  var essbasic_1 = require("./essbasic");
152
154
  Object.defineProperty(exports, "essbasic", { enumerable: true, get: function () { return essbasic_1.essbasic; } });
153
155
  var facefusion_1 = require("./facefusion");
@@ -3817,6 +3817,7 @@ export interface SecurityGroupPolicy {
3817
3817
  Protocol?: string;
3818
3818
  /**
3819
3819
  * 端口(all, 离散port, range)。
3820
+ 说明:如果Protocol设置为ALL,则Port也需要设置为all。
3820
3821
  */
3821
3822
  Port?: string;
3822
3823
  /**
@@ -18,6 +18,16 @@ const client = new tencentcloud.cloudaudit.v20190319.Client({
18
18
  })
19
19
  describe("cloudaudit.v20190319.test.js", function () {
20
20
 
21
+ it("cloudaudit.v20190319.ModifyAuditTrack", async function () {
22
+ try {
23
+ const data = await client.ModifyAuditTrack({})
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
+
21
31
  it("cloudaudit.v20190319.StartLogging", async function () {
22
32
  try {
23
33
  const data = await client.StartLogging({})
@@ -28,6 +38,16 @@ it("cloudaudit.v20190319.StartLogging", async function () {
28
38
  }
29
39
  })
30
40
 
41
+ it("cloudaudit.v20190319.ListCosEnableRegion", async function () {
42
+ try {
43
+ const data = await client.ListCosEnableRegion({})
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
+
31
51
  it("cloudaudit.v20190319.GetAttributeKey", async function () {
32
52
  try {
33
53
  const data = await client.GetAttributeKey({})
@@ -38,6 +58,16 @@ it("cloudaudit.v20190319.GetAttributeKey", async function () {
38
58
  }
39
59
  })
40
60
 
61
+ it("cloudaudit.v20190319.CreateAuditTrack", async function () {
62
+ try {
63
+ const data = await client.CreateAuditTrack({})
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
+
41
71
  it("cloudaudit.v20190319.ListCmqEnableRegion", async function () {
42
72
  try {
43
73
  const data = await client.ListCmqEnableRegion({})
@@ -138,9 +168,9 @@ it("cloudaudit.v20190319.CreateAudit", async function () {
138
168
  }
139
169
  })
140
170
 
141
- it("cloudaudit.v20190319.ListCosEnableRegion", async function () {
171
+ it("cloudaudit.v20190319.DeleteAuditTrack", async function () {
142
172
  try {
143
- const data = await client.ListCosEnableRegion({})
173
+ const data = await client.DeleteAuditTrack({})
144
174
  expect(data).to.be.ok
145
175
  } catch(error) {
146
176
  expect(error.requestId).to.be.ok
@@ -0,0 +1,111 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.ess.v20201111.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("ess.v20201111.test.js", function () {
20
+
21
+ it("ess.v20201111.StartFlow", async function () {
22
+ try {
23
+ const data = await client.StartFlow({})
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("ess.v20201111.CancelFlow", async function () {
32
+ try {
33
+ const data = await client.CancelFlow({})
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("ess.v20201111.CreateDocument", async function () {
42
+ try {
43
+ const data = await client.CreateDocument({})
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("ess.v20201111.DescribeFileUrls", async function () {
52
+ try {
53
+ const data = await client.DescribeFileUrls({})
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("ess.v20201111.CreateFlow", async function () {
62
+ try {
63
+ const data = await client.CreateFlow({})
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("ess.v20201111.CreateSchemeUrl", async function () {
72
+ try {
73
+ const data = await client.CreateSchemeUrl({})
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("ess.v20201111.DescribeThirdPartyAuthCode", async function () {
82
+ try {
83
+ const data = await client.DescribeThirdPartyAuthCode({})
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("ess.v20201111.DescribeFlowBriefs", async function () {
92
+ try {
93
+ const data = await client.DescribeFlowBriefs({})
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("ess.v20201111.CreateFlowByFiles", async function () {
102
+ try {
103
+ const data = await client.CreateFlowByFiles({})
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
+ })