tencentcloud-sdk-nodejs-goosefs 4.0.1050 → 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 { v20220519 } from "./v20220519";
2
+ export const goosefs = {
3
+ v20220519: v20220519,
4
+ };
@@ -0,0 +1,66 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("goosefs.tencentcloudapi.com", "2022-05-19", clientConfig);
5
+ }
6
+ async DescribeClusterRoles(req, cb) {
7
+ return this.request("DescribeClusterRoles", req, cb);
8
+ }
9
+ async DeleteFileSystem(req, cb) {
10
+ return this.request("DeleteFileSystem", req, cb);
11
+ }
12
+ async AddCrossVpcSubnetSupportForClientNode(req, cb) {
13
+ return this.request("AddCrossVpcSubnetSupportForClientNode", req, cb);
14
+ }
15
+ async BatchAddClientNodes(req, cb) {
16
+ return this.request("BatchAddClientNodes", req, cb);
17
+ }
18
+ async DetachFileSystemBucket(req, cb) {
19
+ return this.request("DetachFileSystemBucket", req, cb);
20
+ }
21
+ async DescribeFileSystems(req, cb) {
22
+ return this.request("DescribeFileSystems", req, cb);
23
+ }
24
+ async QueryDataRepositoryBandwidth(req, cb) {
25
+ return this.request("QueryDataRepositoryBandwidth", req, cb);
26
+ }
27
+ async DescribeFileSystemBuckets(req, cb) {
28
+ return this.request("DescribeFileSystemBuckets", req, cb);
29
+ }
30
+ async DescribeClientNodes(req, cb) {
31
+ return this.request("DescribeClientNodes", req, cb);
32
+ }
33
+ async DescribeDataRepositoryTaskStatus(req, cb) {
34
+ return this.request("DescribeDataRepositoryTaskStatus", req, cb);
35
+ }
36
+ async DeleteCrossVpcSubnetSupportForClientNode(req, cb) {
37
+ return this.request("DeleteCrossVpcSubnetSupportForClientNode", req, cb);
38
+ }
39
+ async ModifyDataRepositoryBandwidth(req, cb) {
40
+ return this.request("ModifyDataRepositoryBandwidth", req, cb);
41
+ }
42
+ async AttachFileSystemBucket(req, cb) {
43
+ return this.request("AttachFileSystemBucket", req, cb);
44
+ }
45
+ async BatchDeleteClientNodes(req, cb) {
46
+ return this.request("BatchDeleteClientNodes", req, cb);
47
+ }
48
+ async QueryCrossVpcSubnetSupportForClientNode(req, cb) {
49
+ return this.request("QueryCrossVpcSubnetSupportForClientNode", req, cb);
50
+ }
51
+ async DescribeClusterClientToken(req, cb) {
52
+ return this.request("DescribeClusterClientToken", req, cb);
53
+ }
54
+ async CreateFileSystem(req, cb) {
55
+ return this.request("CreateFileSystem", req, cb);
56
+ }
57
+ async ExpandCapacity(req, cb) {
58
+ return this.request("ExpandCapacity", req, cb);
59
+ }
60
+ async DescribeClusterRoleToken(req, cb) {
61
+ return this.request("DescribeClusterRoleToken", req, cb);
62
+ }
63
+ async CreateDataRepositoryTask(req, cb) {
64
+ return this.request("CreateDataRepositoryTask", req, cb);
65
+ }
66
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./goosefs_models";
2
+ import { Client } from "./goosefs_client";
3
+ export const v20220519 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { goosefs } from "./goosefs";
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-goosefs",
3
- "version": "4.0.1050",
3
+ "version": "4.1.1",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
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",
@@ -43,10 +52,12 @@
43
52
  "@typescript-eslint/parser": "^2.34.0",
44
53
  "babel-eslint": "^10.0.2",
45
54
  "chai": "^4.2.0",
55
+ "concurrently": "^6.5.1",
46
56
  "eslint": "^6.8.0",
47
57
  "eslint-plugin-react": "^7.17.0",
48
- "mocha": "^8.1.1",
58
+ "mocha": "^8.4.0",
49
59
  "prettier": "^2.3.0",
