tencentcloud-sdk-nodejs-redis 4.1.1 → 4.1.27
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
|
@@ -44,11 +44,19 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-redis",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.27",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
11
|
"build:cjs": "tsc -p tsconfig.json",
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
13
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
15
|
"clean": "rimraf tencentcloud es"
|
|
15
16
|
},
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"babel-eslint": "^10.0.2",
|
|
54
55
|
"chai": "^4.2.0",
|
|
55
56
|
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
56
58
|
"eslint": "^6.8.0",
|
|
57
59
|
"eslint-plugin-react": "^7.17.0",
|
|
58
60
|
"mocha": "^8.4.0",
|
|
@@ -2214,9 +2214,24 @@ export interface DescribeBackupUrlResponse {
|
|
|
2214
2214
|
*/
|
|
2215
2215
|
export interface InquiryPriceRenewInstanceResponse {
|
|
2216
2216
|
/**
|
|
2217
|
-
*
|
|
2217
|
+
* 价格
|
|
2218
2218
|
*/
|
|
2219
2219
|
Price?: number;
|
|
2220
|
+
/**
|
|
2221
|
+
* 高精度价格
|
|
2222
|
+
*/
|
|
2223
|
+
HighPrecisionPrice?: number;
|
|
2224
|
+
/**
|
|
2225
|
+
* 币种
|
|
2226
|
+
*/
|
|
2227
|
+
Currency?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* 价格金额单位
|
|
2230
|
+
|
|
2231
|
+
- pent: 分
|
|
2232
|
+
- microPent: 微分
|
|
2233
|
+
*/
|
|
2234
|
+
AmountUnit?: string;
|
|
2220
2235
|
/**
|
|
2221
2236
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2222
2237
|
*/
|
|
@@ -2292,9 +2307,24 @@ export declare type DescribeProductInfoRequest = null;
|
|
|
2292
2307
|
*/
|
|
2293
2308
|
export interface InquiryPriceCreateInstanceResponse {
|
|
2294
2309
|
/**
|
|
2295
|
-
*
|
|
2310
|
+
* 价格
|
|
2296
2311
|
*/
|
|
2297
2312
|
Price?: number;
|
|
2313
|
+
/**
|
|
2314
|
+
* 高精度价格
|
|
2315
|
+
*/
|
|
2316
|
+
HighPrecisionPrice?: number;
|
|
2317
|
+
/**
|
|
2318
|
+
* 币种
|
|
2319
|
+
*/
|
|
2320
|
+
Currency?: string;
|
|
2321
|
+
/**
|
|
2322
|
+
* 价格金额单位
|
|
2323
|
+
|
|
2324
|
+
- pent: 分
|
|
2325
|
+
- microPent: 微分
|
|
2326
|
+
*/
|
|
2327
|
+
AmountUnit?: string;
|
|
2298
2328
|
/**
|
|
2299
2329
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2300
2330
|
*/
|
|
@@ -4191,7 +4221,6 @@ export interface Groups {
|
|
|
4191
4221
|
- 17:德国
|
|
4192
4222
|
- 18:韩国
|
|
4193
4223
|
- 19:重庆
|
|
4194
|
-
- 21:印度
|
|
4195
4224
|
- 22:美东(弗吉尼亚)
|
|
4196
4225
|
- 23:泰国
|
|
4197
4226
|
- 25:日本
|
|
@@ -4743,7 +4772,7 @@ export interface InstanceSet {
|
|
|
4743
4772
|
*/
|
|
4744
4773
|
ProjectId?: number;
|
|
4745
4774
|
/**
|
|
4746
|
-
* 地域 ID。<ul><li>1:广州。</li><li>4:上海。</li><li>5:中国香港。</li><li>7:上海金融。</li> <li>8:北京。</li> <li>9:新加坡。</li> <li>11:深圳金融。</li> <li>15:美西(硅谷)。</li><li>16:成都。</li><li>17:法兰克福。</li><li>18:首尔。</li><li>19:重庆。</li><li>
|
|
4775
|
+
* 地域 ID。<ul><li>1:广州。</li><li>4:上海。</li><li>5:中国香港。</li><li>7:上海金融。</li> <li>8:北京。</li> <li>9:新加坡。</li> <li>11:深圳金融。</li> <li>15:美西(硅谷)。</li><li>16:成都。</li><li>17:法兰克福。</li><li>18:首尔。</li><li>19:重庆。</li><li>22:美东(弗吉尼亚)。</li><li>23:曼谷。</li><li>25:东京。</li></ul>
|
|
4747
4776
|
*/
|
|
4748
4777
|
RegionId?: number;
|
|
4749
4778
|
/**
|
|
@@ -5968,9 +5997,24 @@ export interface SecurityGroupDetail {
|
|
|
5968
5997
|
*/
|
|
5969
5998
|
export interface InquiryPriceUpgradeInstanceResponse {
|
|
5970
5999
|
/**
|
|
5971
|
-
*
|
|
6000
|
+
* 价格
|
|
5972
6001
|
*/
|
|
5973
6002
|
Price?: number;
|
|
6003
|
+
/**
|
|
6004
|
+
* 高精度价格
|
|
6005
|
+
*/
|
|
6006
|
+
HighPrecisionPrice?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
* 币种
|
|
6009
|
+
*/
|
|
6010
|
+
Currency?: string;
|
|
6011
|
+
/**
|
|
6012
|
+
* 价格金额单位
|
|
6013
|
+
|
|
6014
|
+
- pent: 分
|
|
6015
|
+
- microPent: 微分
|
|
6016
|
+
*/
|
|
6017
|
+
AmountUnit?: string;
|
|
5974
6018
|
/**
|
|
5975
6019
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5976
6020
|
*/
|