tencentcloud-sdk-nodejs 4.0.956 → 4.0.957
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.
- package/CHANGELOG.md +199 -0
- package/SERVICE_CHANGELOG.md +309 -37
- package/package.json +1 -1
- package/products.md +18 -17
- package/src/common/sdk_version.ts +1 -1
- package/src/services/batch/v20170312/batch_models.ts +8 -1
- package/src/services/ccc/v20200210/ccc_models.ts +94 -1
- package/src/services/cls/v20201016/cls_client.ts +66 -15
- package/src/services/cls/v20201016/cls_models.ts +605 -359
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +5 -0
- package/src/services/dc/v20180410/dc_client.ts +121 -107
- package/src/services/dc/v20180410/dc_models.ts +181 -35
- package/src/services/emr/v20190103/emr_models.ts +1 -93
- package/src/services/ess/v20201111/ess_models.ts +4 -5
- package/src/services/essbasic/v20210526/essbasic_models.ts +2 -3
- package/src/services/faceid/v20180301/faceid_models.ts +19 -0
- package/src/services/gwlb/index.ts +5 -0
- package/src/services/gwlb/v20240906/gwlb_client.ts +267 -0
- package/src/services/gwlb/v20240906/gwlb_models.ts +954 -0
- package/src/services/gwlb/v20240906/index.ts +6 -0
- package/src/services/index.ts +1 -0
- package/src/services/oceanus/v20190422/oceanus_models.ts +4 -4
- package/src/services/privatedns/v20201028/privatedns_client.ts +18 -6
- package/src/services/privatedns/v20201028/privatedns_models.ts +48 -0
- package/src/services/teo/v20220901/teo_models.ts +8 -5
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/vclm/v20240523/vclm_models.ts +4 -0
- package/src/services/vtc/v20240223/vtc_models.ts +4 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +8 -1
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +94 -1
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +19 -3
- package/tencentcloud/services/cls/v20201016/cls_client.js +27 -3
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +591 -356
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +5 -0
- package/tencentcloud/services/dc/v20180410/dc_client.d.ts +44 -40
- package/tencentcloud/services/dc/v20180410/dc_client.js +63 -57
- package/tencentcloud/services/dc/v20180410/dc_models.d.ts +177 -35
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1 -93
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -5
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -3
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +19 -0
- package/tencentcloud/services/gwlb/index.d.ts +6 -0
- package/tencentcloud/services/gwlb/index.js +7 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.d.ts +90 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.js +147 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.d.ts +890 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.js +18 -0
- package/tencentcloud/services/gwlb/v20240906/index.d.ts +6 -0
- package/tencentcloud/services/gwlb/v20240906/index.js +9 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +4 -4
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.d.ts +7 -3
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.js +9 -3
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +46 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +8 -5
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +4 -0
- package/tencentcloud/services/vtc/v20240223/vtc_models.d.ts +4 -0
- package/test/cls.v20201016.test.js +42 -2
- package/test/dc.v20180410.test.js +48 -38
- package/test/gwlb.v20240906.test.js +201 -0
- package/test/privatedns.v20201028.test.js +12 -2
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.gwlb.v20240906.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("gwlb.v20240906.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("gwlb.v20240906.DeleteTargetGroups", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DeleteTargetGroups({})
|
|
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("gwlb.v20240906.DeleteGatewayLoadBalancer", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DeleteGatewayLoadBalancer({})
|
|
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("gwlb.v20240906.RegisterTargetGroupInstances", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.RegisterTargetGroupInstances({})
|
|
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("gwlb.v20240906.DescribeTargetGroups", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeTargetGroups({})
|
|
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("gwlb.v20240906.ModifyTargetGroupAttribute", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.ModifyTargetGroupAttribute({})
|
|
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("gwlb.v20240906.DescribeTaskStatus", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeTaskStatus({})
|
|
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("gwlb.v20240906.CreateGatewayLoadBalancer", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.CreateGatewayLoadBalancer({})
|
|
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("gwlb.v20240906.DisassociateTargetGroups", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DisassociateTargetGroups({})
|
|
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("gwlb.v20240906.ModifyTargetGroupInstancesWeight", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.ModifyTargetGroupInstancesWeight({})
|
|
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("gwlb.v20240906.DescribeTargetGroupInstanceStatus", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.DescribeTargetGroupInstanceStatus({})
|
|
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
|
+
it("gwlb.v20240906.AssociateTargetGroups", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.AssociateTargetGroups({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
it("gwlb.v20240906.DescribeGatewayLoadBalancers", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeGatewayLoadBalancers({})
|
|
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
|
+
|
|
141
|
+
it("gwlb.v20240906.ModifyGatewayLoadBalancerAttribute", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.ModifyGatewayLoadBalancerAttribute({})
|
|
144
|
+
expect(data).to.be.ok
|
|
145
|
+
} catch(error) {
|
|
146
|
+
expect(error.requestId).to.be.ok
|
|
147
|
+
expect(error.code).to.be.ok
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it("gwlb.v20240906.DescribeTargetGroupList", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.DescribeTargetGroupList({})
|
|
154
|
+
expect(data).to.be.ok
|
|
155
|
+
} catch(error) {
|
|
156
|
+
expect(error.requestId).to.be.ok
|
|
157
|
+
expect(error.code).to.be.ok
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it("gwlb.v20240906.InquirePriceCreateGatewayLoadBalancer", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.InquirePriceCreateGatewayLoadBalancer({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
it("gwlb.v20240906.DeregisterTargetGroupInstances", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.DeregisterTargetGroupInstances({})
|
|
174
|
+
expect(data).to.be.ok
|
|
175
|
+
} catch(error) {
|
|
176
|
+
expect(error.requestId).to.be.ok
|
|
177
|
+
expect(error.code).to.be.ok
|
|
178
|
+
}
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
it("gwlb.v20240906.CreateTargetGroup", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.CreateTargetGroup({})
|
|
184
|
+
expect(data).to.be.ok
|
|
185
|
+
} catch(error) {
|
|
186
|
+
expect(error.requestId).to.be.ok
|
|
187
|
+
expect(error.code).to.be.ok
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
it("gwlb.v20240906.DescribeTargetGroupInstances", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.DescribeTargetGroupInstances({})
|
|
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
|
+
|
|
201
|
+
})
|
|
@@ -98,9 +98,9 @@ it("privatedns.v20201028.DescribePrivateZoneList", async function () {
|
|
|
98
98
|
}
|
|
99
99
|
})
|
|
100
100
|
|
|
101
|
-
it("privatedns.v20201028.
|
|
101
|
+
it("privatedns.v20201028.CreateEndPoint", async function () {
|
|
102
102
|
try {
|
|
103
|
-
const data = await client.
|
|
103
|
+
const data = await client.CreateEndPoint({})
|
|
104
104
|
expect(data).to.be.ok
|
|
105
105
|
} catch(error) {
|
|
106
106
|
expect(error.requestId).to.be.ok
|
|
@@ -118,6 +118,16 @@ it("privatedns.v20201028.AddSpecifyPrivateZoneVpc", async function () {
|
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
+
it("privatedns.v20201028.DescribePrivateZoneRecordList", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribePrivateZoneRecordList({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
121
131
|
it("privatedns.v20201028.QueryAsyncBindVpcStatus", async function () {
|
|
122
132
|
try {
|
|
123
133
|
const data = await client.QueryAsyncBindVpcStatus({})
|