tencentcloud-sdk-nodejs-cbs 4.1.107 → 4.1.164
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-cbs",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.164",
|
|
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
|
}
|
|
@@ -432,11 +432,11 @@ export interface SnapshotCopyResult {
|
|
|
432
432
|
*/
|
|
433
433
|
export interface RenewDiskRequest {
|
|
434
434
|
/**
|
|
435
|
-
*
|
|
435
|
+
* <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云硬盘的续费时长。<br>在云硬盘与挂载的实例一起续费的场景下,可以指定参数CurInstanceDeadline,此时云硬盘会按对齐到实例续费后的到期时间来续费。</p>
|
|
436
436
|
*/
|
|
437
437
|
DiskChargePrepaid: DiskChargePrepaid;
|
|
438
438
|
/**
|
|
439
|
-
*
|
|
439
|
+
* <p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
440
440
|
*/
|
|
441
441
|
DiskId: string;
|
|
442
442
|
}
|
|
@@ -1041,19 +1041,19 @@ export interface ModifyDiskBackupQuotaResponse {
|
|
|
1041
1041
|
*/
|
|
1042
1042
|
export interface InquiryPriceRenewDisksRequest {
|
|
1043
1043
|
/**
|
|
1044
|
-
*
|
|
1044
|
+
* <p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
1045
1045
|
*/
|
|
1046
1046
|
DiskIds: Array<string>;
|
|
1047
1047
|
/**
|
|
1048
|
-
*
|
|
1048
|
+
* <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云盘的购买时长。如果在该参数中指定CurInstanceDeadline,则会按对齐到子机到期时间来续费。如果是批量续费询价,该参数与Disks参数一一对应,元素数量需保持一致。</p>
|
|
1049
1049
|
*/
|
|
1050
1050
|
DiskChargePrepaids?: Array<DiskChargePrepaid>;
|
|
1051
1051
|
/**
|
|
1052
|
-
*
|
|
1052
|
+
* <p>指定云硬盘新的到期时间,形式如:2017-12-17 00:00:00。参数<code>NewDeadline</code>和<code>DiskChargePrepaids</code>是两种指定询价时长的方式,两者必传一个。</p>
|
|
1053
1053
|
*/
|
|
1054
1054
|
NewDeadline?: string;
|
|
1055
1055
|
/**
|
|
1056
|
-
*
|
|
1056
|
+
* <p>云硬盘所属项目ID。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/651/78725">DescribeProject</a> 的返回值中的 projectId 字段来获取。 如传入则仅用于鉴权。</p>
|
|
1057
1057
|
*/
|
|
1058
1058
|
ProjectId?: number;
|
|
1059
1059
|
}
|
|
@@ -1248,7 +1248,7 @@ export interface ModifyDiskAttributesRequest {
|
|
|
1248
1248
|
/**
|
|
1249
1249
|
* GetSnapOverview请求参数结构体
|
|
1250
1250
|
*/
|
|
1251
|
-
export
|
|
1251
|
+
export type GetSnapOverviewRequest = null;
|
|
1252
1252
|
/**
|
|
1253
1253
|
* 镜像。
|
|
1254
1254
|
*/
|
|
@@ -1566,7 +1566,7 @@ export interface ApplySnapshotGroupResponse {
|
|
|
1566
1566
|
/**
|
|
1567
1567
|
* DescribeSnapshotOverview请求参数结构体
|
|
1568
1568
|
*/
|
|
1569
|
-
export
|
|
1569
|
+
export type DescribeSnapshotOverviewRequest = null;
|
|
1570
1570
|
/**
|
|
1571
1571
|
* 过滤条件
|
|
1572
1572
|
*/
|
|
@@ -1968,7 +1968,7 @@ export interface DetachDisksResponse {
|
|
|
1968
1968
|
*/
|
|
1969
1969
|
export interface InquiryPriceRenewDisksResponse {
|
|
1970
1970
|
/**
|
|
1971
|
-
*
|
|
1971
|
+
* <p>描述了续费云盘的价格。</p>
|
|
1972
1972
|
*/
|
|
1973
1973
|
DiskPrice?: PrepayPrice;
|
|
1974
1974
|
/**
|