tencentcloud-sdk-nodejs-cbs 4.0.1036 → 4.1.1

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
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
52
52
 
53
53
  ## 通过源码包安装
54
54
 
55
- 1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
56
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
57
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
58
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
55
+ 1. clone 代码到本地:
56
+ ```
57
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
58
+ # 或者
59
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
60
+ ```
61
+ 2. 在项目根目录执行以下命令完成构建:
62
+ ```
63
+ npm install && npm run build
64
+ ```
65
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
66
+ ```
67
+ npm pack
68
+ ```
69
+ 4. 安装包到你的项目里:
70
+ ```
71
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
72
+ ```
59
73
 
60
74
  # 示例
61
75
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ import { v20170312 } from "./v20170312";
2
+ export const cbs = {
3
+ v20170312: v20170312,
4
+ };
@@ -0,0 +1,144 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("cbs.tencentcloudapi.com", "2017-03-12", clientConfig);
5
+ }
6
+ async ModifyDiskExtraPerformance(req, cb) {
7
+ return this.request("ModifyDiskExtraPerformance", req, cb);
8
+ }
9
+ async RenewDisk(req, cb) {
10
+ return this.request("RenewDisk", req, cb);
11
+ }
12
+ async ApplyDiskBackup(req, cb) {
13
+ return this.request("ApplyDiskBackup", req, cb);
14
+ }
15
+ async CopySnapshotCrossRegions(req, cb) {
16
+ return this.request("CopySnapshotCrossRegions", req, cb);
17
+ }
18
+ async DescribeInstancesDiskNum(req, cb) {
19
+ return this.request("DescribeInstancesDiskNum", req, cb);
20
+ }
21
+ async InquiryPriceResizeDisk(req, cb) {
22
+ return this.request("InquiryPriceResizeDisk", req, cb);
23
+ }
24
+ async InquirePriceModifyDiskExtraPerformance(req, cb) {
25
+ return this.request("InquirePriceModifyDiskExtraPerformance", req, cb);
26
+ }
27
+ async DescribeAutoSnapshotPolicies(req, cb) {
28
+ return this.request("DescribeAutoSnapshotPolicies", req, cb);
29
+ }
30
+ async AttachDisks(req, cb) {
31
+ return this.request("AttachDisks", req, cb);
32
+ }
33
+ async ModifyDisksRenewFlag(req, cb) {
34
+ return this.request("ModifyDisksRenewFlag", req, cb);
35
+ }
36
+ async CreateSnapshotGroup(req, cb) {
37
+ return this.request("CreateSnapshotGroup", req, cb);
38
+ }
39
+ async DeleteSnapshotGroup(req, cb) {
40
+ return this.request("DeleteSnapshotGroup", req, cb);
41
+ }
42
+ async DeleteDiskBackups(req, cb) {
43
+ return this.request("DeleteDiskBackups", req, cb);
44
+ }
45
+ async ModifyAutoSnapshotPolicyAttribute(req, cb) {
46
+ return this.request("ModifyAutoSnapshotPolicyAttribute", req, cb);
47
+ }
48
+ async InquiryPriceCreateDisks(req, cb) {
49
+ return this.request("InquiryPriceCreateDisks", req, cb);
50
+ }
51
+ async DescribeDiskBackups(req, cb) {
52
+ return this.request("DescribeDiskBackups", req, cb);
53
+ }
54
+ async ApplySnapshotGroup(req, cb) {
55
+ return this.request("ApplySnapshotGroup", req, cb);
56
+ }
57
+ async DeleteAutoSnapshotPolicies(req, cb) {
58
+ return this.request("DeleteAutoSnapshotPolicies", req, cb);
59
+ }
60
+ async InitializeDisks(req, cb) {
61
+ return this.request("InitializeDisks", req, cb);
62
+ }
63
+ async DescribeDisks(req, cb) {
64
+ return this.request("DescribeDisks", req, cb);
65
+ }
66
+ async DescribeSnapshotGroups(req, cb) {
67
+ return this.request("DescribeSnapshotGroups", req, cb);
68
+ }
69
+ async ModifyDiskBackupQuota(req, cb) {
70
+ return this.request("ModifyDiskBackupQuota", req, cb);
71
+ }
72
+ async CreateDisks(req, cb) {
73
+ return this.request("CreateDisks", req, cb);
74
+ }
75
+ async ModifyDiskAttributes(req, cb) {
76
+ return this.request("ModifyDiskAttributes", req, cb);
77
+ }
78
+ async DeleteSnapshots(req, cb) {
79
+ return this.request("DeleteSnapshots", req, cb);
80
+ }
81
+ async ModifySnapshotAttribute(req, cb) {
82
+ return this.request("ModifySnapshotAttribute", req, cb);
83
+ }
84
+ async DescribeDiskAssociatedAutoSnapshotPolicy(req, cb) {
85
+ return this.request("DescribeDiskAssociatedAutoSnapshotPolicy", req, cb);
86
+ }
87
+ async BindAutoSnapshotPolicy(req, cb) {
88
+ return this.request("BindAutoSnapshotPolicy", req, cb);
89
+ }
90
+ async DescribeSnapshots(req, cb) {
91
+ return this.request("DescribeSnapshots", req, cb);
92
+ }
93
+ async DescribeSnapshotSharePermission(req, cb) {
94
+ return this.request("DescribeSnapshotSharePermission", req, cb);
95
+ }
96
+ async CreateAutoSnapshotPolicy(req, cb) {
97
+ return this.request("CreateAutoSnapshotPolicy", req, cb);
98
+ }
99
+ async ModifyDisksChargeType(req, cb) {
100
+ return this.request("ModifyDisksChargeType", req, cb);
101
+ }
102
+ async TerminateDisks(req, cb) {
103
+ return this.request("TerminateDisks", req, cb);
104
+ }
105
+ async DescribeDiskConfigQuota(req, cb) {
106
+ return this.request("DescribeDiskConfigQuota", req, cb);
107
+ }
108
+ async UnbindAutoSnapshotPolicy(req, cb) {
109
+ return this.request("UnbindAutoSnapshotPolicy", req, cb);
110
+ }
111
+ async CreateDiskBackup(req, cb) {
112
+ return this.request("CreateDiskBackup", req, cb);
113
+ }
114
+ async DescribeDiskStoragePool(req, cb) {
115
+ return this.request("DescribeDiskStoragePool", req, cb);
116
+ }
117
+ async ApplySnapshot(req, cb) {
118
+ return this.request("ApplySnapshot", req, cb);
119
+ }
120
+ async InquirePriceModifyDiskBackupQuota(req, cb) {
121
+ return this.request("InquirePriceModifyDiskBackupQuota", req, cb);
122
+ }
123
+ async ModifySnapshotsSharePermission(req, cb) {
124
+ return this.request("ModifySnapshotsSharePermission", req, cb);
125
+ }
126
+ async DescribeSnapshotOverview(req, cb) {
127
+ return this.request("DescribeSnapshotOverview", req, cb);
128
+ }
129
+ async DetachDisks(req, cb) {
130
+ return this.request("DetachDisks", req, cb);
131
+ }
132
+ async GetSnapOverview(req, cb) {
133
+ return this.request("GetSnapOverview", req, cb);
134
+ }
135
+ async ResizeDisk(req, cb) {
136
+ return this.request("ResizeDisk", req, cb);
137
+ }
138
+ async CreateSnapshot(req, cb) {
139
+ return this.request("CreateSnapshot", req, cb);
140
+ }
141
+ async InquiryPriceRenewDisks(req, cb) {
142
+ return this.request("InquiryPriceRenewDisks", req, cb);
143
+ }
144
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cbs_models";
2
+ import { Client } from "./cbs_client";
3
+ export const v20170312 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { cbs } from "./cbs";
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-cbs",
3
- "version": "4.0.1036",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.1",
4
+ "description": "腾讯云 API NODEJS SDK",
5
+ "main": "./tencentcloud/index.js",
6
+ "module": "./es/index.js",
7
+ "types": "./tencentcloud/index.d.ts",
6
8
  "scripts": {
7
9
  "test": "mocha -t 10000",
8
- "build": "tsc",
9
- "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
10
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
+ "build:cjs": "tsc -p tsconfig.json",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
+ "clean": "rimraf tencentcloud es"
10
15
  },
