tencentcloud-sdk-nodejs-intl-en 3.0.1391 → 3.0.1392

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1391",
3
+ "version": "3.0.1392",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20200309: require("./v20200309"),
2
+ v20200309: require("./v20200309"), v20250903: require("./v20250903"),
3
3
  };
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const DDoSUnblockQuota = models.DDoSUnblockQuota;
20
+ const Filter = models.Filter;
21
+ const UnblockResourcesResponse = models.UnblockResourcesResponse;
22
+ const DDoSBlockRecord = models.DDoSBlockRecord;
23
+ const DescribeDDoSBlockRecordsResponse = models.DescribeDDoSBlockRecordsResponse;
24
+ const UnblockResourcesRequest = models.UnblockResourcesRequest;
25
+ const DescribeDDoSBlockRecordsRequest = models.DescribeDDoSBlockRecordsRequest;
26
+
27
+
28
+ /**
29
+ * antiddos client
30
+ * @class
31
+ */
32
+ class AntiddosClient extends AbstractClient {
33
+
34
+ constructor(credential, region, profile) {
35
+ super("antiddos.intl.tencentcloudapi.com", "2025-09-03", credential, region, profile);
36
+ }
37
+
38
+ /**
39
+ * Query block unblock records and unblocking quota info.
40
+ * @param {DescribeDDoSBlockRecordsRequest} req
41
+ * @param {function(string, DescribeDDoSBlockRecordsResponse):void} cb
42
+ * @public
43
+ */
44
+ DescribeDDoSBlockRecords(req, cb) {
45
+ let resp = new DescribeDDoSBlockRecordsResponse();
46
+ this.request("DescribeDDoSBlockRecords", req, resp, cb);
47
+ }
48
+
49
+ /**
50
+ * Apply for unblocking resources. You can obtain the unblocking status of resources through the DescribeDDoSBlockRecords API.
51
+ * @param {UnblockResourcesRequest} req
52
+ * @param {function(string, UnblockResourcesResponse):void} cb
53
+ * @public
54
+ */
55
+ UnblockResources(req, cb) {
56
+ let resp = new UnblockResourcesResponse();
57
+ this.request("UnblockResources", req, resp, cb);
58
+ }
59
+
60
+
61
+ }
62
+ module.exports = AntiddosClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./antiddos_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,336 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * Unconsumed unblocking quota info of the current account. Users who purchase Anti-DDoS products have a default unblocking quota of 3 resources. The system will reset the unblocking quota count at zero point (UTC+8) time zone each day. Unused unblocking quota on the day will not accumulate to the next day. The unblocking quota for Anti-DDoS Package (Lite) is 3 resources per month and resets monthly.
21
+ * @class
22
+ */
23
+ class DDoSUnblockQuota extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * <p>Total quota of the number of unblocking times.</p>
29
+ * @type {number || null}
30
+ */
31
+ this.TotalQuota = null;
32
+
33
+ /**
34
+ * <p>Total quota used.</p>
35
+ * @type {number || null}
36
+ */
37
+ this.UsedQuota = null;
38
+
39
+ /**
40
+ * <p>Start time when the quota takes effect.</p>
41
+ * @type {string || null}
42
+ */
43
+ this.QuotaStartTime = null;
44
+
45
+ /**
46
+ * <p>End time when the quota takes effect.</p>
47
+ * @type {string || null}
48
+ */
49
+ this.QuotaEndTime = null;
50
+
51
+ }
52
+
53
+ /**
54
+ * @private
55
+ */
56
+ deserialize(params) {
57
+ if (!params) {
58
+ return;
59
+ }
60
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
61
+ this.UsedQuota = 'UsedQuota' in params ? params.UsedQuota : null;
62
+ this.QuotaStartTime = 'QuotaStartTime' in params ? params.QuotaStartTime : null;
63
+ this.QuotaEndTime = 'QuotaEndTime' in params ? params.QuotaEndTime : null;
64
+
65
+ }
66
+ }
67
+
68
+ /**
69
+ * Describe key-value pair filter, used for condition filtering query, such as filtering ID, name, status. When multiple Filters exist, the relationship between Filters is logical AND. When the same Filter has multiple Values, the relationship between Values under the same Filter is logical OR.
70
+ * @class
71
+ */
72
+ class Filter extends AbstractModel {
73
+ constructor(){
74
+ super();
75
+
76
+ /**
77
+ * <p>Fields to be filtered. Check corresponding API for specific available values.</p>
78
+ * @type {string || null}
79
+ */
80
+ this.Name = null;
81
+
82
+ /**
83
+ * <p>Field's filter value.</p>
84
+ * @type {Array.<string> || null}
85
+ */
86
+ this.Values = null;
87
+
88
+ }
89
+
90
+ /**
91
+ * @private
92
+ */
93
+ deserialize(params) {
94
+ if (!params) {
95
+ return;
96
+ }
97
+ this.Name = 'Name' in params ? params.Name : null;
98
+ this.Values = 'Values' in params ? params.Values : null;
99
+
100
+ }
101
+ }
102
+
103
+ /**
104
+ * UnblockResources response structure.
105
+ * @class
106
+ */
107
+ class UnblockResourcesResponse extends AbstractModel {
108
+ constructor(){
109
+ super();
110
+
111
+ /**
112
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
113
+ * @type {string || null}
114
+ */
115
+ this.RequestId = null;
116
+
117
+ }
118
+
119
+ /**
120
+ * @private
121
+ */
122
+ deserialize(params) {
123
+ if (!params) {
124
+ return;
125
+ }
126
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
127
+
128
+ }
129
+ }
130
+
131
+ /**
132
+ * Block history
133
+ * @class
134
+ */
135
+ class DDoSBlockRecord extends AbstractModel {
136
+ constructor(){
137
+ super();
138
+
139
+ /**
140
+ * <p>Blocked resources, public IP address, for example:</p><ul><li>Public IP address: 117.175.94.231.</li></ul>
141
+ * @type {string || null}
142
+ */
143
+ this.Resource = null;
144
+
145
+ /**
146
+ * <p>The time when it was blocked.</p>
147
+ * @type {string || null}
148
+ */
149
+ this.BlockTime = null;
150
+
151
+ /**
152
+ * <p>Blocking and unblocking status.</p><p>Enumeration value:</p><ul><li>Blocked: Blocked;</li><li>Unblocking: Unblocking;</li><li>Unblocked: Unblocked.</li></ul>
153
+ * @type {string || null}
154
+ */
155
+ this.Status = null;
156
+
157
+ }
158
+
159
+ /**
160
+ * @private
161
+ */
162
+ deserialize(params) {
163
+ if (!params) {
164
+ return;
165
+ }
166
+ this.Resource = 'Resource' in params ? params.Resource : null;
167
+ this.BlockTime = 'BlockTime' in params ? params.BlockTime : null;
168
+ this.Status = 'Status' in params ? params.Status : null;
169
+
170
+ }
171
+ }
172
+
173
+ /**
174
+ * DescribeDDoSBlockRecords response structure.
175
+ * @class
176
+ */
177
+ class DescribeDDoSBlockRecordsResponse extends AbstractModel {
178
+ constructor(){
179
+ super();
180
+
181
+ /**
182
+ * <p>Total number of block and unblock records.</p>
183
+ * @type {number || null}
184
+ */
185
+ this.TotalCount = null;
186
+
187
+ /**
188
+ * <p>Unblock record.</p>
189
+ * @type {Array.<DDoSBlockRecord> || null}
190
+ */
191
+ this.BlockRecords = null;
192
+
193
+ /**
194
+ * <p>Quota information of the number of unblocking times.</p>
195
+ * @type {DDoSUnblockQuota || null}
196
+ */
197
+ this.UnblockQuotaInfo = null;
198
+
199
+ /**
200
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
201
+ * @type {string || null}
202
+ */
203
+ this.RequestId = null;
204
+
205
+ }
206
+
207
+ /**
208
+ * @private
209
+ */
210
+ deserialize(params) {
211
+ if (!params) {
212
+ return;
213
+ }
214
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
215
+
216
+ if (params.BlockRecords) {
217
+ this.BlockRecords = new Array();
218
+ for (let z in params.BlockRecords) {
219
+ let obj = new DDoSBlockRecord();
220
+ obj.deserialize(params.BlockRecords[z]);
221
+ this.BlockRecords.push(obj);
222
+ }
223
+ }
224
+
225
+ if (params.UnblockQuotaInfo) {
226
+ let obj = new DDoSUnblockQuota();
227
+ obj.deserialize(params.UnblockQuotaInfo)
228
+ this.UnblockQuotaInfo = obj;
229
+ }
230
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
231
+
232
+ }
233
+ }
234
+
235
+ /**
236
+ * UnblockResources request structure.
237
+ * @class
238
+ */
239
+ class UnblockResourcesRequest extends AbstractModel {
240
+ constructor(){
241
+ super();
242
+
243
+ /**
244
+ * <p>List of resources to apply for unblocking. Supports unblocking based on public IP. You can obtain detailed resource information of blocked resources through the DescribeDDoSBlockRecords API. Parameter example:</p><ul><li>Public IP: 117.175.94.230.</li></ul><p>Input parameter limit: Maximum list length is 10.</p>
245
+ * @type {Array.<string> || null}
246
+ */
247
+ this.Resources = null;
248
+
249
+ }
250
+
251
+ /**
252
+ * @private
253
+ */
254
+ deserialize(params) {
255
+ if (!params) {
256
+ return;
257
+ }
258
+ this.Resources = 'Resources' in params ? params.Resources : null;
259
+
260
+ }
261
+ }
262
+
263
+ /**
264
+ * DescribeDDoSBlockRecords request structure.
265
+ * @class
266
+ */
267
+ class DescribeDDoSBlockRecordsRequest extends AbstractModel {
268
+ constructor(){
269
+ super();
270
+
271
+ /**
272
+ * <p>Start time of the query. Support up to data query for the past one year.</p><p>Parameter format: 2026-02-04T11:30:00+08:00.</p>
273
+ * @type {string || null}
274
+ */
275
+ this.StartTime = null;
276
+
277
+ /**
278
+ * <p>End time of query. The query time range (EndTime - StartTime) must be less than or equal to 31 days.</p><p>Parameter format: 2026-03-04T11:30:00+08:00.</p>
279
+ * @type {string || null}
280
+ */
281
+ this.EndTime = null;
282
+
283
+ /**
284
+ * <p>Filter criteria. The maximum number of Filters.Values is 20. If this parameter is left empty, return the current list of resources blocked under the appid. Detailed filter criteria:</p><ul><li> Resource: Filter by blocked IP or six-segment resource format;</li><li> Status: Filter by blocked resource status.</li></ul><p>When Filters.Name value is Status, Filters.Values valid values:</p><ul><li>Blocked: blocked;</li><li>Unblocking: unblocking;</li><li>Unblocked: unblocked.</li></ul>
285
+ * @type {Array.<Filter> || null}
286
+ */
287
+ this.Filters = null;
288
+
289
+ /**
290
+ * <p>Paginated query limit count. Maximum value: 100.</p><p>Default value: 20</p>
291
+ * @type {number || null}
292
+ */
293
+ this.Limit = null;
294
+
295
+ /**
296
+ * <p>Paginated query offset.</p><p>Default value: 0.</p>
297
+ * @type {number || null}
298
+ */
299
+ this.Offset = null;
300
+
301
+ }
302
+
303
+ /**
304
+ * @private
305
+ */
306
+ deserialize(params) {
307
+ if (!params) {
308
+ return;
309
+ }
310
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
311
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
312
+
313
+ if (params.Filters) {
314
+ this.Filters = new Array();
315
+ for (let z in params.Filters) {
316
+ let obj = new Filter();
317
+ obj.deserialize(params.Filters[z]);
318
+ this.Filters.push(obj);
319
+ }
320
+ }
321
+ this.Limit = 'Limit' in params ? params.Limit : null;
322
+ this.Offset = 'Offset' in params ? params.Offset : null;
323
+
324
+ }
325
+ }
326
+
327
+ module.exports = {
328
+ DDoSUnblockQuota: DDoSUnblockQuota,
329
+ Filter: Filter,
330
+ UnblockResourcesResponse: UnblockResourcesResponse,
331
+ DDoSBlockRecord: DDoSBlockRecord,
332
+ DescribeDDoSBlockRecordsResponse: DescribeDDoSBlockRecordsResponse,
333
+ UnblockResourcesRequest: UnblockResourcesRequest,
334
+ DescribeDDoSBlockRecordsRequest: DescribeDDoSBlockRecordsRequest,
335
+
336
+ }
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1391";
1
+ const sdkVersion = "3.0.1392";
2
2
  module.exports = sdkVersion
