tencentcloud-sdk-nodejs 4.0.974 → 4.0.975
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 +252 -0
- package/SERVICE_CHANGELOG.md +357 -410
- package/package.json +1 -1
- package/products.md +24 -23
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_models.ts +1 -1
- package/src/services/bh/index.ts +5 -0
- package/src/services/bh/v20230418/bh_client.ts +799 -0
- package/src/services/bh/v20230418/bh_models.ts +3912 -0
- package/src/services/bh/v20230418/index.ts +6 -0
- package/src/services/billing/v20180709/billing_client.ts +12 -6
- package/src/services/cdb/v20170320/cdb_models.ts +5 -1
- package/src/services/clb/v20180317/clb_client.ts +1 -1
- package/src/services/emr/v20190103/emr_models.ts +1 -1
- package/src/services/ess/v20201111/ess_client.ts +5 -6
- package/src/services/ess/v20201111/ess_models.ts +19 -4
- package/src/services/essbasic/v20210526/essbasic_client.ts +3 -4
- package/src/services/essbasic/v20210526/essbasic_models.ts +15 -5
- package/src/services/facefusion/v20181201/facefusion_models.ts +14 -14
- package/src/services/facefusion/v20220927/facefusion_models.ts +4 -10
- package/src/services/gme/v20180711/gme_models.ts +8 -8
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/live/v20180801/live_client.ts +40 -2
- package/src/services/live/v20180801/live_models.ts +199 -55
- package/src/services/privatedns/v20201028/privatedns_models.ts +1 -1
- package/src/services/redis/v20180412/redis_client.ts +1 -1
- package/src/services/redis/v20180412/redis_models.ts +16 -12
- package/src/services/thpc/v20230321/thpc_models.ts +1 -1
- package/src/services/tke/v20220501/tke_client.ts +48 -1
- package/src/services/tke/v20220501/tke_models.ts +160 -74
- package/src/services/vpc/v20170312/vpc_models.ts +84 -79
- package/src/services/wedata/v20210820/wedata_models.ts +5 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +1 -1
- package/tencentcloud/services/bh/index.d.ts +6 -0
- package/tencentcloud/services/bh/index.js +7 -0
- package/tencentcloud/services/bh/v20230418/bh_client.d.ts +258 -0
- package/tencentcloud/services/bh/v20230418/bh_client.js +403 -0
- package/tencentcloud/services/bh/v20230418/bh_models.d.ts +3748 -0
- package/tencentcloud/services/bh/v20230418/bh_models.js +18 -0
- package/tencentcloud/services/bh/v20230418/index.d.ts +6 -0
- package/tencentcloud/services/bh/v20230418/index.js +9 -0
- package/tencentcloud/services/billing/v20180709/billing_client.d.ts +9 -3
- package/tencentcloud/services/billing/v20180709/billing_client.js +9 -3
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +5 -1
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_client.js +1 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +5 -6
- package/tencentcloud/services/ess/v20201111/ess_client.js +5 -6
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +18 -3
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +14 -4
- package/tencentcloud/services/facefusion/v20181201/facefusion_models.d.ts +14 -14
- package/tencentcloud/services/facefusion/v20220927/facefusion_models.d.ts +4 -10
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +8 -8
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/live/v20180801/live_client.d.ts +13 -1
- package/tencentcloud/services/live/v20180801/live_client.js +18 -0
- package/tencentcloud/services/live/v20180801/live_models.d.ts +191 -55
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +1 -1
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +1 -1
- package/tencentcloud/services/redis/v20180412/redis_client.js +1 -1
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +16 -12
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +1 -1
- package/tencentcloud/services/tke/v20220501/tke_client.d.ts +24 -1
- package/tencentcloud/services/tke/v20220501/tke_client.js +29 -0
- package/tencentcloud/services/tke/v20220501/tke_models.d.ts +155 -75
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +84 -79
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +5 -1
- package/test/bh.v20230418.test.js +641 -0
- package/test/live.v20180801.test.js +30 -0
- package/test/tke.v20220501.test.js +30 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.bh.v20230418.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("bh.v20230418.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("bh.v20230418.ModifyDeviceGroup", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.ModifyDeviceGroup({})
|
|
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("bh.v20230418.DescribeDeviceGroupMembers", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeDeviceGroupMembers({})
|
|
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("bh.v20230418.ModifyOAuthSetting", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyOAuthSetting({})
|
|
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("bh.v20230418.ModifyCmdTemplate", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.ModifyCmdTemplate({})
|
|
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("bh.v20230418.DescribeLoginEvent", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.DescribeLoginEvent({})
|
|
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("bh.v20230418.CreateDeviceGroup", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateDeviceGroup({})
|
|
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("bh.v20230418.DescribeDeviceAccounts", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeDeviceAccounts({})
|
|
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("bh.v20230418.ResetUser", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.ResetUser({})
|
|
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("bh.v20230418.DeleteDevices", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DeleteDevices({})
|
|
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("bh.v20230418.CreateChangePwdTask", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.CreateChangePwdTask({})
|
|
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("bh.v20230418.DescribeUserGroups", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeUserGroups({})
|
|
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("bh.v20230418.DescribeDomains", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeDomains({})
|
|
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("bh.v20230418.DeployResource", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.DeployResource({})
|
|
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("bh.v20230418.ModifyDevice", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.ModifyDevice({})
|
|
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("bh.v20230418.BindDeviceResource", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.BindDeviceResource({})
|
|
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("bh.v20230418.BindDeviceAccountPassword", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.BindDeviceAccountPassword({})
|
|
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("bh.v20230418.SearchFile", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.SearchFile({})
|
|
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("bh.v20230418.SearchSession", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.SearchSession({})
|
|
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
|
+
it("bh.v20230418.DeleteAcls", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DeleteAcls({})
|
|
204
|
+
expect(data).to.be.ok
|
|
205
|
+
} catch(error) {
|
|
206
|
+
expect(error.requestId).to.be.ok
|
|
207
|
+
expect(error.code).to.be.ok
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("bh.v20230418.DescribeResources", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeResources({})
|
|
214
|
+
expect(data).to.be.ok
|
|
215
|
+
} catch(error) {
|
|
216
|
+
expect(error.requestId).to.be.ok
|
|
217
|
+
expect(error.code).to.be.ok
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
it("bh.v20230418.DeleteUserGroupMembers", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.DeleteUserGroupMembers({})
|
|
224
|
+
expect(data).to.be.ok
|
|
225
|
+
} catch(error) {
|
|
226
|
+
expect(error.requestId).to.be.ok
|
|
227
|
+
expect(error.code).to.be.ok
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it("bh.v20230418.ModifyChangePwdTask", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.ModifyChangePwdTask({})
|
|
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
|
+
it("bh.v20230418.CreateAssetSyncJob", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.CreateAssetSyncJob({})
|
|
244
|
+
expect(data).to.be.ok
|
|
245
|
+
} catch(error) {
|
|
246
|
+
expect(error.requestId).to.be.ok
|
|
247
|
+
expect(error.code).to.be.ok
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
it("bh.v20230418.DescribeAcls", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.DescribeAcls({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
it("bh.v20230418.RunChangePwdTask", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.RunChangePwdTask({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
it("bh.v20230418.ResetDeviceAccountPassword", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.ResetDeviceAccountPassword({})
|
|
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
|
+
|
|
281
|
+
it("bh.v20230418.ModifyUserGroup", async function () {
|
|
282
|
+
try {
|
|
283
|
+
const data = await client.ModifyUserGroup({})
|
|
284
|
+
expect(data).to.be.ok
|
|
285
|
+
} catch(error) {
|
|
286
|
+
expect(error.requestId).to.be.ok
|
|
287
|
+
expect(error.code).to.be.ok
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
it("bh.v20230418.DeleteDeviceGroups", async function () {
|
|
292
|
+
try {
|
|
293
|
+
const data = await client.DeleteDeviceGroups({})
|
|
294
|
+
expect(data).to.be.ok
|
|
295
|
+
} catch(error) {
|
|
296
|
+
expect(error.requestId).to.be.ok
|
|
297
|
+
expect(error.code).to.be.ok
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
it("bh.v20230418.ModifyAcl", async function () {
|
|
302
|
+
try {
|
|
303
|
+
const data = await client.ModifyAcl({})
|
|
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
|
+
|
|
311
|
+
it("bh.v20230418.DeleteUsers", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.DeleteUsers({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
321
|
+
it("bh.v20230418.CreateAcl", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.CreateAcl({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
331
|
+
it("bh.v20230418.SearchCommandBySid", async function () {
|
|
332
|
+
try {
|
|
333
|
+
const data = await client.SearchCommandBySid({})
|
|
334
|
+
expect(data).to.be.ok
|
|
335
|
+
} catch(error) {
|
|
336
|
+
expect(error.requestId).to.be.ok
|
|
337
|
+
expect(error.code).to.be.ok
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
|
|
341
|
+
it("bh.v20230418.ResetDeviceAccountPrivateKey", async function () {
|
|
342
|
+
try {
|
|
343
|
+
const data = await client.ResetDeviceAccountPrivateKey({})
|
|
344
|
+
expect(data).to.be.ok
|
|
345
|
+
} catch(error) {
|
|
346
|
+
expect(error.requestId).to.be.ok
|
|
347
|
+
expect(error.code).to.be.ok
|
|
348
|
+
}
|
|
349
|
+
})
|
|
350
|
+
|
|
351
|
+
it("bh.v20230418.DescribeAssetSyncStatus", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.DescribeAssetSyncStatus({})
|
|
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
|
+
|
|
361
|
+
it("bh.v20230418.CreateDeviceAccount", async function () {
|
|
362
|
+
try {
|
|
363
|
+
const data = await client.CreateDeviceAccount({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
it("bh.v20230418.DescribeChangePwdTaskDetail", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.DescribeChangePwdTaskDetail({})
|
|
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
|
+
it("bh.v20230418.DeleteDeviceGroupMembers", async function () {
|
|
382
|
+
try {
|
|
383
|
+
const data = await client.DeleteDeviceGroupMembers({})
|
|
384
|
+
expect(data).to.be.ok
|
|
385
|
+
} catch(error) {
|
|
386
|
+
expect(error.requestId).to.be.ok
|
|
387
|
+
expect(error.code).to.be.ok
|
|
388
|
+
}
|
|
389
|
+
})
|
|
390
|
+
|
|
391
|
+
it("bh.v20230418.DeleteChangePwdTask", async function () {
|
|
392
|
+
try {
|
|
393
|
+
const data = await client.DeleteChangePwdTask({})
|
|
394
|
+
expect(data).to.be.ok
|
|
395
|
+
} catch(error) {
|
|
396
|
+
expect(error.requestId).to.be.ok
|
|
397
|
+
expect(error.code).to.be.ok
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
|
|
401
|
+
it("bh.v20230418.DescribeOperationEvent", async function () {
|
|
402
|
+
try {
|
|
403
|
+
const data = await client.DescribeOperationEvent({})
|
|
404
|
+
expect(data).to.be.ok
|
|
405
|
+
} catch(error) {
|
|
406
|
+
expect(error.requestId).to.be.ok
|
|
407
|
+
expect(error.code).to.be.ok
|
|
408
|
+
}
|
|
409
|
+
})
|
|
410
|
+
|
|
411
|
+
it("bh.v20230418.DeleteDeviceAccounts", async function () {
|
|
412
|
+
try {
|
|
413
|
+
const data = await client.DeleteDeviceAccounts({})
|
|
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
|
+
|
|
421
|
+
it("bh.v20230418.DeleteUserGroups", async function () {
|
|
422
|
+
try {
|
|
423
|
+
const data = await client.DeleteUserGroups({})
|
|
424
|
+
expect(data).to.be.ok
|
|
425
|
+
} catch(error) {
|
|
426
|
+
expect(error.requestId).to.be.ok
|
|
427
|
+
expect(error.code).to.be.ok
|
|
428
|
+
}
|
|
429
|
+
})
|
|
430
|
+
|
|
431
|
+
it("bh.v20230418.CreateCmdTemplate", async function () {
|
|
432
|
+
try {
|
|
433
|
+
const data = await client.CreateCmdTemplate({})
|
|
434
|
+
expect(data).to.be.ok
|
|
435
|
+
} catch(error) {
|
|
436
|
+
expect(error.requestId).to.be.ok
|
|
437
|
+
expect(error.code).to.be.ok
|
|
438
|
+
}
|
|
439
|
+
})
|
|
440
|
+
|
|
441
|
+
it("bh.v20230418.ModifyResource", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.ModifyResource({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
451
|
+
it("bh.v20230418.SearchAuditLog", async function () {
|
|
452
|
+
try {
|
|
453
|
+
const data = await client.SearchAuditLog({})
|
|
454
|
+
expect(data).to.be.ok
|
|
455
|
+
} catch(error) {
|
|
456
|
+
expect(error.requestId).to.be.ok
|
|
457
|
+
expect(error.code).to.be.ok
|
|
458
|
+
}
|
|
459
|
+
})
|
|
460
|
+
|
|
461
|
+
it("bh.v20230418.ModifyUser", async function () {
|
|
462
|
+
try {
|
|
463
|
+
const data = await client.ModifyUser({})
|
|
464
|
+
expect(data).to.be.ok
|
|
465
|
+
} catch(error) {
|
|
466
|
+
expect(error.requestId).to.be.ok
|
|
467
|
+
expect(error.code).to.be.ok
|
|
468
|
+
}
|
|
469
|
+
})
|
|
470
|
+
|
|
471
|
+
it("bh.v20230418.DescribeCmdTemplates", async function () {
|
|
472
|
+
try {
|
|
473
|
+
const data = await client.DescribeCmdTemplates({})
|
|
474
|
+
expect(data).to.be.ok
|
|
475
|
+
} catch(error) {
|
|
476
|
+
expect(error.requestId).to.be.ok
|
|
477
|
+
expect(error.code).to.be.ok
|
|
478
|
+
}
|
|
479
|
+
})
|
|
480
|
+
|
|
481
|
+
it("bh.v20230418.DeleteCmdTemplates", async function () {
|
|
482
|
+
try {
|
|
483
|
+
const data = await client.DeleteCmdTemplates({})
|
|
484
|
+
expect(data).to.be.ok
|
|
485
|
+
} catch(error) {
|
|
486
|
+
expect(error.requestId).to.be.ok
|
|
487
|
+
expect(error.code).to.be.ok
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
|
|
491
|
+
it("bh.v20230418.AddUserGroupMembers", async function () {
|
|
492
|
+
try {
|
|
493
|
+
const data = await client.AddUserGroupMembers({})
|
|
494
|
+
expect(data).to.be.ok
|
|
495
|
+
} catch(error) {
|
|
496
|
+
expect(error.requestId).to.be.ok
|
|
497
|
+
expect(error.code).to.be.ok
|
|
498
|
+
}
|
|
499
|
+
})
|
|
500
|
+
|
|
501
|
+
it("bh.v20230418.DescribeDeviceGroups", async function () {
|
|
502
|
+
try {
|
|
503
|
+
const data = await client.DescribeDeviceGroups({})
|
|
504
|
+
expect(data).to.be.ok
|
|
505
|
+
} catch(error) {
|
|
506
|
+
expect(error.requestId).to.be.ok
|
|
507
|
+
expect(error.code).to.be.ok
|
|
508
|
+
}
|
|
509
|
+
})
|
|
510
|
+
|
|
511
|
+
it("bh.v20230418.DescribeUsers", async function () {
|
|
512
|
+
try {
|
|
513
|
+
const data = await client.DescribeUsers({})
|
|
514
|
+
expect(data).to.be.ok
|
|
515
|
+
} catch(error) {
|
|
516
|
+
expect(error.requestId).to.be.ok
|
|
517
|
+
expect(error.code).to.be.ok
|
|
518
|
+
}
|
|
519
|
+
})
|
|
520
|
+
|
|
521
|
+
it("bh.v20230418.DescribeDevices", async function () {
|
|
522
|
+
try {
|
|
523
|
+
const data = await client.DescribeDevices({})
|
|
524
|
+
expect(data).to.be.ok
|
|
525
|
+
} catch(error) {
|
|
526
|
+
expect(error.requestId).to.be.ok
|
|
527
|
+
expect(error.code).to.be.ok
|
|
528
|
+
}
|
|
529
|
+
})
|
|
530
|
+
|
|
531
|
+
it("bh.v20230418.DescribeUserGroupMembers", async function () {
|
|
532
|
+
try {
|
|
533
|
+
const data = await client.DescribeUserGroupMembers({})
|
|
534
|
+
expect(data).to.be.ok
|
|
535
|
+
} catch(error) {
|
|
536
|
+
expect(error.requestId).to.be.ok
|
|
537
|
+
expect(error.code).to.be.ok
|
|
538
|
+
}
|
|
539
|
+
})
|
|
540
|
+
|
|
541
|
+
it("bh.v20230418.SearchFileBySid", async function () {
|
|
542
|
+
try {
|
|
543
|
+
const data = await client.SearchFileBySid({})
|
|
544
|
+
expect(data).to.be.ok
|
|
545
|
+
} catch(error) {
|
|
546
|
+
expect(error.requestId).to.be.ok
|
|
547
|
+
expect(error.code).to.be.ok
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
|
|
551
|
+
it("bh.v20230418.ImportExternalDevice", async function () {
|
|
552
|
+
try {
|
|
553
|
+
const data = await client.ImportExternalDevice({})
|
|
554
|
+
expect(data).to.be.ok
|
|
555
|
+
} catch(error) {
|
|
556
|
+
expect(error.requestId).to.be.ok
|
|
557
|
+
expect(error.code).to.be.ok
|
|
558
|
+
}
|
|
559
|
+
})
|
|
560
|
+
|
|
561
|
+
it("bh.v20230418.DescribeChangePwdTask", async function () {
|
|
562
|
+
try {
|
|
563
|
+
const data = await client.DescribeChangePwdTask({})
|
|
564
|
+
expect(data).to.be.ok
|
|
565
|
+
} catch(error) {
|
|
566
|
+
expect(error.requestId).to.be.ok
|
|
567
|
+
expect(error.code).to.be.ok
|
|
568
|
+
}
|
|
569
|
+
})
|
|
570
|
+
|
|
571
|
+
it("bh.v20230418.AddDeviceGroupMembers", async function () {
|
|
572
|
+
try {
|
|
573
|
+
const data = await client.AddDeviceGroupMembers({})
|
|
574
|
+
expect(data).to.be.ok
|
|
575
|
+
} catch(error) {
|
|
576
|
+
expect(error.requestId).to.be.ok
|
|
577
|
+
expect(error.code).to.be.ok
|
|
578
|
+
}
|
|
579
|
+
})
|
|
580
|
+
|
|
581
|
+
it("bh.v20230418.CreateUserGroup", async function () {
|
|
582
|
+
try {
|
|
583
|
+
const data = await client.CreateUserGroup({})
|
|
584
|
+
expect(data).to.be.ok
|
|
585
|
+
} catch(error) {
|
|
586
|
+
expect(error.requestId).to.be.ok
|
|
587
|
+
expect(error.code).to.be.ok
|
|
588
|
+
}
|
|
589
|
+
})
|
|
590
|
+
|
|
591
|
+
it("bh.v20230418.CreateResource", async function () {
|
|
592
|
+
try {
|
|
593
|
+
const data = await client.CreateResource({})
|
|
594
|
+
expect(data).to.be.ok
|
|
595
|
+
} catch(error) {
|
|
596
|
+
expect(error.requestId).to.be.ok
|
|
597
|
+
expect(error.code).to.be.ok
|
|
598
|
+
}
|
|
599
|
+
})
|
|
600
|
+
|
|
601
|
+
it("bh.v20230418.CreateUser", async function () {
|
|
602
|
+
try {
|
|
603
|
+
const data = await client.CreateUser({})
|
|
604
|
+
expect(data).to.be.ok
|
|
605
|
+
} catch(error) {
|
|
606
|
+
expect(error.requestId).to.be.ok
|
|
607
|
+
expect(error.code).to.be.ok
|
|
608
|
+
}
|
|
609
|
+
})
|
|
610
|
+
|
|
611
|
+
it("bh.v20230418.BindDeviceAccountPrivateKey", async function () {
|
|
612
|
+
try {
|
|
613
|
+
const data = await client.BindDeviceAccountPrivateKey({})
|
|
614
|
+
expect(data).to.be.ok
|
|
615
|
+
} catch(error) {
|
|
616
|
+
expect(error.requestId).to.be.ok
|
|
617
|
+
expect(error.code).to.be.ok
|
|
618
|
+
}
|
|
619
|
+
})
|
|
620
|
+
|
|
621
|
+
it("bh.v20230418.SearchCommand", async function () {
|
|
622
|
+
try {
|
|
623
|
+
const data = await client.SearchCommand({})
|
|
624
|
+
expect(data).to.be.ok
|
|
625
|
+
} catch(error) {
|
|
626
|
+
expect(error.requestId).to.be.ok
|
|
627
|
+
expect(error.code).to.be.ok
|
|
628
|
+
}
|
|
629
|
+
})
|
|
630
|
+
|
|
631
|
+
it("bh.v20230418.SearchSessionCommand", async function () {
|
|
632
|
+
try {
|
|
633
|
+
const data = await client.SearchSessionCommand({})
|
|
634
|
+
expect(data).to.be.ok
|
|
635
|
+
} catch(error) {
|
|
636
|
+
expect(error.requestId).to.be.ok
|
|
637
|
+
expect(error.code).to.be.ok
|
|
638
|
+
}
|
|
639
|
+
})
|
|
640
|
+
|
|
641
|
+
})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.live.v20180801.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("live.v20180801.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("live.v20180801.DescribeCasterList", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeCasterList({})
|
|
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("live.v20180801.DropLiveStream", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.DropLiveStream({})
|
|
@@ -798,6 +808,16 @@ it("live.v20180801.DescribeStreamPlayInfoList", async function () {
|
|
|
798
808
|
}
|
|
799
809
|
})
|
|
800
810
|
|
|
811
|
+
it("live.v20180801.DescribeCasterUserStatus", async function () {
|
|
812
|
+
try {
|
|
813
|
+
const data = await client.DescribeCasterUserStatus({})
|
|
814
|
+
expect(data).to.be.ok
|
|
815
|
+
} catch(error) {
|
|
816
|
+
expect(error.requestId).to.be.ok
|
|
817
|
+
expect(error.code).to.be.ok
|
|
818
|
+
}
|
|
819
|
+
})
|
|
820
|
+
|
|
801
821
|
it("live.v20180801.DescribeLivePullStreamTaskStatus", async function () {
|
|
802
822
|
try {
|
|
803
823
|
const data = await client.DescribeLivePullStreamTaskStatus({})
|
|
@@ -1398,6 +1418,16 @@ it("live.v20180801.DescribeLivePlayAuthKey", async function () {
|
|
|
1398
1418
|
}
|
|
1399
1419
|
})
|
|
1400
1420
|
|
|
1421
|
+
it("live.v20180801.DescribeCasterTransitionTypes", async function () {
|
|
1422
|
+
try {
|
|
1423
|
+
const data = await client.DescribeCasterTransitionTypes({})
|
|
1424
|
+
expect(data).to.be.ok
|
|
1425
|
+
} catch(error) {
|
|
1426
|
+
expect(error.requestId).to.be.ok
|
|
1427
|
+
expect(error.code).to.be.ok
|
|
1428
|
+
}
|
|
1429
|
+
})
|
|
1430
|
+
|
|
1401
1431
|
it("live.v20180801.StopLiveStreamMonitor", async function () {
|
|
1402
1432
|
try {
|
|
1403
1433
|
const data = await client.StopLiveStreamMonitor({})
|