tencentcloud-sdk-nodejs 4.0.572 → 4.0.574
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 +234 -0
- package/SERVICE_CHANGELOG.md +308 -58
- package/package.json +1 -1
- package/products.md +20 -19
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_client.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +13 -12
- package/src/services/billing/v20180709/billing_models.ts +4 -4
- package/src/services/cbs/v20170312/cbs_client.ts +1 -1
- package/src/services/cbs/v20170312/cbs_models.ts +4 -4
- package/src/services/cfw/v20190904/cfw_client.ts +4 -3
- package/src/services/cfw/v20190904/cfw_models.ts +109 -75
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +5 -5
- package/src/services/cloudstudio/v20210524/cloudstudio_client.ts +116 -104
- package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +32 -0
- package/src/services/cls/v20201016/cls_models.ts +17 -13
- package/src/services/essbasic/v20210526/essbasic_models.ts +26 -3
- package/src/services/index.ts +1 -0
- package/src/services/lcic/v20220817/lcic_models.ts +2 -2
- package/src/services/pts/v20210728/pts_client.ts +27 -14
- package/src/services/pts/v20210728/pts_models.ts +260 -172
- package/src/services/teo/v20220901/teo_client.ts +8 -4
- package/src/services/teo/v20220901/teo_models.ts +209 -52
- package/src/services/tke/v20180525/tke_models.ts +9 -4
- package/src/services/trro/index.ts +5 -0
- package/src/services/trro/v20220325/index.ts +6 -0
- package/src/services/trro/v20220325/trro_client.ts +316 -0
- package/src/services/trro/v20220325/trro_models.ts +1357 -0
- package/src/services/waf/v20180125/waf_client.ts +14 -0
- package/src/services/waf/v20180125/waf_models.ts +180 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
- package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +11 -10
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -4
- package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +1 -1
- package/tencentcloud/services/cbs/v20170312/cbs_client.js +1 -1
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +4 -4
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -1
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +91 -61
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +5 -5
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.d.ts +41 -37
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.js +60 -54
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +28 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +9 -5
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +25 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +2 -2
- package/tencentcloud/services/pts/v20210728/pts_client.d.ts +9 -5
- package/tencentcloud/services/pts/v20210728/pts_client.js +12 -6
- package/tencentcloud/services/pts/v20210728/pts_models.d.ts +221 -146
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +1 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +180 -46
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +8 -4
- package/tencentcloud/services/trro/index.d.ts +6 -0
- package/tencentcloud/services/trro/index.js +7 -0
- package/tencentcloud/services/trro/v20220325/index.d.ts +6 -0
- package/tencentcloud/services/trro/v20220325/index.js +9 -0
- package/tencentcloud/services/trro/v20220325/trro_client.d.ts +102 -0
- package/tencentcloud/services/trro/v20220325/trro_client.js +169 -0
- package/tencentcloud/services/trro/v20220325/trro_models.d.ts +1130 -0
- package/tencentcloud/services/trro/v20220325/trro_models.js +18 -0
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +149 -0
- package/test/cloudstudio.v20210524.test.js +46 -36
- package/test/pts.v20210728.test.js +14 -4
- package/test/trro.v20220325.test.js +251 -0
- package/test/waf.v20180125.test.js +10 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.trro.v20220325.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("trro.v20220325.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("trro.v20220325.DescribeProjectInfo", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeProjectInfo({})
|
|
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("trro.v20220325.GetDevices", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.GetDevices({})
|
|
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("trro.v20220325.ModifyDevice", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyDevice({})
|
|
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("trro.v20220325.DescribePolicy", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribePolicy({})
|
|
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("trro.v20220325.GetLicenseStat", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.GetLicenseStat({})
|
|
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("trro.v20220325.DescribeSessionStatisticsByInterval", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeSessionStatisticsByInterval({})
|
|
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("trro.v20220325.BoundLicenses", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.BoundLicenses({})
|
|
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("trro.v20220325.BatchDeletePolicy", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.BatchDeletePolicy({})
|
|
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("trro.v20220325.GetLicenses", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.GetLicenses({})
|
|
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("trro.v20220325.DescribeDeviceList", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.DescribeDeviceList({})
|
|
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("trro.v20220325.ModifyProject", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.ModifyProject({})
|
|
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("trro.v20220325.DescribeDeviceSessionDetails", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeDeviceSessionDetails({})
|
|
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("trro.v20220325.ModifyPolicy", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.ModifyPolicy({})
|
|
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("trro.v20220325.CreateDevice", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.CreateDevice({})
|
|
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("trro.v20220325.BatchDeleteDevices", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.BatchDeleteDevices({})
|
|
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("trro.v20220325.DescribeSessionStatistics", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.DescribeSessionStatistics({})
|
|
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("trro.v20220325.DescribeDeviceInfo", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.DescribeDeviceInfo({})
|
|
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("trro.v20220325.DescribeDeviceSessionList", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.DescribeDeviceSessionList({})
|
|
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("trro.v20220325.CreateProject", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.CreateProject({})
|
|
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("trro.v20220325.DescribeRecentSessionList", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeRecentSessionList({})
|
|
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("trro.v20220325.GetDeviceLicense", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.GetDeviceLicense({})
|
|
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("trro.v20220325.DeleteProject", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.DeleteProject({})
|
|
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("trro.v20220325.DescribeProjectList", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.DescribeProjectList({})
|
|
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
|
+
})
|
|
@@ -368,6 +368,16 @@ it("waf.v20180125.DeleteDownloadRecord", async function () {
|
|
|
368
368
|
}
|
|
369
369
|
})
|
|
370
370
|
|
|
371
|
+
it("waf.v20180125.CreateHost", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.CreateHost({})
|
|
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
|
+
|
|
371
381
|
it("waf.v20180125.DeleteSession", async function () {
|
|
372
382
|
try {
|
|
373
383
|
const data = await client.DeleteSession({})
|