tencentcloud-sdk-nodejs-cfs 4.0.1016 → 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 +79 -30
- package/es/index.js +1 -0
- package/es/services/cfs/index.js +4 -0
- package/es/services/cfs/v20190719/cfs_client.js +138 -0
- package/es/services/cfs/v20190719/cfs_models.js +0 -0
- package/es/services/cfs/v20190719/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +26 -8
- package/tencentcloud/services/cfs/v20190719/cfs_client.js +2 -1
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +4 -0
- package/tencentcloud/services/cfs/v20190719/index.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/products.md +0 -263
- package/src/index.ts +0 -1
- package/src/services/cfs/index.ts +0 -5
- package/src/services/cfs/v20190719/cfs_client.ts +0 -587
- package/src/services/cfs/v20190719/cfs_models.ts +0 -2466
- package/src/services/cfs/v20190719/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -1,36 +1,88 @@
|
|
|
1
1
|
# 简介
|
|
2
2
|
|
|
3
|
-
欢迎使用腾讯云开发者工具套件(SDK),
|
|
4
|
-
为方便
|
|
3
|
+
欢迎使用腾讯云开发者工具套件(SDK),Node.js SDK 4.0 是云 API 3.0 平台的配套工具。
|
|
4
|
+
为方便 Node.js 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 Node.js 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 Node.js SDK 并开始调用。
|
|
5
5
|
|
|
6
6
|
# 依赖环境
|
|
7
7
|
|
|
8
|
-
1.
|
|
9
|
-
2.
|
|
10
|
-
3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为\*.tencentcloudapi.com,如 CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
|
|
8
|
+
1. Node.js 10.0.0 版本及以上。
|
|
9
|
+
2. 注意:部分产品需在 [腾讯云控制台](https://console.cloud.tencent.com/) 开通服务后才能使用。
|
|
11
10
|
|
|
12
11
|
# 获取安装
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
使用 SDK 需要 API 密钥,可前往 [腾讯云控制台 - 访问密钥](https://console.cloud.tencent.com/cam/capi) 页面申请,API 密钥包括 SecretID 和 SecretKey,密钥须严格保管,避免泄露。
|
|
15
14
|
|
|
16
|
-
## 通过
|
|
15
|
+
## 通过 npm 安装
|
|
17
16
|
|
|
18
|
-
通过 npm 获取安装是使用
|
|
17
|
+
通过 npm 获取安装是使用 Node.js SDK 的推荐方法,关于 npm 详细可参考 [NPM 官网](https://www.npmjs.com/) 。
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
### 安装指定产品 SDK(推荐)
|
|
20
|
+
|
|
21
|
+
安装 CVM SDK:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
npm install tencentcloud-sdk-nodejs-cvm --save
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
安装 VPC SDK:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
npm install tencentcloud-sdk-nodejs-vpc --save
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
具体产品的缩写表请参考 [products.md](./products.md) 中的包名字段。
|
|
34
|
+
|
|
35
|
+
安装指定产品 SDK 后,注意修改引入的包名:
|
|
36
|
+
|
|
37
|
+
```diff
|
|
38
|
+
- const tencentcloud = require("tencentcloud-sdk-nodejs")
|
|
39
|
+
+ const { cvm } = require("tencentcloud-sdk-nodejs-cvm")
|
|
40
|
+
|
|
41
|
+
- const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
42
|
+
+ const CvmClient = cvm.v20170312.Client
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 安装全产品 SDK
|
|
46
|
+
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
npm install tencentcloud-sdk-nodejs --save
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
24
60
|
|
|
25
61
|
## 通过源码包安装
|
|
26
62
|
|
|
27
|
-
1.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
63
|
+
1. clone 代码到本地:
|
|
64
|
+
```
|
|
65
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
67
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
68
|
+
```
|
|
69
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
70
|
+
```
|
|
71
|
+
npm install && npm run build
|
|
72
|
+
```
|
|
73
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
74
|
+
```
|
|
75
|
+
npm pack
|
|
76
|
+
```
|
|
77
|
+
4. 安装包到你的项目里:
|
|
78
|
+
```
|
|
79
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
80
|
+
```
|
|
31
81
|
|
|
32
82
|
# 示例
|
|
33
83
|
|
|
84
|
+
以云服务器产品查询可用区列表接口为例。
|
|
85
|
+
|
|
34
86
|
```js
|
|
35
87
|
const tencentcloud = require("tencentcloud-sdk-nodejs")
|
|
36
88
|
|
|
@@ -73,7 +125,7 @@ client.DescribeZones().then(
|
|
|
73
125
|
)
|
|
74
126
|
```
|
|
75
127
|
|
|
76
|
-
在支持
|
|
128
|
+
在支持 TypeScript 项目中,采用如下方式调用
|
|
77
129
|
|
|
78
130
|
```js
|
|
79
131
|
import * as tencentcloud from "tencentcloud-sdk-nodejs"
|
|
@@ -83,10 +135,11 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
83
135
|
// ...
|
|
84
136
|
```
|
|
85
137
|
|
|
86
|
-
|
|
138
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
|
|
87
139
|
|
|
88
140
|
## Common Client
|
|
89
|
-
|
|
141
|
+
|
|
142
|
+
从 4.0.714 版本开始,腾讯云 Node.js SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
|
|
90
143
|
|
|
91
144
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
92
145
|
|
|
@@ -94,19 +147,19 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
94
147
|
|
|
95
148
|
## 更多示例
|
|
96
149
|
|
|
97
|
-
|
|
150
|
+
请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
|
|
98
151
|
|
|
99
152
|
# 相关配置
|
|
100
153
|
|
|
101
154
|
## 代理
|
|
102
155
|
|
|
103
|
-
如果是有代理的环境下,需要配置代理,请在创建Client时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
156
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
104
157
|
|
|
105
158
|
# 凭证管理
|
|
106
159
|
|
|
107
160
|
除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
|
|
108
161
|
|
|
109
|
-
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
|
|
162
|
+
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js 示例代码](./examples/cvm_role.js) 或 [ts 示例代码](./examples/cvm_role.ts)
|
|
110
163
|
```javascript
|
|
111
164
|
// ...
|
|
112
165
|
const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
@@ -118,20 +171,16 @@ new XxxClient({
|
|
|
118
171
|
})
|
|
119
172
|
```
|
|
120
173
|
|
|
121
|
-
# 旧版 SDK
|
|
122
|
-
|
|
123
|
-
我们推荐使用新版 NODEJS SDK,如果一定要用旧版 SDK,请前往[github 仓库](https://github.com/CFETeam/qcloudapi-sdk)下载。
|
|
124
|
-
|
|
125
174
|
# 常见问题
|
|
126
|
-
- webpack打包出错/浏览器报错
|
|
175
|
+
- webpack 打包出错/浏览器报错
|
|
127
176
|
|
|
128
|
-
请**务必不要**将此
|
|
177
|
+
请**务必不要**将此 SDK 直接用于 Web 前端(包括小程序等),暴露密钥在这些环境非常不安全。
|
|
129
178
|
|
|
130
|
-
正确的做法是在自己的服务端引用此
|
|
179
|
+
正确的做法是在自己的服务端引用此 SDK,并保存好密钥,做好请求鉴权,前端再调用服务端执行业务流程。
|
|
131
180
|
|
|
132
181
|
- `The "original" argument must be of type Function.`
|
|
133
182
|
|
|
134
|
-
通常是因为
|
|
183
|
+
通常是因为 Node.js 版本低于 `v10` ,或处于非 Node.js 环境,请再次确认执行环境。
|
|
135
184
|
|
|
136
185
|
- 请求不通
|
|
137
186
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("cfs.tencentcloudapi.com", "2019-07-19", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeCfsRules(req, cb) {
|
|
7
|
+
return this.request("DescribeCfsRules", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async UpdateCfsFileSystemPGroup(req, cb) {
|
|
10
|
+
return this.request("UpdateCfsFileSystemPGroup", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async SignUpCfsService(req, cb) {
|
|
13
|
+
return this.request("SignUpCfsService", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DeleteCfsSnapshot(req, cb) {
|
|
16
|
+
return this.request("DeleteCfsSnapshot", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeCfsPGroups(req, cb) {
|
|
19
|
+
return this.request("DescribeCfsPGroups", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async UpdateFileSystemBandwidthLimit(req, cb) {
|
|
22
|
+
return this.request("UpdateFileSystemBandwidthLimit", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async SetUserQuota(req, cb) {
|
|
25
|
+
return this.request("SetUserQuota", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DescribeAutoSnapshotPolicies(req, cb) {
|
|
28
|
+
return this.request("DescribeAutoSnapshotPolicies", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DescribeMountTargets(req, cb) {
|
|
31
|
+
return this.request("DescribeMountTargets", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DeleteCfsPGroup(req, cb) {
|
|
34
|
+
return this.request("DeleteCfsPGroup", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async DescribeCfsFileSystemClients(req, cb) {
|
|
37
|
+
return this.request("DescribeCfsFileSystemClients", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async DescribeCfsServiceStatus(req, cb) {
|
|
40
|
+
return this.request("DescribeCfsServiceStatus", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async StopMigrationTask(req, cb) {
|
|
43
|
+
return this.request("StopMigrationTask", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeMigrationTasks(req, cb) {
|
|
46
|
+
return this.request("DescribeMigrationTasks", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async DescribeAvailableZoneInfo(req, cb) {
|
|
49
|
+
return this.request("DescribeAvailableZoneInfo", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async UpdateCfsFileSystemName(req, cb) {
|
|
52
|
+
return this.request("UpdateCfsFileSystemName", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async DeleteMigrationTask(req, cb) {
|
|
55
|
+
return this.request("DeleteMigrationTask", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async ScaleUpFileSystem(req, cb) {
|
|
58
|
+
return this.request("ScaleUpFileSystem", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async UpdateCfsFileSystemSizeLimit(req, cb) {
|
|
61
|
+
return this.request("UpdateCfsFileSystemSizeLimit", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async CreateAutoSnapshotPolicy(req, cb) {
|
|
64
|
+
return this.request("CreateAutoSnapshotPolicy", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async DeleteCfsFileSystem(req, cb) {
|
|
67
|
+
return this.request("DeleteCfsFileSystem", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async CreateCfsFileSystem(req, cb) {
|
|
70
|
+
return this.request("CreateCfsFileSystem", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async UpdateCfsSnapshotAttribute(req, cb) {
|
|
73
|
+
return this.request("UpdateCfsSnapshotAttribute", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async DescribeCfsSnapshotOverview(req, cb) {
|
|
76
|
+
return this.request("DescribeCfsSnapshotOverview", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DescribeUserQuota(req, cb) {
|
|
79
|
+
return this.request("DescribeUserQuota", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async ModifyFileSystemAutoScaleUpRule(req, cb) {
|
|
82
|
+
return this.request("ModifyFileSystemAutoScaleUpRule", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async UpdateAutoSnapshotPolicy(req, cb) {
|
|
85
|
+
return this.request("UpdateAutoSnapshotPolicy", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async UpdateCfsRule(req, cb) {
|
|
88
|
+
return this.request("UpdateCfsRule", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async DescribeCfsFileSystems(req, cb) {
|
|
91
|
+
return this.request("DescribeCfsFileSystems", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async DescribeCfsSnapshots(req, cb) {
|
|
94
|
+
return this.request("DescribeCfsSnapshots", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async BindAutoSnapshotPolicy(req, cb) {
|
|
97
|
+
return this.request("BindAutoSnapshotPolicy", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DeleteCfsRule(req, cb) {
|
|
100
|
+
return this.request("DeleteCfsRule", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async DescribeBucketList(req, cb) {
|
|
103
|
+
return this.request("DescribeBucketList", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async CreateMigrationTask(req, cb) {
|
|
106
|
+
return this.request("CreateMigrationTask", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async DeleteMountTarget(req, cb) {
|
|
109
|
+
return this.request("DeleteMountTarget", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async DeleteUserQuota(req, cb) {
|
|
112
|
+
return this.request("DeleteUserQuota", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async CreateCfsPGroup(req, cb) {
|
|
115
|
+
return this.request("CreateCfsPGroup", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async DeleteAutoSnapshotPolicy(req, cb) {
|
|
118
|
+
return this.request("DeleteAutoSnapshotPolicy", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async CreateCfsSnapshot(req, cb) {
|
|
121
|
+
return this.request("CreateCfsSnapshot", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async UnbindAutoSnapshotPolicy(req, cb) {
|
|
124
|
+
return this.request("UnbindAutoSnapshotPolicy", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async DescribeSnapshotOperationLogs(req, cb) {
|
|
127
|
+
return this.request("DescribeSnapshotOperationLogs", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async CreateCfsRule(req, cb) {
|
|
130
|
+
return this.request("CreateCfsRule", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async CreateAccessCert(req, cb) {
|
|
133
|
+
return this.request("CreateAccessCert", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async UpdateCfsPGroup(req, cb) {
|
|
136
|
+
return this.request("UpdateCfsPGroup", req, cb);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cfs } from "./cfs";
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-cfs",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.27",
|
|
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": "
|
|
9
|
-
"
|
|
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
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
14
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
+
"clean": "rimraf tencentcloud es"
|
|
10
16
|
},
|
|
11
17
|
"engines": {
|
|
12
18
|
"node": ">=10"
|
|
13
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"tencentcloud",
|
|
22
|
+
"es"
|
|
23
|
+
],
|
|
14
24
|
"keywords": [
|
|
15
25
|
"tencentcloudapi",
|
|
16
26
|
"tencentcloud",
|
|
@@ -22,7 +32,7 @@
|
|
|
22
32
|
"author": "tencentcloudapi",
|
|
23
33
|
"license": "Apache-2.0",
|
|
24
34
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
35
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
36
|
"tslib": "1.13.0"
|
|
27
37
|
},
|
|
28
38
|
"directories": {
|
|
@@ -35,14 +45,22 @@
|
|
|
35
45
|
},
|
|
36
46
|
"devDependencies": {
|
|
37
47
|
"@types/form-data": "^2.5.0",
|
|
48
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
49
|
"@types/node": "^14.0.26",
|
|
39
50
|
"@types/node-fetch": "^2.5.7",
|
|
51
|
+
"@types/uuid": "^9.0.8",
|
|
40
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
53
|
"@typescript-eslint/parser": "^2.34.0",
|
|
54
|
+
"babel-eslint": "^10.0.2",
|
|
42
55
|
"chai": "^4.2.0",
|
|
56
|
+
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
43
58
|
"eslint": "^6.8.0",
|
|
44
|
-
"
|
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
|
60
|
+
"mocha": "^8.4.0",
|
|
61
|
+
"prettier": "^2.3.0",
|
|
62
|
+
"rimraf": "^5.0.10",
|
|
45
63
|
"ts-node": "^8.10.2",
|
|
46
64
|
"typescript": "^3.9.7"
|
|
47
65
|
}
|
|
48
|
-
}
|
|
66
|
+
}
|
|
@@ -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
|
* cfs client
|
|
24
25
|
* @class
|
|
@@ -2097,6 +2097,10 @@ export interface CreateAccessCertResponse {
|
|
|
2097
2097
|
* SetUserQuota返回参数结构体
|
|
2098
2098
|
*/
|
|
2099
2099
|
export interface SetUserQuotaResponse {
|
|
2100
|
+
/**
|
|
2101
|
+
* UID/GID信息
|
|
2102
|
+
*/
|
|
2103
|
+
UserId?: string;
|
|
2100
2104
|
/**
|
|
2101
2105
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2102
2106
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20190719 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./cfs_models"));
|
|
5
6
|
const cfs_client_1 = require("./cfs_client");
|
|
6
7
|
exports.v20190719 = {
|
|
7
8
|
Client: cfs_client_1.Client,
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -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
|
-
}
|