tencentcloud-sdk-nodejs-gaap 4.0.1009 → 4.1.15
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/gaap/index.js +4 -0
- package/es/services/gaap/v20180529/gaap_client.js +321 -0
- package/es/services/gaap/v20180529/gaap_models.js +0 -0
- package/es/services/gaap/v20180529/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +26 -8
- package/tencentcloud/services/gaap/v20180529/gaap_client.js +2 -1
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +8 -53
- package/tencentcloud/services/gaap/v20180529/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/gaap/index.ts +0 -5
- package/src/services/gaap/v20180529/gaap_client.ts +0 -1349
- package/src/services/gaap/v20180529/gaap_models.ts +0 -6072
- package/src/services/gaap/v20180529/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,321 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("gaap.tencentcloudapi.com", "2018-05-29", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async ModifyGlobalDomainDns(req, cb) {
|
|
7
|
+
return this.request("ModifyGlobalDomainDns", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DescribeCertificates(req, cb) {
|
|
10
|
+
return this.request("DescribeCertificates", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async CreateSecurityRules(req, cb) {
|
|
13
|
+
return this.request("CreateSecurityRules", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DescribeHTTPSListeners(req, cb) {
|
|
16
|
+
return this.request("DescribeHTTPSListeners", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DeleteSecurityPolicy(req, cb) {
|
|
19
|
+
return this.request("DeleteSecurityPolicy", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeBlackHeader(req, cb) {
|
|
22
|
+
return this.request("DescribeBlackHeader", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async DescribeCountryAreaMapping(req, cb) {
|
|
25
|
+
return this.request("DescribeCountryAreaMapping", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async ModifyHTTPListenerAttribute(req, cb) {
|
|
28
|
+
return this.request("ModifyHTTPListenerAttribute", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async ModifyCertificateAttributes(req, cb) {
|
|
31
|
+
return this.request("ModifyCertificateAttributes", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeGlobalDomainDns(req, cb) {
|
|
34
|
+
return this.request("DescribeGlobalDomainDns", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async CreateGlobalDomain(req, cb) {
|
|
37
|
+
return this.request("CreateGlobalDomain", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async CreateCustomHeader(req, cb) {
|
|
40
|
+
return this.request("CreateCustomHeader", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeCrossBorderProxies(req, cb) {
|
|
43
|
+
return this.request("DescribeCrossBorderProxies", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeGroupAndStatisticsProxy(req, cb) {
|
|
46
|
+
return this.request("DescribeGroupAndStatisticsProxy", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async CloseSecurityPolicy(req, cb) {
|
|
49
|
+
return this.request("CloseSecurityPolicy", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async CreateProxyGroupDomain(req, cb) {
|
|
52
|
+
return this.request("CreateProxyGroupDomain", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async SetTlsVersion(req, cb) {
|
|
55
|
+
return this.request("SetTlsVersion", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async CreateUDPListeners(req, cb) {
|
|
58
|
+
return this.request("CreateUDPListeners", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async DescribeProxyDetail(req, cb) {
|
|
61
|
+
return this.request("DescribeProxyDetail", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DescribeRuleRealServers(req, cb) {
|
|
64
|
+
return this.request("DescribeRuleRealServers", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async DescribeUDPListeners(req, cb) {
|
|
67
|
+
return this.request("DescribeUDPListeners", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async DescribeDestRegions(req, cb) {
|
|
70
|
+
return this.request("DescribeDestRegions", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async DescribeProxyGroupList(req, cb) {
|
|
73
|
+
return this.request("DescribeProxyGroupList", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async OpenSecurityPolicy(req, cb) {
|
|
76
|
+
return this.request("OpenSecurityPolicy", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DeleteDomainErrorPageInfo(req, cb) {
|
|
79
|
+
return this.request("DeleteDomainErrorPageInfo", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async ModifyCertificate(req, cb) {
|
|
82
|
+
return this.request("ModifyCertificate", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async CreateDomainErrorPageInfo(req, cb) {
|
|
85
|
+
return this.request("CreateDomainErrorPageInfo", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeProxyGroupStatistics(req, cb) {
|
|
88
|
+
return this.request("DescribeProxyGroupStatistics", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async ModifyRealServerName(req, cb) {
|
|
91
|
+
return this.request("ModifyRealServerName", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async BindListenerRealServers(req, cb) {
|
|
94
|
+
return this.request("BindListenerRealServers", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async DeleteSecurityRules(req, cb) {
|
|
97
|
+
return this.request("DeleteSecurityRules", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DeleteCertificate(req, cb) {
|
|
100
|
+
return this.request("DeleteCertificate", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async CreateFirstLinkSession(req, cb) {
|
|
103
|
+
return this.request("CreateFirstLinkSession", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DescribeAccessRegionsByDestRegion(req, cb) {
|
|
106
|
+
return this.request("DescribeAccessRegionsByDestRegion", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async ModifyGroupDomainConfig(req, cb) {
|
|
109
|
+
return this.request("ModifyGroupDomainConfig", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async DescribeTCPListeners(req, cb) {
|
|
112
|
+
return this.request("DescribeTCPListeners", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async DescribeRealServers(req, cb) {
|
|
115
|
+
return this.request("DescribeRealServers", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async DescribeProxyAndStatisticsListeners(req, cb) {
|
|
118
|
+
return this.request("DescribeProxyAndStatisticsListeners", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async ModifyGlobalDomainAttribute(req, cb) {
|
|
121
|
+
return this.request("ModifyGlobalDomainAttribute", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async DescribeRulesByRuleIds(req, cb) {
|
|
124
|
+
return this.request("DescribeRulesByRuleIds", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async ModifyProxyConfiguration(req, cb) {
|
|
127
|
+
return this.request("ModifyProxyConfiguration", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async CloseProxyGroup(req, cb) {
|
|
130
|
+
return this.request("CloseProxyGroup", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async ModifyTCPListenerAttribute(req, cb) {
|
|
133
|
+
return this.request("ModifyTCPListenerAttribute", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async CreateHTTPListener(req, cb) {
|
|
136
|
+
return this.request("CreateHTTPListener", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DescribeRealServerStatistics(req, cb) {
|
|
139
|
+
return this.request("DescribeRealServerStatistics", req, cb);
|
|
140
|
+
}
|
|
141
|
+
async DescribeHTTPListeners(req, cb) {
|
|
142
|
+
return this.request("DescribeHTTPListeners", req, cb);
|
|
143
|
+
}
|
|
144
|
+
async CreateProxyGroup(req, cb) {
|
|
145
|
+
return this.request("CreateProxyGroup", req, cb);
|
|
146
|
+
}
|
|
147
|
+
async CreateCertificate(req, cb) {
|
|
148
|
+
return this.request("CreateCertificate", req, cb);
|
|
149
|
+
}
|
|
150
|
+
async DescribeCustomHeader(req, cb) {
|
|
151
|
+
return this.request("DescribeCustomHeader", req, cb);
|
|
152
|
+
}
|
|
153
|
+
async DeleteGlobalDomainDns(req, cb) {
|
|
154
|
+
return this.request("DeleteGlobalDomainDns", req, cb);
|
|
155
|
+
}
|
|
156
|
+
async DestroyProxies(req, cb) {
|
|
157
|
+
return this.request("DestroyProxies", req, cb);
|
|
158
|
+
}
|
|
159
|
+
async CreateProxy(req, cb) {
|
|
160
|
+
return this.request("CreateProxy", req, cb);
|
|
161
|
+
}
|
|
162
|
+
async DeleteDomain(req, cb) {
|
|
163
|
+
return this.request("DeleteDomain", req, cb);
|
|
164
|
+
}
|
|
165
|
+
async DescribeSecurityPolicyDetail(req, cb) {
|
|
166
|
+
return this.request("DescribeSecurityPolicyDetail", req, cb);
|
|
167
|
+
}
|
|
168
|
+
async RemoveRealServers(req, cb) {
|
|
169
|
+
return this.request("RemoveRealServers", req, cb);
|
|
170
|
+
}
|
|
171
|
+
async DeleteGlobalDomain(req, cb) {
|
|
172
|
+
return this.request("DeleteGlobalDomain", req, cb);
|
|
173
|
+
}
|
|
174
|
+
async DescribeSecurityRules(req, cb) {
|
|
175
|
+
return this.request("DescribeSecurityRules", req, cb);
|
|
176
|
+
}
|
|
177
|
+
async CreateSecurityPolicy(req, cb) {
|
|
178
|
+
return this.request("CreateSecurityPolicy", req, cb);
|
|
179
|
+
}
|
|
180
|
+
async DeleteRule(req, cb) {
|
|
181
|
+
return this.request("DeleteRule", req, cb);
|
|
182
|
+
}
|
|
183
|
+
async CreateRule(req, cb) {
|
|
184
|
+
return this.request("CreateRule", req, cb);
|
|
185
|
+
}
|
|
186
|
+
async ModifyDomain(req, cb) {
|
|
187
|
+
return this.request("ModifyDomain", req, cb);
|
|
188
|
+
}
|
|
189
|
+
async OpenProxies(req, cb) {
|
|
190
|
+
return this.request("OpenProxies", req, cb);
|
|
191
|
+
}
|
|
192
|
+
async ModifyUDPListenerAttribute(req, cb) {
|
|
193
|
+
return this.request("ModifyUDPListenerAttribute", req, cb);
|
|
194
|
+
}
|
|
195
|
+
async DescribeProxyGroupDetails(req, cb) {
|
|
196
|
+
return this.request("DescribeProxyGroupDetails", req, cb);
|
|
197
|
+
}
|
|
198
|
+
async DescribeProxies(req, cb) {
|
|
199
|
+
return this.request("DescribeProxies", req, cb);
|
|
200
|
+
}
|
|
201
|
+
async DeleteProxyGroup(req, cb) {
|
|
202
|
+
return this.request("DeleteProxyGroup", req, cb);
|
|
203
|
+
}
|
|
204
|
+
async ModifyProxiesProject(req, cb) {
|
|
205
|
+
return this.request("ModifyProxiesProject", req, cb);
|
|
206
|
+
}
|
|
207
|
+
async AddRealServers(req, cb) {
|
|
208
|
+
return this.request("AddRealServers", req, cb);
|
|
209
|
+
}
|
|
210
|
+
async CreateDomain(req, cb) {
|
|
211
|
+
return this.request("CreateDomain", req, cb);
|
|
212
|
+
}
|
|
213
|
+
async DescribeCertificateDetail(req, cb) {
|
|
214
|
+
return this.request("DescribeCertificateDetail", req, cb);
|
|
215
|
+
}
|
|
216
|
+
async DescribeFirstLinkSession(req, cb) {
|
|
217
|
+
return this.request("DescribeFirstLinkSession", req, cb);
|
|
218
|
+
}
|
|
219
|
+
async DescribeTaskStatus(req, cb) {
|
|
220
|
+
return this.request("DescribeTaskStatus", req, cb);
|
|
221
|
+
}
|
|
222
|
+
async DeleteFirstLinkSession(req, cb) {
|
|
223
|
+
return this.request("DeleteFirstLinkSession", req, cb);
|
|
224
|
+
}
|
|
225
|
+
async DisableGlobalDomain(req, cb) {
|
|
226
|
+
return this.request("DisableGlobalDomain", req, cb);
|
|
227
|
+
}
|
|
228
|
+
async DescribeRegionAndPrice(req, cb) {
|
|
229
|
+
return this.request("DescribeRegionAndPrice", req, cb);
|
|
230
|
+
}
|
|
231
|
+
async DescribeGlobalDomains(req, cb) {
|
|
232
|
+
return this.request("DescribeGlobalDomains", req, cb);
|
|
233
|
+
}
|
|
234
|
+
async DescribeRealServersStatus(req, cb) {
|
|
235
|
+
return this.request("DescribeRealServersStatus", req, cb);
|
|
236
|
+
}
|
|
237
|
+
async DescribeRules(req, cb) {
|
|
238
|
+
return this.request("DescribeRules", req, cb);
|
|
239
|
+
}
|
|
240
|
+
async EnableGlobalDomain(req, cb) {
|
|
241
|
+
return this.request("EnableGlobalDomain", req, cb);
|
|
242
|
+
}
|
|
243
|
+
async DescribeListenerRealServers(req, cb) {
|
|
244
|
+
return this.request("DescribeListenerRealServers", req, cb);
|
|
245
|
+
}
|
|
246
|
+
async SetAuthentication(req, cb) {
|
|
247
|
+
return this.request("SetAuthentication", req, cb);
|
|
248
|
+
}
|
|
249
|
+
async CreateHTTPSListener(req, cb) {
|
|
250
|
+
return this.request("CreateHTTPSListener", req, cb);
|
|
251
|
+
}
|
|
252
|
+
async CheckProxyCreate(req, cb) {
|
|
253
|
+
return this.request("CheckProxyCreate", req, cb);
|
|
254
|
+
}
|
|
255
|
+
async OpenProxyGroup(req, cb) {
|
|
256
|
+
return this.request("OpenProxyGroup", req, cb);
|
|
257
|
+
}
|
|
258
|
+
async DescribeAccessRegions(req, cb) {
|
|
259
|
+
return this.request("DescribeAccessRegions", req, cb);
|
|
260
|
+
}
|
|
261
|
+
async ModifyRuleAttribute(req, cb) {
|
|
262
|
+
return this.request("ModifyRuleAttribute", req, cb);
|
|
263
|
+
}
|
|
264
|
+
async DescribeGroupDomainConfig(req, cb) {
|
|
265
|
+
return this.request("DescribeGroupDomainConfig", req, cb);
|
|
266
|
+
}
|
|
267
|
+
async ModifyProxiesAttribute(req, cb) {
|
|
268
|
+
return this.request("ModifyProxiesAttribute", req, cb);
|
|
269
|
+
}
|
|
270
|
+
async ModifyHTTPSListenerAttribute(req, cb) {
|
|
271
|
+
return this.request("ModifyHTTPSListenerAttribute", req, cb);
|
|
272
|
+
}
|
|
273
|
+
async DescribeListenerStatistics(req, cb) {
|
|
274
|
+
return this.request("DescribeListenerStatistics", req, cb);
|
|
275
|
+
}
|
|
276
|
+
async DeleteListeners(req, cb) {
|
|
277
|
+
return this.request("DeleteListeners", req, cb);
|
|
278
|
+
}
|
|
279
|
+
async DescribeProxyStatistics(req, cb) {
|
|
280
|
+
return this.request("DescribeProxyStatistics", req, cb);
|
|
281
|
+
}
|
|
282
|
+
async DescribeDomainErrorPageInfo(req, cb) {
|
|
283
|
+
return this.request("DescribeDomainErrorPageInfo", req, cb);
|
|
284
|
+
}
|
|
285
|
+
async DescribeAuthSignature(req, cb) {
|
|
286
|
+
return this.request("DescribeAuthSignature", req, cb);
|
|
287
|
+
}
|
|
288
|
+
async BanAndRecoverProxy(req, cb) {
|
|
289
|
+
return this.request("BanAndRecoverProxy", req, cb);
|
|
290
|
+
}
|
|
291
|
+
async ModifyProxyGroupAttribute(req, cb) {
|
|
292
|
+
return this.request("ModifyProxyGroupAttribute", req, cb);
|
|
293
|
+
}
|
|
294
|
+
async InquiryPriceCreateProxy(req, cb) {
|
|
295
|
+
return this.request("InquiryPriceCreateProxy", req, cb);
|
|
296
|
+
}
|
|
297
|
+
async CreateGlobalDomainDns(req, cb) {
|
|
298
|
+
return this.request("CreateGlobalDomainDns", req, cb);
|
|
299
|
+
}
|
|
300
|
+
async ModifySecurityRule(req, cb) {
|
|
301
|
+
return this.request("ModifySecurityRule", req, cb);
|
|
302
|
+
}
|
|
303
|
+
async CloseProxies(req, cb) {
|
|
304
|
+
return this.request("CloseProxies", req, cb);
|
|
305
|
+
}
|
|
306
|
+
async DescribeDomainErrorPageInfoByIds(req, cb) {
|
|
307
|
+
return this.request("DescribeDomainErrorPageInfoByIds", req, cb);
|
|
308
|
+
}
|
|
309
|
+
async DescribeProxiesStatus(req, cb) {
|
|
310
|
+
return this.request("DescribeProxiesStatus", req, cb);
|
|
311
|
+
}
|
|
312
|
+
async CreateTCPListeners(req, cb) {
|
|
313
|
+
return this.request("CreateTCPListeners", req, cb);
|
|
314
|
+
}
|
|
315
|
+
async BindRuleRealServers(req, cb) {
|
|
316
|
+
return this.request("BindRuleRealServers", req, cb);
|
|
317
|
+
}
|
|
318
|
+
async DescribeResourcesByTag(req, cb) {
|
|
319
|
+
return this.request("DescribeResourcesByTag", req, cb);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gaap } from "./gaap";
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-gaap",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.15",
|
|
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
|
* gaap client
|
|
24
25
|
* @class
|