11
16
  "engines": {
12
17
  "node": ">=10"
13
18
  },
19
+ "files": [
20
+ "tencentcloud",
21
+ "es"
22
+ ],
14
23
  "keywords": [
15
24
  "tencentcloudapi",
16
25
  "tencentcloud",
@@ -22,7 +31,7 @@
22
31
  "author": "tencentcloudapi",
23
32
  "license": "Apache-2.0",
24
33
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
34
+ "tencentcloud-sdk-nodejs-common": "*",
26
35
  "tslib": "1.13.0"
27
36
  },
28
37
  "directories": {
@@ -35,14 +44,21 @@
35
44
  },
36
45
  "devDependencies": {
37
46
  "@types/form-data": "^2.5.0",
47
+ "@types/json-bigint": "^1.0.1",
38
48
  "@types/node": "^14.0.26",
39
49
  "@types/node-fetch": "^2.5.7",
50
+ "@types/uuid": "^9.0.8",
40
51
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
52
  "@typescript-eslint/parser": "^2.34.0",
53
+ "babel-eslint": "^10.0.2",
42
54
  "chai": "^4.2.0",
55
+ "concurrently": "^6.5.1",
43
56
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
57
+ "eslint-plugin-react": "^7.17.0",
58
+ "mocha": "^8.4.0",
59
+ "prettier": "^2.3.0",
60
+ "rimraf": "^5.0.10",
45
61
  "ts-node": "^8.10.2",
46
62
  "typescript": "^3.9.7"
47
63
  }
48
- }
64
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * cbs client
24
25
  * @class
