tencentcloud-sdk-nodejs-mongodb 4.1.262 → 4.1.267

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-mongodb",
3
- "version": "4.1.262",
3
+ "version": "4.1.267",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -265,7 +265,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
265
265
  */
266
266
  EnableTransparentDataEncryption(req: EnableTransparentDataEncryptionRequest, cb?: (error: string, rep: EnableTransparentDataEncryptionResponse) => void): Promise<EnableTransparentDataEncryptionResponse>;
267
267
  /**
268
- * 本接口(PromoteDBInstanceToActive)用于灾备实例转正
268
+ * 本接口(PromoteDBInstanceToActive)用于将灾备实例或只读实例转为独立的主实例
269
269
  */
270
270
  PromoteDBInstanceToActive(req: PromoteDBInstanceToActiveRequest, cb?: (error: string, rep: PromoteDBInstanceToActiveResponse) => void): Promise<PromoteDBInstanceToActiveResponse>;
271
271
  /**
@@ -413,7 +413,7 @@ class Client extends TencentCloudCommon.AbstractClient {
413
413
  return this.request("EnableTransparentDataEncryption", req, cb);
414
414
  }
415
415
  /**
416
- * 本接口(PromoteDBInstanceToActive)用于灾备实例转正
416
+ * 本接口(PromoteDBInstanceToActive)用于将灾备实例或只读实例转为独立的主实例
417
417
  */
418
418
  async PromoteDBInstanceToActive(req, cb) {
419
419
  return this.request("PromoteDBInstanceToActive", req, cb);
@@ -140,6 +140,22 @@ export interface CreateDBInstanceRequest {
140
140
  * <p>参数模板 ID。</p><ul><li>参数模板是预置了特定参数值的集合,可用于快速配置新的 MongoDB 实例。合理使用参数模板,能有效提升数据库的部署效率与运行性能。</li><li>参数模板 ID 可通过 <a href="https://cloud.tencent.com/document/product/240/109155">DescribeDBInstanceParamTpl </a>接口获取。请选择与实例版本与架构所对应的参数模板 ID。</li></ul>
141
141
  */
142
142
  ParamTemplateId?: string;
143
+ /**
144
+ * <p>数据库存储加密取值。</p><ul><li>No_Encryption:不采用存储加密。</li><li>TDE:开启 TDE 存储加密方式。</li></ul>
145
+ */
146
+ DataEncryption?: string;
147
+ /**
148
+ * <p>如选取 TDE 存储加密,须指定密钥来源。</p><ul><li>auto 自动生成密钥。</li><li>manual 手动指定密钥。</li></ul>
149
+ */
150
+ EncryptionKeySource?: string;
151
+ /**
152
+ * <p>密钥 ID。如密钥资源选取为指定自定义,须输入指定的密钥 ID。</p>
153
+ */
154
+ KeyId?: string;
155
+ /**
156
+ * <p>如果密钥来源为指定自定义密钥,须填写该字段指定密钥的地域信息。</p>
157
+ */
158
+ KmsRegion?: string;
143
159
  /**
144
160
  * <p>实例CPU核大小,单位:C。具体售卖的CPU规格,请通过接口 <a href="https://cloud.tencent.com/document/product/240/38567">DescribeSpecInfo</a> 获取<br>注意:通用 I 型实例必须设置 CPU 大小。</p>
145
161
  */
@@ -424,11 +440,11 @@ export interface DescribeCurrentOpResponse {
424
440
  */
425
441
  export interface PromoteDBInstanceToActiveRequest {
426
442
  /**
427
- * 灾备实例id
443
+ * <p>指定需转为普通实例的灾备或只读实例 ID。请登录 <a href="https://console.cloud.tencent.com/mongodb">MongoDB 控制台</a>在实例列表复制灾备或只读实例 ID。</p>
428
444
  */
429
445
  InstanceId: string;
430
446
  /**
431
- * 主实例id
447
+ * <p>指定灾备或只读实例所属的主实例。请登录 <a href="https://console.cloud.tencent.com/mongodb">MongoDB 控制台</a>在实例列表复制实例 ID。</p>
432
448
  */
433
449
  MasterId: string;
434
450
  }
@@ -3007,6 +3023,22 @@ export interface CreateDBInstanceHourRequest {
3007
3023
  * <p>参数模板 ID。</p><ul><li>参数模板是预置了特定参数值的集合,可用于快速配置新的 MongoDB 实例。合理使用参数模板,能有效提升数据库的部署效率与运行性能。</li><li>参数模板 ID 可通过 <a href="https://cloud.tencent.com/document/product/240/109155">DescribeDBInstanceParamTpl </a>接口获取。请选择与实例版本与架构所对应的参数模板 ID。</li></ul>
3008
3024
  */
3009
3025
  ParamTemplateId?: string;
3026
+ /**
3027
+ * <p>数据库存储加密取值。</p><ul><li>No_Encryption:不采用存储加密。</li><li>TDE:开启 TDE 存储加密方式。</li></ul>
3028
+ */
3029
+ DataEncryption?: string;
3030
+ /**
3031
+ * <p>如选取 TDE 存储加密,须指定密钥来源。</p><ul><li>auto 自动生成密钥。</li><li>manual 手动指定密钥。</li></ul>
3032
+ */
3033
+ EncryptionKeySource?: string;
3034
+ /**
3035
+ * <p>密钥 ID。如密钥资源选取为指定自定义,须输入指定的密钥 ID。</p>
3036
+ */
3037
+ KeyId?: string;
3038
+ /**
3039
+ * <p>如果密钥来源为指定自定义密钥,须填写该字段指定密钥的地域信息。</p>
3040
+ */
3041
+ KmsRegion?: string;
3010
3042
  /**
3011
3043
  * <p>实例CPU核大小,单位:C。具体售卖的CPU规格,请通过接口 <a href="https://cloud.tencent.com/document/product/240/38567">DescribeSpecInfo</a> 获取。<br>注意:通用 I 型实例必须设置 CPU 大小。</p>
3012
3044
  */
@@ -5229,7 +5261,7 @@ export interface RenewDBInstancesRequest {
5229
5261
  */
5230
5262
  export interface PromoteDBInstanceToActiveResponse {
5231
5263
  /**
5232
- * 任务id
5264
+ * <p>任务 ID。</p>
5233
5265
  */
5234
5266
  FlowId?: number;
5235
5267
  /**