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

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.1393",
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
+ v20250903: require("./v20250903"), v20200309: require("./v20200309"),
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
+ }
@@ -400,6 +400,12 @@ class CreateTaskFromActionRequest extends AbstractModel {
400
400
  */
401
401
  this.TaskPauseDuration = null;
402
402
 
403
+ /**
404
+ *
405
+ * @type {Array.<TagWithCreate> || null}
406
+ */
407
+ this.TaskTags = null;
408
+
403
409
  }
404
410
 
405
411
  /**
@@ -417,6 +423,15 @@ class CreateTaskFromActionRequest extends AbstractModel {
417
423
  this.TaskActionCustomConfiguration = 'TaskActionCustomConfiguration' in params ? params.TaskActionCustomConfiguration : null;
418
424
  this.TaskPauseDuration = 'TaskPauseDuration' in params ? params.TaskPauseDuration : null;
419
425
 
426
+ if (params.TaskTags) {
427
+ this.TaskTags = new Array();
428
+ for (let z in params.TaskTags) {
429
+ let obj = new TagWithCreate();
430
+ obj.deserialize(params.TaskTags[z]);
431
+ this.TaskTags.push(obj);
432
+ }
433
+ }
434
+
420
435
  }
421
436
  }
422
437
 
@@ -1319,6 +1334,24 @@ class ModifyTaskRunStatusRequest extends AbstractModel {
1319
1334
  */
1320
1335
  this.Summary = null;
1321
1336
 
1337
+ /**
1338
+ *
1339
+ * @type {string || null}
1340
+ */
1341
+ this.Issue = null;
1342
+
1343
+ /**
1344
+ *
1345
+ * @type {string || null}
1346
+ */
1347
+ this.Record = null;
1348
+
1349
+ /**
1350
+ *
1351
+ * @type {number || null}
1352
+ */
1353
+ this.IncludeRecordInReport = null;
1354
+
1322
1355
  }
1323
1356
 
1324
1357
  /**
@@ -1332,6 +1365,9 @@ class ModifyTaskRunStatusRequest extends AbstractModel {
1332
1365
  this.Status = 'Status' in params ? params.Status : null;
1333
1366
  this.IsExpect = 'IsExpect' in params ? params.IsExpect : null;
1334
1367
  this.Summary = 'Summary' in params ? params.Summary : null;
1368
+ this.Issue = 'Issue' in params ? params.Issue : null;
1369
+ this.Record = 'Record' in params ? params.Record : null;
1370
+ this.IncludeRecordInReport = 'IncludeRecordInReport' in params ? params.IncludeRecordInReport : null;
1335
1371
 
1336
1372
  }
1337
1373
  }
@@ -3013,13 +3049,13 @@ class DescribeTaskListRequest extends AbstractModel {
3013
3049
  this.TaskStatusList = null;
3014
3050
 
3015
3051
  /**
3016
- * Architecture ID
3052
+ *
3017
3053
  * @type {string || null}
3018
3054
  */
3019
3055
  this.ArchId = null;
3020
3056
 
3021
3057
  /**
3022
- * Architecture Name
3058
+ *
3023
3059
  * @type {string || null}
3024
3060
  */
3025
3061
  this.ArchName = null;
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20210420: require("./v20210420"), v20220331: require("./v20220331"),
2
+ v20220331: require("./v20220331"), v20210420: require("./v20210420"),
3
3
  };
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20180317: require("./v20180317"), v20230417: require("./v20230417"),
2
+ v20230417: require("./v20230417"), v20180317: require("./v20180317"),
3
3
  };
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1391";
1
+ const sdkVersion = "3.0.1393";
2
2
  module.exports = sdkVersion
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20191016: require("./v20191016"), v20210527: require("./v20210527"),
2
+ v20210527: require("./v20210527"), v20191016: require("./v20191016"),
3
3
  };
@@ -517,6 +517,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
517
517
  */
518
518
  this.OriginalCardInfo = null;
519
519
 
520
+ /**
521
+ * Base64 of the cropped portrait image extracted from the identity document</p>
522
+ Note: This field may return null, indicating that no valid values can be obtained.
523
+ * @type {string || null}
524
+ */
525
+ this.HeadImageBase64 = null;
526
+
520
527
  }
521
528
 
522
529
  /**
@@ -545,6 +552,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
545
552
  this.CardBackCutImageBase64 = 'CardBackCutImageBase64' in params ? params.CardBackCutImageBase64 : null;
546
553
  this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
547
554
  this.OriginalCardInfo = 'OriginalCardInfo' in params ? params.OriginalCardInfo : null;
555
+ this.HeadImageBase64 = 'HeadImageBase64' in params ? params.HeadImageBase64 : null;
548
556
 
549
557
  }
550
558
  }
@@ -7428,6 +7436,20 @@ Note: This field may return null, indicating that no valid values can be obtaine
7428
7436
  */
7429
7437
  this.FormattedAddress = null;
7430
7438
 
7439
+ /**
7440
+ * Issuing authority
7441
+ Note: This field may return null, indicating that no valid values can be obtained.
7442
+ * @type {string || null}
7443
+ */
7444
+ this.Authority = null;
7445
+
7446
+ /**
7447
+ * Validity period
7448
+ Note: This field may return null, indicating that no valid values can be obtained.
7449
+ * @type {string || null}
7450
+ */
7451
+ this.ValidDate = null;
7452
+
7431
7453
  }
7432
7454
 
7433
7455
  /**
@@ -7444,6 +7466,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
7444
7466
  this.Address = 'Address' in params ? params.Address : null;
7445
7467
  this.LicenseNumber = 'LicenseNumber' in params ? params.LicenseNumber : null;
7446
7468
  this.FormattedAddress = 'FormattedAddress' in params ? params.FormattedAddress : null;
7469
+ this.Authority = 'Authority' in params ? params.Authority : null;
7470
+ this.ValidDate = 'ValidDate' in params ? params.ValidDate : null;
7447
7471
 
7448
7472
  }
7449
7473
  }
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20180724: require("./v20180724"), v20230616: require("./v20230616"),
2
+ v20230616: require("./v20230616"), v20180724: require("./v20180724"),
3
3
  };