tencentcloud-sdk-nodejs-keewidb 4.1.100 → 4.1.138
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](
|
|
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 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.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-keewidb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.138",
|
|
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/
|
|
48
|
+
"@types/ini": "^4.1.1",
|
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
|
49
|
-
"@types/node": "^
|
|
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": "^
|
|
65
|
+
"typescript": "^5.9.2",
|
|
66
|
+
"vitest": "2.1.9"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -5,11 +5,11 @@ export interface ModifyInstanceParamsResponse {
|
|
|
5
5
|
/**
|
|
6
6
|
* 修改是否成功。<ul><li>true:修改成功。</li><li>false:修改失败。</li></ul>
|
|
7
7
|
*/
|
|
8
|
-
Changed
|
|
8
|
+
Changed?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* 任务 ID。
|
|
11
11
|
*/
|
|
12
|
-
TaskId
|
|
12
|
+
TaskId?: number;
|
|
13
13
|
/**
|
|
14
14
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15
15
|
*/
|
|
@@ -346,8 +346,13 @@ export interface ModifyInstanceRequest {
|
|
|
346
346
|
export interface RenewInstanceResponse {
|
|
347
347
|
/**
|
|
348
348
|
* 交易 ID。
|
|
349
|
+
* @deprecated
|
|
349
350
|
*/
|
|
350
351
|
DealId?: string;
|
|
352
|
+
/**
|
|
353
|
+
* 订单号。
|
|
354
|
+
*/
|
|
355
|
+
DealName?: string;
|
|
351
356
|
/**
|
|
352
357
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
353
358
|
*/
|
|
@@ -612,8 +617,13 @@ export interface InstanceMultiParam {
|
|
|
612
617
|
export interface DescribeInstanceDealDetailRequest {
|
|
613
618
|
/**
|
|
614
619
|
* 订单交易ID数组,即 [CreateInstances](https://cloud.tencent.com/document/api/1520/86207) 的输出参数DealId。
|
|
620
|
+
* @deprecated
|
|
615
621
|
*/
|
|
616
|
-
DealIds
|
|
622
|
+
DealIds?: Array<string>;
|
|
623
|
+
/**
|
|
624
|
+
* 订单号,订单交易ID数组,即 [CreateInstances](https://cloud.tencent.com/document/api/1520/86207) 的输出参数DealName。
|
|
625
|
+
*/
|
|
626
|
+
DealName?: string;
|
|
617
627
|
}
|
|
618
628
|
/**
|
|
619
629
|
* DestroyPrepaidInstance请求参数结构体
|
|
@@ -689,7 +699,7 @@ export interface DestroyPostpaidInstanceResponse {
|
|
|
689
699
|
/**
|
|
690
700
|
* 任务 ID。
|
|
691
701
|
*/
|
|
692
|
-
TaskId
|
|
702
|
+
TaskId?: number;
|
|
693
703
|
/**
|
|
694
704
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
695
705
|
*/
|
|
@@ -1010,12 +1020,17 @@ export interface DescribeTaskListRequest {
|
|
|
1010
1020
|
export interface CreateInstancesResponse {
|
|
1011
1021
|
/**
|
|
1012
1022
|
* 交易 ID。
|
|
1023
|
+
* @deprecated
|
|
1013
1024
|
*/
|
|
1014
1025
|
DealId?: string;
|
|
1015
1026
|
/**
|
|
1016
1027
|
* 实例 ID 。
|
|
1017
1028
|
*/
|
|
1018
1029
|
InstanceIds?: Array<string>;
|
|
1030
|
+
/**
|
|
1031
|
+
* 订单号。
|
|
1032
|
+
*/
|
|
1033
|
+
DealName?: string;
|
|
1019
1034
|
/**
|
|
1020
1035
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1021
1036
|
*/
|
|
@@ -1141,7 +1156,7 @@ export interface CleanUpInstanceResponse {
|
|
|
1141
1156
|
/**
|
|
1142
1157
|
* 任务 ID。
|
|
1143
1158
|
*/
|
|
1144
|
-
TaskId
|
|
1159
|
+
TaskId?: number;
|
|
1145
1160
|
/**
|
|
1146
1161
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1147
1162
|
*/
|
|
@@ -1934,8 +1949,13 @@ export interface InstanceEnumParam {
|
|
|
1934
1949
|
export interface UpgradeInstanceResponse {
|
|
1935
1950
|
/**
|
|
1936
1951
|
* 交易ID。
|
|
1952
|
+
* @deprecated
|
|
1937
1953
|
*/
|
|
1938
1954
|
DealId?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* 订单号。
|
|
1957
|
+
*/
|
|
1958
|
+
DealName?: string;
|
|
1939
1959
|
/**
|
|
1940
1960
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1941
1961
|
*/
|
|
@@ -2008,8 +2028,13 @@ export interface DescribeInstanceReplicasRequest {
|
|
|
2008
2028
|
export interface DestroyPrepaidInstanceResponse {
|
|
2009
2029
|
/**
|
|
2010
2030
|
* 交易ID。
|
|
2031
|
+
* @deprecated
|
|
2032
|
+
*/
|
|
2033
|
+
DealId?: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* 订单号。
|
|
2011
2036
|
*/
|
|
2012
|
-
|
|
2037
|
+
DealName?: string;
|
|
2013
2038
|
/**
|
|
2014
2039
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2015
2040
|
*/
|
|
@@ -2179,7 +2204,7 @@ export interface DescribeProxySlowLogResponse {
|
|
|
2179
2204
|
/**
|
|
2180
2205
|
* DescribeProductInfo请求参数结构体
|
|
2181
2206
|
*/
|
|
2182
|
-
export
|
|
2207
|
+
export type DescribeProductInfoRequest = null;
|
|
2183
2208
|
/**
|
|
2184
2209
|
* DescribeInstanceParams返回参数结构体
|
|
2185
2210
|
*/
|