tencentcloud-sdk-nodejs-postgres 4.1.101 → 4.1.126

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/README.md CHANGED
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
62
62
 
63
63
  1. clone 代码到本地:
64
64
  ```
65
+ git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
66
+ # 或者
65
67
  git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
68
  # 或者
67
69
  git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
135
137
  // ...
136
138
  ```
137
139
 
138
- 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
140
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
139
141
 
140
142
  ## Common Client
141
143
 
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
143
145
 
144
146
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
145
147
 
146
- 详细使用请参阅示例:[使用 Common Client 进行调用](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples/common)
148
+ 详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
147
149
 
148
150
  ## 更多示例
149
151
 
150
- 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
152
+ 请参考 [examples](examples) 目录。
151
153
 
152
154
  # 相关配置
153
155
 
154
156
  ## 代理
155
157
 
156
- 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
158
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
157
159
 
158
160
  # 凭证管理
159
161
 
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-postgres",
3
- "version": "4.1.101",
3
+ "version": "4.1.126",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -12,7 +12,8 @@
12
12
  "build:es": "tsc -p tsconfig.es.json",
13
13
  "build:slim": "node ./scripts/build_slim.js",
14
14
  "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
- "clean": "rimraf tencentcloud es"
15
+ "clean": "rimraf tencentcloud es",
16
+ "test:common": "vitest run"
16
17
  },
17
18
  "engines": {
18
19
  "node": ">=10"
@@ -44,9 +45,9 @@
44
45
  "url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
45
46
  },
46
47
  "devDependencies": {
47
- "@types/form-data": "^2.5.0",
48
+ "@types/ini": "^4.1.1",
48
49
  "@types/json-bigint": "^1.0.1",
49
- "@types/node": "^14.0.26",
50
+ "@types/node": "^18.0.0",
50
51
  "@types/node-fetch": "^2.5.7",
51
52
  "@types/uuid": "^9.0.8",
52
53
  "@typescript-eslint/eslint-plugin": "^2.34.0",
@@ -61,6 +62,7 @@
61
62
  "prettier": "^2.3.0",
62
63
  "rimraf": "^5.0.10",
63
64
  "ts-node": "^8.10.2",
64
- "typescript": "^3.9.7"
65
+ "typescript": "^5.9.2",
66
+ "vitest": "2.1.9"
65
67
  }
66
68
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.postgres = void 0;
3
4
  var postgres_1 = require("./postgres");
4
5
  Object.defineProperty(exports, "postgres", { enumerable: true, get: function () { return postgres_1.postgres; } });
