tencentcloud-sdk-nodejs-intl-en 3.0.355 → 3.0.359

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.
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.355";
1
+ const sdkVersion = "3.0.359";
2
2
  module.exports = sdkVersion
@@ -25,6 +25,7 @@ const ScoreItem = models.ScoreItem;
25
25
  const InstanceConfs = models.InstanceConfs;
26
26
  const CreateSecurityAuditLogExportTaskRequest = models.CreateSecurityAuditLogExportTaskRequest;
27
27
  const DescribeDBDiagEventResponse = models.DescribeDBDiagEventResponse;
28
+ const DescribeDBDiagEventsResponse = models.DescribeDBDiagEventsResponse;
28
29
  const DescribeDBDiagReportTasksResponse = models.DescribeDBDiagReportTasksResponse;
29
30
  const AddUserContactResponse = models.AddUserContactResponse;
30
31
  const ModifyDiagDBInstanceConfResponse = models.ModifyDiagDBInstanceConfResponse;
@@ -40,12 +41,12 @@ const DescribeDBSpaceStatusRequest = models.DescribeDBSpaceStatusRequest;
40
41
  const TimeSlice = models.TimeSlice;
41
42
  const ModifyDiagDBInstanceConfRequest = models.ModifyDiagDBInstanceConfRequest;
42
43
  const DescribeSecurityAuditLogDownloadUrlsRequest = models.DescribeSecurityAuditLogDownloadUrlsRequest;
43
- const CreateDBDiagReportTaskResponse = models.CreateDBDiagReportTaskResponse;
44
+ const MySqlProcess = models.MySqlProcess;
44
45
  const CreateMailProfileResponse = models.CreateMailProfileResponse;
45
46
  const DescribeSlowLogTimeSeriesStatsRequest = models.DescribeSlowLogTimeSeriesStatsRequest;
46
47
  const CreateDBDiagReportUrlResponse = models.CreateDBDiagReportUrlResponse;
47
48
  const DescribeDBDiagHistoryRequest = models.DescribeDBDiagHistoryRequest;
48
- const MySqlProcess = models.MySqlProcess;
49
+ const CreateDBDiagReportTaskResponse = models.CreateDBDiagReportTaskResponse;
49
50
  const DiagHistoryEventItem = models.DiagHistoryEventItem;
50
51
  const SlowLogHost = models.SlowLogHost;
51
52
  const CreateMailProfileRequest = models.CreateMailProfileRequest;
@@ -92,6 +93,7 @@ const MonitorFloatMetric = models.MonitorFloatMetric;
92
93
  const DescribeAllUserGroupResponse = models.DescribeAllUserGroupResponse;
93
94
  const DescribeUserSqlAdviceResponse = models.DescribeUserSqlAdviceResponse;
94
95
  const DescribeDBSpaceStatusResponse = models.DescribeDBSpaceStatusResponse;
96
+ const DescribeDBDiagEventsRequest = models.DescribeDBDiagEventsRequest;
95
97
  const GroupItem = models.GroupItem;
96
98
  const DescribeTopSpaceTableTimeSeriesRequest = models.DescribeTopSpaceTableTimeSeriesRequest;
97
99
  const DescribeDBDiagReportTasksRequest = models.DescribeDBDiagReportTasksRequest;
@@ -193,6 +195,17 @@ class DbbrainClient extends AbstractClient {
193
195
  this.request("DescribeAllUserGroup", req, resp, cb);
194
196
  }
195
197
 