@@ -88,7 +88,6 @@ export interface AutoSnapshotPolicy {
88
88
  AutoSnapshotPolicyState?: string;
89
89
  /**
90
90
  * 是否是跨账号复制快照快照, 1:是, 0: 不是
91
- 注意:此字段可能返回 null,表示取不到有效值。
92
91
  */
93
92
  IsCopyToRemote?: number;
94
93
  /**
@@ -126,17 +125,14 @@ export interface AutoSnapshotPolicy {
126
125
  CopyToAccountUin?: string;
127
126
  /**
128
127
  * 已绑定当前定期快照策略的实例ID列表。
129
- 注意:此字段可能返回 null,表示取不到有效值。
130
128
  */
131
129
  InstanceIdSet?: Array<string>;
132
130
  /**
133
131
  * 该定期快照创建的快照可以保留的月数。
134
- 注意:此字段可能返回 null,表示取不到有效值。
135
132
  */
136
133
  RetentionMonths?: number;
137
134
  /**
138
135
  * 该定期快照创建的快照最大保留数量。
139
- 注意:此字段可能返回 null,表示取不到有效值。
140
136
  */
141
137
  RetentionAmount?: number;
142
138
  /**
@@ -151,7 +147,6 @@ export interface AutoSnapshotPolicy {
151
147
  CopyFromAccountUin?: string;
152
148
  /**
153
149
  * 标签。
154
- 注意:此字段可能返回 null,表示取不到有效值。
155
150
  */
156
151
  Tags?: Array<Tag>;
157
152
  }
@@ -461,22 +456,18 @@ export interface InquirePriceModifyDiskExtraPerformanceResponse {
461
456
  export interface AdvancedRetentionPolicy {
462
457
  /**
463
458
  * 保留最新快照Days天内的每天最新的一个快照,取值范围:[0, 100]
464
- 注意:此字段可能返回 null,表示取不到有效值。
465
459
  */
466
460
  Days: number;
467
461
  /**
468
462
  * 保留最新快照Weeks周内的每周最新的一个快照,取值范围:[0, 100]
469
- 注意:此字段可能返回 null,表示取不到有效值。
470
463
  */
471
464
  Weeks: number;
472
465
  /**
473
466
  * 保留最新快照Months月内的每月最新的一个快照, 取值范围:[0, 100]
474
- 注意:此字段可能返回 null,表示取不到有效值。
475
467
  */
476
468
  Months: number;
477
469
  /**
478
470
  * 保留最新快照Years年内的每年最新的一个快照,取值范围:[0, 100]
479
- 注意:此字段可能返回 null,表示取不到有效值。
480
471
  */
481
472
  Years: number;
482
473
  }
@@ -1294,7 +1285,6 @@ export interface CdcSize {
1294
1285
  DiskTotal?: number;
1295
1286
  /**
1296
1287
  * 独享集群的可用容量大小,单位GiB
1297
- 注意:此字段可能返回 null,表示取不到有效值。
1298
1288
  */
1299
1289
  DiskAvailable?: number;
1300
1290
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20170312 = void 0;
4
- const Models = require("./cbs_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./cbs_models"));
5
6
  const cbs_client_1 = require("./cbs_client");
6
7
  exports.v20170312 = {
7
8
  Client: cbs_client_1.Client,
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as tencentcloud from './tencentcloud';
2
- export default tencentcloud;
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
- Object.defineProperty(exports, '__esModule', { value: true })
3
- const tslib_1 = require('tslib')
4
- const tencentcloud = tslib_1.__importStar(require('./tencentcloud'))
5
- exports.default = tencentcloud
6
- //# sourceMappingURL=index.js.map
@@ -1,38 +0,0 @@
1
- // prettier.config.js
2
- module.exports = {
3
- // 一行最多 100 字符
4
- printWidth: 100,
5
- // 使用 4 个空格缩进
6
- tabWidth: 2,
7
- // 不使用缩进符,而使用空格
8
- useTabs: false,
9
- // 行尾需要有分号
10
- semi: false,
11
- // 使用单引号
12
- singleQuote: false,
13
- // 对象的 key 仅在必要时用引号
14
- quoteProps: "as-needed",
15
- // jsx 不使用单引号,而使用双引号
16
- jsxSingleQuote: false,
17
- // 末尾不需要逗号
18
- trailingComma: "es5",
19
- // 大括号内的首尾需要空格
20
- bracketSpacing: true,
21
- // jsx 标签的反尖括号需要换行
22
- jsxBracketSameLine: false,
23
- // 箭头函数,只有一个参数的时候,也需要括号
24
- arrowParens: "always",
25
- // 每个文件格式化的范围是文件的全部内容
26
- rangeStart: 0,
27
- rangeEnd: Infinity,
28
- // 不需要写文件开头的 @prettier
29
- requirePragma: false,
30
- // 不需要自动在文件开头插入 @prettier
31
- insertPragma: false,
32
- // 使用默认的折行标准
33
- proseWrap: "preserve",
34
- // 根据显示样式决定 html 要不要折行
35
- htmlWhitespaceSensitivity: "css",
36
- // 换行符使用 lf
37
- endOfLine: "lf",
38
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./services"
@@ -1,5 +0,0 @@
1
- import { v20170312 } from "./v20170312"
2
-
3
- export const cbs = {
4
- v20170312: v20170312,
5
- }