@@ -903,7 +903,7 @@ export interface RenewInstanceRequest {
903
903
  /**
904
904
  * DescribeBackupOverview请求参数结构体
905
905
  */
906
- export declare type DescribeBackupOverviewRequest = null;
906
+ export type DescribeBackupOverviewRequest = null;
907
907
  /**
908
908
  * DescribeRegions返回参数结构体
909
909
  */
@@ -1073,7 +1073,7 @@ export interface DeleteReadOnlyGroupNetworkAccessRequest {
1073
1073
  /**
1074
1074
  * DescribeBackupDownloadRestriction请求参数结构体
1075
1075
  */
1076
- export declare type DescribeBackupDownloadRestrictionRequest = null;
1076
+ export type DescribeBackupDownloadRestrictionRequest = null;
1077
1077
  /**
1078
1078
  * 描述可用区的编码和状态信息
1079
1079
  */
@@ -1739,19 +1739,19 @@ export interface ReadOnlyGroup {
1739
1739
  */
1740
1740
  MinDelayEliminateReserve?: number;
1741
1741
  /**
1742
- * 延迟空间大小阈值
1742
+ * 延迟空间大小阈值。单位MB。
1743
1743
  */
1744
1744
  MaxReplayLatency?: number;
1745
1745
  /**
1746
- * 延迟大小开关
1746
+ * 延迟大小开关。0 - 关闭; 1 - 开启。
1747
1747
  */
1748
1748
  ReplayLatencyEliminate?: number;
1749
1749
  /**
1750
- * 延迟时间大小阈值
1750
+ * 延迟时间大小阈值,单位:秒。
1751
1751
  */
1752
1752
  MaxReplayLag?: number;
1753
1753
  /**
1754
- * 延迟时间开关
1754
+ * 延迟时间开关。0 - 关闭; 1 - 开启。
1755
1755
  */
1756
1756
  ReplayLagEliminate?: number;
1757
1757
  /**
@@ -1771,7 +1771,7 @@ export interface ReadOnlyGroup {
1771
1771
  */
1772
1772
  Zone?: string;
1773
1773
  /**
1774
- * 状态
1774
+ * 状态。枚举值:creating、ok、modifying、deleting、deleted
1775
1775
  */
1776
1776
  Status?: string;
1777
1777
  /**
@@ -1856,7 +1856,7 @@ export interface ModifyAccountRemarkResponse {
1856
1856
  /**
1857
1857
  * DescribeZones请求参数结构体
1858
1858
  */
1859
- export declare type DescribeZonesRequest = null;
1859
+ export type DescribeZonesRequest = null;
1860
1860
  /**
1861
1861
  * 描述某个地域下某个可用区的可售卖规格详细信息。
1862
1862
  */
@@ -2802,7 +2802,7 @@ export interface DescribeDBBackupsResponse {
2802
2802
  /**
2803
2803
  * DescribeRegions请求参数结构体
2804
2804
  */
2805
- export declare type DescribeRegionsRequest = null;
2805
+ export type DescribeRegionsRequest = null;
2806
2806
  /**
2807
2807
  * DescribeSlowQueryList返回参数结构体
2808
2808
  */
@@ -3730,6 +3730,10 @@ export interface DBInstance {
3730
3730
  默认值:0
3731
3731
  */
3732
3732
  SupportIpv6?: number;
3733
+ /**
3734
+ * 实例已经弹性扩容的cpu核数
3735
+ */
3736
+ ExpandedCpu?: number;
3733
3737
  }
3734
3738
  /**
3735
3739
  * DeleteParameterTemplate返回参数结构体
@@ -5008,10 +5012,11 @@ export interface DescribeReadOnlyGroupsRequest {
5008
5012
  * 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
5009
5013
  db-master-instance-id:按照主实例过滤,类型为string。
5010
5014
  read-only-group-id:按照只读组ID过滤,类型为string。
5015
+ 注:该参数的过滤条件中,db-master-instance-id为必须指定项。
5011
5016
  */
5012
5017
  Filters?: Array<Filter>;
5013
5018
  /**
5014
- * 查询每一页的条数,默认为10
5019
+ * 查询每一页的条数,默认为10,最大值99。
5015
5020
  */
5016
5021
  PageSize?: number;
5017
5022
  /**
@@ -5019,11 +5024,11 @@ export interface DescribeReadOnlyGroupsRequest {
5019
5024
  */
5020
5025
  PageNumber?: number;
5021
5026
  /**
5022
- * 查询排序依据,目前支持:ROGroupId,CreateTime,Name
5027
+ * 查询排序依据,目前支持:ROGroupId,CreateTime,Name。默认值CreateTime
5023
5028
  */
5024
5029
  OrderBy?: string;
5025
5030
  /**
5026
- * 查询排序依据类型,目前支持:desc,asc
5031
+ * 查询排序依据类型,目前支持:desc,asc。默认值asc。
5027
5032
  */
5028
5033
  OrderByType?: string;
5029
5034
  }
@@ -5172,7 +5177,7 @@ export interface DescribeParameterTemplateAttributesResponse {
5172
5177
  /**
5173
5178
  * DescribeDBVersions请求参数结构体
5174
5179
  */
5175
- export declare type DescribeDBVersionsRequest = null;
5180
+ export type DescribeDBVersionsRequest = null;
5176
5181
  /**
5177
5182
  * ModifyDBInstancesProject请求参数结构体
5178
5183
  */