tencentcloud-sdk-nodejs-mqtt 4.0.988 → 4.0.990
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/package.json +1 -1
- package/products.md +28 -28
- package/src/services/mqtt/v20240516/mqtt_client.ts +151 -103
- package/src/services/mqtt/v20240516/mqtt_models.ts +202 -48
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +57 -41
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +84 -60
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +194 -48
|
@@ -514,6 +514,20 @@ export interface DescribeAuthenticatorResponse {
|
|
|
514
514
|
RequestId?: string
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* DeleteDeviceCertificate请求参数结构体
|
|
519
|
+
*/
|
|
520
|
+
export interface DeleteDeviceCertificateRequest {
|
|
521
|
+
/**
|
|
522
|
+
* 集群id
|
|
523
|
+
*/
|
|
524
|
+
InstanceId: string
|
|
525
|
+
/**
|
|
526
|
+
* 设备证书序列号
|
|
527
|
+
*/
|
|
528
|
+
DeviceCertificateSn: string
|
|
529
|
+
}
|
|
530
|
+
|
|
517
531
|
/**
|
|
518
532
|
* CreateTopic返回参数结构体
|
|
519
533
|
*/
|
|
@@ -568,6 +582,88 @@ password-使用密码字段传递
|
|
|
568
582
|
Remark?: string
|
|
569
583
|
}
|
|
570
584
|
|
|
585
|
+
/**
|
|
586
|
+
* DescribeDeviceCertificate返回参数结构体
|
|
587
|
+
*/
|
|
588
|
+
export interface DescribeDeviceCertificateResponse {
|
|
589
|
+
/**
|
|
590
|
+
* 创建时间
|
|
591
|
+
*/
|
|
592
|
+
CreatedTime?: number
|
|
593
|
+
/**
|
|
594
|
+
* 上次更新时间
|
|
595
|
+
*/
|
|
596
|
+
UpdateTime?: number
|
|
597
|
+
/**
|
|
598
|
+
* 证书失效日期
|
|
599
|
+
*/
|
|
600
|
+
NotAfterTime?: number
|
|
601
|
+
/**
|
|
602
|
+
* 上次激活时间
|
|
603
|
+
*/
|
|
604
|
+
LastActivationTime?: number
|
|
605
|
+
/**
|
|
606
|
+
* 上次取消激活时间
|
|
607
|
+
*/
|
|
608
|
+
LastInactivationTime?: number
|
|
609
|
+
/**
|
|
610
|
+
* 证书状态
|
|
611
|
+
*/
|
|
612
|
+
Status?: string
|
|
613
|
+
/**
|
|
614
|
+
* 证书序列号
|
|
615
|
+
*/
|
|
616
|
+
CaSn?: string
|
|
617
|
+
/**
|
|
618
|
+
* 设备证书sn
|
|
619
|
+
*/
|
|
620
|
+
DeviceCertificateSn?: string
|
|
621
|
+
/**
|
|
622
|
+
* 证书内容
|
|
623
|
+
*/
|
|
624
|
+
DeviceCertificate?: string
|
|
625
|
+
/**
|
|
626
|
+
* 设备证书cn
|
|
627
|
+
*/
|
|
628
|
+
DeviceCertificateCn?: string
|
|
629
|
+
/**
|
|
630
|
+
* 证书格式
|
|
631
|
+
*/
|
|
632
|
+
Format?: string
|
|
633
|
+
/**
|
|
634
|
+
* 客户端id
|
|
635
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
636
|
+
*/
|
|
637
|
+
ClientId?: string
|
|
638
|
+
/**
|
|
639
|
+
* API, 手动注册
|
|
640
|
+
JITP 自动注册
|
|
641
|
+
*/
|
|
642
|
+
CertificateSource?: string
|
|
643
|
+
/**
|
|
644
|
+
* 证书生效开始时间
|
|
645
|
+
*/
|
|
646
|
+
NotBeforeTime?: number
|
|
647
|
+
/**
|
|
648
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
649
|
+
*/
|
|
650
|
+
RequestId?: string
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* RevokedDeviceCertificate请求参数结构体
|
|
655
|
+
*/
|
|
656
|
+
export interface RevokedDeviceCertificateRequest {
|
|
657
|
+
/**
|
|
658
|
+
* 集群id
|
|
659
|
+
*/
|
|
660
|
+
InstanceId: string
|
|
661
|
+
/**
|
|
662
|
+
* 设备证书序列号
|
|
663
|
+
*/
|
|
664
|
+
DeviceCertificateSn: string
|
|
665
|
+
}
|
|
666
|
+
|
|
571
667
|
/**
|
|
572
668
|
* 策略规则优先级
|
|
573
669
|
*/
|
|
@@ -594,6 +690,16 @@ export interface CreateAuthorizationPolicyResponse {
|
|
|
594
690
|
RequestId?: string
|
|
595
691
|
}
|
|
596
692
|
|
|
693
|
+
/**
|
|
694
|
+
* DeleteDeviceCertificate返回参数结构体
|
|
695
|
+
*/
|
|
696
|
+
export interface DeleteDeviceCertificateResponse {
|
|
697
|
+
/**
|
|
698
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
699
|
+
*/
|
|
700
|
+
RequestId?: string
|
|
701
|
+
}
|
|
702
|
+
|
|
597
703
|
/**
|
|
598
704
|
* CreateJWTAuthenticator请求参数结构体
|
|
599
705
|
*/
|
|
@@ -1086,9 +1192,9 @@ DELETING,删除中
|
|
|
1086
1192
|
}
|
|
1087
1193
|
|
|
1088
1194
|
/**
|
|
1089
|
-
*
|
|
1195
|
+
* RevokedDeviceCertificate返回参数结构体
|
|
1090
1196
|
*/
|
|
1091
|
-
export interface
|
|
1197
|
+
export interface RevokedDeviceCertificateResponse {
|
|
1092
1198
|
/**
|
|
1093
1199
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1094
1200
|
*/
|
|
@@ -1096,65 +1202,51 @@ export interface DeleteTopicResponse {
|
|
|
1096
1202
|
}
|
|
1097
1203
|
|
|
1098
1204
|
/**
|
|
1099
|
-
*
|
|
1205
|
+
* DeleteTopic返回参数结构体
|
|
1100
1206
|
*/
|
|
1101
|
-
export interface
|
|
1102
|
-
/**
|
|
1103
|
-
* 策略
|
|
1104
|
-
*/
|
|
1105
|
-
Id: number
|
|
1106
|
-
/**
|
|
1107
|
-
* 实例ID
|
|
1108
|
-
*/
|
|
1109
|
-
InstanceId: string
|
|
1110
|
-
/**
|
|
1111
|
-
* 策略名称
|
|
1112
|
-
*/
|
|
1113
|
-
PolicyName?: string
|
|
1114
|
-
/**
|
|
1115
|
-
* 策略版本
|
|
1116
|
-
*/
|
|
1117
|
-
PolicyVersion?: number
|
|
1118
|
-
/**
|
|
1119
|
-
* 策略优先级,越小越优先
|
|
1120
|
-
*/
|
|
1121
|
-
Priority?: number
|
|
1122
|
-
/**
|
|
1123
|
-
* allow、deny
|
|
1124
|
-
*/
|
|
1125
|
-
Effect?: string
|
|
1126
|
-
/**
|
|
1127
|
-
* connect、pub、sub
|
|
1128
|
-
*/
|
|
1129
|
-
Actions?: string
|
|
1130
|
-
/**
|
|
1131
|
-
* 资源
|
|
1132
|
-
*/
|
|
1133
|
-
Resources?: string
|
|
1207
|
+
export interface DeleteTopicResponse {
|
|
1134
1208
|
/**
|
|
1135
|
-
*
|
|
1209
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1136
1210
|
*/
|
|
1137
|
-
|
|
1211
|
+
RequestId?: string
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* DeactivateDeviceCertificate返回参数结构体
|
|
1216
|
+
*/
|
|
1217
|
+
export interface DeactivateDeviceCertificateResponse {
|
|
1138
1218
|
/**
|
|
1139
|
-
*
|
|
1219
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1140
1220
|
*/
|
|
1141
|
-
|
|
1221
|
+
RequestId?: string
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* DescribeDeviceCertificate请求参数结构体
|
|
1226
|
+
*/
|
|
1227
|
+
export interface DescribeDeviceCertificateRequest {
|
|
1142
1228
|
/**
|
|
1143
|
-
*
|
|
1229
|
+
* 设备证书sn
|
|
1144
1230
|
*/
|
|
1145
|
-
|
|
1231
|
+
DeviceCertificateSn: string
|
|
1146
1232
|
/**
|
|
1147
|
-
*
|
|
1233
|
+
* 集群id
|
|
1148
1234
|
*/
|
|
1149
|
-
|
|
1235
|
+
InstanceId: string
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* DeactivateDeviceCertificate请求参数结构体
|
|
1240
|
+
*/
|
|
1241
|
+
export interface DeactivateDeviceCertificateRequest {
|
|
1150
1242
|
/**
|
|
1151
|
-
*
|
|
1243
|
+
* 集群id
|
|
1152
1244
|
*/
|
|
1153
|
-
|
|
1245
|
+
InstanceId: string
|
|
1154
1246
|
/**
|
|
1155
|
-
*
|
|
1247
|
+
* 设备证书序列号
|
|
1156
1248
|
*/
|
|
1157
|
-
|
|
1249
|
+
DeviceCertificateSn: string
|
|
1158
1250
|
}
|
|
1159
1251
|
|
|
1160
1252
|
/**
|
|
@@ -1222,6 +1314,68 @@ export interface TagFilter {
|
|
|
1222
1314
|
TagValues?: Array<string>
|
|
1223
1315
|
}
|
|
1224
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
* ModifyAuthorizationPolicy请求参数结构体
|
|
1319
|
+
*/
|
|
1320
|
+
export interface ModifyAuthorizationPolicyRequest {
|
|
1321
|
+
/**
|
|
1322
|
+
* 策略
|
|
1323
|
+
*/
|
|
1324
|
+
Id: number
|
|
1325
|
+
/**
|
|
1326
|
+
* 实例ID
|
|
1327
|
+
*/
|
|
1328
|
+
InstanceId: string
|
|
1329
|
+
/**
|
|
1330
|
+
* 策略名称
|
|
1331
|
+
*/
|
|
1332
|
+
PolicyName?: string
|
|
1333
|
+
/**
|
|
1334
|
+
* 策略版本
|
|
1335
|
+
*/
|
|
1336
|
+
PolicyVersion?: number
|
|
1337
|
+
/**
|
|
1338
|
+
* 策略优先级,越小越优先
|
|
1339
|
+
*/
|
|
1340
|
+
Priority?: number
|
|
1341
|
+
/**
|
|
1342
|
+
* allow、deny
|
|
1343
|
+
*/
|
|
1344
|
+
Effect?: string
|
|
1345
|
+
/**
|
|
1346
|
+
* connect、pub、sub
|
|
1347
|
+
*/
|
|
1348
|
+
Actions?: string
|
|
1349
|
+
/**
|
|
1350
|
+
* 资源
|
|
1351
|
+
*/
|
|
1352
|
+
Resources?: string
|
|
1353
|
+
/**
|
|
1354
|
+
* 用户名
|
|
1355
|
+
*/
|
|
1356
|
+
Username?: string
|
|
1357
|
+
/**
|
|
1358
|
+
* 1.匹配保留消息;2.匹配非保留消息;3.匹配所有消息
|
|
1359
|
+
*/
|
|
1360
|
+
Retain?: number
|
|
1361
|
+
/**
|
|
1362
|
+
* 客户端
|
|
1363
|
+
*/
|
|
1364
|
+
ClientId?: string
|
|
1365
|
+
/**
|
|
1366
|
+
* IP
|
|
1367
|
+
*/
|
|
1368
|
+
Ip?: string
|
|
1369
|
+
/**
|
|
1370
|
+
* 0、1、2
|
|
1371
|
+
*/
|
|
1372
|
+
Qos?: string
|
|
1373
|
+
/**
|
|
1374
|
+
* 备注信息
|
|
1375
|
+
*/
|
|
1376
|
+
Remark?: string
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1225
1379
|
/**
|
|
1226
1380
|
* ActivateDeviceCertificate返回参数结构体
|
|
1227
1381
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { UpdateAuthorizationPolicyPriorityResponse, UpdateAuthorizationPolicyPriorityRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, ModifyJWKSAuthenticatorResponse, RegisterDeviceCertificateResponse, ModifyJWTAuthenticatorResponse, DescribeAuthorizationPoliciesRequest, DescribeTopicListRequest, DescribeInstanceListRequest, ModifyAuthorizationPolicyResponse, CreateAuthorizationPolicyRequest, ActivateDeviceCertificateRequest, DescribeInstanceResponse, DescribeAuthenticatorResponse, CreateTopicResponse, ModifyJWTAuthenticatorRequest, CreateAuthorizationPolicyResponse, CreateJWTAuthenticatorRequest, DeleteTopicRequest, CreateJWKSAuthenticatorRequest, ModifyTopicResponse, DescribeTopicResponse, DescribeDeviceCertificatesRequest, CreateJWKSAuthenticatorResponse, DeleteAuthenticatorRequest, DescribeAuthorizationPoliciesResponse, RegisterDeviceCertificateRequest, CreateTopicRequest, DeleteAuthorizationPolicyResponse, DescribeDeviceCertificatesResponse, ModifyJWKSAuthenticatorRequest, ModifyTopicRequest, DescribeTopicListResponse, DescribeAuthenticatorRequest, DeleteTopicResponse,
|
|
2
|
+
import { UpdateAuthorizationPolicyPriorityResponse, UpdateAuthorizationPolicyPriorityRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, ModifyJWKSAuthenticatorResponse, RegisterDeviceCertificateResponse, ModifyJWTAuthenticatorResponse, DescribeAuthorizationPoliciesRequest, DescribeTopicListRequest, DescribeInstanceListRequest, ModifyAuthorizationPolicyResponse, CreateAuthorizationPolicyRequest, ActivateDeviceCertificateRequest, DescribeInstanceResponse, DescribeAuthenticatorResponse, DeleteDeviceCertificateRequest, CreateTopicResponse, ModifyJWTAuthenticatorRequest, DescribeDeviceCertificateResponse, RevokedDeviceCertificateRequest, CreateAuthorizationPolicyResponse, DeleteDeviceCertificateResponse, CreateJWTAuthenticatorRequest, DeleteTopicRequest, CreateJWKSAuthenticatorRequest, ModifyTopicResponse, DescribeTopicResponse, DescribeDeviceCertificatesRequest, CreateJWKSAuthenticatorResponse, DeleteAuthenticatorRequest, DescribeAuthorizationPoliciesResponse, RegisterDeviceCertificateRequest, CreateTopicRequest, DeleteAuthorizationPolicyResponse, DescribeDeviceCertificatesResponse, ModifyJWKSAuthenticatorRequest, ModifyTopicRequest, DescribeTopicListResponse, DescribeAuthenticatorRequest, RevokedDeviceCertificateResponse, DeleteTopicResponse, DeactivateDeviceCertificateResponse, DescribeDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeInstanceRequest, DeleteAuthenticatorResponse, ModifyAuthorizationPolicyRequest, ActivateDeviceCertificateResponse, DescribeInstanceListResponse, DescribeTopicRequest } from "./mqtt_models";
|
|
3
3
|
/**
|
|
4
4
|
* mqtt client
|
|
5
5
|
* @class
|
|
@@ -7,33 +7,57 @@ import { UpdateAuthorizationPolicyPriorityResponse, UpdateAuthorizationPolicyPri
|
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 修改主题属性
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
ModifyTopic(req: ModifyTopicRequest, cb?: (error: string, rep: ModifyTopicResponse) => void): Promise<ModifyTopicResponse>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 失效Ca证书
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
DeactivateDeviceCertificate(req: DeactivateDeviceCertificateRequest, cb?: (error: string, rep: DeactivateDeviceCertificateResponse) => void): Promise<DeactivateDeviceCertificateResponse>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* 查询mqtt主题详情
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
DescribeTopic(req: DescribeTopicRequest, cb?: (error: string, rep: DescribeTopicResponse) => void): Promise<DescribeTopicResponse>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 创建一个jwks的认证
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
CreateJWTAuthenticator(req: CreateJWTAuthenticatorRequest, cb?: (error: string, rep: CreateJWTAuthenticatorResponse) => void): Promise<CreateJWTAuthenticatorResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 删除设备证书
|
|
27
|
+
*/
|
|
28
|
+
DeleteDeviceCertificate(req: DeleteDeviceCertificateRequest, cb?: (error: string, rep: DeleteDeviceCertificateResponse) => void): Promise<DeleteDeviceCertificateResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* 修改MQTT JWKS 认证器
|
|
31
|
+
*/
|
|
32
|
+
ModifyJWTAuthenticator(req: ModifyJWTAuthenticatorRequest, cb?: (error: string, rep: ModifyJWTAuthenticatorResponse) => void): Promise<ModifyJWTAuthenticatorResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* 修改MQTT JWKS 认证器
|
|
35
|
+
*/
|
|
36
|
+
ModifyJWKSAuthenticator(req: ModifyJWKSAuthenticatorRequest, cb?: (error: string, rep: ModifyJWKSAuthenticatorResponse) => void): Promise<ModifyJWKSAuthenticatorResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 分页查询设备证书
|
|
39
|
+
*/
|
|
40
|
+
DescribeDeviceCertificates(req: DescribeDeviceCertificatesRequest, cb?: (error: string, rep: DescribeDeviceCertificatesResponse) => void): Promise<DescribeDeviceCertificatesResponse>;
|
|
25
41
|
/**
|
|
26
42
|
* 注册设备证书
|
|
27
43
|
*/
|
|
28
44
|
RegisterDeviceCertificate(req: RegisterDeviceCertificateRequest, cb?: (error: string, rep: RegisterDeviceCertificateResponse) => void): Promise<RegisterDeviceCertificateResponse>;
|
|
29
45
|
/**
|
|
30
|
-
*
|
|
46
|
+
* 创建主题
|
|
31
47
|
*/
|
|
32
|
-
|
|
48
|
+
CreateTopic(req: CreateTopicRequest, cb?: (error: string, rep: CreateTopicResponse) => void): Promise<CreateTopicResponse>;
|
|
33
49
|
/**
|
|
34
|
-
*
|
|
50
|
+
* 生效设备证书
|
|
35
51
|
*/
|
|
36
|
-
|
|
52
|
+
ActivateDeviceCertificate(req: ActivateDeviceCertificateRequest, cb?: (error: string, rep: ActivateDeviceCertificateResponse) => void): Promise<ActivateDeviceCertificateResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* 查询授权规则
|
|
55
|
+
*/
|
|
56
|
+
DescribeAuthorizationPolicies(req: DescribeAuthorizationPoliciesRequest, cb?: (error: string, rep: DescribeAuthorizationPoliciesResponse) => void): Promise<DescribeAuthorizationPoliciesResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* 查询设备证书详情接口
|
|
59
|
+
*/
|
|
60
|
+
DescribeDeviceCertificate(req: DescribeDeviceCertificateRequest, cb?: (error: string, rep: DescribeDeviceCertificateResponse) => void): Promise<DescribeDeviceCertificateResponse>;
|
|
37
61
|
/**
|
|
38
62
|
* 获取实例列表,Filters参数使用说明如下:
|
|
39
63
|
1. InstanceName, 名称模糊查询
|
|
@@ -43,6 +67,26 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
43
67
|
当使用TagFilters查询时,Filters参数失效。
|
|
44
68
|
*/
|
|
45
69
|
DescribeInstanceList(req: DescribeInstanceListRequest, cb?: (error: string, rep: DescribeInstanceListResponse) => void): Promise<DescribeInstanceListResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* 吊销设备证书
|
|
72
|
+
*/
|
|
73
|
+
RevokedDeviceCertificate(req: RevokedDeviceCertificateRequest, cb?: (error: string, rep: RevokedDeviceCertificateResponse) => void): Promise<RevokedDeviceCertificateResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* 查询实例信息
|
|
76
|
+
*/
|
|
77
|
+
DescribeInstance(req: DescribeInstanceRequest, cb?: (error: string, rep: DescribeInstanceResponse) => void): Promise<DescribeInstanceResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* 删除MQTT主题
|
|
80
|
+
*/
|
|
81
|
+
DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* 创建一个jwks的认证
|
|
84
|
+
*/
|
|
85
|
+
CreateJWKSAuthenticator(req: CreateJWKSAuthenticatorRequest, cb?: (error: string, rep: CreateJWKSAuthenticatorResponse) => void): Promise<CreateJWKSAuthenticatorResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* 修改策略规则
|
|
88
|
+
*/
|
|
89
|
+
ModifyAuthorizationPolicy(req: ModifyAuthorizationPolicyRequest, cb?: (error: string, rep: ModifyAuthorizationPolicyResponse) => void): Promise<ModifyAuthorizationPolicyResponse>;
|
|
46
90
|
/**
|
|
47
91
|
* 删除策略规则
|
|
48
92
|
*/
|
|
@@ -51,26 +95,14 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
51
95
|
* 根据认证器类型删除一个MQTT认证器
|
|
52
96
|
*/
|
|
53
97
|
DeleteAuthenticator(req: DeleteAuthenticatorRequest, cb?: (error: string, rep: DeleteAuthenticatorResponse) => void): Promise<DeleteAuthenticatorResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* 查询mqtt主题详情
|
|
56
|
-
*/
|
|
57
|
-
DescribeTopic(req: DescribeTopicRequest, cb?: (error: string, rep: DescribeTopicResponse) => void): Promise<DescribeTopicResponse>;
|
|
58
98
|
/**
|
|
59
99
|
* 查询MQTT认证器
|
|
60
100
|
*/
|
|
61
101
|
DescribeAuthenticator(req: DescribeAuthenticatorRequest, cb?: (error: string, rep: DescribeAuthenticatorResponse) => void): Promise<DescribeAuthenticatorResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* 创建一个jwks的认证
|
|
64
|
-
*/
|
|
65
|
-
CreateJWTAuthenticator(req: CreateJWTAuthenticatorRequest, cb?: (error: string, rep: CreateJWTAuthenticatorResponse) => void): Promise<CreateJWTAuthenticatorResponse>;
|
|
66
102
|
/**
|
|
67
103
|
* 修改策略规则优先级
|
|
68
104
|
*/
|
|
69
105
|
UpdateAuthorizationPolicyPriority(req: UpdateAuthorizationPolicyPriorityRequest, cb?: (error: string, rep: UpdateAuthorizationPolicyPriorityResponse) => void): Promise<UpdateAuthorizationPolicyPriorityResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* 修改MQTT JWKS 认证器
|
|
72
|
-
*/
|
|
73
|
-
ModifyJWTAuthenticator(req: ModifyJWTAuthenticatorRequest, cb?: (error: string, rep: ModifyJWTAuthenticatorResponse) => void): Promise<ModifyJWTAuthenticatorResponse>;
|
|
74
106
|
/**
|
|
75
107
|
* 获取主题列表,Filter参数使用说明如下:
|
|
76
108
|
|
|
@@ -78,24 +110,8 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
78
110
|
2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
|
|
79
111
|
*/
|
|
80
112
|
DescribeTopicList(req: DescribeTopicListRequest, cb?: (error: string, rep: DescribeTopicListResponse) => void): Promise<DescribeTopicListResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* 删除MQTT主题
|
|
83
|
-
*/
|
|
84
|
-
DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
|
|
85
|
-
/**
|
|
86
|
-
* 分页查询设备证书
|
|
87
|
-
*/
|
|
88
|
-
DescribeDeviceCertificates(req: DescribeDeviceCertificatesRequest, cb?: (error: string, rep: DescribeDeviceCertificatesResponse) => void): Promise<DescribeDeviceCertificatesResponse>;
|
|
89
113
|
/**
|
|
90
114
|
* 创建MQTT实例的性能测试任务
|
|
91
115
|
*/
|
|
92
116
|
CreateAuthorizationPolicy(req: CreateAuthorizationPolicyRequest, cb?: (error: string, rep: CreateAuthorizationPolicyResponse) => void): Promise<CreateAuthorizationPolicyResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* 修改MQTT JWKS 认证器
|
|
95
|
-
*/
|
|
96
|
-
ModifyJWKSAuthenticator(req: ModifyJWKSAuthenticatorRequest, cb?: (error: string, rep: ModifyJWKSAuthenticatorResponse) => void): Promise<ModifyJWKSAuthenticatorResponse>;
|
|
97
|
-
/**
|
|
98
|
-
* 创建一个jwks的认证
|
|
99
|
-
*/
|
|
100
|
-
CreateJWKSAuthenticator(req: CreateJWKSAuthenticatorRequest, cb?: (error: string, rep: CreateJWKSAuthenticatorResponse) => void): Promise<CreateJWKSAuthenticatorResponse>;
|
|
101
117
|
}
|
|
@@ -28,28 +28,52 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 修改主题属性
|
|
32
32
|
*/
|
|
33
|
-
async
|
|
34
|
-
return this.request("
|
|
33
|
+
async ModifyTopic(req, cb) {
|
|
34
|
+
return this.request("ModifyTopic", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 失效Ca证书
|
|
38
38
|
*/
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
39
|
+
async DeactivateDeviceCertificate(req, cb) {
|
|
40
|
+
return this.request("DeactivateDeviceCertificate", req, cb);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* 查询mqtt主题详情
|
|
44
44
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
45
|
+
async DescribeTopic(req, cb) {
|
|
46
|
+
return this.request("DescribeTopic", req, cb);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 创建一个jwks的认证
|
|
50
50
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
51
|
+
async CreateJWTAuthenticator(req, cb) {
|
|
52
|
+
return this.request("CreateJWTAuthenticator", req, cb);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 删除设备证书
|
|
56
|
+
*/
|
|
57
|
+
async DeleteDeviceCertificate(req, cb) {
|
|
58
|
+
return this.request("DeleteDeviceCertificate", req, cb);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 修改MQTT JWKS 认证器
|
|
62
|
+
*/
|
|
63
|
+
async ModifyJWTAuthenticator(req, cb) {
|
|
64
|
+
return this.request("ModifyJWTAuthenticator", req, cb);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 修改MQTT JWKS 认证器
|
|
68
|
+
*/
|
|
69
|
+
async ModifyJWKSAuthenticator(req, cb) {
|
|
70
|
+
return this.request("ModifyJWKSAuthenticator", req, cb);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 分页查询设备证书
|
|
74
|
+
*/
|
|
75
|
+
async DescribeDeviceCertificates(req, cb) {
|
|
76
|
+
return this.request("DescribeDeviceCertificates", req, cb);
|
|
53
77
|
}
|
|
54
78
|
/**
|
|
55
79
|
* 注册设备证书
|
|
@@ -58,16 +82,28 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
58
82
|
return this.request("RegisterDeviceCertificate", req, cb);
|
|
59
83
|
}
|
|
60
84
|
/**
|
|
61
|
-
*
|
|
85
|
+
* 创建主题
|
|
62
86
|
*/
|
|
63
|
-
async
|
|
64
|
-
return this.request("
|
|
87
|
+
async CreateTopic(req, cb) {
|
|
88
|
+
return this.request("CreateTopic", req, cb);
|
|
65
89
|
}
|
|
66
90
|
/**
|
|
67
|
-
*
|
|
91
|
+
* 生效设备证书
|
|
68
92
|
*/
|
|
69
|
-
async
|
|
70
|
-
return this.request("
|
|
93
|
+
async ActivateDeviceCertificate(req, cb) {
|
|
94
|
+
return this.request("ActivateDeviceCertificate", req, cb);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 查询授权规则
|
|
98
|
+
*/
|
|
99
|
+
async DescribeAuthorizationPolicies(req, cb) {
|
|
100
|
+
return this.request("DescribeAuthorizationPolicies", req, cb);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 查询设备证书详情接口
|
|
104
|
+
*/
|
|
105
|
+
async DescribeDeviceCertificate(req, cb) {
|
|
106
|
+
return this.request("DescribeDeviceCertificate", req, cb);
|
|
71
107
|
}
|
|
72
108
|
/**
|
|
73
109
|
* 获取实例列表,Filters参数使用说明如下:
|
|
@@ -80,6 +116,36 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
80
116
|
async DescribeInstanceList(req, cb) {
|
|
81
117
|
return this.request("DescribeInstanceList", req, cb);
|
|
82
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* 吊销设备证书
|
|
121
|
+
*/
|
|
122
|
+
async RevokedDeviceCertificate(req, cb) {
|
|
123
|
+
return this.request("RevokedDeviceCertificate", req, cb);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 查询实例信息
|
|
127
|
+
*/
|
|
128
|
+
async DescribeInstance(req, cb) {
|
|
129
|
+
return this.request("DescribeInstance", req, cb);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 删除MQTT主题
|
|
133
|
+
*/
|
|
134
|
+
async DeleteTopic(req, cb) {
|
|
135
|
+
return this.request("DeleteTopic", req, cb);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 创建一个jwks的认证
|
|
139
|
+
*/
|
|
140
|
+
async CreateJWKSAuthenticator(req, cb) {
|
|
141
|
+
return this.request("CreateJWKSAuthenticator", req, cb);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 修改策略规则
|
|
145
|
+
*/
|
|
146
|
+
async ModifyAuthorizationPolicy(req, cb) {
|
|
147
|
+
return this.request("ModifyAuthorizationPolicy", req, cb);
|
|
148
|
+
}
|
|
83
149
|
/**
|
|
84
150
|
* 删除策略规则
|
|
85
151
|
*/
|
|
@@ -92,36 +158,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
92
158
|
async DeleteAuthenticator(req, cb) {
|
|
93
159
|
return this.request("DeleteAuthenticator", req, cb);
|
|
94
160
|
}
|
|
95
|
-
/**
|
|
96
|
-
* 查询mqtt主题详情
|
|
97
|
-
*/
|
|
98
|
-
async DescribeTopic(req, cb) {
|
|
99
|
-
return this.request("DescribeTopic", req, cb);
|
|
100
|
-
}
|
|
101
161
|
/**
|
|
102
162
|
* 查询MQTT认证器
|
|
103
163
|
*/
|
|
104
164
|
async DescribeAuthenticator(req, cb) {
|
|
105
165
|
return this.request("DescribeAuthenticator", req, cb);
|
|
106
166
|
}
|
|
107
|
-
/**
|
|
108
|
-
* 创建一个jwks的认证
|
|
109
|
-
*/
|
|
110
|
-
async CreateJWTAuthenticator(req, cb) {
|
|
111
|
-
return this.request("CreateJWTAuthenticator", req, cb);
|
|
112
|
-
}
|
|
113
167
|
/**
|
|
114
168
|
* 修改策略规则优先级
|
|
115
169
|
*/
|
|
116
170
|
async UpdateAuthorizationPolicyPriority(req, cb) {
|
|
117
171
|
return this.request("UpdateAuthorizationPolicyPriority", req, cb);
|
|
118
172
|
}
|
|
119
|
-
/**
|
|
120
|
-
* 修改MQTT JWKS 认证器
|
|
121
|
-
*/
|
|
122
|
-
async ModifyJWTAuthenticator(req, cb) {
|
|
123
|
-
return this.request("ModifyJWTAuthenticator", req, cb);
|
|
124
|
-
}
|
|
125
173
|
/**
|
|
126
174
|
* 获取主题列表,Filter参数使用说明如下:
|
|
127
175
|
|
|
@@ -131,35 +179,11 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
131
179
|
async DescribeTopicList(req, cb) {
|
|
132
180
|
return this.request("DescribeTopicList", req, cb);
|
|
133
181
|
}
|
|
134
|
-
/**
|
|
135
|
-
* 删除MQTT主题
|
|
136
|
-
*/
|
|
137
|
-
async DeleteTopic(req, cb) {
|
|
138
|
-
return this.request("DeleteTopic", req, cb);
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* 分页查询设备证书
|
|
142
|
-
*/
|
|
143
|
-
async DescribeDeviceCertificates(req, cb) {
|
|
144
|
-
return this.request("DescribeDeviceCertificates", req, cb);
|
|
145
|
-
}
|
|
146
182
|
/**
|
|
147
183
|
* 创建MQTT实例的性能测试任务
|
|
148
184
|
*/
|
|
149
185
|
async CreateAuthorizationPolicy(req, cb) {
|
|
150
186
|
return this.request("CreateAuthorizationPolicy", req, cb);
|
|
151
187
|
}
|
|
152
|
-
/**
|
|
153
|
-
* 修改MQTT JWKS 认证器
|
|
154
|
-
*/
|
|
155
|
-
async ModifyJWKSAuthenticator(req, cb) {
|
|
156
|
-
return this.request("ModifyJWKSAuthenticator", req, cb);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* 创建一个jwks的认证
|
|
160
|
-
*/
|
|
161
|
-
async CreateJWKSAuthenticator(req, cb) {
|
|
162
|
-
return this.request("CreateJWKSAuthenticator", req, cb);
|
|
163
|
-
}
|
|
164
188
|
}
|
|
165
189
|
exports.Client = Client;
|