60
+ "rimraf": "^5.0.10",
50
61
  "ts-node": "^8.10.2",
51
62
  "typescript": "^3.9.7"
52
63
  }
@@ -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
  * goosefs client
24
25
  * @class
@@ -682,7 +682,6 @@ export interface RoleToken {
682
682
  RoleName?: string;
683
683
  /**
684
684
  * 用于goosefs client/sdk等
685
- 注意:此字段可能返回 null,表示取不到有效值。
686
685
  */
687
686
  Token?: string;
688
687
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20220519 = void 0;
4
- const Models = require("./goosefs_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./goosefs_models"));
5
6
  const goosefs_client_1 = require("./goosefs_client");
6
7
  exports.v20220519 = {
7
8
  Client: goosefs_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 { v20220519 } from "./v20220519"
2
-
3
- export const goosefs = {
4
- v20220519: v20220519,
5
- }
@@ -1,283 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- CreateFileSystemResponse,
21
- GooseFSxAttribute,
22
- ClientNodeAttribute,
23
- ModifyDataRepositoryBandwidthResponse,
24
- DescribeClusterRoleTokenRequest,
25
- DescribeFileSystemsResponse,
26
- ExpandCapacityResponse,
27
- FSAttribute,
28
- DescribeClusterRoleTokenResponse,
29
- BatchDeleteClientNodesResponse,
30
- QueryCrossVpcSubnetSupportForClientNodeRequest,
31
- ChargeAttribute,
32
- DeleteCrossVpcSubnetSupportForClientNodeRequest,
33
- AttachFileSystemBucketRequest,
34
- DeleteFileSystemRequest,
35
- DescribeFileSystemBucketsRequest,
36
- BatchAddClientNodesResponse,
37
- AttachFileSystemBucketResponse,
38
- GooseFSxBuildElement,
39
- CreateFileSystemRequest,
40
- ClusterRole,
41
- DeleteFileSystemResponse,
42
- ExpandCapacityRequest,
43
- DetachFileSystemBucketRequest,
44
- ClientToken,
45
- QueryDataRepositoryBandwidthResponse,
46
- QueryDataRepositoryBandwidthRequest,
47
- ClientClusterManagerNodeInfo,
48
- LinuxNodeAttribute,
49
- BatchDeleteClientNodesRequest,
50
- SubnetInfo,
51
- QueryCrossVpcSubnetSupportForClientNodeResponse,
52
- DescribeFileSystemsRequest,
53
- DescribeClusterClientTokenRequest,
54
- AddCrossVpcSubnetSupportForClientNodeResponse,
55
- CreateDataRepositoryTaskResponse,
56
- DescribeClusterRolesResponse,
57
- DeleteCrossVpcSubnetSupportForClientNodeResponse,
58
- DescribeDataRepositoryTaskStatusResponse,
59
- BatchAddClientNodesRequest,
60
- AddCrossVpcSubnetSupportForClientNodeRequest,
61
- DetachFileSystemBucketResponse,
62
- RoleToken,
63
- DescribeFileSystemBucketsResponse,
64
- DescribeClientNodesRequest,
65
- Tag,
66
- ModifyDataRepositoryBandwidthRequest,
67
- DescribeClusterRolesRequest,
68
- CreateDataRepositoryTaskRequest,
69
- DescribeClientNodesResponse,
70
- DescribeDataRepositoryTaskStatusRequest,
71
- DescribeClusterClientTokenResponse,
72
- MappedBucket,
73
- } from "./goosefs_models"
74
-
75
- /**
76
- * goosefs client
77
- * @class
78
- */
79
- export class Client extends TencentCloudCommon.AbstractClient {
80
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
81
- super("goosefs.tencentcloudapi.com", "2022-05-19", clientConfig)
82
- }
83
-
84
- /**
85
- * 查询GooseFS集群角色
86
- */
87
- async DescribeClusterRoles(
88
- req: DescribeClusterRolesRequest,
89
- cb?: (error: string, rep: DescribeClusterRolesResponse) => void
90
- ): Promise<DescribeClusterRolesResponse> {
91
- return this.request("DescribeClusterRoles", req, cb)
92
- }
93
-
94
- /**
95
- * 删除文件系统
96
- */
97
- async DeleteFileSystem(
98
- req: DeleteFileSystemRequest,
99
- cb?: (error: string, rep: DeleteFileSystemResponse) => void
100
- ): Promise<DeleteFileSystemResponse> {
101
- return this.request("DeleteFileSystem", req, cb)
102
- }
103
-
104
- /**
105
- * 为客户端节点添加跨vpc或子网访问能力
106
- */
107
- async AddCrossVpcSubnetSupportForClientNode(
108
- req: AddCrossVpcSubnetSupportForClientNodeRequest,
109
- cb?: (error: string, rep: AddCrossVpcSubnetSupportForClientNodeResponse) => void
110
- ): Promise<AddCrossVpcSubnetSupportForClientNodeResponse> {
111
- return this.request("AddCrossVpcSubnetSupportForClientNode", req, cb)
112
- }
113
-
114
- /**
115
- * 批量添加客户端节点
116
- */
117
- async BatchAddClientNodes(
118
- req: BatchAddClientNodesRequest,
119
- cb?: (error: string, rep: BatchAddClientNodesResponse) => void
120
- ): Promise<BatchAddClientNodesResponse> {
121
- return this.request("BatchAddClientNodes", req, cb)
122
- }
123
-
124
- /**
125
- * 解绑文件系统与Bucket的映射
126
- */
127
- async DetachFileSystemBucket(
128
- req: DetachFileSystemBucketRequest,
129
- cb?: (error: string, rep: DetachFileSystemBucketResponse) => void
130
- ): Promise<DetachFileSystemBucketResponse> {
131
- return this.request("DetachFileSystemBucket", req, cb)
132
- }
133
-
134
- /**
135
- * 列出所有的文件系统
136
- */
137
- async DescribeFileSystems(
138
- req: DescribeFileSystemsRequest,
139
- cb?: (error: string, rep: DescribeFileSystemsResponse) => void
140
- ): Promise<DescribeFileSystemsResponse> {
141
- return this.request("DescribeFileSystems", req, cb)
142
- }
143
-
144
- /**
145
- * 查询数据流动带宽
146
- */
147
- async QueryDataRepositoryBandwidth(
148
- req: QueryDataRepositoryBandwidthRequest,
149
- cb?: (error: string, rep: QueryDataRepositoryBandwidthResponse) => void
150
- ): Promise<QueryDataRepositoryBandwidthResponse> {
151
- return this.request("QueryDataRepositoryBandwidth", req, cb)
152
- }
153
-
154
- /**
155
- * 罗列文件系统关联的Bucket映射
156
- */
157
- async DescribeFileSystemBuckets(
158
- req: DescribeFileSystemBucketsRequest,
159
- cb?: (error: string, rep: DescribeFileSystemBucketsResponse) => void
160
- ): Promise<DescribeFileSystemBucketsResponse> {
161
- return this.request("DescribeFileSystemBuckets", req, cb)
162
- }
163
-
164
- /**
165
- * 列出集群中所有的客户端节点
166
- */
167
- async DescribeClientNodes(
168
- req: DescribeClientNodesRequest,
169
- cb?: (error: string, rep: DescribeClientNodesResponse) => void
170
- ): Promise<DescribeClientNodesResponse> {
171
- return this.request("DescribeClientNodes", req, cb)
172
- }
173
-
174
- /**
175
- * 获取数据流通任务实时状态,用作客户端控制
176
- */
177
- async DescribeDataRepositoryTaskStatus(
178
- req: DescribeDataRepositoryTaskStatusRequest,
179
- cb?: (error: string, rep: DescribeDataRepositoryTaskStatusResponse) => void
180
- ): Promise<DescribeDataRepositoryTaskStatusResponse> {
181
- return this.request("DescribeDataRepositoryTaskStatus", req, cb)
182
- }
183
-
184
- /**
185
- * 为客户端节点删除跨vpc子网访问能力
186
- */
187
- async DeleteCrossVpcSubnetSupportForClientNode(
188
- req: DeleteCrossVpcSubnetSupportForClientNodeRequest,
189
- cb?: (error: string, rep: DeleteCrossVpcSubnetSupportForClientNodeResponse) => void
190
- ): Promise<DeleteCrossVpcSubnetSupportForClientNodeResponse> {
191
- return this.request("DeleteCrossVpcSubnetSupportForClientNode", req, cb)
192
- }
193
-
194
- /**
195
- * 修改数据流动带宽
196
- */
197
- async ModifyDataRepositoryBandwidth(
198
- req: ModifyDataRepositoryBandwidthRequest,
199
- cb?: (error: string, rep: ModifyDataRepositoryBandwidthResponse) => void
200
- ): Promise<ModifyDataRepositoryBandwidthResponse> {
201
- return this.request("ModifyDataRepositoryBandwidth", req, cb)
202
- }
203
-
204
- /**
205
- * 为文件系统关联Bucket
206
- */
207
- async AttachFileSystemBucket(
208
- req: AttachFileSystemBucketRequest,
209
- cb?: (error: string, rep: AttachFileSystemBucketResponse) => void
210
- ): Promise<AttachFileSystemBucketResponse> {
211
- return this.request("AttachFileSystemBucket", req, cb)
212
- }
213
-
214
- /**
215
- * 批量删除客户端节点
216
- */
217
- async BatchDeleteClientNodes(
218
- req: BatchDeleteClientNodesRequest,
219
- cb?: (error: string, rep: BatchDeleteClientNodesResponse) => void
220
- ): Promise<BatchDeleteClientNodesResponse> {
221
- return this.request("BatchDeleteClientNodes", req, cb)
222
- }
223
-
224
- /**
225
- * 查询客户端节点跨vpc子网访问能力
226
- */
227
- async QueryCrossVpcSubnetSupportForClientNode(
228
- req: QueryCrossVpcSubnetSupportForClientNodeRequest,
229
- cb?: (error: string, rep: QueryCrossVpcSubnetSupportForClientNodeResponse) => void
230
- ): Promise<QueryCrossVpcSubnetSupportForClientNodeResponse> {
231
- return this.request("QueryCrossVpcSubnetSupportForClientNode", req, cb)
232
- }
233
-
234
- /**
235
- * 查询GooseFS集群客户端凭证
236
- */
237
- async DescribeClusterClientToken(
238
- req: DescribeClusterClientTokenRequest,
239
- cb?: (error: string, rep: DescribeClusterClientTokenResponse) => void
240
- ): Promise<DescribeClusterClientTokenResponse> {
241
- return this.request("DescribeClusterClientToken", req, cb)
242
- }
243
-
244
- /**
245
- * 创建文件系统
246
- */
247
- async CreateFileSystem(
248
- req: CreateFileSystemRequest,
249
- cb?: (error: string, rep: CreateFileSystemResponse) => void
250
- ): Promise<CreateFileSystemResponse> {
251
- return this.request("CreateFileSystem", req, cb)
252
- }
253
-
254
- /**
255
- * 扩展文件系统容量
256
- */
257
- async ExpandCapacity(
258
- req: ExpandCapacityRequest,
259
- cb?: (error: string, rep: ExpandCapacityResponse) => void
260
- ): Promise<ExpandCapacityResponse> {
261
- return this.request("ExpandCapacity", req, cb)
262
- }
263
-
264
- /**
265
- * 查询GooseFS集群角色凭证
266
- */
267
- async DescribeClusterRoleToken(
268
- req: DescribeClusterRoleTokenRequest,
269
- cb?: (error: string, rep: DescribeClusterRoleTokenResponse) => void
270
- ): Promise<DescribeClusterRoleTokenResponse> {
271
- return this.request("DescribeClusterRoleToken", req, cb)
272
- }
273
-
274
- /**
275
- * 创建数据流通任务,包括从将文件系统的数据上传到存储桶下, 以及从存储桶下载到文件系统里。
276
- */
277
- async CreateDataRepositoryTask(
278
- req: CreateDataRepositoryTaskRequest,
279
- cb?: (error: string, rep: CreateDataRepositoryTaskResponse) => void
280
- ): Promise<CreateDataRepositoryTaskResponse> {
281
- return this.request("CreateDataRepositoryTask", req, cb)
282
- }
283
- }