tencentcloud-sdk-nodejs-intl-en 3.0.335 → 3.0.336
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,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.336";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -46,6 +46,7 @@ const ModifyDBInstancesProjectResponse = models.ModifyDBInstancesProjectResponse
|
|
|
46
46
|
const DBBackupTimeConfig = models.DBBackupTimeConfig;
|
|
47
47
|
const DescribeDBLogFilesRequest = models.DescribeDBLogFilesRequest;
|
|
48
48
|
const NodeInfo = models.NodeInfo;
|
|
49
|
+
const ModifySyncTaskAttributeResponse = models.ModifySyncTaskAttributeResponse;
|
|
49
50
|
const ModifyDBInstanceSecurityGroupsResponse = models.ModifyDBInstanceSecurityGroupsResponse;
|
|
50
51
|
const ResetAccountPasswordRequest = models.ResetAccountPasswordRequest;
|
|
51
52
|
const CopyAccountPrivilegesResponse = models.CopyAccountPrivilegesResponse;
|
|
@@ -71,6 +72,7 @@ const ModifyDBInstanceNameRequest = models.ModifyDBInstanceNameRequest;
|
|
|
71
72
|
const ModifyBackupTimeRequest = models.ModifyBackupTimeRequest;
|
|
72
73
|
const SecurityGroupBound = models.SecurityGroupBound;
|
|
73
74
|
const ColumnPrivilege = models.ColumnPrivilege;
|
|
75
|
+
const ModifySyncTaskAttributeRequest = models.ModifySyncTaskAttributeRequest;
|
|
74
76
|
const InitDBInstancesRequest = models.InitDBInstancesRequest;
|
|
75
77
|
const AssociateSecurityGroupsResponse = models.AssociateSecurityGroupsResponse;
|
|
76
78
|
const DBInstance = models.DBInstance;
|
|
@@ -97,6 +99,7 @@ const DeleteAccountRequest = models.DeleteAccountRequest;
|
|
|
97
99
|
const DescribeFlowRequest = models.DescribeFlowRequest;
|
|
98
100
|
const ModifyAccountPrivilegesRequest = models.ModifyAccountPrivilegesRequest;
|
|
99
101
|
const DescribeDBPerformanceResponse = models.DescribeDBPerformanceResponse;
|
|
102
|
+
const ModifyDBSyncModeRequest = models.ModifyDBSyncModeRequest;
|
|
100
103
|
const DescribeInstanceNodeInfoRequest = models.DescribeInstanceNodeInfoRequest;
|
|
101
104
|
const CreateAccountResponse = models.CreateAccountResponse;
|
|
102
105
|
const DescribeLogFileRetentionPeriodResponse = models.DescribeLogFileRetentionPeriodResponse;
|
|
@@ -114,6 +117,7 @@ const DescribeDBSlowLogsResponse = models.DescribeDBSlowLogsResponse;
|
|
|
114
117
|
const DescribeLogFileRetentionPeriodRequest = models.DescribeLogFileRetentionPeriodRequest;
|
|
115
118
|
const ModifyDBInstancesProjectRequest = models.ModifyDBInstancesProjectRequest;
|
|
116
119
|
const MonitorData = models.MonitorData;
|
|
120
|
+
const ModifyDBSyncModeResponse = models.ModifyDBSyncModeResponse;
|
|
117
121
|
const DescribeInstanceNodeInfoResponse = models.DescribeInstanceNodeInfoResponse;
|
|
118
122
|
const ModifyLogFileRetentionPeriodResponse = models.ModifyLogFileRetentionPeriodResponse;
|
|
119
123
|
const DisassociateSecurityGroupsResponse = models.DisassociateSecurityGroupsResponse;
|
|
@@ -322,6 +326,17 @@ Note: accounts with the same username but different hosts are different accounts
|
|
|
322
326
|
this.request("DescribeDBLogFiles", req, resp, cb);
|
|
323
327
|
}
|
|
324
328
|
|
|
329
|
+
/**
|
|
330
|
+
* This API is used to modify sync task attributes (currently, only the task name can be modified).
|
|
331
|
+
* @param {ModifySyncTaskAttributeRequest} req
|
|
332
|
+
* @param {function(string, ModifySyncTaskAttributeResponse):void} cb
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
ModifySyncTaskAttribute(req, cb) {
|
|
336
|
+
let resp = new ModifySyncTaskAttributeResponse();
|
|
337
|
+
this.request("ModifySyncTaskAttribute", req, resp, cb);
|
|
338
|
+
}
|
|
339
|
+
|
|
325
340
|
/**
|
|
326
341
|
* This API is used to terminate a pay-as-you-go instance.
|
|
327
342
|
* @param {DestroyHourDBInstanceRequest} req
|
|
@@ -438,6 +453,17 @@ If no filter is specified, 20 instances will be returned by default. Up to 100 i
|
|
|
438
453
|
this.request("ModifyDBInstanceSecurityGroups", req, resp, cb);
|
|
439
454
|
}
|
|
440
455
|
|
|
456
|
+
/**
|
|
457
|
+
* This API is used to modify the sync mode of a TencentDB instance.
|
|
458
|
+
* @param {ModifyDBSyncModeRequest} req
|
|
459
|
+
* @param {function(string, ModifyDBSyncModeResponse):void} cb
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
ModifyDBSyncMode(req, cb) {
|
|
463
|
+
let resp = new ModifyDBSyncModeResponse();
|
|
464
|
+
this.request("ModifyDBSyncMode", req, resp, cb);
|
|
465
|
+
}
|
|
466
|
+
|
|
441
467
|
/**
|
|
442
468
|
* This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.
|
|
443
469
|
* @param {CloseDBExtranetAccessRequest} req
|
|
@@ -720,7 +720,7 @@ class CreateAccountRequest extends AbstractModel {
|
|
|
720
720
|
this.Host = null;
|
|
721
721
|
|
|
722
722
|
/**
|
|
723
|
-
* Account password
|
|
723
|
+
* Account password. It must contain 8-32 characters in all of the following four types: lowercase letters, uppercase letters, digits, and symbols (()~!@#$%^&*-+=_|{}[]:<>,.?/), and cannot start with a slash (/).
|
|
724
724
|
* @type {string || null}
|
|
725
725
|
*/
|
|
726
726
|
this.Password = null;
|
|
@@ -1442,6 +1442,34 @@ class NodeInfo extends AbstractModel {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
+
/**
|
|
1446
|
+
* ModifySyncTaskAttribute response structure.
|
|
1447
|
+
* @class
|
|
1448
|
+
*/
|
|
1449
|
+
class ModifySyncTaskAttributeResponse extends AbstractModel {
|
|
1450
|
+
constructor(){
|
|
1451
|
+
super();
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
1455
|
+
* @type {string || null}
|
|
1456
|
+
*/
|
|
1457
|
+
this.RequestId = null;
|
|
1458
|
+
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* @private
|
|
1463
|
+
*/
|
|
1464
|
+
deserialize(params) {
|
|
1465
|
+
if (!params) {
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1469
|
+
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1445
1473
|
/**
|
|
1446
1474
|
* ModifyDBInstanceSecurityGroups response structure.
|
|
1447
1475
|
* @class
|
|
@@ -2008,11 +2036,11 @@ class GrantAccountPrivilegesRequest extends AbstractModel {
|
|
|
2008
2036
|
this.DbName = null;
|
|
2009
2037
|
|
|
2010
2038
|
/**
|
|
2011
|
-
* Global permission. Valid values: SELECT
|
|
2012
|
-
Database permission. Valid values: SELECT
|
|
2013
|
-
Table/
|
|
2014
|
-
Stored procedure/function permission. Valid values: ALTER ROUTINE
|
|
2015
|
-
Field permission. Valid values: INSERT
|
|
2039
|
+
* Global permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`, `SHOW DATABASES`, `REPLICATION CLIENT`, `REPLICATION SLAVE`.
|
|
2040
|
+
Database permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`.
|
|
2041
|
+
Table/View permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
|
|
2042
|
+
Stored procedure/function permission. Valid values: `ALTER ROUTINE`, `EXECUTE`.
|
|
2043
|
+
Field permission. Valid values: `INSERT`, `REFERENCES`, `SELECT`, `UPDATE`.
|
|
2016
2044
|
* @type {Array.<string> || null}
|
|
2017
2045
|
*/
|
|
2018
2046
|
this.Privileges = null;
|
|
@@ -2663,6 +2691,41 @@ class ColumnPrivilege extends AbstractModel {
|
|
|
2663
2691
|
}
|
|
2664
2692
|
}
|
|
2665
2693
|
|
|
2694
|
+
/**
|
|
2695
|
+
* ModifySyncTaskAttribute request structure.
|
|
2696
|
+
* @class
|
|
2697
|
+
*/
|
|
2698
|
+
class ModifySyncTaskAttributeRequest extends AbstractModel {
|
|
2699
|
+
constructor(){
|
|
2700
|
+
super();
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* IDs of tasks for which to modify the attributes. The IDs can be obtained by the return value of the `DescribeSyncTasks` API. Up to 100 tasks can be operated at a time.
|
|
2704
|
+
* @type {Array.<string> || null}
|
|
2705
|
+
*/
|
|
2706
|
+
this.TaskIds = null;
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* Task name. You can specify any name you like, but its length cannot exceed 100 characters.
|
|
2710
|
+
* @type {string || null}
|
|
2711
|
+
*/
|
|
2712
|
+
this.TaskName = null;
|
|
2713
|
+
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* @private
|
|
2718
|
+
*/
|
|
2719
|
+
deserialize(params) {
|
|
2720
|
+
if (!params) {
|
|
2721
|
+
return;
|
|
2722
|
+
}
|
|
2723
|
+
this.TaskIds = 'TaskIds' in params ? params.TaskIds : null;
|
|
2724
|
+
this.TaskName = 'TaskName' in params ? params.TaskName : null;
|
|
2725
|
+
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2666
2729
|
/**
|
|
2667
2730
|
* InitDBInstances request structure.
|
|
2668
2731
|
* @class
|
|
@@ -3868,6 +3931,12 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
3868
3931
|
*/
|
|
3869
3932
|
this.ExampleSql = null;
|
|
3870
3933
|
|
|
3934
|
+
/**
|
|
3935
|
+
* Host address of the account
|
|
3936
|
+
* @type {string || null}
|
|
3937
|
+
*/
|
|
3938
|
+
this.Host = null;
|
|
3939
|
+
|
|
3871
3940
|
}
|
|
3872
3941
|
|
|
3873
3942
|
/**
|
|
@@ -3895,6 +3964,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
3895
3964
|
this.TsMin = 'TsMin' in params ? params.TsMin : null;
|
|
3896
3965
|
this.User = 'User' in params ? params.User : null;
|
|
3897
3966
|
this.ExampleSql = 'ExampleSql' in params ? params.ExampleSql : null;
|
|
3967
|
+
this.Host = 'Host' in params ? params.Host : null;
|
|
3898
3968
|
|
|
3899
3969
|
}
|
|
3900
3970
|
}
|
|
@@ -4209,8 +4279,8 @@ Note: if the parameter is left empty, no change will be made to the granted data
|
|
|
4209
4279
|
this.DatabasePrivileges = null;
|
|
4210
4280
|
|
|
4211
4281
|
/**
|
|
4212
|
-
*
|
|
4213
|
-
Note: if the parameter is
|
|
4282
|
+
* Database table permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
|
|
4283
|
+
Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set `Privileges` to an empty array.
|
|
4214
4284
|
* @type {Array.<TablePrivilege> || null}
|
|
4215
4285
|
*/
|
|
4216
4286
|
this.TablePrivileges = null;
|
|
@@ -4223,22 +4293,22 @@ Note: if the parameter is left empty, no change will be made to the granted colu
|
|
|
4223
4293
|
this.ColumnPrivileges = null;
|
|
4224
4294
|
|
|
4225
4295
|
/**
|
|
4226
|
-
*
|
|
4227
|
-
Note: if the parameter is
|
|
4296
|
+
* Database view permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
|
|
4297
|
+
Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set `Privileges` to an empty array.
|
|
4228
4298
|
* @type {Array.<ViewPrivileges> || null}
|
|
4229
4299
|
*/
|
|
4230
4300
|
this.ViewPrivileges = null;
|
|
4231
4301
|
|
|
4232
4302
|
/**
|
|
4233
|
-
*
|
|
4234
|
-
Note: if the parameter is
|
|
4303
|
+
* Database function permissions. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
|
|
4304
|
+
Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set `Privileges` to an empty array.
|
|
4235
4305
|
* @type {Array.<FunctionPrivilege> || null}
|
|
4236
4306
|
*/
|
|
4237
4307
|
this.FunctionPrivileges = null;
|
|
4238
4308
|
|
|
4239
4309
|
/**
|
|
4240
|
-
*
|
|
4241
|
-
Note: if the parameter is
|
|
4310
|
+
* Database stored procedure permission. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
|
|
4311
|
+
Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set `Privileges` to an empty array.
|
|
4242
4312
|
* @type {Array.<ProcedurePrivilege> || null}
|
|
4243
4313
|
*/
|
|
4244
4314
|
this.ProcedurePrivileges = null;
|
|
@@ -4469,6 +4539,41 @@ class DescribeDBPerformanceResponse extends AbstractModel {
|
|
|
4469
4539
|
}
|
|
4470
4540
|
}
|
|
4471
4541
|
|
|
4542
|
+
/**
|
|
4543
|
+
* ModifyDBSyncMode request structure.
|
|
4544
|
+
* @class
|
|
4545
|
+
*/
|
|
4546
|
+
class ModifyDBSyncModeRequest extends AbstractModel {
|
|
4547
|
+
constructor(){
|
|
4548
|
+
super();
|
|
4549
|
+
|
|
4550
|
+
/**
|
|
4551
|
+
* ID of an instance for which to modify the sync mode. The ID is in the format of tdsql-ow728lmc.
|
|
4552
|
+
* @type {string || null}
|
|
4553
|
+
*/
|
|
4554
|
+
this.InstanceId = null;
|
|
4555
|
+
|
|
4556
|
+
/**
|
|
4557
|
+
* Sync mode. Valid values: `0` (async), `1` (strong sync), `2` (downgradable strong sync).
|
|
4558
|
+
* @type {number || null}
|
|
4559
|
+
*/
|
|
4560
|
+
this.SyncMode = null;
|
|
4561
|
+
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* @private
|
|
4566
|
+
*/
|
|
4567
|
+
deserialize(params) {
|
|
4568
|
+
if (!params) {
|
|
4569
|
+
return;
|
|
4570
|
+
}
|
|
4571
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
4572
|
+
this.SyncMode = 'SyncMode' in params ? params.SyncMode : null;
|
|
4573
|
+
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4472
4577
|
/**
|
|
4473
4578
|
* DescribeInstanceNodeInfo request structure.
|
|
4474
4579
|
* @class
|
|
@@ -5343,6 +5448,41 @@ class MonitorData extends AbstractModel {
|
|
|
5343
5448
|
}
|
|
5344
5449
|
}
|
|
5345
5450
|
|
|
5451
|
+
/**
|
|
5452
|
+
* ModifyDBSyncMode response structure.
|
|
5453
|
+
* @class
|
|
5454
|
+
*/
|
|
5455
|
+
class ModifyDBSyncModeResponse extends AbstractModel {
|
|
5456
|
+
constructor(){
|
|
5457
|
+
super();
|
|
5458
|
+
|
|
5459
|
+
/**
|
|
5460
|
+
* Async task ID. The task status can be queried through the `DescribeFlow` API.
|
|
5461
|
+
* @type {number || null}
|
|
5462
|
+
*/
|
|
5463
|
+
this.FlowId = null;
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
5467
|
+
* @type {string || null}
|
|
5468
|
+
*/
|
|
5469
|
+
this.RequestId = null;
|
|
5470
|
+
|
|
5471
|
+
}
|
|
5472
|
+
|
|
5473
|
+
/**
|
|
5474
|
+
* @private
|
|
5475
|
+
*/
|
|
5476
|
+
deserialize(params) {
|
|
5477
|
+
if (!params) {
|
|
5478
|
+
return;
|
|
5479
|
+
}
|
|
5480
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
5481
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5482
|
+
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5346
5486
|
/**
|
|
5347
5487
|
* DescribeInstanceNodeInfo response structure.
|
|
5348
5488
|
* @class
|
|
@@ -5564,6 +5704,7 @@ module.exports = {
|
|
|
5564
5704
|
DBBackupTimeConfig: DBBackupTimeConfig,
|
|
5565
5705
|
DescribeDBLogFilesRequest: DescribeDBLogFilesRequest,
|
|
5566
5706
|
NodeInfo: NodeInfo,
|
|
5707
|
+
ModifySyncTaskAttributeResponse: ModifySyncTaskAttributeResponse,
|
|
5567
5708
|
ModifyDBInstanceSecurityGroupsResponse: ModifyDBInstanceSecurityGroupsResponse,
|
|
5568
5709
|
ResetAccountPasswordRequest: ResetAccountPasswordRequest,
|
|
5569
5710
|
CopyAccountPrivilegesResponse: CopyAccountPrivilegesResponse,
|
|
@@ -5589,6 +5730,7 @@ module.exports = {
|
|
|
5589
5730
|
ModifyBackupTimeRequest: ModifyBackupTimeRequest,
|
|
5590
5731
|
SecurityGroupBound: SecurityGroupBound,
|
|
5591
5732
|
ColumnPrivilege: ColumnPrivilege,
|
|
5733
|
+
ModifySyncTaskAttributeRequest: ModifySyncTaskAttributeRequest,
|
|
5592
5734
|
InitDBInstancesRequest: InitDBInstancesRequest,
|
|
5593
5735
|
AssociateSecurityGroupsResponse: AssociateSecurityGroupsResponse,
|
|
5594
5736
|
DBInstance: DBInstance,
|
|
@@ -5615,6 +5757,7 @@ module.exports = {
|
|
|
5615
5757
|
DescribeFlowRequest: DescribeFlowRequest,
|
|
5616
5758
|
ModifyAccountPrivilegesRequest: ModifyAccountPrivilegesRequest,
|
|
5617
5759
|
DescribeDBPerformanceResponse: DescribeDBPerformanceResponse,
|
|
5760
|
+
ModifyDBSyncModeRequest: ModifyDBSyncModeRequest,
|
|
5618
5761
|
DescribeInstanceNodeInfoRequest: DescribeInstanceNodeInfoRequest,
|
|
5619
5762
|
CreateAccountResponse: CreateAccountResponse,
|
|
5620
5763
|
DescribeLogFileRetentionPeriodResponse: DescribeLogFileRetentionPeriodResponse,
|
|
@@ -5632,6 +5775,7 @@ module.exports = {
|
|
|
5632
5775
|
DescribeLogFileRetentionPeriodRequest: DescribeLogFileRetentionPeriodRequest,
|
|
5633
5776
|
ModifyDBInstancesProjectRequest: ModifyDBInstancesProjectRequest,
|
|
5634
5777
|
MonitorData: MonitorData,
|
|
5778
|
+
ModifyDBSyncModeResponse: ModifyDBSyncModeResponse,
|
|
5635
5779
|
DescribeInstanceNodeInfoResponse: DescribeInstanceNodeInfoResponse,
|
|
5636
5780
|
ModifyLogFileRetentionPeriodResponse: ModifyLogFileRetentionPeriodResponse,
|
|
5637
5781
|
DisassociateSecurityGroupsResponse: DisassociateSecurityGroupsResponse,
|