@@ -36585,7 +36585,7 @@ class ProcessLiveStreamRequest extends AbstractModel {
36585
36585
  super();
36586
36586
 
36587
36587
  /**
36588
- * <p>Live stream URL (this must be a live stream address; supported formats include RTMP, HLS, FLV, TRTC, WebRTC, and SRT).<br>TRTC address example:<br> trtc://trtc.rtc.qq.com/mps/<code>&lt;roomid&gt;</code>?sdkappid=<code>&lt;sdkappid&gt;</code>&amp;userid=<code>&lt;userid&gt;</code>&amp;usersig=<code>&lt;usersig&gt;</code><br><code>&lt;roomid&gt;</code> is the TRTC room ID.<br><code>&lt;sdkappid&gt;</code> is the TRTC SDK app ID.<br><code>&lt;userid&gt;</code> is the ID of the user who enters the room, which can be used to distinguish bots.<br><code>&lt;usersig&gt;</code> is the TRTC user signature.</p><p>WebRTC supports <a href="https://www.tencentcloud.com/product/leb?from_cn_redirect=1">LEB</a> live streams. For more information about how to obtain the address, see <a href="https://www.tencentcloud.com/document/product/267/32720?from_cn_redirect=1">this reference</a>.</p><p>For supported SRT addresses, see <a href="https://ffmpeg.org/ffmpeg-protocols.html#srt">this reference</a>.</p>
36588
+ * <p>Live stream URL (this must be a live stream address; supported formats include RTMP, HLS, FLV, TRTC, WebRTC, and SRT).<br>TRTC address example:<br> trtc://trtc.rtc.qq.com/mps/<code>&lt;roomid&gt;</code>?sdkappid=<code>&lt;sdkappid&gt;</code>&amp;userid=<code>&lt;userid&gt;</code>&amp;usersig=<code>&lt;usersig&gt;</code><br><code>&lt;roomid&gt;</code> is the TRTC room ID.<br><code>&lt;sdkappid&gt;</code> is the TRTC SDK app ID.<br><code>&lt;userid&gt;</code> is the ID of the user who enters the room, which can be used to distinguish bots.<br><code>&lt;usersig&gt;</code> is the TRTC user signature.</p><p>WebRTC supports LEB live streams. For more information about how to obtain the address, see <a href="https://www.tencentcloud.com/document/product/267/32720?from_cn_redirect=1">this reference</a>.</p><p>For supported SRT addresses, see <a href="https://ffmpeg.org/ffmpeg-protocols.html#srt">this reference</a>.</p>
36589
36589
  * @type {string || null}
36590
36590
  */
36591
36591
  this.Url = null;