tencentcloud-sdk-nodejs-intl-en 3.0.333 → 3.0.337

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.
@@ -720,7 +720,7 @@ class CreateAccountRequest extends AbstractModel {
720
720
  this.Host = null;
721
721
 
722
722
  /**
723
- * Account password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
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, 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
2012
- 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
2013
- Table/view permission. Valid values: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER
2014
- Stored procedure/function permission. Valid values: ALTER ROUTINE, EXECUTE
2015
- Field permission. Valid values: INSERT, REFERENCES, SELECT, UPDATE
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
- * Table permission. Valid values of `Privileges`: `"SELECT"`, `"INSERT"`, `"UPDATE"`, `"DELETE"`, `"CREATE"`, `"DROP"`, `"REFERENCES"`, `"INDEX"`, `"ALTER"`, `"CREATE VIEW"`, `"SHOW VIEW"`, `"TRIGGER"`.
4213
- Note: if the parameter is left empty, no change will be made to the granted table permissions. To clear the granted table permissions, set `Privileges` to an empty array.
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
- * View permission. Valid values of `Privileges`: `"SELECT"`, `"INSERT"`, `"UPDATE"`, `"DELETE"`, `"CREATE"`, `"DROP"`, `"REFERENCES"`, `"INDEX"`, `"ALTER"`, `"CREATE VIEW"`, `"SHOW VIEW"`, `"TRIGGER"`.
4227
- Note: if the parameter is left empty, no change will be made to the granted view permissions. To clear the granted view permissions, set `Privileges` to an empty array.
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
- * Function permissions. Valid values of `Privileges`: `"ALTER ROUTINE"`, `"EXECUTE"`.
4234
- Note: if the parameter is left empty, no change will be made to the granted function permissions. To clear the granted function permissions, set `Privileges` to an empty array.
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
- * Stored procedure permission. Valid values of `Privileges`: `"ALTER ROUTINE"`, `"EXECUTE"`.
4241
- Note: if the parameter is left empty, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set `Privileges` to an empty array.
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,
@@ -1012,6 +1012,13 @@ class VersionProvisionedConcurrencyInfo extends AbstractModel {
1012
1012
  */
1013
1013
  this.Qualifier = null;
1014
1014
 
1015
+ /**
1016
+ * List of scheduled provisioned concurrency scaling actions
1017
+ Note: this field may return `null`, indicating that no valid values can be obtained.
1018
+ * @type {Array.<TriggerAction> || null}
1019
+ */
1020
+ this.TriggerActions = null;
1021
+
1015
1022
  }
1016
1023
 
1017
1024
  /**
@@ -1027,6 +1034,15 @@ class VersionProvisionedConcurrencyInfo extends AbstractModel {
1027
1034
  this.StatusReason = 'StatusReason' in params ? params.StatusReason : null;
1028
1035
  this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
1029
1036
 
1037
+ if (params.TriggerActions) {
1038
+ this.TriggerActions = new Array();
1039
+ for (let z in params.TriggerActions) {
1040
+ let obj = new TriggerAction();
1041
+ obj.deserialize(params.TriggerActions[z]);
1042
+ this.TriggerActions.push(obj);
1043
+ }
1044
+ }
1045
+
1030
1046
  }
1031
1047
  }
1032
1048
 
@@ -2281,6 +2297,12 @@ class TerminateAsyncEventRequest extends AbstractModel {
2281
2297
  */
2282
2298
  this.Namespace = null;
2283
2299
 
2300
+ /**
2301
+ * Specifies whether to enable graceful shutdown
2302
+ * @type {boolean || null}
2303
+ */
2304
+ this.GraceShutdown = null;
2305
+
2284
2306
  }
2285
2307
 
2286
2308
  /**
@@ -2293,6 +2315,7 @@ class TerminateAsyncEventRequest extends AbstractModel {
2293
2315
  this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
2294
2316
  this.InvokeRequestId = 'InvokeRequestId' in params ? params.InvokeRequestId : null;
2295
2317
  this.Namespace = 'Namespace' in params ? params.Namespace : null;
2318
+ this.GraceShutdown = 'GraceShutdown' in params ? params.GraceShutdown : null;
2296
2319
 
2297
2320
  }
2298
2321
  }
@@ -5039,7 +5062,7 @@ class Code extends AbstractModel {
5039
5062
  this.CosBucketName = null;
5040
5063
 
5041
5064
  /**
5042
- * COS object path
5065
+ * File path of code package stored in COS, which should start with “/”
5043
5066
  * @type {string || null}
5044
5067
  */
