tencentcloud-sdk-nodejs-intl-en 3.0.733 → 3.0.734

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.733",
3
+ "version": "3.0.734",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,6 +34,7 @@ const DescribeBackupOverviewRequest = models.DescribeBackupOverviewRequest;
34
34
  const ModifyDBInstanceProjectResponse = models.ModifyDBInstanceProjectResponse;
35
35
  const DescribeDataBackupOverviewResponse = models.DescribeDataBackupOverviewResponse;
36
36
  const BackupSummaryItem = models.BackupSummaryItem;
37
+ const CreateDatabaseRequest = models.CreateDatabaseRequest;
37
38
  const ModifyInstanceParamRequest = models.ModifyInstanceParamRequest;
38
39
  const CreateParamTemplateRequest = models.CreateParamTemplateRequest;
39
40
  const DescribeSupportedPrivilegesRequest = models.DescribeSupportedPrivilegesRequest;
@@ -125,6 +126,7 @@ const CreateParamTemplateResponse = models.CreateParamTemplateResponse;
125
126
  const ModifyAccountPasswordResponse = models.ModifyAccountPasswordResponse;
126
127
  const ReleaseIsolatedDBInstancesRequest = models.ReleaseIsolatedDBInstancesRequest;
127
128
  const BinlogInfo = models.BinlogInfo;
129
+ const CreateDatabaseResponse = models.CreateDatabaseResponse;
128
130
  const DescribeErrorLogDataResponse = models.DescribeErrorLogDataResponse;
129
131
  const AddTimeWindowRequest = models.AddTimeWindowRequest;
130
132
  const ImportRecord = models.ImportRecord;
@@ -575,7 +577,7 @@ Note that once an instance is deactivated, its resources and data will not be re
575
577
  }
576
578
 
577
579
  /**
578
- * This API is used to set the default encryption status of an instance backup.
580
+ * This API is used to set the encryption status of an instance backup.
579
581
  * @param {ModifyBackupEncryptionStatusRequest} req
580
582
  * @param {function(string, ModifyBackupEncryptionStatusResponse):void} cb
581
583
  * @public
@@ -1019,6 +1021,17 @@ This is an async API. You can also use the [DescribeDBInstances](https://intl.cl
1019
1021
  this.request("CreateCdbProxyAddress", req, resp, cb);
1020
1022
  }
1021
1023
 
1024
+ /**
1025
+ * This API is used to create a database in a TencentDB instance.
1026
+ * @param {CreateDatabaseRequest} req
1027
+ * @param {function(string, CreateDatabaseResponse):void} cb
1028
+ * @public
1029
+ */
1030
+ CreateDatabase(req, cb) {
1031
+ let resp = new CreateDatabaseResponse();
1032
+ this.request("CreateDatabase", req, resp, cb);
1033
+ }
1034
+
1022
1035
  /**
1023
1036
  * This API (DescribeProjectSecurityGroups) is used to query the security group details of a project.
1024
1037
  * @param {DescribeProjectSecurityGroupsRequest} req
@@ -1206,6 +1206,48 @@ class BackupSummaryItem extends AbstractModel {
1206
1206
  }
1207
1207
  }
1208
1208
 
1209
+ /**
1210
+ * CreateDatabase request structure.
1211
+ * @class
1212
+ */
1213
+ class CreateDatabaseRequest extends AbstractModel {
1214
+ constructor(){
1215
+ super();
1216
+
1217
+ /**
1218
+ * Instance ID in the format of `cdb-c1nl9rpv`, which is the same as the one displayed in the TencentDB console.
1219
+ * @type {string || null}
1220
+ */
1221
+ this.InstanceId = null;
1222
+
1223
+ /**
1224
+ *
1225
+ * @type {string || null}
1226
+ */
1227
+ this.DBName = null;
1228
+
1229
+ /**
1230
+ * Character set. Valid values: `utf8`, `gbk`, `latin1`, `utf8mb4`.
1231
+ * @type {string || null}
1232
+ */
1233
+ this.CharacterSetName = null;
1234
+
1235
+ }
1236
+
1237
+ /**
1238
+ * @private
1239
+ */
1240
+ deserialize(params) {
1241
+ if (!params) {
1242
+ return;
1243
+ }
1244
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1245
+ this.DBName = 'DBName' in params ? params.DBName : null;
1246
+ this.CharacterSetName = 'CharacterSetName' in params ? params.CharacterSetName : null;
1247
+
1248
+ }
1249
+ }
1250
+
1209
1251
  /**
1210
1252
  * ModifyInstanceParam request structure.
1211
1253
  * @class
@@ -2336,7 +2378,7 @@ class CreateCdbProxyAddressRequest extends AbstractModel {
2336
2378
  this.SecurityGroup = null;
2337
2379
 
2338
2380
  /**
2339
- *
2381
+ * Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
2340
2382
  * @type {string || null}
2341
2383
  */
