tencentcloud-sdk-nodejs-cloudapp 4.0.900
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/LICENSE +201 -0
- package/README.md +154 -0
- package/index.d.ts +2 -0
- package/index.js +6 -0
- package/package.json +48 -0
- package/prettier.config.js +38 -0
- package/products.md +254 -0
- package/src/index.ts +1 -0
- package/src/services/cloudapp/index.ts +5 -0
- package/src/services/cloudapp/v20220530/cloudapp_client.ts +39 -0
- package/src/services/cloudapp/v20220530/cloudapp_models.ts +131 -0
- package/src/services/cloudapp/v20220530/index.ts +6 -0
- package/src/services/index.ts +1 -0
- package/tencentcloud/index.d.ts +1 -0
- package/tencentcloud/index.js +4 -0
- package/tencentcloud/services/cloudapp/index.d.ts +6 -0
- package/tencentcloud/services/cloudapp/index.js +7 -0
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.d.ts +13 -0
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.js +37 -0
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.d.ts +111 -0
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.js +18 -0
- package/tencentcloud/services/cloudapp/v20220530/index.d.ts +6 -0
- package/tencentcloud/services/cloudapp/v20220530/index.js +9 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +4 -0
- package/tsconfig.json +33 -0
- package/typings/index.d.ts +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# 简介
|
|
2
|
+
|
|
3
|
+
欢迎使用腾讯云开发者工具套件(SDK),NODEJS SDK 4.0 是云 API 3.0 平台的配套工具。目前已经支持 cvm、vpc、cbs 等产品,后续所有的云服务产品都会接入进来。新版 SDK 实现了统一化,具有各个语言版本的 SDK 使用方法相同,接口调用方式相同,统一的错误码和返回包格式这些优点。
|
|
4
|
+
为方便 NODEJS 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 NODEJS 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 NODEJS SDK 并开始调用。
|
|
5
|
+
|
|
6
|
+
# 依赖环境
|
|
7
|
+
|
|
8
|
+
1. NODEJS 10.0.0 版本及以上
|
|
9
|
+
2. 从腾讯云控制台 开通相应产品
|
|
10
|
+
3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为\*.tencentcloudapi.com,如 CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
|
|
11
|
+
|
|
12
|
+
# 获取安装
|
|
13
|
+
|
|
14
|
+
安装 NODEJS SDK 前,先获取安全凭证。在第一次使用云 API 之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID 和 SecretKey, SecretID 是用于标识 API 调用者的身份,SecretKey 是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretKey 必须严格保管,避免泄露。
|
|
15
|
+
|
|
16
|
+
## 通过 Npm 安装
|
|
17
|
+
|
|
18
|
+
通过 npm 获取安装是使用 NODEJS SDK 的推荐方法,npm 是 NODEJS 的包管理工具。关于 npm 详细可参考[ npm 官网](https://www.npmjs.com/) 。
|
|
19
|
+
|
|
20
|
+
1. 执行以下安装命令:
|
|
21
|
+
> npm install tencentcloud-sdk-nodejs --save
|
|
22
|
+
2. 在您的代码中引用对应模块代码,可参考示例。
|
|
23
|
+
3. 如上引用方式会将腾讯云所有产品sdk下载到本地,可以将tencentcloud-sdk-nodejs换成tencentcloud-sdk-nodejs-cvm/cbs/vpc等,即可引用特定产品的sdk,代码中可将require("tencentcloud-sdk-nodejs")改为require("tencentcloud-sdk-nodejs-cvm/cbs/vpc"),其余不变,可参考示例,可大大节省存储空间。
|
|
24
|
+
|
|
25
|
+
## 通过源码包安装
|
|
26
|
+
|
|
27
|
+
1. 前往 [Github 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
|
|
28
|
+
2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
|
|
29
|
+
3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
|
|
30
|
+
4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入sdk,具体可参考示例。
|
|
31
|
+
|
|
32
|
+
# 示例
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
const tencentcloud = require("tencentcloud-sdk-nodejs")
|
|
36
|
+
|
|
37
|
+
// 导入对应产品模块的client models。
|
|
38
|
+
const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
39
|
+
|
|
40
|
+
// 实例化要请求产品(以cvm为例)的client对象
|
|
41
|
+
const client = new CvmClient({
|
|
42
|
+
// 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中,请参考本文凭证管理章节。
|
|
43
|
+
// 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
|
|
44
|
+
credential: {
|
|
45
|
+
secretId: process.env.TENCENTCLOUD_SECRET_ID,
|
|
46
|
+
secretKey: process.env.TENCENTCLOUD_SECRET_KEY,
|
|
47
|
+
},
|
|
48
|
+
// 产品地域
|
|
49
|
+
region: "ap-shanghai",
|
|
50
|
+
// 可选配置实例
|
|
51
|
+
profile: {
|
|
52
|
+
signMethod: "TC3-HMAC-SHA256", // 签名方法
|
|
53
|
+
httpProfile: {
|
|
54
|
+
reqMethod: "POST", // 请求方法
|
|
55
|
+
reqTimeout: 30, // 请求超时时间,默认60s
|
|
56
|
+
headers: {
|
|
57
|
+
// 自定义 header
|
|
58
|
+
},
|
|
59
|
+
// proxy: "http://127.0.0.1:8899" // http请求代理
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
})
|
|
63
|
+
// 通过client对象调用想要访问的接口(Action),需要传入请求对象(Params)以及响应回调函数
|
|
64
|
+
// 即:client.Action(Params).then(res => console.log(res), err => console.error(err))
|
|
65
|
+
// 如:查询云服务器可用区列表
|
|
66
|
+
client.DescribeZones().then(
|
|
67
|
+
(data) => {
|
|
68
|
+
console.log(data)
|
|
69
|
+
},
|
|
70
|
+
(err) => {
|
|
71
|
+
console.error("error", err)
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
在支持 typescript 项目中,采用如下方式调用
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
import * as tencentcloud from "tencentcloud-sdk-nodejs"
|
|
80
|
+
|
|
81
|
+
const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
82
|
+
|
|
83
|
+
// ...
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
实例化`Client` 的入参支持 `clientConfig` 数据结构和说明 详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)
|
|
87
|
+
|
|
88
|
+
## Common Client
|
|
89
|
+
从 4.0.714 版本开始腾讯云 NODEJS SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
|
|
90
|
+
|
|
91
|
+
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
92
|
+
|
|
93
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples/common)
|
|
94
|
+
|
|
95
|
+
## 更多示例
|
|
96
|
+
|
|
97
|
+
更丰富的使用 demo 请在 examples 目录中寻找。
|
|
98
|
+
|
|
99
|
+
# 相关配置
|
|
100
|
+
|
|
101
|
+
## 代理
|
|
102
|
+
|
|
103
|
+
如果是有代理的环境下,需要配置代理,请在创建Client时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
104
|
+
|
|
105
|
+
# 凭证管理
|
|
106
|
+
|
|
107
|
+
除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
|
|
108
|
+
|
|
109
|
+
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
|
|
110
|
+
```javascript
|
|
111
|
+
// ...
|
|
112
|
+
const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
113
|
+
|
|
114
|
+
new XxxClient({
|
|
115
|
+
// ...
|
|
116
|
+
credential: new CvmRoleCredential(),
|
|
117
|
+
// ...
|
|
118
|
+
})
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
# 旧版 SDK
|
|
122
|
+
|
|
123
|
+
我们推荐使用新版 NODEJS SDK,如果一定要用旧版 SDK,请前往[github 仓库](https://github.com/CFETeam/qcloudapi-sdk)下载。
|
|
124
|
+
|
|
125
|
+
# 常见问题
|
|
126
|
+
- webpack打包出错/浏览器报错
|
|
127
|
+
|
|
128
|
+
请**务必不要**将此sdk直接用于web前端(包括小程序等),暴露密钥在这些环境非常不安全。
|
|
129
|
+
|
|
130
|
+
正确的做法是在自己的服务端引用此sdk,并保存好密钥,做好请求鉴权;前端再调用服务端执行业务流程。
|
|
131
|
+
|
|
132
|
+
- `The "original" argument must be of type Function.`
|
|
133
|
+
|
|
134
|
+
通常是因为nodejs版本低于 `v10` ,或处于非node环境,请再次确认执行环境。
|
|
135
|
+
|
|
136
|
+
- 请求不通
|
|
137
|
+
|
|
138
|
+
设置环境变量 `NODE_DEBUG=http` 来开启请求日志输出来定位问题,例如:
|
|
139
|
+
```sh
|
|
140
|
+
# MacOS
|
|
141
|
+
NODE_DEBUG=http node app.js
|
|
142
|
+
# windows cmd
|
|
143
|
+
set NODE_DEBUG=http & node app.js
|
|
144
|
+
# windows powershell
|
|
145
|
+
$env:NODE_DEBUG='http' ; node app.js
|
|
146
|
+
```
|
|
147
|
+
如需要配置代理,请查阅 [代理](#代理),或设置环境变量 `http_proxy`,例如:
|
|
148
|
+
```sh
|
|
149
|
+
# MacOS
|
|
150
|
+
http_proxy=http://代理地址:代理端口 node app.js
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
- 整数类型值超出 JavaScript 最大安全整数
|
|
154
|
+
使用新的数据类型 `BigInt`
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tencentcloud-sdk-nodejs-cloudapp",
|
|
3
|
+
"version": "4.0.900",
|
|
4
|
+
"description": "Tencent Cloud API NODEJS SDK",
|
|
5
|
+
"main": "tencentcloud/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha -t 10000",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"tencentcloudapi",
|
|
16
|
+
"tencentcloud",
|
|
17
|
+
"qcloud",
|
|
18
|
+
"sdk",
|
|
19
|
+
"js",
|
|
20
|
+
"nodejs"
|
|
21
|
+
],
|
|
22
|
+
"author": "tencentcloudapi",
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tencentcloud-sdk-nodejs-common": "^4.0.488",
|
|
26
|
+
"tslib": "1.13.0"
|
|
27
|
+
},
|
|
28
|
+
"directories": {
|
|
29
|
+
"example": "examples",
|
|
30
|
+
"lib": "lib"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/form-data": "^2.5.0",
|
|
38
|
+
"@types/node": "^14.0.26",
|
|
39
|
+
"@types/node-fetch": "^2.5.7",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
|
+
"@typescript-eslint/parser": "^2.34.0",
|
|
42
|
+
"chai": "^4.2.0",
|
|
43
|
+
"eslint": "^6.8.0",
|
|
44
|
+
"mocha": "^8.1.1",
|
|
45
|
+
"ts-node": "^8.10.2",
|
|
46
|
+
"typescript": "^3.9.7"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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/products.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
| 包名 | 产品中文名 | 更新时间 |
|
|
2
|
+
|-|-|-|
|
|
3
|
+
| aa | [活动防刷](https://cloud.tencent.com/document/product/1189) | 2023-05-18 01:01:13 |
|
|
4
|
+
| aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
|
|
5
|
+
| acp | [应用合规平台](https://cloud.tencent.com/document/product/1553) | 2024-03-20 01:07:29 |
|
|
6
|
+
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 |
|
|
7
|
+
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-05-31 01:07:20 |
|
|
8
|
+
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-05-31 01:07:25 |
|
|
9
|
+
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-07-11 01:07:23 |
|
|
10
|
+
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
|
11
|
+
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-04-22 01:07:21 |
|
|
12
|
+
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
|
13
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2024-06-04 01:07:52 |
|
|
14
|
+
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
15
|
+
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
|
+
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
17
|
+
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-06-17 01:08:48 |
|
|
18
|
+
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-06-26 01:09:03 |
|
|
19
|
+
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2024-05-17 01:06:16 |
|
|
20
|
+
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-07-16 01:08:08 |
|
|
21
|
+
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
|
22
|
+
| ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2024-04-22 01:08:02 |
|
|
23
|
+
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2024-06-25 01:07:59 |
|
|
24
|
+
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2024-03-20 01:08:23 |
|
|
25
|
+
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2024-05-31 01:10:46 |
|
|
26
|
+
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2024-07-19 01:11:48 |
|
|
27
|
+
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
28
|
+
| bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2024-03-20 01:08:40 |
|
|
29
|
+
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2024-04-24 01:05:22 |
|
|
30
|
+
| bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2024-03-20 01:08:53 |
|
|
31
|
+
| bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2024-03-20 01:08:56 |
|
|
32
|
+
| bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2024-03-20 01:09:02 |
|
|
33
|
+
| bpaas | [商业流程服务](https://cloud.tencent.com/document/product/1083) | 2024-07-05 01:04:07 |
|
|
34
|
+
| bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2024-06-19 01:13:52 |
|
|
35
|
+
| bsca | [二进制软件成分分析](https://cloud.tencent.com/document/product/1483) | 2024-04-16 01:05:23 |
|
|
36
|
+
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2024-03-20 01:09:12 |
|
|
37
|
+
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2024-07-12 01:09:00 |
|
|
38
|
+
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2024-06-19 01:14:46 |
|
|
39
|
+
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2024-06-19 01:14:59 |
|
|
40
|
+
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2024-06-14 01:17:35 |
|
|
41
|
+
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2024-07-16 01:09:24 |
|
|
42
|
+
| ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2024-07-19 01:16:22 |
|
|
43
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-07-10 01:09:35 |
|
|
44
|
+
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-07-17 01:09:51 |
|
|
45
|
+
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-07-10 01:10:02 |
|
|
46
|
+
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-06-18 01:18:51 |
|
|
47
|
+
| cdwch | [腾讯云数据仓库TCHouse-C](https://cloud.tencent.com/document/product/1299) | 2024-06-27 01:07:08 |
|
|
48
|
+
| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2024-06-20 01:19:00 |
|
|
49
|
+
| cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2024-03-28 01:10:53 |
|
|
50
|
+
| cdz | [专属可用区](https://cloud.tencent.com/document/product/1629) | 2024-07-15 09:37:14 |
|
|
51
|
+
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2024-07-19 01:20:33 |
|
|
52
|
+
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2024-04-26 01:10:32 |
|
|
53
|
+
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2024-06-20 01:19:49 |
|
|
54
|
+
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2024-03-20 01:10:55 |
|
|
55
|
+
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2024-06-17 01:21:02 |
|
|
56
|
+
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
|
57
|
+
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
58
|
+
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
59
|
+
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-07-08 01:10:21 |
|
|
60
|
+
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-07-19 01:23:35 |
|
|
61
|
+
| cloudapp | [云应用](https://cloud.tencent.com/document/product/1689) | 2024-07-18 10:12:45 |
|
|
62
|
+
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
|
|
63
|
+
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-03-20 01:11:31 |
|
|
64
|
+
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-05-29 01:21:54 |
|
|
65
|
+
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-07-05 01:06:07 |
|
|
66
|
+
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2024-03-20 01:12:05 |
|
|
67
|
+
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2024-06-21 01:24:31 |
|
|
68
|
+
| cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2024-06-20 01:24:47 |
|
|
69
|
+
| config | [配置审计](https://cloud.tencent.com/document/product/1579) | 2024-03-20 01:12:18 |
|
|
70
|
+
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 |
|
|
71
|
+
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
72
|
+
| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-07-03 01:12:26 |
|
|
73
|
+
| csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2024-03-20 01:12:25 |
|
|
74
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-07-17 01:11:57 |
|
|
75
|
+
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-07-12 01:12:13 |
|
|
76
|
+
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
77
|
+
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-07-16 01:13:21 |
|
|
78
|
+
| dasb | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2024-07-16 01:13:41 |
|
|
79
|
+
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
|
80
|
+
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
|
|
81
|
+
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2024-07-19 01:34:46 |
|
|
82
|
+
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2024-07-08 01:12:54 |
|
|
83
|
+
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2024-07-15 01:09:18 |
|
|
84
|
+
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2024-07-11 01:14:04 |
|
|
85
|
+
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-07-17 01:14:09 |
|
|
86
|
+
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-07-11 01:14:33 |
|
|
87
|
+
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-07-02 01:14:51 |
|
|
88
|
+
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2024-07-12 01:14:44 |
|
|
89
|
+
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 |
|
|
90
|
+
| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2024-07-18 01:10:11 |
|
|
91
|
+
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
|
92
|
+
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-07-15 01:10:34 |
|
|
93
|
+
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2024-06-07 01:44:56 |
|
|
94
|
+
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2024-03-20 01:15:51 |
|
|
95
|
+
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2024-03-20 01:15:52 |
|
|
96
|
+
| ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2024-03-20 01:15:56 |
|
|
97
|
+
| eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2024-06-25 01:14:34 |
|
|
98
|
+
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
|
99
|
+
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-07-09 01:14:34 |
|
|
100
|
+
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-07-17 01:15:53 |
|
|
101
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-07-18 01:11:27 |
|
|
102
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-07-19 01:45:49 |
|
|
103
|
+
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-07-16 01:16:45 |
|
|
104
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-07-19 01:47:20 |
|
|
105
|
+
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-07-05 01:10:44 |
|
|
106
|
+
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-03-20 01:17:13 |
|
|
107
|
+
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2024-07-17 01:16:44 |
|
|
108
|
+
| gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2024-06-27 01:13:06 |
|
|
109
|
+
| goosefs | [数据加速器 GooseFS](https://cloud.tencent.com/document/product/1424) | 2024-07-10 01:17:00 |
|
|
110
|
+
| gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2022-07-11 06:12:36 |
|
|
111
|
+
| gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2024-05-28 01:43:15 |
|
|
112
|
+
| gse | [游戏服务器伸缩](https://cloud.tencent.com/document/product/1165) | 2022-07-11 06:12:44 |
|
|
113
|
+
| habo | [](https://cloud.tencent.com/document/product) | 2019-05-09 19:37:22 |
|
|
114
|
+
| hai | [高性能应用服务](https://cloud.tencent.com/document/product/1721) | 2024-05-29 01:43:09 |
|
|
115
|
+
| hasim | [高可用物联网卡](https://cloud.tencent.com/document/product/1482) | 2023-05-18 01:29:47 |
|
|
116
|
+
| hcm | [数学作业批改](https://cloud.tencent.com/document/product/1004) | 2024-05-09 01:16:27 |
|
|
117
|
+
| hunyuan | [腾讯混元大模型](https://cloud.tencent.com/document/product/1729) | 2024-07-19 01:49:42 |
|
|
118
|
+
| iai | [人脸识别](https://cloud.tencent.com/document/product/867) | 2024-03-20 01:17:43 |
|
|
119
|
+
| ic | [图片瘦身](https://cloud.tencent.com/document/product/636) | 2023-03-02 01:23:21 |
|
|
120
|
+
| icr | [对话机器人](https://cloud.tencent.com/document/product/1268) | 2024-04-22 01:17:48 |
|
|
121
|
+
| ie | [智能编辑](https://cloud.tencent.com/document/product/1186) | 2023-08-17 03:20:18 |
|
|
122
|
+
| iecp | [物联网边缘计算平台](https://cloud.tencent.com/document/product/1118) | 2024-06-20 01:46:44 |
|
|
123
|
+
| iir | [智能识图](https://cloud.tencent.com/document/product/1217) | 2022-04-04 06:48:05 |
|
|
124
|
+
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2024-07-03 01:17:26 |
|
|
125
|
+
| ioa | [iOA 零信任安全管理系统](https://cloud.tencent.com/document/product/1092) | 2024-06-28 01:12:56 |
|
|
126
|
+
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2023-07-17 01:22:28 |
|
|
127
|
+
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2024-06-05 01:47:50 |
|
|
128
|
+
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2024-07-15 01:13:08 |
|
|
129
|
+
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2023-05-18 01:33:02 |
|
|
130
|
+
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2024-07-08 01:16:48 |
|
|
131
|
+
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2024-03-20 01:18:54 |
|
|
132
|
+
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2024-03-20 01:19:05 |
|
|
133
|
+
| iss | [智能视图计算平台](https://cloud.tencent.com/document/product/1344) | 2024-06-28 15:23:39 |
|
|
134
|
+
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2024-07-09 14:27:21 |
|
|
135
|
+
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2024-03-20 01:19:20 |
|
|
136
|
+
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-04-17 01:17:16 |
|
|
137
|
+
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-07-17 01:19:12 |
|
|
138
|
+
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-07-19 01:59:02 |
|
|
139
|
+
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-07-19 01:59:56 |
|
|
140
|
+
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-07-19 02:01:23 |
|
|
141
|
+
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
142
|
+
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
143
|
+
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
|
|
144
|
+
| mariadb | [云数据库 MariaDB](https://cloud.tencent.com/document/product/237) | 2024-07-12 01:20:13 |
|
|
145
|
+
| market | [云市场](https://cloud.tencent.com/document/product/306) | 2024-03-20 01:20:21 |
|
|
146
|
+
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2024-03-20 01:20:22 |
|
|
147
|
+
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
|
148
|
+
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-07-02 01:19:41 |
|
|
149
|
+
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-07-11 01:20:22 |
|
|
150
|
+
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-07-18 01:15:51 |
|
|
151
|
+
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-07-18 01:15:58 |
|
|
152
|
+
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-07-16 01:21:13 |
|
|
153
|
+
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-06-14 02:16:42 |
|
|
154
|
+
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-06-05 02:02:03 |
|
|
155
|
+
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2024-04-17 14:48:31 |
|
|
156
|
+
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
|
157
|
+
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2024-05-07 01:22:11 |
|
|
158
|
+
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
159
|
+
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2024-07-19 02:08:08 |
|
|
160
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-07-09 01:19:41 |
|
|
161
|
+
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2024-06-13 02:11:33 |
|
|
162
|
+
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-07-12 01:22:08 |
|
|
163
|
+
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2024-06-26 01:21:35 |
|
|
164
|
+
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 |
|
|
165
|
+
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2024-07-10 01:22:15 |
|
|
166
|
+
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2024-06-18 02:05:02 |
|
|
167
|
+
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2024-06-20 02:06:03 |
|
|
168
|
+
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2024-06-14 02:22:55 |
|
|
169
|
+
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2024-07-04 01:21:28 |
|
|
170
|
+
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2024-04-22 01:23:34 |
|
|
171
|
+
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2023-12-25 00:16:39 |
|
|
172
|
+
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
173
|
+
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2024-07-12 01:22:59 |
|
|
174
|
+
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2024-07-03 01:22:38 |
|
|
175
|
+
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2024-07-15 01:18:34 |
|
|
176
|
+
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2024-06-07 02:21:50 |
|
|
177
|
+
| smop | [腾讯安心用户运营平台](https://cloud.tencent.com/document/product/1310) | 2024-04-11 01:20:38 |
|
|
178
|
+
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2024-07-09 01:21:06 |
|
|
179
|
+
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2024-06-20 02:08:58 |
|
|
180
|
+
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2024-04-11 01:20:45 |
|
|
181
|
+
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
182
|
+
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-06-06 02:22:45 |
|
|
183
|
+
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-11-15 02:18:28 |
|
|
184
|
+
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2024-07-05 01:16:31 |
|
|
185
|
+
| sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2024-03-20 01:24:03 |
|
|
186
|
+
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2024-05-21 02:06:48 |
|
|
187
|
+
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2024-03-20 01:24:08 |
|
|
188
|
+
| svp | [节省计划](https://cloud.tencent.com/document/product/1761) | 2024-05-23 17:09:13 |
|
|
189
|
+
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2024-06-12 02:24:32 |
|
|
190
|
+
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2024-03-22 01:21:43 |
|
|
191
|
+
| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2024-03-20 01:24:15 |
|
|
192
|
+
| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2024-06-05 02:12:06 |
|
|
193
|
+
| tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
|
|
194
|
+
| tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2024-05-14 02:28:40 |
|
|
195
|
+
| tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
|
|
196
|
+
| tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2024-03-20 01:24:24 |
|
|
197
|
+
| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2024-06-18 02:11:49 |
|
|
198
|
+
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2024-06-04 02:12:41 |
|
|
199
|
+
| tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2024-06-18 02:13:09 |
|
|
200
|
+
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 |
|
|
201
|
+
| tchd | [腾讯云健康看板](https://cloud.tencent.com/document/product/1688) | 2024-03-20 01:24:49 |
|
|
202
|
+
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
203
|
+
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2024-06-18 02:13:19 |
|
|
204
|
+
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2024-07-18 01:20:10 |
|
|
205
|
+
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2024-06-26 01:23:56 |
|
|
206
|
+
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2024-07-10 01:25:35 |
|
|
207
|
+
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2024-06-04 02:17:43 |
|
|
208
|
+
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-07-17 01:25:48 |
|
|
209
|
+
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2024-04-22 01:26:50 |
|
|
210
|
+
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2024-06-25 01:23:38 |
|
|
211
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-07-03 19:33:55 |
|
|
212
|
+
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2024-07-12 01:26:38 |
|
|
213
|
+
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
214
|
+
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
|
|
215
|
+
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
|
216
|
+
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2024-03-20 01:27:08 |
|
|
217
|
+
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
218
|
+
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2024-07-05 01:19:00 |
|
|
219
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-06-07 02:37:51 |
|
|
220
|
+
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2024-03-20 01:27:28 |
|
|
221
|
+
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2024-06-24 01:24:28 |
|
|
222
|
+
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
223
|
+
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2024-04-29 01:26:41 |
|
|
224
|
+
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2024-07-19 02:32:30 |
|
|
225
|
+
| tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2024-03-20 01:28:59 |
|
|
226
|
+
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
|
|
227
|
+
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-07-05 01:19:38 |
|
|
228
|
+
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-06-06 02:42:14 |
|
|
229
|
+
| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-06-21 02:25:01 |
|
|
230
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-07-19 02:33:55 |
|
|
231
|
+
| tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-07-10 01:27:48 |
|
|
232
|
+
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-07-11 01:28:05 |
|
|
233
|
+
| tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-07-17 01:28:37 |
|
|
234
|
+
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2024-03-20 01:30:06 |
|
|
235
|
+
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2024-07-08 01:25:23 |
|
|
236
|
+
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2024-03-20 01:30:08 |
|
|
237
|
+
| vcg | [视频生成](https://cloud.tencent.com/document/product/1770) | 2024-06-06 02:47:17 |
|
|
238
|
+
| vclm | [大模型视频创作引擎](https://cloud.tencent.com/document/product/1616) | 2024-06-28 01:22:51 |
|
|
239
|
+
| vdb | [向量数据库](https://cloud.tencent.com/document/product/1709) | 2024-07-09 01:25:36 |
|
|
240
|
+
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2024-06-06 02:47:30 |
|
|
241
|
+
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2024-03-20 01:30:13 |
|
|
242
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2024-07-17 01:28:46 |
|
|
243
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-07-18 01:24:25 |
|
|
244
|
+
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2024-04-02 01:27:45 |
|
|
245
|
+
| vtc | [视频转译](https://cloud.tencent.com/document/product/1769) | 2024-06-07 02:52:58 |
|
|
246
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-07-10 01:30:00 |
|
|
247
|
+
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2024-03-20 01:32:09 |
|
|
248
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-07-02 01:28:21 |
|
|
249
|
+
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-05-15 01:38:36 |
|
|
250
|
+
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
251
|
+
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2024-06-05 02:38:46 |
|
|
252
|
+
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
|
253
|
+
| yunjing | [主机安全](https://cloud.tencent.com/document/product) | 2020-09-15 08:08:47 |
|
|
254
|
+
| yunsou | [腾讯云搜TCS](https://cloud.tencent.com/document/product/270) | 2024-03-20 01:33:14 |
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services"
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { SaleParam, VerifyLicenseRequest, VerifyLicenseResponse, License } from "./cloudapp_models"
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* cloudapp client
|
|
23
|
+
* @class
|
|
24
|
+
*/
|
|
25
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
26
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
27
|
+
super("cloudapp.tencentcloudapi.com", "2022-05-30", clientConfig)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 通过运行时roleId查询对应的软件 LICENSE
|
|
32
|
+
*/
|
|
33
|
+
async VerifyLicense(
|
|
34
|
+
req?: VerifyLicenseRequest,
|
|
35
|
+
cb?: (error: string, rep: VerifyLicenseResponse) => void
|
|
36
|
+
): Promise<VerifyLicenseResponse> {
|
|
37
|
+
return this.request("VerifyLicense", req, cb)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 表示商品 SKU 的单个售卖参数
|
|
20
|
+
*/
|
|
21
|
+
export interface SaleParam {
|
|
22
|
+
/**
|
|
23
|
+
* 售卖参数标识
|
|
24
|
+
*/
|
|
25
|
+
ParamKey?: string
|
|
26
|
+
/**
|
|
27
|
+
* 售卖参数值
|
|
28
|
+
*/
|
|
29
|
+
ParamValue?: string
|
|
30
|
+
/**
|
|
31
|
+
* 售卖参数的展示名称
|
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
33
|
+
*/
|
|
34
|
+
ParamKeyName?: string
|
|
35
|
+
/**
|
|
36
|
+
* 售卖参数值的展示名称
|
|
37
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
38
|
+
*/
|
|
39
|
+
ParamValueName?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* VerifyLicense请求参数结构体
|
|
44
|
+
*/
|
|
45
|
+
export type VerifyLicenseRequest = null
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* VerifyLicense返回参数结构体
|
|
49
|
+
*/
|
|
50
|
+
export interface VerifyLicenseResponse {
|
|
51
|
+
/**
|
|
52
|
+
* 软件的详细授权信息。
|
|
53
|
+
*/
|
|
54
|
+
License?: License
|
|
55
|
+
/**
|
|
56
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
57
|
+
*/
|
|
58
|
+
RequestId?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
|
63
|
+
*/
|
|
64
|
+
export interface License {
|
|
65
|
+
/**
|
|
66
|
+
* License ID
|
|
67
|
+
*/
|
|
68
|
+
LicenseId?: string
|
|
69
|
+
/**
|
|
70
|
+
* 软件授权模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Permanent</td><td>永久授权。该授权不受有效期限制。</td></tr><tr><td>Subscription</td><td>订阅授权。授权如果过了有效期,则会进入过期状态。</td></tr></tbody></table>
|
|
71
|
+
*/
|
|
72
|
+
LicenseMode?: string
|
|
73
|
+
/**
|
|
74
|
+
* 软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>Deactivated</td><td>授权已失效。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table>
|
|
75
|
+
*/
|
|
76
|
+
LicenseStatus?: string
|
|
77
|
+
/**
|
|
78
|
+
* 软件供应方 ID。
|
|
79
|
+
*/
|
|
80
|
+
ProviderId?: number
|
|
81
|
+
/**
|
|
82
|
+
* 软件包 ID。
|
|
83
|
+
*/
|
|
84
|
+
SoftwarePackageId?: string
|
|
85
|
+
/**
|
|
86
|
+
* 软件包版本。
|
|
87
|
+
*/
|
|
88
|
+
SoftwarePackageVersion?: string
|
|
89
|
+
/**
|
|
90
|
+
* 被授权的用户 UIN。
|
|
91
|
+
*/
|
|
92
|
+
AuthorizedUserUin?: string
|
|
93
|
+
/**
|
|
94
|
+
* 被授权的应用实例 ID。
|
|
95
|
+
*/
|
|
96
|
+
AuthorizedCloudappId?: string
|
|
97
|
+
/**
|
|
98
|
+
* 被授权的角色 ID。
|
|
99
|
+
*/
|
|
100
|
+
AuthorizedCloudappRoleId?: string
|
|
101
|
+
/**
|
|
102
|
+
* 被授权的软件规格,具体字段请参考结构SaleParam
|
|
103
|
+
*/
|
|
104
|
+
AuthorizedSpecification?: Array<SaleParam>
|
|
105
|
+
/**
|
|
106
|
+
* 被授权的软件的计费模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>1</td><td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td></tr><tr><td>2</td><td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td></tr><tr><td>4</td><td>免费</td></tr></tbody></table>
|
|
107
|
+
*/
|
|
108
|
+
BillingMode?: number
|
|
109
|
+
/**
|
|
110
|
+
* 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
|
|
111
|
+
*/
|
|
112
|
+
LifeSpan?: number
|
|
113
|
+
/**
|
|
114
|
+
* 授权颁发时间。
|
|
115
|
+
*/
|
|
116
|
+
IssueDate?: string
|
|
117
|
+
/**
|
|
118
|
+
* 授权激活时间,如从未激活则返回 null。
|
|
119
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
120
|
+
*/
|
|
121
|
+
ActivationDate?: string
|
|
122
|
+
/**
|
|
123
|
+
* 授权过期时间,如未过期或者是永久授权,则返回 null。
|
|
124
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
125
|
+
*/
|
|
126
|
+
ExpirationDate?: string
|
|
127
|
+
/**
|
|
128
|
+
* 授权时长单位,枚举值有Y年/M月/D日三种
|
|
129
|
+
*/
|
|
130
|
+
LifeSpanUnit?: string
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cloudapp } from "./cloudapp"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
import { VerifyLicenseRequest, VerifyLicenseResponse } from "./cloudapp_models";
|
|
3
|
+
/**
|
|
4
|
+
* cloudapp client
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 通过运行时roleId查询对应的软件 LICENSE
|
|
11
|
+
*/
|
|
12
|
+
VerifyLicense(req?: VerifyLicenseRequest, cb?: (error: string, rep: VerifyLicenseResponse) => void): Promise<VerifyLicenseResponse>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
/**
|
|
23
|
+
* cloudapp client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends TencentCloudCommon.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("cloudapp.tencentcloudapi.com", "2022-05-30", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 通过运行时roleId查询对应的软件 LICENSE
|
|
32
|
+
*/
|
|
33
|
+
async VerifyLicense(req, cb) {
|
|
34
|
+
return this.request("VerifyLicense", req, cb);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表示商品 SKU 的单个售卖参数
|
|
3
|
+
*/
|
|
4
|
+
export interface SaleParam {
|
|
5
|
+
/**
|
|
6
|
+
* 售卖参数标识
|
|
7
|
+
*/
|
|
8
|
+
ParamKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 售卖参数值
|
|
11
|
+
*/
|
|
12
|
+
ParamValue?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 售卖参数的展示名称
|
|
15
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16
|
+
*/
|
|
17
|
+
ParamKeyName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 售卖参数值的展示名称
|
|
20
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21
|
+
*/
|
|
22
|
+
ParamValueName?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* VerifyLicense请求参数结构体
|
|
26
|
+
*/
|
|
27
|
+
export declare type VerifyLicenseRequest = null;
|
|
28
|
+
/**
|
|
29
|
+
* VerifyLicense返回参数结构体
|
|
30
|
+
*/
|
|
31
|
+
export interface VerifyLicenseResponse {
|
|
32
|
+
/**
|
|
33
|
+
* 软件的详细授权信息。
|
|
34
|
+
*/
|
|
35
|
+
License?: License;
|
|
36
|
+
/**
|
|
37
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
38
|
+
*/
|
|
39
|
+
RequestId?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
|
43
|
+
*/
|
|
44
|
+
export interface License {
|
|
45
|
+
/**
|
|
46
|
+
* License ID
|
|
47
|
+
*/
|
|
48
|
+
LicenseId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 软件授权模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Permanent</td><td>永久授权。该授权不受有效期限制。</td></tr><tr><td>Subscription</td><td>订阅授权。授权如果过了有效期,则会进入过期状态。</td></tr></tbody></table>
|
|
51
|
+
*/
|
|
52
|
+
LicenseMode?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>Deactivated</td><td>授权已失效。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table>
|
|
55
|
+
*/
|
|
56
|
+
LicenseStatus?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 软件供应方 ID。
|
|
59
|
+
*/
|
|
60
|
+
ProviderId?: number;
|
|
61
|
+
/**
|
|
62
|
+
* 软件包 ID。
|
|
63
|
+
*/
|
|
64
|
+
SoftwarePackageId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 软件包版本。
|
|
67
|
+
*/
|
|
68
|
+
SoftwarePackageVersion?: string;
|
|
69
|
+
/**
|
|
70
|
+
* 被授权的用户 UIN。
|
|
71
|
+
*/
|
|
72
|
+
AuthorizedUserUin?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 被授权的应用实例 ID。
|
|
75
|
+
*/
|
|
76
|
+
AuthorizedCloudappId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 被授权的角色 ID。
|
|
79
|
+
*/
|
|
80
|
+
AuthorizedCloudappRoleId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* 被授权的软件规格,具体字段请参考结构SaleParam
|
|
83
|
+
*/
|
|
84
|
+
AuthorizedSpecification?: Array<SaleParam>;
|
|
85
|
+
/**
|
|
86
|
+
* 被授权的软件的计费模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>1</td><td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td></tr><tr><td>2</td><td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td></tr><tr><td>4</td><td>免费</td></tr></tbody></table>
|
|
87
|
+
*/
|
|
88
|
+
BillingMode?: number;
|
|
89
|
+
/**
|
|
90
|
+
* 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
|
|
91
|
+
*/
|
|
92
|
+
LifeSpan?: number;
|
|
93
|
+
/**
|
|
94
|
+
* 授权颁发时间。
|
|
95
|
+
*/
|
|
96
|
+
IssueDate?: string;
|
|
97
|
+
/**
|
|
98
|
+
* 授权激活时间,如从未激活则返回 null。
|
|
99
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
100
|
+
*/
|
|
101
|
+
ActivationDate?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 授权过期时间,如未过期或者是永久授权,则返回 null。
|
|
104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
105
|
+
*/
|
|
106
|
+
ExpirationDate?: string;
|
|
107
|
+
/**
|
|
108
|
+
* 授权时长单位,枚举值有Y年/M月/D日三种
|
|
109
|
+
*/
|
|
110
|
+
LifeSpanUnit?: string;
|
|
111
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20220530 = void 0;
|
|
4
|
+
const Models = require("./cloudapp_models");
|
|
5
|
+
const cloudapp_client_1 = require("./cloudapp_client");
|
|
6
|
+
exports.v20220530 = {
|
|
7
|
+
Client: cloudapp_client_1.Client,
|
|
8
|
+
Models: Models,
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cloudapp } from "./cloudapp";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// "incremental": true, /* 增量编译 提高编译速度*/
|
|
4
|
+
"target": "ES2019" /* 编译目标ES版本*/,
|
|
5
|
+
"module": "commonjs" /* 编译目标模块系统*/,
|
|
6
|
+
// "lib": [], /* 编译过程中需要引入的库文件列表*/
|
|
7
|
+
"declaration": true /* 编译时创建声明文件 */,
|
|
8
|
+
"outDir": "tencentcloud" /* ts编译输出目录 */,
|
|
9
|
+
"rootDir": "src" /* ts编译根目录. */,
|
|
10
|
+
"importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
|
|
11
|
+
"strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
|
|
12
|
+
"strictNullChecks": false,
|
|
13
|
+
"noUnusedLocals": false /* 未使用局部变量报错*/,
|
|
14
|
+
"noUnusedParameters": false /* 未使用参数报错*/,
|
|
15
|
+
"noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
|
|
16
|
+
"noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
|
|
17
|
+
"moduleResolution": "node" /* 模块解析策略 */,
|
|
18
|
+
"typeRoots": [
|
|
19
|
+
/* 要包含的类型声明文件路径列表*/
|
|
20
|
+
"./typings",
|
|
21
|
+
"./node_modules/@types"
|
|
22
|
+
],
|
|
23
|
+
"allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
|
|
24
|
+
"esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
|
|
25
|
+
"sourceMap": false
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
/* 需要编译的文件 */
|
|
29
|
+
"src/**/*.ts",
|
|
30
|
+
"typings/**/*.ts"
|
|
31
|
+
],
|
|
32
|
+
"exclude": []
|
|
33
|
+
}
|