5045
5068
  this.CosObjectName = null;
@@ -5680,6 +5703,51 @@ Note: this field may return null, indicating that no valid values can be obtaine
5680
5703
  }
5681
5704
  }
5682
5705
 
5706
+ /**
5707
+ * Details of a scheduled provisioned concurrency scaling action
5708
+ * @class
5709
+ */
5710
+ class TriggerAction extends AbstractModel {
5711
+ constructor(){
5712
+ super();
5713
+
5714
+ /**
5715
+ * Scheduled action name
5716
+ Note: this field may return `null`, indicating that no valid values can be obtained.
5717
+ * @type {string || null}
5718
+ */
5719
+ this.TriggerName = null;
5720
+
5721
+ /**
5722
+ * Target provisioned concurrency of the scheduled scaling action
5723
+ Note: this field may return `null`, indicating that no valid values can be obtained.
5724
+ * @type {number || null}
5725
+ */
5726
+ this.TriggerProvisionedConcurrencyNum = null;
5727
+
5728
+ /**
5729
+ * Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space.
5730
+ Note: this field may return `null`, indicating that no valid values can be obtained.
5731
+ * @type {string || null}
5732
+ */
5733
+ this.TriggerCronConfig = null;
5734
+
5735
+ }
5736
+
5737
+ /**
5738
+ * @private
5739
+ */
5740
+ deserialize(params) {
5741
+ if (!params) {
5742
+ return;
5743
+ }
5744
+ this.TriggerName = 'TriggerName' in params ? params.TriggerName : null;
5745
+ this.TriggerProvisionedConcurrencyNum = 'TriggerProvisionedConcurrencyNum' in params ? params.TriggerProvisionedConcurrencyNum : null;
5746
+ this.TriggerCronConfig = 'TriggerCronConfig' in params ? params.TriggerCronConfig : null;
5747
+
5748
+ }
5749
+ }
5750
+
5683
5751
  /**
5684
5752
  * Limit information
5685
5753
  * @class
@@ -6197,6 +6265,12 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
6197
6265
  */
6198
6266
  this.Namespace = null;
6199
6267
 
6268
+ /**
6269
+ * Scheduled provisioned concurrency scaling action
6270
+ * @type {Array.<TriggerAction> || null}
6271
+ */
6272
+ this.TriggerActions = null;
6273
+
6200
6274
  }
6201
6275
 
6202
6276
  /**
@@ -6211,6 +6285,15 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
6211
6285
  this.VersionProvisionedConcurrencyNum = 'VersionProvisionedConcurrencyNum' in params ? params.VersionProvisionedConcurrencyNum : null;
6212
6286
  this.Namespace = 'Namespace' in params ? params.Namespace : null;
6213
6287
 
6288
+ if (params.TriggerActions) {
6289
+ this.TriggerActions = new Array();
6290
+ for (let z in params.TriggerActions) {
6291
+ let obj = new TriggerAction();
6292
+ obj.deserialize(params.TriggerActions[z]);
6293
+ this.TriggerActions.push(obj);
6294
+ }
6295
+ }
6296
+
6214
6297
  }
6215
6298
  }
6216
6299
 
@@ -7209,6 +7292,7 @@ module.exports = {
7209
7292
  RetryConfig: RetryConfig,
7210
7293
  GetFunctionAddressResponse: GetFunctionAddressResponse,
7211
7294
  CfsInsInfo: CfsInsInfo,
7295
+ TriggerAction: TriggerAction,
7212
7296
  LimitsInfo: LimitsInfo,
7213
7297
  ListLayersResponse: ListLayersResponse,
7214
7298
  FunctionVersion: FunctionVersion,
@@ -115,6 +115,7 @@ const InvokeFunctionRequest = models.InvokeFunctionRequest;
115
115
  const RetryConfig = models.RetryConfig;
116
116
  const GetFunctionAddressResponse = models.GetFunctionAddressResponse;
117
117
  const CfsInsInfo = models.CfsInsInfo;
118
+ const TriggerAction = models.TriggerAction;
118
119
  const LimitsInfo = models.LimitsInfo;
119
120
  const ListLayersResponse = models.ListLayersResponse;
120
121
  const FunctionVersion = models.FunctionVersion;