198
+ /**
199
+ * This API is used to obtain the diagnosis event list in a specified time period by risk level, instance ID, etc.
200
+ * @param {DescribeDBDiagEventsRequest} req
201
+ * @param {function(string, DescribeDBDiagEventsResponse):void} cb
202
+ * @public
203
+ */
204
+ DescribeDBDiagEvents(req, cb) {
205
+ let resp = new DescribeDBDiagEventsResponse();
206
+ this.request("DescribeDBDiagEvents", req, resp, cb);
207
+ }
208
+
196
209
  /**
197
210
  * This API is used to get the slow log statistics histogram.
198
211
  * @param {DescribeSlowLogTimeSeriesStatsRequest} req
@@ -569,6 +569,56 @@ Note: this field may return null, indicating that no valid values can be obtaine
569
569
  }
570
570
  }
571
571
 
572
+ /**
573
+ * DescribeDBDiagEvents response structure.
574
+ * @class
575
+ */
576
+ class DescribeDBDiagEventsResponse extends AbstractModel {
577
+ constructor(){
578
+ super();
579
+
580
+ /**
581
+ * Total number of diagnosis events.
582
+ * @type {number || null}
583
+ */
584
+ this.TotalCount = null;
585
+
586
+ /**
587
+ * Diagnosis event list.
588
+ * @type {Array.<DiagHistoryEventItem> || null}
589
+ */
590
+ this.Items = null;
591
+
592
+ /**
593
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
594
+ * @type {string || null}
595
+ */
596
+ this.RequestId = null;
597
+
598
+ }
599
+
600
+ /**
601
+ * @private
602
+ */
603
+ deserialize(params) {
604
+ if (!params) {
605
+ return;
606
+ }
607
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
608
+
609
+ if (params.Items) {
610
+ this.Items = new Array();
611
+ for (let z in params.Items) {
612
+ let obj = new DiagHistoryEventItem();
613
+ obj.deserialize(params.Items[z]);
614
+ this.Items.push(obj);
615
+ }
616
+ }
617
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
618
+
619
+ }
620
+ }
621
+
572
622
  /**
573
623
  * DescribeDBDiagReportTasks response structure.
574
624
  * @class
@@ -1392,25 +1442,60 @@ class DescribeSecurityAuditLogDownloadUrlsRequest extends AbstractModel {
1392
1442
  }
1393
1443
 
1394
1444
  /**
1395
- * CreateDBDiagReportTask response structure.
1445
+ * Relational database thread
1396
1446
  * @class
1397
1447
  */
1398
- class CreateDBDiagReportTaskResponse extends AbstractModel {
1448
+ class MySqlProcess extends AbstractModel {
1399
1449
  constructor(){
1400
1450
  super();
1401
1451
 
1402
1452
  /**
1403
- * Async task request ID, which can be used to query the execution result of an async task.
1404
- Note: this field may return null, indicating that no valid values can be obtained.
1405
- * @type {number || null}
1453
+ * Thread ID.
1454
+ * @type {string || null}
1406
1455
  */
1407
- this.AsyncRequestId = null;
1456
+ this.ID = null;
1408
1457
 
1409
1458
  /**
1410
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1459
+ * Thread operation account name.
1411
1460
  * @type {string || null}
1412
1461
  */
1413
- this.RequestId = null;
1462
+ this.User = null;
1463
+
1464
+ /**
1465
+ * Thread operation host address.
1466
+ * @type {string || null}
1467
+ */
1468
+ this.Host = null;
1469
+
1470
+ /**
1471
+ * Thread operation database.
1472
+ * @type {string || null}
1473
+ */
1474
+ this.DB = null;
1475
+
1476
+ /**
1477
+ * Thread operation status.
1478
+ * @type {string || null}
1479
+ */
1480
+ this.State = null;
1481
+
1482
+ /**
1483
+ * Thread execution type.
1484
+ * @type {string || null}
1485
+ */
1486
+ this.Command = null;
1487
+
1488
+ /**
1489
+ * Thread operation duration in seconds.
1490
+ * @type {string || null}
1491
+ */
1492
+ this.Time = null;
1493
+
1494
+ /**
1495
+ * Thread operation statement.
1496
+ * @type {string || null}
1497
+ */
1498
+ this.Info = null;
1414
1499
 
1415
1500
  }
1416
1501
 
@@ -1421,8 +1506,14 @@ Note: this field may return null, indicating that no valid values can be obtaine
1421
1506
  if (!params) {
1422
1507
  return;
1423
1508
  }
1424
- this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
1425
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1509
+ this.ID = 'ID' in params ? params.ID : null;
1510
+ this.User = 'User' in params ? params.User : null;
1511
+ this.Host = 'Host' in params ? params.Host : null;
1512
+ this.DB = 'DB' in params ? params.DB : null;
1513
+ this.State = 'State' in params ? params.State : null;
1514
+ this.Command = 'Command' in params ? params.Command : null;
1515
+ this.Time = 'Time' in params ? params.Time : null;
1516
+ this.Info = 'Info' in params ? params.Info : null;
1426
1517
 
1427
1518
  }
1428
1519
  }
