tencentcloud-sdk-nodejs-mqtt 4.1.345 → 4.1.350
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
CHANGED
|
@@ -1698,71 +1698,61 @@ export interface CreateUserResponse {
|
|
|
1698
1698
|
*/
|
|
1699
1699
|
export interface CreateAuthorizationPolicyRequest {
|
|
1700
1700
|
/**
|
|
1701
|
-
*
|
|
1701
|
+
* <p>腾讯云MQTT实例ID,从 <a href="https://cloud.tencent.com/document/api/1778/111029">DescribeInstanceList</a>接口或控制台获得。</p>
|
|
1702
1702
|
*/
|
|
1703
1703
|
InstanceId: string;
|
|
1704
1704
|
/**
|
|
1705
|
-
*
|
|
1705
|
+
* <p>策略名称,不能为空,3-64个字符,支持中文、字母、数字、“-”及“_”。</p>
|
|
1706
1706
|
*/
|
|
1707
1707
|
PolicyName: string;
|
|
1708
1708
|
/**
|
|
1709
|
-
*
|
|
1709
|
+
* <p>策略版本,默认为1,当前仅支持1</p>
|
|
1710
1710
|
*/
|
|
1711
1711
|
PolicyVersion: number;
|
|
1712
1712
|
/**
|
|
1713
|
-
*
|
|
1713
|
+
* <p>策略优先级,越小越优先,不能重复,优先级ID越小表示策略越优先检查生效。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
1714
1714
|
*/
|
|
1715
1715
|
Priority: number;
|
|
1716
1716
|
/**
|
|
1717
|
-
*
|
|
1718
|
-
allow:允许符合该策略的设备的访问请求。
|
|
1719
|
-
deny:拒绝覆盖该策略的设备的访问请求。
|
|
1720
|
-
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
|
1717
|
+
* <p>决策:<br>allow:允许符合该策略的设备的访问请求。<br>deny:拒绝覆盖该策略的设备的访问请求。<br>可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
1721
1718
|
*/
|
|
1722
1719
|
Effect: string;
|
|
1723
1720
|
/**
|
|
1724
|
-
*
|
|
1725
|
-
connect:连接
|
|
1726
|
-
pub:发布
|
|
1727
|
-
sub:订阅
|
|
1721
|
+
* <p>操作,支持多选,多个操作用英文逗号隔开。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。<br>connect:连接<br>pub:发布<br>sub:订阅</p>
|
|
1728
1722
|
*/
|
|
1729
1723
|
Actions: string;
|
|
1730
1724
|
/**
|
|
1731
|
-
*
|
|
1732
|
-
1,匹配保留消息;
|
|
1733
|
-
2,匹配非保留消息,
|
|
1734
|
-
3.匹配保留和非保留消息
|
|
1725
|
+
* <p>条件-保留消息,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。<br>1,匹配保留消息;<br>2,匹配非保留消息,<br>3.匹配保留和非保留消息</p>
|
|
1735
1726
|
*/
|
|
1736
1727
|
Retain: number;
|
|
1737
1728
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
0:最多一次
|
|
1740
|
-
1:最少一次
|
|
1741
|
-
2:精确一次
|
|
1742
|
-
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
|
1729
|
+
* <p>条件:服务质量<br>0:最多一次<br>1:最少一次<br>2:精确一次<br>可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
1743
1730
|
*/
|
|
1744
1731
|
Qos: string;
|
|
1745
1732
|
/**
|
|
1746
|
-
*
|
|
1747
|
-
|
|
1733
|
+
* <p>资源,需要匹配的订阅,支持配置多条匹配规则,多个用英文逗号隔开。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
1748
1734
|
*/
|
|
1749
1735
|
Resources?: string;
|
|
1750
1736
|
/**
|
|
1751
|
-
*
|
|
1737
|
+
* <p>条件-用户名</p>
|
|
1752
1738
|
*/
|
|
1753
1739
|
Username?: string;
|
|
1754
1740
|
/**
|
|
1755
|
-
*
|
|
1741
|
+
* <p>条件:客户端ID,支持正则</p>
|
|
1756
1742
|
*/
|
|
1757
1743
|
ClientId?: string;
|
|
1758
1744
|
/**
|
|
1759
|
-
*
|
|
1745
|
+
* <p>条件:客户端IP地址,支持IP或者CIDR,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
1760
1746
|
*/
|
|
1761
1747
|
Ip?: string;
|
|
1762
1748
|
/**
|
|
1763
|
-
*
|
|
1749
|
+
* <p>备注信息,最长 128 字符</p>
|
|
1764
1750
|
*/
|
|
1765
1751
|
Remark?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* <p>授权资源,支持函数表达式</p>
|
|
1754
|
+
*/
|
|
1755
|
+
ResourceItems?: Array<string>;
|
|
1766
1756
|
}
|
|
1767
1757
|
/**
|
|
1768
1758
|
* PublishMessage返回参数结构体
|
|
@@ -2066,7 +2056,7 @@ export interface ModifyHttpAuthenticatorResponse {
|
|
|
2066
2056
|
*/
|
|
2067
2057
|
export interface DescribeAuthorizationPoliciesResponse {
|
|
2068
2058
|
/**
|
|
2069
|
-
*
|
|
2059
|
+
* <p>规则</p>
|
|
2070
2060
|
*/
|
|
2071
2061
|
Data?: Array<AuthorizationPolicyItem>;
|
|
2072
2062
|
/**
|
|
@@ -2375,77 +2365,71 @@ export interface PublishMessageRequest {
|
|
|
2375
2365
|
*/
|
|
2376
2366
|
export interface AuthorizationPolicyItem {
|
|
2377
2367
|
/**
|
|
2378
|
-
*
|
|
2368
|
+
* <p>策略规则ID</p>
|
|
2379
2369
|
*/
|
|
2380
2370
|
Id?: number;
|
|
2381
2371
|
/**
|
|
2382
|
-
* MQTT集群ID
|
|
2372
|
+
* <p>MQTT集群ID</p>
|
|
2383
2373
|
*/
|
|
2384
2374
|
InstanceId?: string;
|
|
2385
2375
|
/**
|
|
2386
|
-
*
|
|
2376
|
+
* <p>策略规则名</p>
|
|
2387
2377
|
*/
|
|
2388
2378
|
PolicyName?: string;
|
|
2389
2379
|
/**
|
|
2390
|
-
*
|
|
2380
|
+
* <p>规则语法版本,当前仅支持1,默认为1</p>
|
|
2391
2381
|
*/
|
|
2392
2382
|
Version?: number;
|
|
2393
2383
|
/**
|
|
2394
|
-
*
|
|
2384
|
+
* <p>策略优先级,优先级ID越小表示策略越优先检查生效。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2395
2385
|
*/
|
|
2396
2386
|
Priority?: number;
|
|
2397
2387
|
/**
|
|
2398
|
-
*
|
|
2399
|
-
allow:允许符合该策略的设备的访问请求。
|
|
2400
|
-
deny:拒绝覆盖该策略的设备的访问请求。
|
|
2401
|
-
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
|
2388
|
+
* <p>决策<br>allow:允许符合该策略的设备的访问请求。<br>deny:拒绝覆盖该策略的设备的访问请求。<br>可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2402
2389
|
*/
|
|
2403
2390
|
Effect?: string;
|
|
2404
2391
|
/**
|
|
2405
|
-
*
|
|
2406
|
-
connect:连接
|
|
2407
|
-
pub:发布mqtt消息
|
|
2408
|
-
sub:订阅mqtt消息
|
|
2409
|
-
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
|
2392
|
+
* <p>操作<br>connect:连接<br>pub:发布mqtt消息<br>sub:订阅mqtt消息<br>可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2410
2393
|
*/
|
|
2411
2394
|
Actions?: string;
|
|
2412
2395
|
/**
|
|
2413
|
-
*
|
|
2396
|
+
* <p>资源,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2414
2397
|
*/
|
|
2415
2398
|
Resources?: string;
|
|
2416
2399
|
/**
|
|
2417
|
-
*
|
|
2400
|
+
* <p>条件-连接设备ID,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2418
2401
|
*/
|
|
2419
2402
|
ClientId?: string;
|
|
2420
2403
|
/**
|
|
2421
|
-
*
|
|
2404
|
+
* <p>授权资源,支持函数表达式</p>
|
|
2405
|
+
*/
|
|
2406
|
+
ResourceItems?: Array<string>;
|
|
2407
|
+
/**
|
|
2408
|
+
* <p>条件-用户名,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2422
2409
|
*/
|
|
2423
2410
|
Username?: string;
|
|
2424
2411
|
/**
|
|
2425
|
-
*
|
|
2412
|
+
* <p>条件-客户端IP地址,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2426
2413
|
*/
|
|
2427
2414
|
Ip?: string;
|
|
2428
2415
|
/**
|
|
2429
|
-
*
|
|
2416
|
+
* <p>条件-服务质量,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
2430
2417
|
*/
|
|
2431
2418
|
Qos?: string;
|
|
2432
2419
|
/**
|
|
2433
|
-
*
|
|
2434
|
-
1:表示匹配retain消息
|
|
2435
|
-
2:表示匹配非retain消息
|
|
2436
|
-
3:表示匹配retain和非retain消息
|
|
2420
|
+
* <p>条件-保留消息,可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。<br>1:表示匹配retain消息<br>2:表示匹配非retain消息<br>3:表示匹配retain和非retain消息</p>
|
|
2437
2421
|
*/
|
|
2438
2422
|
Retain?: number;
|
|
2439
2423
|
/**
|
|
2440
|
-
*
|
|
2424
|
+
* <p>备注,长度不超过128个字符。</p>
|
|
2441
2425
|
*/
|
|
2442
2426
|
Remark?: string;
|
|
2443
2427
|
/**
|
|
2444
|
-
*
|
|
2428
|
+
* <p>创建时间。毫秒级时间戳 。</p>
|
|
2445
2429
|
*/
|
|
2446
2430
|
CreatedTime?: number;
|
|
2447
2431
|
/**
|
|
2448
|
-
*
|
|
2432
|
+
* <p>更新时间。毫秒级时间戳 。</p>
|
|
2449
2433
|
*/
|
|
2450
2434
|
UpdateTime?: number;
|
|
2451
2435
|
}
|
|
@@ -2746,11 +2730,11 @@ export interface ModifyInsPublicEndpointResponse {
|
|
|
2746
2730
|
*/
|
|
2747
2731
|
export interface CreateAuthorizationPolicyResponse {
|
|
2748
2732
|
/**
|
|
2749
|
-
*
|
|
2733
|
+
* <p>集群Id</p>
|
|
2750
2734
|
*/
|
|
2751
2735
|
InstanceId?: string;
|
|
2752
2736
|
/**
|
|
2753
|
-
*
|
|
2737
|
+
* <p>策略id</p>
|
|
2754
2738
|
*/
|
|
2755
2739
|
Id?: number;
|
|
2756
2740
|
/**
|
|
@@ -3488,7 +3472,7 @@ export interface CreateInstanceRequest {
|
|
|
3488
3472
|
*/
|
|
3489
3473
|
export interface DescribeAuthorizationPoliciesRequest {
|
|
3490
3474
|
/**
|
|
3491
|
-
*
|
|
3475
|
+
* <p>腾讯云MQTT实例ID,从 <a href="https://cloud.tencent.com/document/api/1778/111029">DescribeInstanceList</a>接口或控制台获得。</p>
|
|
3492
3476
|
*/
|
|
3493
3477
|
InstanceId?: string;
|
|
3494
3478
|
}
|
|
@@ -4030,74 +4014,65 @@ export interface PriceTag {
|
|
|
4030
4014
|
*/
|
|
4031
4015
|
export interface ModifyAuthorizationPolicyRequest {
|
|
4032
4016
|
/**
|
|
4033
|
-
*
|
|
4017
|
+
* <p>授权策略ID,从 <a href="https://cloud.tencent.com/document/product/1778/111074">查询授权策略</a> 接口获取</p>
|
|
4034
4018
|
*/
|
|
4035
4019
|
Id: number;
|
|
4036
4020
|
/**
|
|
4037
|
-
*
|
|
4038
|
-
|
|
4021
|
+
* <p>腾讯云MQTT实例ID,从 <a href="https://cloud.tencent.com/document/api/1778/111029">DescribeInstanceList</a>接口或控制台获得。</p>
|
|
4039
4022
|
*/
|
|
4040
4023
|
InstanceId: string;
|
|
4041
4024
|
/**
|
|
4042
|
-
*
|
|
4025
|
+
* <p>策略名称,不能为空,3-64个字符,支持中文、字母、数字、“-”及“_”。</p>
|
|
4043
4026
|
*/
|
|
4044
4027
|
PolicyName?: string;
|
|
4045
4028
|
/**
|
|
4046
|
-
*
|
|
4029
|
+
* <p>策略版本,默认为1,当前仅支持1</p>
|
|
4047
4030
|
*/
|
|
4048
4031
|
PolicyVersion?: number;
|
|
4049
4032
|
/**
|
|
4050
|
-
*
|
|
4033
|
+
* <p>策略优先级,越小越优先,不能重复</p>
|
|
4051
4034
|
*/
|
|
4052
4035
|
Priority?: number;
|
|
4053
4036
|
/**
|
|
4054
|
-
*
|
|
4055
|
-
allow 允许
|
|
4056
|
-
deny 拒绝
|
|
4037
|
+
* <p>决策:<br>allow 允许<br>deny 拒绝</p>
|
|
4057
4038
|
*/
|
|
4058
4039
|
Effect?: string;
|
|
4059
4040
|
/**
|
|
4060
|
-
*
|
|
4061
|
-
connect:连接
|
|
4062
|
-
pub:发布
|
|
4063
|
-
sub:订阅
|
|
4041
|
+
* <p>操作,支持多选,多个操作用英文逗号隔开。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。<br>connect:连接<br>pub:发布<br>sub:订阅</p>
|
|
4064
4042
|
*/
|
|
4065
4043
|
Actions?: string;
|
|
4066
4044
|
/**
|
|
4067
|
-
*
|
|
4068
|
-
|
|
4045
|
+
* <p>资源,需要匹配的订阅,支持配置多条匹配规则,多个用英文逗号隔开。可参考 <a href="https://cloud.tencent.com/document/product/1778/109715">数据面授权策略说明</a>。</p>
|
|
4069
4046
|
*/
|
|
4070
4047
|
Resources?: string;
|
|
4071
4048
|
/**
|
|
4072
|
-
*
|
|
4049
|
+
* <p>条件-用户名</p>
|
|
4073
4050
|
*/
|
|
4074
4051
|
Username?: string;
|
|
4075
4052
|
/**
|
|
4076
|
-
*
|
|
4077
|
-
1,匹配保留消息;
|
|
4078
|
-
2,匹配非保留消息,
|
|
4079
|
-
3.匹配保留和非保留消息
|
|
4053
|
+
* <p>条件-保留消息<br>1,匹配保留消息;<br>2,匹配非保留消息,<br>3.匹配保留和非保留消息</p>
|
|
4080
4054
|
*/
|
|
4081
4055
|
Retain?: number;
|
|
4082
4056
|
/**
|
|
4083
|
-
*
|
|
4057
|
+
* <p>条件:客户端ID,支持正则</p>
|
|
4084
4058
|
*/
|
|
4085
4059
|
ClientId?: string;
|
|
4086
4060
|
/**
|
|
4087
|
-
*
|
|
4061
|
+
* <p>条件:客户端IP地址,支持IP或者CIDR</p>
|
|
4088
4062
|
*/
|
|
4089
4063
|
Ip?: string;
|
|
4090
4064
|
/**
|
|
4091
|
-
*
|
|
4092
|
-
0:最多一次
|
|
4093
|
-
1:最少一次
|
|
4094
|
-
2:精确一次
|
|
4065
|
+
* <p>条件:服务质量<br>0:最多一次<br>1:最少一次<br>2:精确一次</p>
|
|
4095
4066
|
*/
|
|
4096
4067
|
Qos?: string;
|
|
4097
4068
|
/**
|
|
4098
|
-
*
|
|
4069
|
+
* <p>备注信息,最长 128 字符</p>
|
|
4099
4070
|
*/
|
|
4100
4071
|
Remark?: string;
|
|
4072
|
+
/**
|
|
4073
|
+
* <p>授权资源列表,支持函数表达式</p>
|
|
4074
|
+
*/
|
|
4075
|
+
ResourceItems?: Array<string>;
|
|
4101
4076
|
}
|
|
4102
4077
|
/**
|
|
4103
4078
|
* DescribeClientEvents请求参数结构体
|