tencentcloud-sdk-nodejs-mqtt 4.0.1048 → 4.1.4

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.
@@ -1,687 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- UpdateAuthorizationPolicyPriorityResponse,
21
- MQTTClientSubscription,
22
- DeleteUserRequest,
23
- ModifyJWTAuthenticatorResponse,
24
- CaCertificateItem,
25
- ModifyAuthorizationPolicyResponse,
26
- ActivateDeviceCertificateRequest,
27
- CreateInstanceResponse,
28
- ApplyRegistrationCodeRequest,
29
- DescribeMessageListRequest,
30
- ModifyJWTAuthenticatorRequest,
31
- AuthorizationPolicyPriority,
32
- DescribeInsPublicEndpointsResponse,
33
- DescribeSharedSubscriptionLagResponse,
34
- DeleteTopicRequest,
35
- ModifyUserResponse,
36
- DescribeCaCertificateResponse,
37
- DescribeDeviceCertificatesRequest,
38
- DeleteAuthenticatorRequest,
39
- PublicAccessRule,
40
- VpcInfo,
41
- DeleteAuthorizationPolicyResponse,
42
- ProductSkuItem,
43
- ModifyJWKSAuthenticatorRequest,
44
- RegisterCaCertificateResponse,
45
- DeleteInstanceRequest,
46
- ModifyInstanceRequest,
47
- RegisterDeviceCertificateResponse,
48
- MQTTAuthenticatorItem,
49
- DescribeClientListResponse,
50
- Tag,
51
- DescribeMessageListResponse,
52
- HeaderItem,
53
- MQTTInstanceItem,
54
- DescribeInstanceListResponse,
55
- ApplyRegistrationCodeResponse,
56
- ModifyInstanceResponse,
57
- CreateHttpAuthenticatorResponse,
58
- ModifyInsPublicEndpointResponse,
59
- MQTTMessageItem,
60
- ModifyJWKSAuthenticatorResponse,
61
- CreateInsPublicEndpointResponse,
62
- CreateUserResponse,
63
- CreateAuthorizationPolicyRequest,
64
- PublishMessageResponse,
65
- DescribeAuthenticatorResponse,
66
- DeactivateCaCertificateResponse,
67
- DeleteCaCertificateRequest,
68
- DeleteDeviceCertificateRequest,
69
- DescribeInsPublicEndpointsRequest,
70
- DeleteUserResponse,
71
- ActivateCaCertificateResponse,
72
- DeleteDeviceCertificateResponse,
73
- DeleteInstanceResponse,
74
- DescribeProductSKUListResponse,
75
- CreateJWKSAuthenticatorRequest,
76
- DescribeTopicResponse,
77
- CreateJWKSAuthenticatorResponse,
78
- ModifyHttpAuthenticatorResponse,
79
- DescribeAuthorizationPoliciesResponse,
80
- CreateTopicRequest,
81
- DeleteCaCertificateResponse,
82
- TagFilter,
83
- DescribeUserListResponse,
84
- ModifyTopicResponse,
85
- DeactivateDeviceCertificateResponse,
86
- MQTTUserItem,
87
- ActivateCaCertificateRequest,
88
- BodyItem,
89
- ActivateDeviceCertificateResponse,
90
- DescribeTopicRequest,
91
- PublishMessageRequest,
92
- AuthorizationPolicyItem,
93
- DescribeClientListRequest,
94
- DeleteInsPublicEndpointResponse,
95
- MQTTEndpointItem,
96
- DescribeInsVPCEndpointsRequest,
97
- DescribeTopicListRequest,
98
- CreateTopicResponse,
99
- RevokedDeviceCertificateRequest,
100
- CreateAuthorizationPolicyResponse,
101
- DescribeAuthenticatorRequest,
102
- RegisterCaCertificateRequest,
103
- CreateInstanceRequest,
104
- CreateInsPublicEndpointRequest,
105
- RegisterDeviceCertificateRequest,
106
- Filter,
107
- DeactivateDeviceCertificateRequest,
108
- DescribeDeviceCertificatesResponse,
109
- ModifyTopicRequest,
110
- CreateUserRequest,
111
- DescribeInstanceResponse,
112
- ModifyInstanceCertBindingResponse,
113
- DescribeInsVPCEndpointsResponse,
114
- DescribeDeviceCertificateRequest,
115
- ModifyInsPublicEndpointRequest,
116
- DeleteInsPublicEndpointRequest,
117
- DescribeUserListRequest,
118
- DescribeCaCertificateRequest,
119
- UpdateAuthorizationPolicyPriorityRequest,
120
- CreateJWTAuthenticatorResponse,
121
- DeleteAuthorizationPolicyRequest,
122
- DescribeAuthorizationPoliciesRequest,
123
- RevokedDeviceCertificateResponse,
124
- CreateHttpAuthenticatorRequest,
125
- DescribeProductSKUListRequest,
126
- DescribeTopicListResponse,
127
- DescribeDeviceCertificateResponse,
128
- DescribeInstanceListRequest,
129
- DeactivateCaCertificateRequest,
130
- CreateJWTAuthenticatorRequest,
131
- DescribeCaCertificatesRequest,
132
- DeviceCertificateItem,
133
- MQTTClientInfo,
134
- MQTTTopicItem,
135
- PriceTag,
136
- ModifyAuthorizationPolicyRequest,
137
- DescribeSharedSubscriptionLagRequest,
138
- DeleteTopicResponse,
139
- ModifyInstanceCertBindingRequest,
140
- ModifyHttpAuthenticatorRequest,
141
- DescribeInstanceRequest,
142
- DescribeCaCertificatesResponse,
143
- ModifyUserRequest,
144
- DeleteAuthenticatorResponse,
145
- IpRule,
146
- } from "./mqtt_models"
147
-
148
- /**
149
- * mqtt client
150
- * @class
151
- */
152
- export class Client extends TencentCloudCommon.AbstractClient {
153
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
154
- super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig)
155
- }
156
-
157
- /**
158
- * 查询用户列表,Filter参数使用说明如下:
159
-
160
- 1. Username,用户名称模糊搜索
161
- */
162
- async DescribeUserList(
163
- req: DescribeUserListRequest,
164
- cb?: (error: string, rep: DescribeUserListResponse) => void
165
- ): Promise<DescribeUserListResponse> {
166
- return this.request("DescribeUserList", req, cb)
167
- }
168
-
169
- /**
170
- * 为MQTT实例创建公网接入点
171
- */
172
- async CreateInsPublicEndpoint(
173
- req: CreateInsPublicEndpointRequest,
174
- cb?: (error: string, rep: CreateInsPublicEndpointResponse) => void
175
- ): Promise<CreateInsPublicEndpointResponse> {
176
- return this.request("CreateInsPublicEndpoint", req, cb)
177
- }
178
-
179
- /**
180
- * 修改主题属性
181
- */
182
- async ModifyTopic(
183
- req: ModifyTopicRequest,
184
- cb?: (error: string, rep: ModifyTopicResponse) => void
185
- ): Promise<ModifyTopicResponse> {
186
- return this.request("ModifyTopic", req, cb)
187
- }
188
-
189
- /**
190
- * 删除Ca证书
191
- */
192
- async DeleteCaCertificate(
193
- req: DeleteCaCertificateRequest,
194
- cb?: (error: string, rep: DeleteCaCertificateResponse) => void
195
- ): Promise<DeleteCaCertificateResponse> {
196
- return this.request("DeleteCaCertificate", req, cb)
197
- }
198
-
199
- /**
200
- * 失效Ca证书
201
- */
202
- async DeactivateDeviceCertificate(
203
- req: DeactivateDeviceCertificateRequest,
204
- cb?: (error: string, rep: DeactivateDeviceCertificateResponse) => void
205
- ): Promise<DeactivateDeviceCertificateResponse> {
206
- return this.request("DeactivateDeviceCertificate", req, cb)
207
- }
208
-
209
- /**
210
- * 查询mqtt主题详情
211
- */
212
- async DescribeTopic(
213
- req: DescribeTopicRequest,
214
- cb?: (error: string, rep: DescribeTopicResponse) => void
215
- ): Promise<DescribeTopicResponse> {
216
- return this.request("DescribeTopic", req, cb)
217
- }
218
-
219
- /**
220
- * 失效Ca证书
221
- */
222
- async DeactivateCaCertificate(
223
- req: DeactivateCaCertificateRequest,
224
- cb?: (error: string, rep: DeactivateCaCertificateResponse) => void
225
- ): Promise<DeactivateCaCertificateResponse> {
226
- return this.request("DeactivateCaCertificate", req, cb)
227
- }
228
-
229
- /**
230
- * 创建一个jwks的认证
231
- */
232
- async CreateJWTAuthenticator(
233
- req: CreateJWTAuthenticatorRequest,
234
- cb?: (error: string, rep: CreateJWTAuthenticatorResponse) => void
235
- ): Promise<CreateJWTAuthenticatorResponse> {
236
- return this.request("CreateJWTAuthenticator", req, cb)
237
- }
238
-
239
- /**
240
- * 删除设备证书
241
- */
242
- async DeleteDeviceCertificate(
243
- req: DeleteDeviceCertificateRequest,
244
- cb?: (error: string, rep: DeleteDeviceCertificateResponse) => void
245
- ): Promise<DeleteDeviceCertificateResponse> {
246
- return this.request("DeleteDeviceCertificate", req, cb)
247
- }
248
-
249
- /**
250
- * 删除MQTT实例
251
- */
252
- async DeleteInstance(
253
- req: DeleteInstanceRequest,
254
- cb?: (error: string, rep: DeleteInstanceResponse) => void
255
- ): Promise<DeleteInstanceResponse> {
256
- return this.request("DeleteInstance", req, cb)
257
- }
258
-
259
- /**
260
- * 发布 MQTT 消息到消息主题或客户端
261
- */
262
- async PublishMessage(
263
- req: PublishMessageRequest,
264
- cb?: (error: string, rep: PublishMessageResponse) => void
265
- ): Promise<PublishMessageResponse> {
266
- return this.request("PublishMessage", req, cb)
267
- }
268
-
269
- /**
270
- * 修改MQTT JWKS 认证器
271
- */
272
- async ModifyJWTAuthenticator(
273
- req: ModifyJWTAuthenticatorRequest,
274
- cb?: (error: string, rep: ModifyJWTAuthenticatorResponse) => void
275
- ): Promise<ModifyJWTAuthenticatorResponse> {
276
- return this.request("ModifyJWTAuthenticator", req, cb)
277
- }
278
-
279
- /**
280
- * 修改MQTT JWKS 认证器
281
- */
282
- async ModifyJWKSAuthenticator(
283
- req: ModifyJWKSAuthenticatorRequest,
284
- cb?: (error: string, rep: ModifyJWKSAuthenticatorResponse) => void
285
- ): Promise<ModifyJWKSAuthenticatorResponse> {
286
- return this.request("ModifyJWKSAuthenticator", req, cb)
287
- }
288
-
289
- /**
290
- * 分页查询设备证书
291
- */
292
- async DescribeDeviceCertificates(
293
- req: DescribeDeviceCertificatesRequest,
294
- cb?: (error: string, rep: DescribeDeviceCertificatesResponse) => void
295
- ): Promise<DescribeDeviceCertificatesResponse> {
296
- return this.request("DescribeDeviceCertificates", req, cb)
297
- }
298
-
299
- /**
300
- * 查询MQTT实例公网接入点
301
- */
302
- async DescribeInsPublicEndpoints(
303
- req: DescribeInsPublicEndpointsRequest,
304
- cb?: (error: string, rep: DescribeInsPublicEndpointsResponse) => void
305
- ): Promise<DescribeInsPublicEndpointsResponse> {
306
- return this.request("DescribeInsPublicEndpoints", req, cb)
307
- }
308
-
309
- /**
310
- * 更新MQTT实例公网接入点
311
- */
312
- async ModifyInsPublicEndpoint(
313
- req: ModifyInsPublicEndpointRequest,
314
- cb?: (error: string, rep: ModifyInsPublicEndpointResponse) => void
315
- ): Promise<ModifyInsPublicEndpointResponse> {
316
- return this.request("ModifyInsPublicEndpoint", req, cb)
317
- }
318
-
319
- /**
320
- * 查询设备证书详情接口
321
- */
322
- async DescribeDeviceCertificate(
323
- req: DescribeDeviceCertificateRequest,
324
- cb?: (error: string, rep: DescribeDeviceCertificateResponse) => void
325
- ): Promise<DescribeDeviceCertificateResponse> {
326
- return this.request("DescribeDeviceCertificate", req, cb)
327
- }
328
-
329
- /**
330
- * 注册设备证书
331
- */
332
- async RegisterDeviceCertificate(
333
- req: RegisterDeviceCertificateRequest,
334
- cb?: (error: string, rep: RegisterDeviceCertificateResponse) => void
335
- ): Promise<RegisterDeviceCertificateResponse> {
336
- return this.request("RegisterDeviceCertificate", req, cb)
337
- }
338
-
339
- /**
340
- * 更新MQTT集群绑定证书
341
- 参数传空,则为删除证书
342
- */
343
- async ModifyInstanceCertBinding(
344
- req: ModifyInstanceCertBindingRequest,
345
- cb?: (error: string, rep: ModifyInstanceCertBindingResponse) => void
346
- ): Promise<ModifyInstanceCertBindingResponse> {
347
- return this.request("ModifyInstanceCertBinding", req, cb)
348
- }
349
-
350
- /**
351
- * 查询MQTT实例公网接入点
352
- */
353
- async DescribeInsVPCEndpoints(
354
- req: DescribeInsVPCEndpointsRequest,
355
- cb?: (error: string, rep: DescribeInsVPCEndpointsResponse) => void
356
- ): Promise<DescribeInsVPCEndpointsResponse> {
357
- return this.request("DescribeInsVPCEndpoints", req, cb)
358
- }
359
-
360
- /**
361
- * 查询 MQTT 客户端详情
362
- */
363
- async DescribeClientList(
364
- req: DescribeClientListRequest,
365
- cb?: (error: string, rep: DescribeClientListResponse) => void
366
- ): Promise<DescribeClientListResponse> {
367
- return this.request("DescribeClientList", req, cb)
368
- }
369
-
370
- /**
371
- * 获取产品售卖规格
372
- */
373
- async DescribeProductSKUList(
374
- req?: DescribeProductSKUListRequest,
375
- cb?: (error: string, rep: DescribeProductSKUListResponse) => void
376
- ): Promise<DescribeProductSKUListResponse> {
377
- return this.request("DescribeProductSKUList", req, cb)
378
- }
379
-
380
- /**
381
- * 查询集群下的ca证书信息
382
- */
383
- async DescribeCaCertificates(
384
- req: DescribeCaCertificatesRequest,
385
- cb?: (error: string, rep: DescribeCaCertificatesResponse) => void
386
- ): Promise<DescribeCaCertificatesResponse> {
387
- return this.request("DescribeCaCertificates", req, cb)
388
- }
389
-
390
- /**
391
- * 修改策略规则优先级
392
- */
393
- async UpdateAuthorizationPolicyPriority(
394
- req: UpdateAuthorizationPolicyPriorityRequest,
395
- cb?: (error: string, rep: UpdateAuthorizationPolicyPriorityResponse) => void
396
- ): Promise<UpdateAuthorizationPolicyPriorityResponse> {
397
- return this.request("UpdateAuthorizationPolicyPriority", req, cb)
398
- }
399
-
400
- /**
401
- * 创建主题
402
- */
403
- async CreateTopic(
404
- req: CreateTopicRequest,
405
- cb?: (error: string, rep: CreateTopicResponse) => void
406
- ): Promise<CreateTopicResponse> {
407
- return this.request("CreateTopic", req, cb)
408
- }
409
-
410
- /**
411
- * 生效设备证书
412
- */
413
- async ActivateDeviceCertificate(
414
- req: ActivateDeviceCertificateRequest,
415
- cb?: (error: string, rep: ActivateDeviceCertificateResponse) => void
416
- ): Promise<ActivateDeviceCertificateResponse> {
417
- return this.request("ActivateDeviceCertificate", req, cb)
418
- }
419
-
420
- /**
421
- * 查询授权规则
422
- */
423
- async DescribeAuthorizationPolicies(
424
- req: DescribeAuthorizationPoliciesRequest,
425
- cb?: (error: string, rep: DescribeAuthorizationPoliciesResponse) => void
426
- ): Promise<DescribeAuthorizationPoliciesResponse> {
427
- return this.request("DescribeAuthorizationPolicies", req, cb)
428
- }
429
-
430
- /**
431
- * 获取主题列表,Filter参数使用说明如下:
432
-
433
- 1. TopicName,主题名称模糊搜索
434
- 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
435
- */
436
- async DescribeTopicList(
437
- req: DescribeTopicListRequest,
438
- cb?: (error: string, rep: DescribeTopicListResponse) => void
439
- ): Promise<DescribeTopicListResponse> {
440
- return this.request("DescribeTopicList", req, cb)
441
- }
442
-
443
- /**
444
- * 删除MQTT实例的公网接入点
445
- */
446
- async DeleteInsPublicEndpoint(
447
- req: DeleteInsPublicEndpointRequest,
448
- cb?: (error: string, rep: DeleteInsPublicEndpointResponse) => void
449
- ): Promise<DeleteInsPublicEndpointResponse> {
450
- return this.request("DeleteInsPublicEndpoint", req, cb)
451
- }
452
-
453
- /**
454
- * 购买新的MQTT实例
455
- */
456
- async CreateInstance(
457
- req: CreateInstanceRequest,
458
- cb?: (error: string, rep: CreateInstanceResponse) => void
459
- ): Promise<CreateInstanceResponse> {
460
- return this.request("CreateInstance", req, cb)
461
- }
462
-
463
- /**
464
- * 获取实例列表,Filters参数使用说明如下:
465
- 1. InstanceName, 名称模糊查询
466
- 2. InstanceId,实例ID查询
467
- 3. InstanceStatus,实例状态查询,支持多选
468
-
469
- 当使用TagFilters查询时,Filters参数失效。
470
- */
471
- async DescribeInstanceList(
472
- req: DescribeInstanceListRequest,
473
- cb?: (error: string, rep: DescribeInstanceListResponse) => void
474
- ): Promise<DescribeInstanceListResponse> {
475
- return this.request("DescribeInstanceList", req, cb)
476
- }
477
-
478
- /**
479
- * 吊销设备证书
480
- */
481
- async RevokedDeviceCertificate(
482
- req: RevokedDeviceCertificateRequest,
483
- cb?: (error: string, rep: RevokedDeviceCertificateResponse) => void
484
- ): Promise<RevokedDeviceCertificateResponse> {
485
- return this.request("RevokedDeviceCertificate", req, cb)
486
- }
487
-
488
- /**
489
- * 查询实例信息
490
- */
491
- async DescribeInstance(
492
- req: DescribeInstanceRequest,
493
- cb?: (error: string, rep: DescribeInstanceResponse) => void
494
- ): Promise<DescribeInstanceResponse> {
495
- return this.request("DescribeInstance", req, cb)
496
- }
497
-
498
- /**
499
- * 删除MQTT主题
500
- */
501
- async DeleteTopic(
502
- req: DeleteTopicRequest,
503
- cb?: (error: string, rep: DeleteTopicResponse) => void
504
- ): Promise<DeleteTopicResponse> {
505
- return this.request("DeleteTopic", req, cb)
506
- }
507
-
508
- /**
509
- * 查询Ca证书详情接口
510
- */
511
- async DescribeCaCertificate(
512
- req: DescribeCaCertificateRequest,
513
- cb?: (error: string, rep: DescribeCaCertificateResponse) => void
514
- ): Promise<DescribeCaCertificateResponse> {
515
- return this.request("DescribeCaCertificate", req, cb)
516
- }
517
-
518
- /**
519
- * 创建一个jwks的认证
520
- */
521
- async CreateJWKSAuthenticator(
522
- req: CreateJWKSAuthenticatorRequest,
523
- cb?: (error: string, rep: CreateJWKSAuthenticatorResponse) => void
524
- ): Promise<CreateJWKSAuthenticatorResponse> {
525
- return this.request("CreateJWKSAuthenticator", req, cb)
526
- }
527
-
528
- /**
529
- * 修改MQTT角色
530
- */
531
- async ModifyUser(
532
- req: ModifyUserRequest,
533
- cb?: (error: string, rep: ModifyUserResponse) => void
534
- ): Promise<ModifyUserResponse> {
535
- return this.request("ModifyUser", req, cb)
536
- }
537
-
538
- /**
539
- * 删除MQTT访问用户
540
- */
541
- async DeleteUser(
542
- req: DeleteUserRequest,
543
- cb?: (error: string, rep: DeleteUserResponse) => void
544
- ): Promise<DeleteUserResponse> {
545
- return this.request("DeleteUser", req, cb)
546
- }
547
-
548
- /**
549
- * 修改策略规则
550
- */
551
- async ModifyAuthorizationPolicy(
552
- req: ModifyAuthorizationPolicyRequest,
553
- cb?: (error: string, rep: ModifyAuthorizationPolicyResponse) => void
554
- ): Promise<ModifyAuthorizationPolicyResponse> {
555
- return this.request("ModifyAuthorizationPolicy", req, cb)
556
- }
557
-
558
- /**
559
- * 删除策略规则
560
- */
561
- async DeleteAuthorizationPolicy(
562
- req: DeleteAuthorizationPolicyRequest,
563
- cb?: (error: string, rep: DeleteAuthorizationPolicyResponse) => void
564
- ): Promise<DeleteAuthorizationPolicyResponse> {
565
- return this.request("DeleteAuthorizationPolicy", req, cb)
566
- }
567
-
568
- /**
569
- * 修改MQTT HTTP 认证器
570
- */
571
- async ModifyHttpAuthenticator(
572
- req: ModifyHttpAuthenticatorRequest,
573
- cb?: (error: string, rep: ModifyHttpAuthenticatorResponse) => void
574
- ): Promise<ModifyHttpAuthenticatorResponse> {
575
- return this.request("ModifyHttpAuthenticator", req, cb)
576
- }
577
-
578
- /**
579
- * 根据认证器类型删除一个MQTT认证器
580
- */
581
- async DeleteAuthenticator(
582
- req: DeleteAuthenticatorRequest,
583
- cb?: (error: string, rep: DeleteAuthenticatorResponse) => void
584
- ): Promise<DeleteAuthenticatorResponse> {
585
- return this.request("DeleteAuthenticator", req, cb)
586
- }
587
-
588
- /**
589
- * 注册ca证书
590
- */
591
- async RegisterCaCertificate(
592
- req: RegisterCaCertificateRequest,
593
- cb?: (error: string, rep: RegisterCaCertificateResponse) => void
594
- ): Promise<RegisterCaCertificateResponse> {
595
- return this.request("RegisterCaCertificate", req, cb)
596
- }
597
-
598
- /**
599
- * 查询MQTT认证器
600
- */
601
- async DescribeAuthenticator(
602
- req: DescribeAuthenticatorRequest,
603
- cb?: (error: string, rep: DescribeAuthenticatorResponse) => void
604
- ): Promise<DescribeAuthenticatorResponse> {
605
- return this.request("DescribeAuthenticator", req, cb)
606
- }
607
-
608
- /**
609
- * 激活Ca证书
610
- */
611
- async ActivateCaCertificate(
612
- req: ActivateCaCertificateRequest,
613
- cb?: (error: string, rep: ActivateCaCertificateResponse) => void
614
- ): Promise<ActivateCaCertificateResponse> {
615
- return this.request("ActivateCaCertificate", req, cb)
616
- }
617
-
618
- /**
619
- * 查询消息列表,如查询死信,请设置ConsumerGroup参数
620
- */
621
- async DescribeMessageList(
622
- req: DescribeMessageListRequest,
623
- cb?: (error: string, rep: DescribeMessageListResponse) => void
624
- ): Promise<DescribeMessageListResponse> {
625
- return this.request("DescribeMessageList", req, cb)
626
- }
627
-
628
- /**
629
- * 添加mqtt角色
630
- */
631
- async CreateUser(
632
- req: CreateUserRequest,
633
- cb?: (error: string, rep: CreateUserResponse) => void
634
- ): Promise<CreateUserResponse> {
635
- return this.request("CreateUser", req, cb)
636
- }
637
-
638
- /**
639
- * 查询共享订阅消息堆积量
640
- */
641
- async DescribeSharedSubscriptionLag(
642
- req: DescribeSharedSubscriptionLagRequest,
643
- cb?: (error: string, rep: DescribeSharedSubscriptionLagResponse) => void
644
- ): Promise<DescribeSharedSubscriptionLagResponse> {
645
- return this.request("DescribeSharedSubscriptionLag", req, cb)
646
- }
647
-
648
- /**
649
- * 申请ca注册码
650
- */
651
- async ApplyRegistrationCode(
652
- req: ApplyRegistrationCodeRequest,
653
- cb?: (error: string, rep: ApplyRegistrationCodeResponse) => void
654
- ): Promise<ApplyRegistrationCodeResponse> {
655
- return this.request("ApplyRegistrationCode", req, cb)
656
- }
657
-
658
- /**
659
- * 创建MQTT实例的性能测试任务
660
- */
661
- async CreateAuthorizationPolicy(
662
- req: CreateAuthorizationPolicyRequest,
663
- cb?: (error: string, rep: CreateAuthorizationPolicyResponse) => void
664
- ): Promise<CreateAuthorizationPolicyResponse> {
665
- return this.request("CreateAuthorizationPolicy", req, cb)
666
- }
667
-
668
- /**
669
- * 修改实例属性
670
- */
671
- async ModifyInstance(
672
- req: ModifyInstanceRequest,
673
- cb?: (error: string, rep: ModifyInstanceResponse) => void
674
- ): Promise<ModifyInstanceResponse> {
675
- return this.request("ModifyInstance", req, cb)
676
- }
677
-
678
- /**
679
- * 创建一个HTTP的认证器
680
- */
681
- async CreateHttpAuthenticator(
682
- req: CreateHttpAuthenticatorRequest,
683
- cb?: (error: string, rep: CreateHttpAuthenticatorResponse) => void
684
- ): Promise<CreateHttpAuthenticatorResponse> {
685
- return this.request("CreateHttpAuthenticator", req, cb)
686
- }
687
- }