@@ -1596,60 +1687,25 @@ class DescribeDBDiagHistoryRequest extends AbstractModel {
1596
1687
  }
1597
1688
 
1598
1689
  /**
1599
- * Relational database thread
1690
+ * CreateDBDiagReportTask response structure.
1600
1691
  * @class
1601
1692
  */
1602
- class MySqlProcess extends AbstractModel {
1693
+ class CreateDBDiagReportTaskResponse extends AbstractModel {
1603
1694
  constructor(){
1604
1695
  super();
1605
1696
 
1606
1697
  /**
1607
- * Thread ID.
1608
- * @type {string || null}
1609
- */
1610
- this.ID = null;
1611
-
1612
- /**
1613
- * Thread operation account name.
1614
- * @type {string || null}
1615
- */
1616
- this.User = null;
1617
-
1618
- /**
1619
- * Thread operation host address.
1620
- * @type {string || null}
1621
- */
1622
- this.Host = null;
1623
-
1624
- /**
1625
- * Thread operation database.
1626
- * @type {string || null}
1627
- */
1628
- this.DB = null;
1629
-
1630
- /**
1631
- * Thread operation status.
1632
- * @type {string || null}
1633
- */
1634
- this.State = null;
1635
-
1636
- /**
1637
- * Thread execution type.
1638
- * @type {string || null}
1639
- */
1640
- this.Command = null;
1641
-
1642
- /**
1643
- * Thread operation duration in seconds.
1644
- * @type {string || null}
1698
+ * Async task request ID, which can be used to query the execution result of an async task.
1699
+ Note: this field may return null, indicating that no valid values can be obtained.
1700
+ * @type {number || null}
1645
1701
  */
1646
- this.Time = null;
1702
+ this.AsyncRequestId = null;
1647
1703
 
1648
1704
  /**
1649
- * Thread operation statement.
1705
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1650
1706
  * @type {string || null}
1651
1707
  */
1652
- this.Info = null;
1708
+ this.RequestId = null;
1653
1709
 
1654
1710
  }
1655
1711
 
@@ -1660,14 +1716,8 @@ class MySqlProcess extends AbstractModel {
1660
1716
  if (!params) {
1661
1717
  return;
1662
1718
  }
1663
- this.ID = 'ID' in params ? params.ID : null;
1664
- this.User = 'User' in params ? params.User : null;
1665
- this.Host = 'Host' in params ? params.Host : null;
1666
- this.DB = 'DB' in params ? params.DB : null;
1667
- this.State = 'State' in params ? params.State : null;
1668
- this.Command = 'Command' in params ? params.Command : null;
1669
- this.Time = 'Time' in params ? params.Time : null;
1670
- this.Info = 'Info' in params ? params.Info : null;
1719
+ this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
1720
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1671
1721
 
1672
1722
  }
1673
1723
  }
@@ -3542,7 +3592,7 @@ class DescribeSlowLogTopSqlsRequest extends AbstractModel {
3542
3592
  this.StartTime = null;
3543
3593
 
3544
3594
  /**
3545
- * End time, such as "2019-09-10 12:13:14". The interval between the end time and the start time can be up to 7 days.
3595
+ * End time in the format of "2019-09-11 10:13:14". The interval between the end time and the start time can be up to 7 days.
3546
3596
  * @type {string || null}
3547
3597
  */
3548
3598
  this.EndTime = null;
@@ -4307,6 +4357,69 @@ class DescribeDBSpaceStatusResponse extends AbstractModel {
4307
4357
  }
4308
4358
  }
4309
4359
 
4360
+ /**
4361
+ * DescribeDBDiagEvents request structure.
4362
+ * @class
4363
+ */
4364
+ class DescribeDBDiagEventsRequest extends AbstractModel {
4365
+ constructor(){
4366
+ super();
4367
+
4368
+ /**
4369
+ * Start time in the format of “2021-05-27 00:00:00”. The earliest time that can be queried is 30 days before the current time.
4370
+ * @type {string || null}
4371
+ */
4372
+ this.StartTime = null;
4373
+
4374
+ /**
4375
+ * End time in the format of "2021-05-27 01:00:00". The interval between the end time and the start time can be up to 7 days.
4376
+ * @type {string || null}
4377
+ */
4378
+ this.EndTime = null;
4379
+
4380
+ /**
4381
+ * Risk level list. Valid values in descending order of severity: `1` (critical), `2` (serious), `3` (alarm), `4` (warning), `5` (healthy).
4382
+ * @type {Array.<number> || null}
4383
+ */
4384
+ this.Severities = null;
4385
+
4386
+ /**
4387
+ * Instance ID list.
4388
+ * @type {Array.<string> || null}
4389
+ */
4390
+ this.InstanceIds = null;
4391
+
4392
+ /**
4393
+ * Offset. Default value: 0.
4394
+ * @type {number || null}
4395
+ */
4396
+ this.Offset = null;
4397
+
4398
+ /**
4399
+ * Number of returned results. Default value: 20. Maximum value: 50.
4400
+ * @type {number || null}
4401
+ */
4402
+ this.Limit = null;
4403
+
4404
+ }
4405
+
4406
+ /**
4407
+ * @private
4408
+ */
4409
+ deserialize(params) {
4410
+ if (!params) {
4411
+ return;
4412
+ }
4413
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
4414
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
4415
+ this.Severities = 'Severities' in params ? params.Severities : null;
4416
+ this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
4417
+ this.Offset = 'Offset' in params ? params.Offset : null;
4418
+ this.Limit = 'Limit' in params ? params.Limit : null;
4419
+
4420
+ }
4421
+ }
4422
+
4310
4423
  /**
4311
4424
  * Describes the group information.
4312
4425
  * @class
@@ -5010,6 +5123,7 @@ module.exports = {
5010
5123
  InstanceConfs: InstanceConfs,
5011
5124
  CreateSecurityAuditLogExportTaskRequest: CreateSecurityAuditLogExportTaskRequest,
5012
5125
  DescribeDBDiagEventResponse: DescribeDBDiagEventResponse,
5126
+ DescribeDBDiagEventsResponse: DescribeDBDiagEventsResponse,
5013
5127
  DescribeDBDiagReportTasksResponse: DescribeDBDiagReportTasksResponse,
5014
5128
  AddUserContactResponse: AddUserContactResponse,
5015
5129
  ModifyDiagDBInstanceConfResponse: ModifyDiagDBInstanceConfResponse,
@@ -5025,12 +5139,12 @@ module.exports = {
5025
5139
  TimeSlice: TimeSlice,
5026
5140
  ModifyDiagDBInstanceConfRequest: ModifyDiagDBInstanceConfRequest,
5027
5141
  DescribeSecurityAuditLogDownloadUrlsRequest: DescribeSecurityAuditLogDownloadUrlsRequest,
5028
- CreateDBDiagReportTaskResponse: CreateDBDiagReportTaskResponse,
5142
+ MySqlProcess: MySqlProcess,
5029
5143
  CreateMailProfileResponse: CreateMailProfileResponse,
5030
5144
  DescribeSlowLogTimeSeriesStatsRequest: DescribeSlowLogTimeSeriesStatsRequest,
5031
5145
  CreateDBDiagReportUrlResponse: CreateDBDiagReportUrlResponse,
5032
5146
  DescribeDBDiagHistoryRequest: DescribeDBDiagHistoryRequest,
5033
- MySqlProcess: MySqlProcess,
5147
+ CreateDBDiagReportTaskResponse: CreateDBDiagReportTaskResponse,
5034
5148
  DiagHistoryEventItem: DiagHistoryEventItem,
5035
5149
  SlowLogHost: SlowLogHost,
5036
5150
  CreateMailProfileRequest: CreateMailProfileRequest,
@@ -5077,6 +5191,7 @@ module.exports = {
5077
5191
  DescribeAllUserGroupResponse: DescribeAllUserGroupResponse,
5078
5192
  DescribeUserSqlAdviceResponse: DescribeUserSqlAdviceResponse,
5079
5193
  DescribeDBSpaceStatusResponse: DescribeDBSpaceStatusResponse,
5194
+ DescribeDBDiagEventsRequest: DescribeDBDiagEventsRequest,
5080
5195
  GroupItem: GroupItem,
5081
5196
  DescribeTopSpaceTableTimeSeriesRequest: DescribeTopSpaceTableTimeSeriesRequest,
5082
5197
  DescribeDBDiagReportTasksRequest: DescribeDBDiagReportTasksRequest,
@@ -16,7 +16,9 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
+ const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
19
20
  const LivenessCompareResponse = models.LivenessCompareResponse;
21
+ const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndCompareResponse;
20
22
  const LivenessCompareRequest = models.LivenessCompareRequest;
21
23
 
22
24
 
@@ -30,6 +32,17 @@ class FaceidClient extends AbstractClient {
30
32
  super("faceid.tencentcloudapi.com", "2018-03-01", credential, region, profile);
31
33
  }
32
34
 
35
+ /**
36
+ * This API is used to detect liveness with the package generated by the Updated E-KYC SDK, and to compare the person detected with that in the image passed in.
37
+ * @param {DetectReflectLivenessAndCompareRequest} req
38
+ * @param {function(string, DetectReflectLivenessAndCompareResponse):void} cb
39
+ * @public
40
+ */
41
+ DetectReflectLivenessAndCompare(req, cb) {
42
+ let resp = new DetectReflectLivenessAndCompareResponse();
43
+ this.request("DetectReflectLivenessAndCompare", req, resp, cb);
44
+ }
45
+
33
46
  /**
34
47
  * This API is used to pass in a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
35
48
  * @param {LivenessCompareRequest} req
@@ -16,6 +16,55 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * DetectReflectLivenessAndCompare request structure.
21
+ * @class
22
+ */
23
+ class DetectReflectLivenessAndCompareRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * URL of the liveness data package generated by the SDK
29
+ * @type {string || null}
30
+ */
31
+ this.LiveDataUrl = null;
32
+
33
+ /**
34
+ * MD5 hash value of the liveness data package generated by the SDK
35
+ * @type {string || null}
36
+ */
37
+ this.LiveDataMd5 = null;
38
+
39
+ /**
40
+ * URL of the target image for comparison
41
+ * @type {string || null}
42
+ */
43
+ this.ImageUrl = null;
44
+
45
+ /**
46
+ * MD5 hash value of the target image for comparison
47
+ * @type {string || null}
48
+ */
49
+ this.ImageMd5 = null;
50
+
51
+ }
52
+
53
+ /**
54
+ * @private
55
+ */
56
+ deserialize(params) {
57
+ if (!params) {
58
+ return;
59
+ }
60
+ this.LiveDataUrl = 'LiveDataUrl' in params ? params.LiveDataUrl : null;
61
+ this.LiveDataMd5 = 'LiveDataMd5' in params ? params.LiveDataMd5 : null;
62
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
63
+ this.ImageMd5 = 'ImageMd5' in params ? params.ImageMd5 : null;
64
+
65
+ }
66
+ }
67
+
19
68
  /**
20
69
  * LivenessCompare response structure.
21
70
  * @class
@@ -79,6 +128,69 @@ class LivenessCompareResponse extends AbstractModel {
79
128
  }
80
129
  }
81
130
 
131
+ /**
132
+ * DetectReflectLivenessAndCompare response structure.
133
+ * @class
134
+ */
135
+ class DetectReflectLivenessAndCompareResponse extends AbstractModel {
136
+ constructor(){
137
+ super();
138
+
139
+ /**
140
+ * URL of the best screenshot (in JPG format) of the video after successful verification
141
+ * @type {string || null}
142
+ */
143
+ this.BestFrameUrl = null;
144
+
145
+ /**
146
+ * MD5 hash value of the best screenshot of the video after successful verification
147
+ * @type {string || null}
148
+ */
149
+ this.BestFrameMd5 = null;
150
+
151
+ /**
152
+ * Service error code. `Success` will be returned for success. For error information, please see the `FailedOperation` section in the error code list below.
153
+ * @type {string || null}
154
+ */
155
+ this.Result = null;
156
+
157
+ /**
158
+ * Service result description
159
+ * @type {string || null}
160
+ */
161
+ this.Description = null;
162
+
163
+ /**
164
+ * Similarity. Value range: [0.00, 100.00]. As a recommendation, when the similarity is greater than or equal to 70, it can be determined that the two faces are of the same person. You can adjust the threshold according to your specific scenario (the FAR at the threshold of 70 is 0.1%, and FAR at the threshold of 80 is 0.01%).
165
+ * @type {number || null}
166
+ */
167
+ this.Sim = null;
168
+
169
+ /**
170
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
171
+ * @type {string || null}
172
+ */
173
+ this.RequestId = null;
174
+
175
+ }
176
+
177
+ /**
178
+ * @private
179
+ */
180
+ deserialize(params) {
181
+ if (!params) {
182
+ return;
183
+ }
184
+ this.BestFrameUrl = 'BestFrameUrl' in params ? params.BestFrameUrl : null;
185
+ this.BestFrameMd5 = 'BestFrameMd5' in params ? params.BestFrameMd5 : null;
186
+ this.Result = 'Result' in params ? params.Result : null;
187
+ this.Description = 'Description' in params ? params.Description : null;
188
+ this.Sim = 'Sim' in params ? params.Sim : null;
189
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
190
+
191
+ }
192
+ }
193
+
82
194
  /**
83
195
  * LivenessCompare request structure.
84
196
  * @class
@@ -172,7 +284,9 @@ We recommend you store the video in Tencent Cloud, as a Tencent Cloud URL can gu
172
284
  }
173
285
 
174
286
  module.exports = {
287
+ DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
175
288
  LivenessCompareResponse: LivenessCompareResponse,
289
+ DetectReflectLivenessAndCompareResponse: DetectReflectLivenessAndCompareResponse,
176
290
  LivenessCompareRequest: LivenessCompareRequest,
177
291
 
178
292
  }
@@ -26,6 +26,7 @@ const DestroyHourDBInstanceRequest = models.DestroyHourDBInstanceRequest;
26
26
  const AssociateSecurityGroupsRequest = models.AssociateSecurityGroupsRequest;
27
27
  const DescribeDBSecurityGroupsResponse = models.DescribeDBSecurityGroupsResponse;
28
28
  const CancelDcnJobResponse = models.CancelDcnJobResponse;
29
+ const DescribeFileDownloadUrlRequest = models.DescribeFileDownloadUrlRequest;
29
30
  const DescribeDBResourceUsageDetailsResponse = models.DescribeDBResourceUsageDetailsResponse;
30
31
  const DestroyHourDBInstanceResponse = models.DestroyHourDBInstanceResponse;
31
32
  const Account = models.Account;
@@ -63,6 +64,7 @@ const DBParamValue = models.DBParamValue;
63
64
  const ModifyDBParametersRequest = models.ModifyDBParametersRequest;
64
65
  const ModifyDBInstanceSecurityGroupsRequest = models.ModifyDBInstanceSecurityGroupsRequest;
65
66
  const DescribeDcnDetailRequest = models.DescribeDcnDetailRequest;
67
+ const DescribeFileDownloadUrlResponse = models.DescribeFileDownloadUrlResponse;
66
68
  const ModifyDBParametersResponse = models.ModifyDBParametersResponse;
67
69
  const CopyAccountPrivilegesRequest = models.CopyAccountPrivilegesRequest;
68
70
  const SecurityGroup = models.SecurityGroup;
@@ -170,6 +172,17 @@ Note: accounts with the same username but different hosts are different accounts
170
172
  this.request("ModifyAccountDescription", req, resp, cb);
171
173
  }
172
174
 
175
+ /**
176
+ * This API is used to get the download URL of a specific backup or log file of a database.
177
+ * @param {DescribeFileDownloadUrlRequest} req
178
+ * @param {function(string, DescribeFileDownloadUrlResponse):void} cb
179
+ * @public
180
+ */
181
+ DescribeFileDownloadUrl(req, cb) {
182
+ let resp = new DescribeFileDownloadUrlResponse();
183
+ this.request("DescribeFileDownloadUrl", req, resp, cb);
184
+ }
185
+
173
186
  /**
174
187
  * This API is used to get the backup time of a TencentDB instance. The backend system will perform instance backup regularly according to this configuration.
175
188
  * @param {DescribeBackupTimeRequest} req
@@ -431,6 +431,41 @@ class CancelDcnJobResponse extends AbstractModel {
431
431
  }
432
432
  }
433
433
 
434
+ /**
435
+ * DescribeFileDownloadUrl request structure.
436
+ * @class
437
+ */
438
+ class DescribeFileDownloadUrlRequest extends AbstractModel {
439
+ constructor(){
440
+ super();
441
+
442
+ /**
443
+ * Instance ID
444
+ * @type {string || null}
445
+ */
446
+ this.InstanceId = null;
447
+
448
+ /**
449
+ * Unsigned file path
450
+ * @type {string || null}
451
+ */
452
+ this.FilePath = null;
453
+
454
+ }
455
+
456
+ /**
457
+ * @private
458
+ */
459
+ deserialize(params) {
460
+ if (!params) {
461
+ return;
462
+ }
463
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
464
+ this.FilePath = 'FilePath' in params ? params.FilePath : null;
465
+
466
+ }
467
+ }
468
+
434
469
  /**
435
470
  * DescribeDBResourceUsageDetails response structure.
436
471
  * @class
@@ -2232,6 +2267,41 @@ class DescribeDcnDetailRequest extends AbstractModel {
2232
2267
  }
2233
2268
  }
2234
2269
 
2270
+ /**
2271
+ * DescribeFileDownloadUrl response structure.
2272
+ * @class
2273
+ */
2274
+ class DescribeFileDownloadUrlResponse extends AbstractModel {
2275
+ constructor(){
2276
+ super();
2277
+
2278
+ /**
2279
+ * Signed download URL
2280
+ * @type {string || null}
2281
+ */
2282
+ this.PreSignedUrl = null;
2283
+
2284
+ /**
2285
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2286
+ * @type {string || null}
2287
+ */
2288
+ this.RequestId = null;
2289
+
2290
+ }
2291
+
2292
+ /**
2293
+ * @private
2294
+ */
2295
+ deserialize(params) {
2296
+ if (!params) {
2297
+ return;
2298
+ }
2299
+ this.PreSignedUrl = 'PreSignedUrl' in params ? params.PreSignedUrl : null;
2300
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2301
+
2302
+ }
2303
+ }
2304
+
2235
2305
  /**
2236
2306
  * ModifyDBParameters response structure.
2237
2307
  * @class
@@ -5684,6 +5754,7 @@ module.exports = {
5684
5754
  AssociateSecurityGroupsRequest: AssociateSecurityGroupsRequest,
5685
5755
  DescribeDBSecurityGroupsResponse: DescribeDBSecurityGroupsResponse,
5686
5756
  CancelDcnJobResponse: CancelDcnJobResponse,
5757
+ DescribeFileDownloadUrlRequest: DescribeFileDownloadUrlRequest,
5687
5758
  DescribeDBResourceUsageDetailsResponse: DescribeDBResourceUsageDetailsResponse,
5688
5759
  DestroyHourDBInstanceResponse: DestroyHourDBInstanceResponse,
5689
5760
  Account: Account,
@@ -5721,6 +5792,7 @@ module.exports = {
5721
5792
  ModifyDBParametersRequest: ModifyDBParametersRequest,
5722
5793
  ModifyDBInstanceSecurityGroupsRequest: ModifyDBInstanceSecurityGroupsRequest,
5723
5794
  DescribeDcnDetailRequest: DescribeDcnDetailRequest,
5795
+ DescribeFileDownloadUrlResponse: DescribeFileDownloadUrlResponse,
5724
5796
  ModifyDBParametersResponse: ModifyDBParametersResponse,
5725
5797
  CopyAccountPrivilegesRequest: CopyAccountPrivilegesRequest,
5726
5798
  SecurityGroup: SecurityGroup,