tencentcloud-sdk-nodejs-mqtt 4.0.1027 → 4.0.1034
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 +21 -23
- package/package.json +1 -1
- package/src/services/mqtt/v20240516/mqtt_client.ts +164 -52
- package/src/services/mqtt/v20240516/mqtt_models.ts +479 -30
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +59 -22
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +83 -28
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +458 -30
package/README.md
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
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
|
-
通过
|
|
17
|
+
通过 npm 获取安装是使用 Node.js SDK 的推荐方法,关于 npm 详细可参考 [NPM 官网](https://www.npmjs.com/) 。
|
|
19
18
|
|
|
20
19
|
### 安装指定产品 SDK(推荐)
|
|
21
20
|
|
|
@@ -56,10 +55,12 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
56
55
|
1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
|
|
57
56
|
2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
|
|
58
57
|
3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
|
|
59
|
-
4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入SDK,具体可参考示例。
|
|
58
|
+
4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
|
|
60
59
|
|
|
61
60
|
# 示例
|
|
62
61
|
|
|
62
|
+
以云服务器产品查询可用区列表接口为例。
|
|
63
|
+
|
|
63
64
|
```js
|
|
64
65
|
const tencentcloud = require("tencentcloud-sdk-nodejs")
|
|
65
66
|
|
|
@@ -102,7 +103,7 @@ client.DescribeZones().then(
|
|
|
102
103
|
)
|
|
103
104
|
```
|
|
104
105
|
|
|
105
|
-
在支持
|
|
106
|
+
在支持 TypeScript 项目中,采用如下方式调用
|
|
106
107
|
|
|
107
108
|
```js
|
|
108
109
|
import * as tencentcloud from "tencentcloud-sdk-nodejs"
|
|
@@ -112,10 +113,11 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
112
113
|
// ...
|
|
113
114
|
```
|
|
114
115
|
|
|
115
|
-
|
|
116
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
|
|
116
117
|
|
|
117
118
|
## Common Client
|
|
118
|
-
|
|
119
|
+
|
|
120
|
+
从 4.0.714 版本开始,腾讯云 Node.js SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
|
|
119
121
|
|
|
120
122
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
121
123
|
|
|
@@ -123,19 +125,19 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
123
125
|
|
|
124
126
|
## 更多示例
|
|
125
127
|
|
|
126
|
-
|
|
128
|
+
请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
|
|
127
129
|
|
|
128
130
|
# 相关配置
|
|
129
131
|
|
|
130
132
|
## 代理
|
|
131
133
|
|
|
132
|
-
如果是有代理的环境下,需要配置代理,请在创建Client时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
134
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
133
135
|
|
|
134
136
|
# 凭证管理
|
|
135
137
|
|
|
136
138
|
除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
|
|
137
139
|
|
|
138
|
-
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
|
|
140
|
+
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js 示例代码](./examples/cvm_role.js) 或 [ts 示例代码](./examples/cvm_role.ts)
|
|
139
141
|
```javascript
|
|
140
142
|
// ...
|
|
141
143
|
const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
@@ -147,20 +149,16 @@ new XxxClient({
|
|
|
147
149
|
})
|
|
148
150
|
```
|
|
149
151
|
|
|
150
|
-
# 旧版 SDK
|
|
151
|
-
|
|
152
|
-
我们推荐使用新版 NODEJS SDK,如果一定要用旧版 SDK,请前往[GitHub 仓库](https://github.com/CFETeam/qcloudapi-sdk)下载。
|
|
153
|
-
|
|
154
152
|
# 常见问题
|
|
155
|
-
- webpack打包出错/浏览器报错
|
|
153
|
+
- webpack 打包出错/浏览器报错
|
|
156
154
|
|
|
157
|
-
请**务必不要**将此SDK直接用于
|
|
155
|
+
请**务必不要**将此 SDK 直接用于 Web 前端(包括小程序等),暴露密钥在这些环境非常不安全。
|
|
158
156
|
|
|
159
|
-
正确的做法是在自己的服务端引用此SDK
|
|
157
|
+
正确的做法是在自己的服务端引用此 SDK,并保存好密钥,做好请求鉴权,前端再调用服务端执行业务流程。
|
|
160
158
|
|
|
161
159
|
- `The "original" argument must be of type Function.`
|
|
162
160
|
|
|
163
|
-
通常是因为
|
|
161
|
+
通常是因为 Node.js 版本低于 `v10` ,或处于非 Node.js 环境,请再次确认执行环境。
|
|
164
162
|
|
|
165
163
|
- 请求不通
|
|
166
164
|
|
package/package.json
CHANGED
|
@@ -19,28 +19,32 @@ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
|
19
19
|
import {
|
|
20
20
|
DeleteUserRequest,
|
|
21
21
|
ModifyJWTAuthenticatorResponse,
|
|
22
|
-
|
|
22
|
+
CaCertificateItem,
|
|
23
|
+
ModifyAuthorizationPolicyResponse,
|
|
23
24
|
ActivateDeviceCertificateRequest,
|
|
24
25
|
CreateInstanceResponse,
|
|
25
|
-
|
|
26
|
+
ApplyRegistrationCodeRequest,
|
|
26
27
|
ModifyJWTAuthenticatorRequest,
|
|
27
28
|
AuthorizationPolicyPriority,
|
|
28
29
|
ModifyInstanceRequest,
|
|
29
30
|
DeleteTopicRequest,
|
|
30
31
|
ModifyUserResponse,
|
|
32
|
+
DescribeCaCertificateResponse,
|
|
31
33
|
DescribeDeviceCertificatesRequest,
|
|
32
34
|
DeleteAuthenticatorRequest,
|
|
33
35
|
PublicAccessRule,
|
|
34
36
|
VpcInfo,
|
|
35
37
|
DeleteAuthorizationPolicyResponse,
|
|
38
|
+
ProductSkuItem,
|
|
36
39
|
ModifyJWKSAuthenticatorRequest,
|
|
37
|
-
|
|
40
|
+
RegisterCaCertificateResponse,
|
|
38
41
|
RegisterDeviceCertificateResponse,
|
|
39
42
|
MQTTAuthenticatorItem,
|
|
40
43
|
Tag,
|
|
41
44
|
DescribeDeviceCertificateRequest,
|
|
42
45
|
MQTTInstanceItem,
|
|
43
46
|
DescribeInstanceListResponse,
|
|
47
|
+
ApplyRegistrationCodeResponse,
|
|
44
48
|
ModifyInstanceResponse,
|
|
45
49
|
ModifyInsPublicEndpointResponse,
|
|
46
50
|
ModifyJWKSAuthenticatorResponse,
|
|
@@ -48,21 +52,27 @@ import {
|
|
|
48
52
|
CreateUserResponse,
|
|
49
53
|
CreateAuthorizationPolicyRequest,
|
|
50
54
|
DescribeAuthenticatorResponse,
|
|
55
|
+
DeactivateCaCertificateResponse,
|
|
56
|
+
DeleteCaCertificateRequest,
|
|
51
57
|
DeleteDeviceCertificateRequest,
|
|
52
58
|
DescribeInsPublicEndpointsRequest,
|
|
53
59
|
DeleteUserResponse,
|
|
60
|
+
ActivateCaCertificateResponse,
|
|
54
61
|
DeleteDeviceCertificateResponse,
|
|
55
|
-
|
|
62
|
+
DeleteInstanceResponse,
|
|
63
|
+
DescribeProductSKUListResponse,
|
|
56
64
|
CreateJWKSAuthenticatorRequest,
|
|
57
65
|
DescribeTopicResponse,
|
|
58
66
|
CreateJWKSAuthenticatorResponse,
|
|
59
67
|
DescribeAuthorizationPoliciesResponse,
|
|
60
68
|
CreateTopicRequest,
|
|
69
|
+
DeleteCaCertificateResponse,
|
|
61
70
|
TagFilter,
|
|
62
71
|
DescribeUserListResponse,
|
|
63
72
|
ModifyTopicResponse,
|
|
64
73
|
DeactivateDeviceCertificateResponse,
|
|
65
74
|
MQTTUserItem,
|
|
75
|
+
ActivateCaCertificateRequest,
|
|
66
76
|
ActivateDeviceCertificateResponse,
|
|
67
77
|
DescribeTopicRequest,
|
|
68
78
|
UpdateAuthorizationPolicyPriorityResponse,
|
|
@@ -73,6 +83,8 @@ import {
|
|
|
73
83
|
AuthorizationPolicyItem,
|
|
74
84
|
RevokedDeviceCertificateRequest,
|
|
75
85
|
CreateAuthorizationPolicyResponse,
|
|
86
|
+
DescribeAuthenticatorRequest,
|
|
87
|
+
RegisterCaCertificateRequest,
|
|
76
88
|
CreateInstanceRequest,
|
|
77
89
|
CreateInsPublicEndpointRequest,
|
|
78
90
|
RegisterDeviceCertificateRequest,
|
|
@@ -82,24 +94,33 @@ import {
|
|
|
82
94
|
ModifyTopicRequest,
|
|
83
95
|
CreateUserRequest,
|
|
84
96
|
DescribeInstanceResponse,
|
|
97
|
+
ModifyInstanceCertBindingResponse,
|
|
85
98
|
DeleteInstanceRequest,
|
|
86
99
|
DescribeInsPublicEndpointsResponse,
|
|
87
100
|
ModifyInsPublicEndpointRequest,
|
|
88
101
|
DeleteInsPublicEndpointRequest,
|
|
89
102
|
DescribeUserListRequest,
|
|
103
|
+
DescribeCaCertificateRequest,
|
|
104
|
+
UpdateAuthorizationPolicyPriorityRequest,
|
|
90
105
|
CreateJWTAuthenticatorResponse,
|
|
91
106
|
DeleteAuthorizationPolicyRequest,
|
|
92
107
|
DescribeAuthorizationPoliciesRequest,
|
|
93
|
-
|
|
108
|
+
DescribeProductSKUListRequest,
|
|
109
|
+
DescribeTopicListResponse,
|
|
94
110
|
DescribeDeviceCertificateResponse,
|
|
95
111
|
DescribeInstanceListRequest,
|
|
112
|
+
DeactivateCaCertificateRequest,
|
|
96
113
|
CreateJWTAuthenticatorRequest,
|
|
114
|
+
DescribeCaCertificatesRequest,
|
|
97
115
|
DeviceCertificateItem,
|
|
98
116
|
MQTTTopicItem,
|
|
117
|
+
PriceTag,
|
|
99
118
|
ModifyAuthorizationPolicyRequest,
|
|
100
|
-
|
|
119
|
+
RevokedDeviceCertificateResponse,
|
|
101
120
|
DeleteTopicResponse,
|
|
121
|
+
ModifyInstanceCertBindingRequest,
|
|
102
122
|
DescribeInstanceRequest,
|
|
123
|
+
DescribeCaCertificatesResponse,
|
|
103
124
|
ModifyUserRequest,
|
|
104
125
|
DeleteAuthenticatorResponse,
|
|
105
126
|
IpRule,
|
|
@@ -115,13 +136,15 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
115
136
|
}
|
|
116
137
|
|
|
117
138
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
* 查询用户列表,Filter参数使用说明如下:
|
|
140
|
+
|
|
141
|
+
1. Username,用户名称模糊搜索
|
|
142
|
+
*/
|
|
143
|
+
async DescribeUserList(
|
|
144
|
+
req: DescribeUserListRequest,
|
|
145
|
+
cb?: (error: string, rep: DescribeUserListResponse) => void
|
|
146
|
+
): Promise<DescribeUserListResponse> {
|
|
147
|
+
return this.request("DescribeUserList", req, cb)
|
|
125
148
|
}
|
|
126
149
|
|
|
127
150
|
/**
|
|
@@ -144,6 +167,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
144
167
|
return this.request("ModifyTopic", req, cb)
|
|
145
168
|
}
|
|
146
169
|
|
|
170
|
+
/**
|
|
171
|
+
* 删除Ca证书
|
|
172
|
+
*/
|
|
173
|
+
async DeleteCaCertificate(
|
|
174
|
+
req: DeleteCaCertificateRequest,
|
|
175
|
+
cb?: (error: string, rep: DeleteCaCertificateResponse) => void
|
|
176
|
+
): Promise<DeleteCaCertificateResponse> {
|
|
177
|
+
return this.request("DeleteCaCertificate", req, cb)
|
|
178
|
+
}
|
|
179
|
+
|
|
147
180
|
/**
|
|
148
181
|
* 失效Ca证书
|
|
149
182
|
*/
|
|
@@ -164,6 +197,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
164
197
|
return this.request("DescribeTopic", req, cb)
|
|
165
198
|
}
|
|
166
199
|
|
|
200
|
+
/**
|
|
201
|
+
* 失效Ca证书
|
|
202
|
+
*/
|
|
203
|
+
async DeactivateCaCertificate(
|
|
204
|
+
req: DeactivateCaCertificateRequest,
|
|
205
|
+
cb?: (error: string, rep: DeactivateCaCertificateResponse) => void
|
|
206
|
+
): Promise<DeactivateCaCertificateResponse> {
|
|
207
|
+
return this.request("DeactivateCaCertificate", req, cb)
|
|
208
|
+
}
|
|
209
|
+
|
|
167
210
|
/**
|
|
168
211
|
* 创建一个jwks的认证
|
|
169
212
|
*/
|
|
@@ -234,18 +277,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
234
277
|
return this.request("DescribeInsPublicEndpoints", req, cb)
|
|
235
278
|
}
|
|
236
279
|
|
|
237
|
-
/**
|
|
238
|
-
* 查询用户列表,Filter参数使用说明如下:
|
|
239
|
-
|
|
240
|
-
1. Username,用户名称模糊搜索
|
|
241
|
-
*/
|
|
242
|
-
async DescribeUserList(
|
|
243
|
-
req: DescribeUserListRequest,
|
|
244
|
-
cb?: (error: string, rep: DescribeUserListResponse) => void
|
|
245
|
-
): Promise<DescribeUserListResponse> {
|
|
246
|
-
return this.request("DescribeUserList", req, cb)
|
|
247
|
-
}
|
|
248
|
-
|
|
249
280
|
/**
|
|
250
281
|
* 更新MQTT实例公网接入点
|
|
251
282
|
*/
|
|
@@ -256,6 +287,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
256
287
|
return this.request("ModifyInsPublicEndpoint", req, cb)
|
|
257
288
|
}
|
|
258
289
|
|
|
290
|
+
/**
|
|
291
|
+
* 查询设备证书详情接口
|
|
292
|
+
*/
|
|
293
|
+
async DescribeDeviceCertificate(
|
|
294
|
+
req: DescribeDeviceCertificateRequest,
|
|
295
|
+
cb?: (error: string, rep: DescribeDeviceCertificateResponse) => void
|
|
296
|
+
): Promise<DescribeDeviceCertificateResponse> {
|
|
297
|
+
return this.request("DescribeDeviceCertificate", req, cb)
|
|
298
|
+
}
|
|
299
|
+
|
|
259
300
|
/**
|
|
260
301
|
* 注册设备证书
|
|
261
302
|
*/
|
|
@@ -266,6 +307,47 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
266
307
|
return this.request("RegisterDeviceCertificate", req, cb)
|
|
267
308
|
}
|
|
268
309
|
|
|
310
|
+
/**
|
|
311
|
+
* 更新MQTT集群绑定证书
|
|
312
|
+
参数传空,则为删除证书
|
|
313
|
+
*/
|
|
314
|
+
async ModifyInstanceCertBinding(
|
|
315
|
+
req: ModifyInstanceCertBindingRequest,
|
|
316
|
+
cb?: (error: string, rep: ModifyInstanceCertBindingResponse) => void
|
|
317
|
+
): Promise<ModifyInstanceCertBindingResponse> {
|
|
318
|
+
return this.request("ModifyInstanceCertBinding", req, cb)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* 获取产品售卖规格
|
|
323
|
+
*/
|
|
324
|
+
async DescribeProductSKUList(
|
|
325
|
+
req?: DescribeProductSKUListRequest,
|
|
326
|
+
cb?: (error: string, rep: DescribeProductSKUListResponse) => void
|
|
327
|
+
): Promise<DescribeProductSKUListResponse> {
|
|
328
|
+
return this.request("DescribeProductSKUList", req, cb)
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* 查询集群下的ca证书信息
|
|
333
|
+
*/
|
|
334
|
+
async DescribeCaCertificates(
|
|
335
|
+
req: DescribeCaCertificatesRequest,
|
|
336
|
+
cb?: (error: string, rep: DescribeCaCertificatesResponse) => void
|
|
337
|
+
): Promise<DescribeCaCertificatesResponse> {
|
|
338
|
+
return this.request("DescribeCaCertificates", req, cb)
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* 修改策略规则优先级
|
|
343
|
+
*/
|
|
344
|
+
async UpdateAuthorizationPolicyPriority(
|
|
345
|
+
req: UpdateAuthorizationPolicyPriorityRequest,
|
|
346
|
+
cb?: (error: string, rep: UpdateAuthorizationPolicyPriorityResponse) => void
|
|
347
|
+
): Promise<UpdateAuthorizationPolicyPriorityResponse> {
|
|
348
|
+
return this.request("UpdateAuthorizationPolicyPriority", req, cb)
|
|
349
|
+
}
|
|
350
|
+
|
|
269
351
|
/**
|
|
270
352
|
* 创建主题
|
|
271
353
|
*/
|
|
@@ -296,6 +378,19 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
296
378
|
return this.request("DescribeAuthorizationPolicies", req, cb)
|
|
297
379
|
}
|
|
298
380
|
|
|
381
|
+
/**
|
|
382
|
+
* 获取主题列表,Filter参数使用说明如下:
|
|
383
|
+
|
|
384
|
+
1. TopicName,主题名称模糊搜索
|
|
385
|
+
2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
|
|
386
|
+
*/
|
|
387
|
+
async DescribeTopicList(
|
|
388
|
+
req: DescribeTopicListRequest,
|
|
389
|
+
cb?: (error: string, rep: DescribeTopicListResponse) => void
|
|
390
|
+
): Promise<DescribeTopicListResponse> {
|
|
391
|
+
return this.request("DescribeTopicList", req, cb)
|
|
392
|
+
}
|
|
393
|
+
|
|
299
394
|
/**
|
|
300
395
|
* 删除MQTT实例的公网接入点
|
|
301
396
|
*/
|
|
@@ -307,13 +402,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
307
402
|
}
|
|
308
403
|
|
|
309
404
|
/**
|
|
310
|
-
*
|
|
405
|
+
* 购买新的MQTT实例
|
|
311
406
|
*/
|
|
312
|
-
async
|
|
313
|
-
req:
|
|
314
|
-
cb?: (error: string, rep:
|
|
315
|
-
): Promise<
|
|
316
|
-
return this.request("
|
|
407
|
+
async CreateInstance(
|
|
408
|
+
req: CreateInstanceRequest,
|
|
409
|
+
cb?: (error: string, rep: CreateInstanceResponse) => void
|
|
410
|
+
): Promise<CreateInstanceResponse> {
|
|
411
|
+
return this.request("CreateInstance", req, cb)
|
|
317
412
|
}
|
|
318
413
|
|
|
319
414
|
/**
|
|
@@ -352,16 +447,23 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
352
447
|
}
|
|
353
448
|
|
|
354
449
|
/**
|
|
355
|
-
|
|
450
|
+
* 删除MQTT主题
|
|
451
|
+
*/
|
|
452
|
+
async DeleteTopic(
|
|
453
|
+
req: DeleteTopicRequest,
|
|
454
|
+
cb?: (error: string, rep: DeleteTopicResponse) => void
|
|
455
|
+
): Promise<DeleteTopicResponse> {
|
|
456
|
+
return this.request("DeleteTopic", req, cb)
|
|
457
|
+
}
|
|
356
458
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
async
|
|
361
|
-
req:
|
|
362
|
-
cb?: (error: string, rep:
|
|
363
|
-
): Promise<
|
|
364
|
-
return this.request("
|
|
459
|
+
/**
|
|
460
|
+
* 查询Ca证书详情接口
|
|
461
|
+
*/
|
|
462
|
+
async DescribeCaCertificate(
|
|
463
|
+
req: DescribeCaCertificateRequest,
|
|
464
|
+
cb?: (error: string, rep: DescribeCaCertificateResponse) => void
|
|
465
|
+
): Promise<DescribeCaCertificateResponse> {
|
|
466
|
+
return this.request("DescribeCaCertificate", req, cb)
|
|
365
467
|
}
|
|
366
468
|
|
|
367
469
|
/**
|
|
@@ -424,6 +526,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
424
526
|
return this.request("DeleteAuthenticator", req, cb)
|
|
425
527
|
}
|
|
426
528
|
|
|
529
|
+
/**
|
|
530
|
+
* 注册ca证书
|
|
531
|
+
*/
|
|
532
|
+
async RegisterCaCertificate(
|
|
533
|
+
req: RegisterCaCertificateRequest,
|
|
534
|
+
cb?: (error: string, rep: RegisterCaCertificateResponse) => void
|
|
535
|
+
): Promise<RegisterCaCertificateResponse> {
|
|
536
|
+
return this.request("RegisterCaCertificate", req, cb)
|
|
537
|
+
}
|
|
538
|
+
|
|
427
539
|
/**
|
|
428
540
|
* 查询MQTT认证器
|
|
429
541
|
*/
|
|
@@ -435,13 +547,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
435
547
|
}
|
|
436
548
|
|
|
437
549
|
/**
|
|
438
|
-
*
|
|
550
|
+
* 激活Ca证书
|
|
439
551
|
*/
|
|
440
|
-
async
|
|
441
|
-
req:
|
|
442
|
-
cb?: (error: string, rep:
|
|
443
|
-
): Promise<
|
|
444
|
-
return this.request("
|
|
552
|
+
async ActivateCaCertificate(
|
|
553
|
+
req: ActivateCaCertificateRequest,
|
|
554
|
+
cb?: (error: string, rep: ActivateCaCertificateResponse) => void
|
|
555
|
+
): Promise<ActivateCaCertificateResponse> {
|
|
556
|
+
return this.request("ActivateCaCertificate", req, cb)
|
|
445
557
|
}
|
|
446
558
|
|
|
447
559
|
/**
|
|
@@ -455,13 +567,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
455
567
|
}
|
|
456
568
|
|
|
457
569
|
/**
|
|
458
|
-
*
|
|
570
|
+
* 申请ca注册码
|
|
459
571
|
*/
|
|
460
|
-
async
|
|
461
|
-
req:
|
|
462
|
-
cb?: (error: string, rep:
|
|
463
|
-
): Promise<
|
|
464
|
-
return this.request("
|
|
572
|
+
async ApplyRegistrationCode(
|
|
573
|
+
req: ApplyRegistrationCodeRequest,
|
|
574
|
+
cb?: (error: string, rep: ApplyRegistrationCodeResponse) => void
|
|
575
|
+
): Promise<ApplyRegistrationCodeResponse> {
|
|
576
|
+
return this.request("ApplyRegistrationCode", req, cb)
|
|
465
577
|
}
|
|
466
578
|
|
|
467
579
|
/**
|