2342
2384
  this.ConnectionPoolType = null;
@@ -4971,13 +5013,13 @@ class DescribeBinlogsRequest extends AbstractModel {
4971
5013
  this.Limit = null;
4972
5014
 
4973
5015
  /**
4974
- * Earliest Binlog start time in the format of 2016-03-17 02:10:37
5016
+ * The earliest start time of binlog in the format of 2016-03-17 02:10:37.
4975
5017
  * @type {string || null}
4976
5018
  */
4977
5019
  this.MinStartTime = null;
4978
5020
 
4979
5021
  /**
4980
- * Latest binlog start time in the format of 2016-03-17 02:10:37
5022
+ * The latest start time of binlog in the format of 2016-03-17 02:10:37.
4981
5023
  * @type {string || null}
4982
5024
  */
4983
5025
  this.MaxStartTime = null;
@@ -6144,6 +6186,34 @@ class BinlogInfo extends AbstractModel {
6144
6186
  }
6145
6187
  }
6146
6188
 
6189
+ /**
6190
+ * CreateDatabase response structure.
6191
+ * @class
6192
+ */
6193
+ class CreateDatabaseResponse extends AbstractModel {
6194
+ constructor(){
6195
+ super();
6196
+
6197
+ /**
6198
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6199
+ * @type {string || null}
6200
+ */
6201
+ this.RequestId = null;
6202
+
6203
+ }
6204
+
6205
+ /**
6206
+ * @private
6207
+ */
6208
+ deserialize(params) {
6209
+ if (!params) {
6210
+ return;
6211
+ }
6212
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
6213
+
6214
+ }
6215
+ }
6216
+
6147
6217
  /**
6148
6218
  * DescribeErrorLogData response structure.
6149
6219
  * @class
@@ -12261,8 +12331,8 @@ class ProxyInst extends AbstractModel {
12261
12331
  this.InstanceName = null;
12262
12332
 
12263
12333
  /**
12264
- * Instance type Note: This field may return null, indicating that no valid values can be obtained.
12265
- * @type {string || null}
12334
+ * Instance type. Valid values: `master` (source instance), `ro` (read-only instance), `dr` (disaster recovery instance), `sdr` (disaster recovery instance of small specifications). Note: This field may return null, indicating that no valid values can be obtained.
12335
+ * @type {number || null}
12266
12336
  */
12267
12337
  this.InstanceType = null;
12268
12338
 
@@ -19673,6 +19743,7 @@ module.exports = {
19673
19743
  ModifyDBInstanceProjectResponse: ModifyDBInstanceProjectResponse,
19674
19744
  DescribeDataBackupOverviewResponse: DescribeDataBackupOverviewResponse,
19675
19745
  BackupSummaryItem: BackupSummaryItem,
19746
+ CreateDatabaseRequest: CreateDatabaseRequest,
19676
19747
  ModifyInstanceParamRequest: ModifyInstanceParamRequest,
19677
19748
  CreateParamTemplateRequest: CreateParamTemplateRequest,
19678
19749
  DescribeSupportedPrivilegesRequest: DescribeSupportedPrivilegesRequest,
@@ -19764,6 +19835,7 @@ module.exports = {
19764
19835
  ModifyAccountPasswordResponse: ModifyAccountPasswordResponse,
19765
19836
  ReleaseIsolatedDBInstancesRequest: ReleaseIsolatedDBInstancesRequest,
19766
19837
  BinlogInfo: BinlogInfo,
19838
+ CreateDatabaseResponse: CreateDatabaseResponse,
19767
19839
  DescribeErrorLogDataResponse: DescribeErrorLogDataResponse,
19768
19840
  AddTimeWindowRequest: AddTimeWindowRequest,
19769
19841
  ImportRecord: ImportRecord,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.733";
1
+ const sdkVersion = "3.0.734";
2
2
  module.exports = sdkVersion