tencentcloud-sdk-mqtt 3.0.1167 → 3.0.1177
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240516/client.rb +169 -0
- data/lib/v20240516/models.rb +440 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9878a23db2a11dcec8d84c83d9f7ba4ba89f9ead
|
|
4
|
+
data.tar.gz: 93f2880b902b73c1172c9bbd5c80587cd4f3cefc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d4854fff2596e6c251d7312f0c7eed73e8f0ea0af0f70a7b4a93a7d1c2b8bbe2f9117d3e9bd4b745a2cdb8aaea617efd3557a7d59a3881e573e4ada640488fc
|
|
7
|
+
data.tar.gz: 379122b14b29f24fd1a85a6ac046f5e69b860c28d6d7b297e3ca63fc53590d87688c76efc2777067db0bfe69b9262a298c02e80c3c5c84fbfed4a0932e5ea594
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1177
|
data/lib/v20240516/client.rb
CHANGED
|
@@ -77,6 +77,30 @@ module TencentCloud
|
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
# 为MQTT客户端增加一条订阅
|
|
81
|
+
|
|
82
|
+
# @param request: Request instance for AddClientSubscription.
|
|
83
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::AddClientSubscriptionRequest`
|
|
84
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::AddClientSubscriptionResponse`
|
|
85
|
+
def AddClientSubscription(request)
|
|
86
|
+
body = send_request('AddClientSubscription', request.serialize)
|
|
87
|
+
response = JSON.parse(body)
|
|
88
|
+
if response['Response'].key?('Error') == false
|
|
89
|
+
model = AddClientSubscriptionResponse.new
|
|
90
|
+
model.deserialize(response['Response'])
|
|
91
|
+
model
|
|
92
|
+
else
|
|
93
|
+
code = response['Response']['Error']['Code']
|
|
94
|
+
message = response['Response']['Error']['Message']
|
|
95
|
+
reqid = response['Response']['RequestId']
|
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
97
|
+
end
|
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
99
|
+
raise e
|
|
100
|
+
rescue StandardError => e
|
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
102
|
+
end
|
|
103
|
+
|
|
80
104
|
# 申请ca注册码
|
|
81
105
|
|
|
82
106
|
# @param request: Request instance for ApplyRegistrationCode.
|
|
@@ -269,6 +293,30 @@ module TencentCloud
|
|
|
269
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
270
294
|
end
|
|
271
295
|
|
|
296
|
+
# 创建一条消息属性增强规则
|
|
297
|
+
|
|
298
|
+
# @param request: Request instance for CreateMessageEnrichmentRule.
|
|
299
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::CreateMessageEnrichmentRuleRequest`
|
|
300
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateMessageEnrichmentRuleResponse`
|
|
301
|
+
def CreateMessageEnrichmentRule(request)
|
|
302
|
+
body = send_request('CreateMessageEnrichmentRule', request.serialize)
|
|
303
|
+
response = JSON.parse(body)
|
|
304
|
+
if response['Response'].key?('Error') == false
|
|
305
|
+
model = CreateMessageEnrichmentRuleResponse.new
|
|
306
|
+
model.deserialize(response['Response'])
|
|
307
|
+
model
|
|
308
|
+
else
|
|
309
|
+
code = response['Response']['Error']['Code']
|
|
310
|
+
message = response['Response']['Error']['Message']
|
|
311
|
+
reqid = response['Response']['RequestId']
|
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
313
|
+
end
|
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
315
|
+
raise e
|
|
316
|
+
rescue StandardError => e
|
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
318
|
+
end
|
|
319
|
+
|
|
272
320
|
# 创建主题
|
|
273
321
|
|
|
274
322
|
# @param request: Request instance for CreateTopic.
|
|
@@ -437,6 +485,30 @@ module TencentCloud
|
|
|
437
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
486
|
end
|
|
439
487
|
|
|
488
|
+
# 删除MQTT客户端下的一条订阅
|
|
489
|
+
|
|
490
|
+
# @param request: Request instance for DeleteClientSubscription.
|
|
491
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteClientSubscriptionRequest`
|
|
492
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteClientSubscriptionResponse`
|
|
493
|
+
def DeleteClientSubscription(request)
|
|
494
|
+
body = send_request('DeleteClientSubscription', request.serialize)
|
|
495
|
+
response = JSON.parse(body)
|
|
496
|
+
if response['Response'].key?('Error') == false
|
|
497
|
+
model = DeleteClientSubscriptionResponse.new
|
|
498
|
+
model.deserialize(response['Response'])
|
|
499
|
+
model
|
|
500
|
+
else
|
|
501
|
+
code = response['Response']['Error']['Code']
|
|
502
|
+
message = response['Response']['Error']['Message']
|
|
503
|
+
reqid = response['Response']['RequestId']
|
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
505
|
+
end
|
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
507
|
+
raise e
|
|
508
|
+
rescue StandardError => e
|
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
510
|
+
end
|
|
511
|
+
|
|
440
512
|
# 删除设备证书
|
|
441
513
|
|
|
442
514
|
# @param request: Request instance for DeleteDeviceCertificate.
|
|
@@ -533,6 +605,30 @@ module TencentCloud
|
|
|
533
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
534
606
|
end
|
|
535
607
|
|
|
608
|
+
# 删除消息属性增强规则
|
|
609
|
+
|
|
610
|
+
# @param request: Request instance for DeleteMessageEnrichmentRule.
|
|
611
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteMessageEnrichmentRuleRequest`
|
|
612
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteMessageEnrichmentRuleResponse`
|
|
613
|
+
def DeleteMessageEnrichmentRule(request)
|
|
614
|
+
body = send_request('DeleteMessageEnrichmentRule', request.serialize)
|
|
615
|
+
response = JSON.parse(body)
|
|
616
|
+
if response['Response'].key?('Error') == false
|
|
617
|
+
model = DeleteMessageEnrichmentRuleResponse.new
|
|
618
|
+
model.deserialize(response['Response'])
|
|
619
|
+
model
|
|
620
|
+
else
|
|
621
|
+
code = response['Response']['Error']['Code']
|
|
622
|
+
message = response['Response']['Error']['Message']
|
|
623
|
+
reqid = response['Response']['RequestId']
|
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
625
|
+
end
|
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
627
|
+
raise e
|
|
628
|
+
rescue StandardError => e
|
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
630
|
+
end
|
|
631
|
+
|
|
536
632
|
# 删除MQTT主题
|
|
537
633
|
|
|
538
634
|
# @param request: Request instance for DeleteTopic.
|
|
@@ -946,6 +1042,30 @@ module TencentCloud
|
|
|
946
1042
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
947
1043
|
end
|
|
948
1044
|
|
|
1045
|
+
# 查询消息属性增强规则
|
|
1046
|
+
|
|
1047
|
+
# @param request: Request instance for DescribeMessageEnrichmentRules.
|
|
1048
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeMessageEnrichmentRulesRequest`
|
|
1049
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeMessageEnrichmentRulesResponse`
|
|
1050
|
+
def DescribeMessageEnrichmentRules(request)
|
|
1051
|
+
body = send_request('DescribeMessageEnrichmentRules', request.serialize)
|
|
1052
|
+
response = JSON.parse(body)
|
|
1053
|
+
if response['Response'].key?('Error') == false
|
|
1054
|
+
model = DescribeMessageEnrichmentRulesResponse.new
|
|
1055
|
+
model.deserialize(response['Response'])
|
|
1056
|
+
model
|
|
1057
|
+
else
|
|
1058
|
+
code = response['Response']['Error']['Code']
|
|
1059
|
+
message = response['Response']['Error']['Message']
|
|
1060
|
+
reqid = response['Response']['RequestId']
|
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1062
|
+
end
|
|
1063
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1064
|
+
raise e
|
|
1065
|
+
rescue StandardError => e
|
|
1066
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1067
|
+
end
|
|
1068
|
+
|
|
949
1069
|
# 根据一级Topic查询消息列表
|
|
950
1070
|
|
|
951
1071
|
# @param request: Request instance for DescribeMessageList.
|
|
@@ -1312,6 +1432,31 @@ module TencentCloud
|
|
|
1312
1432
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1313
1433
|
end
|
|
1314
1434
|
|
|
1435
|
+
# 修改消息属性增强规则
|
|
1436
|
+
# 注意:需要提交当前规则的所有属性,即使某些字段没有修改。
|
|
1437
|
+
|
|
1438
|
+
# @param request: Request instance for ModifyMessageEnrichmentRule.
|
|
1439
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyMessageEnrichmentRuleRequest`
|
|
1440
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyMessageEnrichmentRuleResponse`
|
|
1441
|
+
def ModifyMessageEnrichmentRule(request)
|
|
1442
|
+
body = send_request('ModifyMessageEnrichmentRule', request.serialize)
|
|
1443
|
+
response = JSON.parse(body)
|
|
1444
|
+
if response['Response'].key?('Error') == false
|
|
1445
|
+
model = ModifyMessageEnrichmentRuleResponse.new
|
|
1446
|
+
model.deserialize(response['Response'])
|
|
1447
|
+
model
|
|
1448
|
+
else
|
|
1449
|
+
code = response['Response']['Error']['Code']
|
|
1450
|
+
message = response['Response']['Error']['Message']
|
|
1451
|
+
reqid = response['Response']['RequestId']
|
|
1452
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1453
|
+
end
|
|
1454
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1455
|
+
raise e
|
|
1456
|
+
rescue StandardError => e
|
|
1457
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1315
1460
|
# 修改主题属性
|
|
1316
1461
|
|
|
1317
1462
|
# @param request: Request instance for ModifyTopic.
|
|
@@ -1480,6 +1625,30 @@ module TencentCloud
|
|
|
1480
1625
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1481
1626
|
end
|
|
1482
1627
|
|
|
1628
|
+
# 修改消息属性增强规则优先级
|
|
1629
|
+
|
|
1630
|
+
# @param request: Request instance for UpdateMessageEnrichmentRulePriority.
|
|
1631
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::UpdateMessageEnrichmentRulePriorityRequest`
|
|
1632
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::UpdateMessageEnrichmentRulePriorityResponse`
|
|
1633
|
+
def UpdateMessageEnrichmentRulePriority(request)
|
|
1634
|
+
body = send_request('UpdateMessageEnrichmentRulePriority', request.serialize)
|
|
1635
|
+
response = JSON.parse(body)
|
|
1636
|
+
if response['Response'].key?('Error') == false
|
|
1637
|
+
model = UpdateMessageEnrichmentRulePriorityResponse.new
|
|
1638
|
+
model.deserialize(response['Response'])
|
|
1639
|
+
model
|
|
1640
|
+
else
|
|
1641
|
+
code = response['Response']['Error']['Code']
|
|
1642
|
+
message = response['Response']['Error']['Message']
|
|
1643
|
+
reqid = response['Response']['RequestId']
|
|
1644
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1645
|
+
end
|
|
1646
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1647
|
+
raise e
|
|
1648
|
+
rescue StandardError => e
|
|
1649
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1650
|
+
end
|
|
1651
|
+
|
|
1483
1652
|
|
|
1484
1653
|
end
|
|
1485
1654
|
end
|
data/lib/v20240516/models.rb
CHANGED
|
@@ -89,6 +89,50 @@ module TencentCloud
|
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
+
# AddClientSubscription请求参数结构体
|
|
93
|
+
class AddClientSubscriptionRequest < TencentCloud::Common::AbstractModel
|
|
94
|
+
# @param InstanceId: 实例ID
|
|
95
|
+
# @type InstanceId: String
|
|
96
|
+
# @param ClientId: 客户端id
|
|
97
|
+
# @type ClientId: String
|
|
98
|
+
# @param TopicFilter: 订阅
|
|
99
|
+
# @type TopicFilter: String
|
|
100
|
+
# @param Qos: 服务质量:0,1,2
|
|
101
|
+
# @type Qos: String
|
|
102
|
+
|
|
103
|
+
attr_accessor :InstanceId, :ClientId, :TopicFilter, :Qos
|
|
104
|
+
|
|
105
|
+
def initialize(instanceid=nil, clientid=nil, topicfilter=nil, qos=nil)
|
|
106
|
+
@InstanceId = instanceid
|
|
107
|
+
@ClientId = clientid
|
|
108
|
+
@TopicFilter = topicfilter
|
|
109
|
+
@Qos = qos
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def deserialize(params)
|
|
113
|
+
@InstanceId = params['InstanceId']
|
|
114
|
+
@ClientId = params['ClientId']
|
|
115
|
+
@TopicFilter = params['TopicFilter']
|
|
116
|
+
@Qos = params['Qos']
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# AddClientSubscription返回参数结构体
|
|
121
|
+
class AddClientSubscriptionResponse < TencentCloud::Common::AbstractModel
|
|
122
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
123
|
+
# @type RequestId: String
|
|
124
|
+
|
|
125
|
+
attr_accessor :RequestId
|
|
126
|
+
|
|
127
|
+
def initialize(requestid=nil)
|
|
128
|
+
@RequestId = requestid
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def deserialize(params)
|
|
132
|
+
@RequestId = params['RequestId']
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
92
136
|
# ApplyRegistrationCode请求参数结构体
|
|
93
137
|
class ApplyRegistrationCodeRequest < TencentCloud::Common::AbstractModel
|
|
94
138
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
@@ -836,6 +880,78 @@ module TencentCloud
|
|
|
836
880
|
end
|
|
837
881
|
end
|
|
838
882
|
|
|
883
|
+
# CreateMessageEnrichmentRule请求参数结构体
|
|
884
|
+
class CreateMessageEnrichmentRuleRequest < TencentCloud::Common::AbstractModel
|
|
885
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
886
|
+
# @type InstanceId: String
|
|
887
|
+
# @param RuleName: 规则名称
|
|
888
|
+
# @type RuleName: String
|
|
889
|
+
# @param Condition: 规则匹配条件,JSON格式,需要Base64编码
|
|
890
|
+
# 样例
|
|
891
|
+
# {"clientId":"client-1","username":"client-1","topic":"home/room1"}
|
|
892
|
+
# Base64后
|
|
893
|
+
# eyJjbGllbnRJZCI6ImNsaWVudC0xIiwidXNlcm5hbWUiOiJjbGllbnQtMSIsInRvcGljIjoiaG9tZS9yb29tMSJ9
|
|
894
|
+
# @type Condition: String
|
|
895
|
+
# @param Actions: 规则执行的动作,JSON格式,需要Base64编码
|
|
896
|
+
# 样例
|
|
897
|
+
# {"messageExpiryInterval":360,"responseTopic":"replies/devices/${clientid}","correlationData":"${traceid}","userProperty":[{"key":"trace-id","value":"${traceid}"}]}
|
|
898
|
+
# BASE64后
|
|
899
|
+
# eyJtZXNzYWdlRXhwaXJ5SW50ZXJ2YWwiOjM2MCwicmVzcG9uc2VUb3BpYyI6InJlcGxpZXMvZGV2aWNlcy8ke2NsaWVudGlkfSIsImNvcnJlbGF0aW9uRGF0YSI6IiR7dHJhY2VpZH0iLCJ1c2VyUHJvcGVydHkiOlt7ImtleSI6InRyYWNlLWlkIiwidmFsdWUiOiIke3RyYWNlaWR9In1dfQ==
|
|
900
|
+
# @type Actions: String
|
|
901
|
+
# @param Priority: 规则优先级,数字越小,优先级越高,高优先级覆盖低低优先级。UserPropertiy字段会合并
|
|
902
|
+
# @type Priority: Integer
|
|
903
|
+
# @param Status: 策略状态。 0:未定义;1:激活;2:不激活;默认不激活
|
|
904
|
+
# @type Status: Integer
|
|
905
|
+
# @param Remark: 备注,长度不超过128个字符。
|
|
906
|
+
# @type Remark: String
|
|
907
|
+
|
|
908
|
+
attr_accessor :InstanceId, :RuleName, :Condition, :Actions, :Priority, :Status, :Remark
|
|
909
|
+
|
|
910
|
+
def initialize(instanceid=nil, rulename=nil, condition=nil, actions=nil, priority=nil, status=nil, remark=nil)
|
|
911
|
+
@InstanceId = instanceid
|
|
912
|
+
@RuleName = rulename
|
|
913
|
+
@Condition = condition
|
|
914
|
+
@Actions = actions
|
|
915
|
+
@Priority = priority
|
|
916
|
+
@Status = status
|
|
917
|
+
@Remark = remark
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
def deserialize(params)
|
|
921
|
+
@InstanceId = params['InstanceId']
|
|
922
|
+
@RuleName = params['RuleName']
|
|
923
|
+
@Condition = params['Condition']
|
|
924
|
+
@Actions = params['Actions']
|
|
925
|
+
@Priority = params['Priority']
|
|
926
|
+
@Status = params['Status']
|
|
927
|
+
@Remark = params['Remark']
|
|
928
|
+
end
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# CreateMessageEnrichmentRule返回参数结构体
|
|
932
|
+
class CreateMessageEnrichmentRuleResponse < TencentCloud::Common::AbstractModel
|
|
933
|
+
# @param InstanceId: 集群id
|
|
934
|
+
# @type InstanceId: String
|
|
935
|
+
# @param Id: 规则id
|
|
936
|
+
# @type Id: Integer
|
|
937
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
938
|
+
# @type RequestId: String
|
|
939
|
+
|
|
940
|
+
attr_accessor :InstanceId, :Id, :RequestId
|
|
941
|
+
|
|
942
|
+
def initialize(instanceid=nil, id=nil, requestid=nil)
|
|
943
|
+
@InstanceId = instanceid
|
|
944
|
+
@Id = id
|
|
945
|
+
@RequestId = requestid
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
def deserialize(params)
|
|
949
|
+
@InstanceId = params['InstanceId']
|
|
950
|
+
@Id = params['Id']
|
|
951
|
+
@RequestId = params['RequestId']
|
|
952
|
+
end
|
|
953
|
+
end
|
|
954
|
+
|
|
839
955
|
# CreateTopic请求参数结构体
|
|
840
956
|
class CreateTopicRequest < TencentCloud::Common::AbstractModel
|
|
841
957
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
@@ -1111,6 +1227,46 @@ module TencentCloud
|
|
|
1111
1227
|
end
|
|
1112
1228
|
end
|
|
1113
1229
|
|
|
1230
|
+
# DeleteClientSubscription请求参数结构体
|
|
1231
|
+
class DeleteClientSubscriptionRequest < TencentCloud::Common::AbstractModel
|
|
1232
|
+
# @param InstanceId: 实例ID
|
|
1233
|
+
# @type InstanceId: String
|
|
1234
|
+
# @param ClientId: 客户端id
|
|
1235
|
+
# @type ClientId: String
|
|
1236
|
+
# @param TopicFilter: 订阅
|
|
1237
|
+
# @type TopicFilter: String
|
|
1238
|
+
|
|
1239
|
+
attr_accessor :InstanceId, :ClientId, :TopicFilter
|
|
1240
|
+
|
|
1241
|
+
def initialize(instanceid=nil, clientid=nil, topicfilter=nil)
|
|
1242
|
+
@InstanceId = instanceid
|
|
1243
|
+
@ClientId = clientid
|
|
1244
|
+
@TopicFilter = topicfilter
|
|
1245
|
+
end
|
|
1246
|
+
|
|
1247
|
+
def deserialize(params)
|
|
1248
|
+
@InstanceId = params['InstanceId']
|
|
1249
|
+
@ClientId = params['ClientId']
|
|
1250
|
+
@TopicFilter = params['TopicFilter']
|
|
1251
|
+
end
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
# DeleteClientSubscription返回参数结构体
|
|
1255
|
+
class DeleteClientSubscriptionResponse < TencentCloud::Common::AbstractModel
|
|
1256
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1257
|
+
# @type RequestId: String
|
|
1258
|
+
|
|
1259
|
+
attr_accessor :RequestId
|
|
1260
|
+
|
|
1261
|
+
def initialize(requestid=nil)
|
|
1262
|
+
@RequestId = requestid
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1265
|
+
def deserialize(params)
|
|
1266
|
+
@RequestId = params['RequestId']
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1114
1270
|
# DeleteDeviceCertificate请求参数结构体
|
|
1115
1271
|
class DeleteDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
|
1116
1272
|
# @param InstanceId: 集群id
|
|
@@ -1247,6 +1403,42 @@ module TencentCloud
|
|
|
1247
1403
|
end
|
|
1248
1404
|
end
|
|
1249
1405
|
|
|
1406
|
+
# DeleteMessageEnrichmentRule请求参数结构体
|
|
1407
|
+
class DeleteMessageEnrichmentRuleRequest < TencentCloud::Common::AbstractModel
|
|
1408
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
1409
|
+
# @type InstanceId: String
|
|
1410
|
+
# @param Id: 消息属性增强规则id
|
|
1411
|
+
# @type Id: Integer
|
|
1412
|
+
|
|
1413
|
+
attr_accessor :InstanceId, :Id
|
|
1414
|
+
|
|
1415
|
+
def initialize(instanceid=nil, id=nil)
|
|
1416
|
+
@InstanceId = instanceid
|
|
1417
|
+
@Id = id
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
def deserialize(params)
|
|
1421
|
+
@InstanceId = params['InstanceId']
|
|
1422
|
+
@Id = params['Id']
|
|
1423
|
+
end
|
|
1424
|
+
end
|
|
1425
|
+
|
|
1426
|
+
# DeleteMessageEnrichmentRule返回参数结构体
|
|
1427
|
+
class DeleteMessageEnrichmentRuleResponse < TencentCloud::Common::AbstractModel
|
|
1428
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1429
|
+
# @type RequestId: String
|
|
1430
|
+
|
|
1431
|
+
attr_accessor :RequestId
|
|
1432
|
+
|
|
1433
|
+
def initialize(requestid=nil)
|
|
1434
|
+
@RequestId = requestid
|
|
1435
|
+
end
|
|
1436
|
+
|
|
1437
|
+
def deserialize(params)
|
|
1438
|
+
@RequestId = params['RequestId']
|
|
1439
|
+
end
|
|
1440
|
+
end
|
|
1441
|
+
|
|
1250
1442
|
# DeleteTopic请求参数结构体
|
|
1251
1443
|
class DeleteTopicRequest < TencentCloud::Common::AbstractModel
|
|
1252
1444
|
# @param InstanceId: 实例ID
|
|
@@ -2181,12 +2373,14 @@ module TencentCloud
|
|
|
2181
2373
|
# @type MessageRate: Integer
|
|
2182
2374
|
# @param TransportLayerSecurity: 服务端tls支持的协议,使用“,”分割。例如:TLSv1.3,TLSv1.2,TLSv1.1,TLSv1
|
|
2183
2375
|
# @type TransportLayerSecurity: String
|
|
2376
|
+
# @param MessageEnrichmentRuleLimit: 消息属性增强规则配额
|
|
2377
|
+
# @type MessageEnrichmentRuleLimit: Integer
|
|
2184
2378
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2185
2379
|
# @type RequestId: String
|
|
2186
2380
|
|
|
2187
|
-
attr_accessor :InstanceType, :InstanceId, :InstanceName, :TopicNum, :TopicNumLimit, :TpsLimit, :CreatedTime, :Remark, :InstanceStatus, :SkuCode, :MaxSubscriptionPerClient, :AuthorizationPolicyLimit, :ClientNumLimit, :DeviceCertificateProvisionType, :AutomaticActivation, :RenewFlag, :PayMode, :ExpiryTime, :DestroyTime, :X509Mode, :MaxCaNum, :RegistrationCode, :MaxSubscription, :AuthorizationPolicy, :SharedSubscriptionGroupLimit, :MaxTopicFilterPerSharedSubscriptionGroup, :AutoSubscriptionPolicyLimit, :MaxTopicFilterPerAutoSubscriptionPolicy, :UseDefaultServerCert, :TrustedCaLimit, :ServerCertLimit, :TopicPrefixSlashLimit, :MessageRate, :TransportLayerSecurity, :RequestId
|
|
2381
|
+
attr_accessor :InstanceType, :InstanceId, :InstanceName, :TopicNum, :TopicNumLimit, :TpsLimit, :CreatedTime, :Remark, :InstanceStatus, :SkuCode, :MaxSubscriptionPerClient, :AuthorizationPolicyLimit, :ClientNumLimit, :DeviceCertificateProvisionType, :AutomaticActivation, :RenewFlag, :PayMode, :ExpiryTime, :DestroyTime, :X509Mode, :MaxCaNum, :RegistrationCode, :MaxSubscription, :AuthorizationPolicy, :SharedSubscriptionGroupLimit, :MaxTopicFilterPerSharedSubscriptionGroup, :AutoSubscriptionPolicyLimit, :MaxTopicFilterPerAutoSubscriptionPolicy, :UseDefaultServerCert, :TrustedCaLimit, :ServerCertLimit, :TopicPrefixSlashLimit, :MessageRate, :TransportLayerSecurity, :MessageEnrichmentRuleLimit, :RequestId
|
|
2188
2382
|
|
|
2189
|
-
def initialize(instancetype=nil, instanceid=nil, instancename=nil, topicnum=nil, topicnumlimit=nil, tpslimit=nil, createdtime=nil, remark=nil, instancestatus=nil, skucode=nil, maxsubscriptionperclient=nil, authorizationpolicylimit=nil, clientnumlimit=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, renewflag=nil, paymode=nil, expirytime=nil, destroytime=nil, x509mode=nil, maxcanum=nil, registrationcode=nil, maxsubscription=nil, authorizationpolicy=nil, sharedsubscriptiongrouplimit=nil, maxtopicfilterpersharedsubscriptiongroup=nil, autosubscriptionpolicylimit=nil, maxtopicfilterperautosubscriptionpolicy=nil, usedefaultservercert=nil, trustedcalimit=nil, servercertlimit=nil, topicprefixslashlimit=nil, messagerate=nil, transportlayersecurity=nil, requestid=nil)
|
|
2383
|
+
def initialize(instancetype=nil, instanceid=nil, instancename=nil, topicnum=nil, topicnumlimit=nil, tpslimit=nil, createdtime=nil, remark=nil, instancestatus=nil, skucode=nil, maxsubscriptionperclient=nil, authorizationpolicylimit=nil, clientnumlimit=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, renewflag=nil, paymode=nil, expirytime=nil, destroytime=nil, x509mode=nil, maxcanum=nil, registrationcode=nil, maxsubscription=nil, authorizationpolicy=nil, sharedsubscriptiongrouplimit=nil, maxtopicfilterpersharedsubscriptiongroup=nil, autosubscriptionpolicylimit=nil, maxtopicfilterperautosubscriptionpolicy=nil, usedefaultservercert=nil, trustedcalimit=nil, servercertlimit=nil, topicprefixslashlimit=nil, messagerate=nil, transportlayersecurity=nil, messageenrichmentrulelimit=nil, requestid=nil)
|
|
2190
2384
|
@InstanceType = instancetype
|
|
2191
2385
|
@InstanceId = instanceid
|
|
2192
2386
|
@InstanceName = instancename
|
|
@@ -2221,6 +2415,7 @@ module TencentCloud
|
|
|
2221
2415
|
@TopicPrefixSlashLimit = topicprefixslashlimit
|
|
2222
2416
|
@MessageRate = messagerate
|
|
2223
2417
|
@TransportLayerSecurity = transportlayersecurity
|
|
2418
|
+
@MessageEnrichmentRuleLimit = messageenrichmentrulelimit
|
|
2224
2419
|
@RequestId = requestid
|
|
2225
2420
|
end
|
|
2226
2421
|
|
|
@@ -2259,6 +2454,7 @@ module TencentCloud
|
|
|
2259
2454
|
@TopicPrefixSlashLimit = params['TopicPrefixSlashLimit']
|
|
2260
2455
|
@MessageRate = params['MessageRate']
|
|
2261
2456
|
@TransportLayerSecurity = params['TransportLayerSecurity']
|
|
2457
|
+
@MessageEnrichmentRuleLimit = params['MessageEnrichmentRuleLimit']
|
|
2262
2458
|
@RequestId = params['RequestId']
|
|
2263
2459
|
end
|
|
2264
2460
|
end
|
|
@@ -2442,6 +2638,49 @@ module TencentCloud
|
|
|
2442
2638
|
end
|
|
2443
2639
|
end
|
|
2444
2640
|
|
|
2641
|
+
# DescribeMessageEnrichmentRules请求参数结构体
|
|
2642
|
+
class DescribeMessageEnrichmentRulesRequest < TencentCloud::Common::AbstractModel
|
|
2643
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 DescribeInstanceList接口或控制台获得。
|
|
2644
|
+
# @type InstanceId: String
|
|
2645
|
+
|
|
2646
|
+
attr_accessor :InstanceId
|
|
2647
|
+
|
|
2648
|
+
def initialize(instanceid=nil)
|
|
2649
|
+
@InstanceId = instanceid
|
|
2650
|
+
end
|
|
2651
|
+
|
|
2652
|
+
def deserialize(params)
|
|
2653
|
+
@InstanceId = params['InstanceId']
|
|
2654
|
+
end
|
|
2655
|
+
end
|
|
2656
|
+
|
|
2657
|
+
# DescribeMessageEnrichmentRules返回参数结构体
|
|
2658
|
+
class DescribeMessageEnrichmentRulesResponse < TencentCloud::Common::AbstractModel
|
|
2659
|
+
# @param Data: 消息增强策略
|
|
2660
|
+
# @type Data: Array
|
|
2661
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2662
|
+
# @type RequestId: String
|
|
2663
|
+
|
|
2664
|
+
attr_accessor :Data, :RequestId
|
|
2665
|
+
|
|
2666
|
+
def initialize(data=nil, requestid=nil)
|
|
2667
|
+
@Data = data
|
|
2668
|
+
@RequestId = requestid
|
|
2669
|
+
end
|
|
2670
|
+
|
|
2671
|
+
def deserialize(params)
|
|
2672
|
+
unless params['Data'].nil?
|
|
2673
|
+
@Data = []
|
|
2674
|
+
params['Data'].each do |i|
|
|
2675
|
+
messageenrichmentruleitem_tmp = MessageEnrichmentRuleItem.new
|
|
2676
|
+
messageenrichmentruleitem_tmp.deserialize(i)
|
|
2677
|
+
@Data << messageenrichmentruleitem_tmp
|
|
2678
|
+
end
|
|
2679
|
+
end
|
|
2680
|
+
@RequestId = params['RequestId']
|
|
2681
|
+
end
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2445
2684
|
# DescribeMessageList请求参数结构体
|
|
2446
2685
|
class DescribeMessageListRequest < TencentCloud::Common::AbstractModel
|
|
2447
2686
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
@@ -3396,12 +3635,12 @@ module TencentCloud
|
|
|
3396
3635
|
|
|
3397
3636
|
attr_accessor :MsgId, :Tags, :Keys, :ProducerAddr, :ProduceTime, :DeadLetterResendTimes, :DeadLetterResendSuccessTimes, :SubTopic, :Qos
|
|
3398
3637
|
extend Gem::Deprecate
|
|
3399
|
-
deprecate :DeadLetterResendTimes, :none, 2025,
|
|
3400
|
-
deprecate :DeadLetterResendTimes=, :none, 2025,
|
|
3401
|
-
deprecate :DeadLetterResendSuccessTimes, :none, 2025,
|
|
3402
|
-
deprecate :DeadLetterResendSuccessTimes=, :none, 2025,
|
|
3403
|
-
deprecate :SubTopic, :none, 2025,
|
|
3404
|
-
deprecate :SubTopic=, :none, 2025,
|
|
3638
|
+
deprecate :DeadLetterResendTimes, :none, 2025, 12
|
|
3639
|
+
deprecate :DeadLetterResendTimes=, :none, 2025, 12
|
|
3640
|
+
deprecate :DeadLetterResendSuccessTimes, :none, 2025, 12
|
|
3641
|
+
deprecate :DeadLetterResendSuccessTimes=, :none, 2025, 12
|
|
3642
|
+
deprecate :SubTopic, :none, 2025, 12
|
|
3643
|
+
deprecate :SubTopic=, :none, 2025, 12
|
|
3405
3644
|
|
|
3406
3645
|
def initialize(msgid=nil, tags=nil, keys=nil, produceraddr=nil, producetime=nil, deadletterresendtimes=nil, deadletterresendsuccesstimes=nil, subtopic=nil, qos=nil)
|
|
3407
3646
|
@MsgId = msgid
|
|
@@ -3484,6 +3723,83 @@ module TencentCloud
|
|
|
3484
3723
|
end
|
|
3485
3724
|
end
|
|
3486
3725
|
|
|
3726
|
+
# MessageEnrichmentRuleItem
|
|
3727
|
+
class MessageEnrichmentRuleItem < TencentCloud::Common::AbstractModel
|
|
3728
|
+
# @param Id: 策略规则ID
|
|
3729
|
+
# @type Id: Integer
|
|
3730
|
+
# @param InstanceId: MQTT集群ID
|
|
3731
|
+
# @type InstanceId: String
|
|
3732
|
+
# @param RuleName: 策略规则名
|
|
3733
|
+
# @type RuleName: String
|
|
3734
|
+
# @param Condition: 规则匹配条件,JSON格式,需要Base64编码
|
|
3735
|
+
# 样例 {"clientId":"client-1","username":"client-1","topic":"home/room1"}
|
|
3736
|
+
# Base64后 eyJjbGllbnRJZCI6ImNsaWVudC0xIiwidXNlcm5hbWUiOiJjbGllbnQtMSIsInRvcGljIjoiaG9tZS9yb29tMSJ9
|
|
3737
|
+
# @type Condition: String
|
|
3738
|
+
# @param Actions: 规则执行的动作,JSON格式,需要Base64编码
|
|
3739
|
+
# 样例
|
|
3740
|
+
# {"messageExpiryInterval":360,"response Topic":"replies/devices/${clientid}","correlationData":"${traceid}","userProperty":[{"key":"trace-id","value":"${traceid}"},{"key":"data-source","value":"rule-engine"}]}
|
|
3741
|
+
# BASE64后 eyJtZXNzYWdlRXhwaXJ5SW50ZXJ2YWwiOjM2MCwicmVzcG9uc2UgVG9waWMiOiJyZXBsaWVzL2RldmljZXMvJHtjbGllbnRpZH0iLCJjb3JyZWxhdGlvbkRhdGEiOiIke3RyYWNlaWR9IiwidXNlclByb3BlcnR5IjpbeyJrZXkiOiJ0cmFjZS1pZCIsInZhbHVlIjoiJHt0cmFjZWlkfSJ9LHsia2V5IjoiZGF0YS1zb3VyY2UiLCJ2YWx1ZSI6InJ1bGUtZW5naW5lIn1dfQ==
|
|
3742
|
+
# @type Actions: String
|
|
3743
|
+
# @param Priority: 规则优先级,数字越小,优先级越高,高优先级覆盖低优先级。UserProperty字段会合并
|
|
3744
|
+
# @type Priority: Integer
|
|
3745
|
+
# @param Status: 策略状态。 0:未定义;1:激活;2:不激活;默认不激活
|
|
3746
|
+
# @type Status: Integer
|
|
3747
|
+
# @param Remark: 备注
|
|
3748
|
+
# @type Remark: String
|
|
3749
|
+
# @param CreatedTime: 创建时间。毫秒级时间戳 。
|
|
3750
|
+
# @type CreatedTime: Integer
|
|
3751
|
+
# @param UpdateTime: 更新时间。毫秒级时间戳 。
|
|
3752
|
+
# @type UpdateTime: Integer
|
|
3753
|
+
|
|
3754
|
+
attr_accessor :Id, :InstanceId, :RuleName, :Condition, :Actions, :Priority, :Status, :Remark, :CreatedTime, :UpdateTime
|
|
3755
|
+
|
|
3756
|
+
def initialize(id=nil, instanceid=nil, rulename=nil, condition=nil, actions=nil, priority=nil, status=nil, remark=nil, createdtime=nil, updatetime=nil)
|
|
3757
|
+
@Id = id
|
|
3758
|
+
@InstanceId = instanceid
|
|
3759
|
+
@RuleName = rulename
|
|
3760
|
+
@Condition = condition
|
|
3761
|
+
@Actions = actions
|
|
3762
|
+
@Priority = priority
|
|
3763
|
+
@Status = status
|
|
3764
|
+
@Remark = remark
|
|
3765
|
+
@CreatedTime = createdtime
|
|
3766
|
+
@UpdateTime = updatetime
|
|
3767
|
+
end
|
|
3768
|
+
|
|
3769
|
+
def deserialize(params)
|
|
3770
|
+
@Id = params['Id']
|
|
3771
|
+
@InstanceId = params['InstanceId']
|
|
3772
|
+
@RuleName = params['RuleName']
|
|
3773
|
+
@Condition = params['Condition']
|
|
3774
|
+
@Actions = params['Actions']
|
|
3775
|
+
@Priority = params['Priority']
|
|
3776
|
+
@Status = params['Status']
|
|
3777
|
+
@Remark = params['Remark']
|
|
3778
|
+
@CreatedTime = params['CreatedTime']
|
|
3779
|
+
@UpdateTime = params['UpdateTime']
|
|
3780
|
+
end
|
|
3781
|
+
end
|
|
3782
|
+
|
|
3783
|
+
# 消息属性增强规则优先级
|
|
3784
|
+
class MessageEnrichmentRulePriority < TencentCloud::Common::AbstractModel
|
|
3785
|
+
# @param Id: 消息属性增强规则id
|
|
3786
|
+
# @type Id: Integer
|
|
3787
|
+
# @param Priority: 优先级
|
|
3788
|
+
# @type Priority: Integer
|
|
3789
|
+
|
|
3790
|
+
attr_accessor :Id, :Priority
|
|
3791
|
+
|
|
3792
|
+
def initialize(id=nil, priority=nil)
|
|
3793
|
+
@Id = id
|
|
3794
|
+
@Priority = priority
|
|
3795
|
+
end
|
|
3796
|
+
|
|
3797
|
+
def deserialize(params)
|
|
3798
|
+
@Id = params['Id']
|
|
3799
|
+
@Priority = params['Priority']
|
|
3800
|
+
end
|
|
3801
|
+
end
|
|
3802
|
+
|
|
3487
3803
|
# ModifyAuthorizationPolicy请求参数结构体
|
|
3488
3804
|
class ModifyAuthorizationPolicyRequest < TencentCloud::Common::AbstractModel
|
|
3489
3805
|
# @param Id: 授权策略ID,从 [查询授权策略](https://cloud.tencent.com/document/product/1778/111074) 接口获取
|
|
@@ -3856,10 +4172,10 @@ module TencentCloud
|
|
|
3856
4172
|
|
|
3857
4173
|
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode, :MessageRate
|
|
3858
4174
|
extend Gem::Deprecate
|
|
3859
|
-
deprecate :DeviceCertificateProvisionType, :none, 2025,
|
|
3860
|
-
deprecate :DeviceCertificateProvisionType=, :none, 2025,
|
|
3861
|
-
deprecate :AutomaticActivation, :none, 2025,
|
|
3862
|
-
deprecate :AutomaticActivation=, :none, 2025,
|
|
4175
|
+
deprecate :DeviceCertificateProvisionType, :none, 2025, 12
|
|
4176
|
+
deprecate :DeviceCertificateProvisionType=, :none, 2025, 12
|
|
4177
|
+
deprecate :AutomaticActivation, :none, 2025, 12
|
|
4178
|
+
deprecate :AutomaticActivation=, :none, 2025, 12
|
|
3863
4179
|
|
|
3864
4180
|
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil, messagerate=nil)
|
|
3865
4181
|
@InstanceId = instanceid
|
|
@@ -3985,8 +4301,8 @@ module TencentCloud
|
|
|
3985
4301
|
|
|
3986
4302
|
attr_accessor :InstanceId, :Algorithm, :From, :Secret, :PublicKey, :Status, :Remark, :Text
|
|
3987
4303
|
extend Gem::Deprecate
|
|
3988
|
-
deprecate :Text, :none, 2025,
|
|
3989
|
-
deprecate :Text=, :none, 2025,
|
|
4304
|
+
deprecate :Text, :none, 2025, 12
|
|
4305
|
+
deprecate :Text=, :none, 2025, 12
|
|
3990
4306
|
|
|
3991
4307
|
def initialize(instanceid=nil, algorithm=nil, from=nil, secret=nil, publickey=nil, status=nil, remark=nil, text=nil)
|
|
3992
4308
|
@InstanceId = instanceid
|
|
@@ -4027,6 +4343,73 @@ module TencentCloud
|
|
|
4027
4343
|
end
|
|
4028
4344
|
end
|
|
4029
4345
|
|
|
4346
|
+
# ModifyMessageEnrichmentRule请求参数结构体
|
|
4347
|
+
class ModifyMessageEnrichmentRuleRequest < TencentCloud::Common::AbstractModel
|
|
4348
|
+
# @param Id: 消息属性增强规则ID
|
|
4349
|
+
# @type Id: Integer
|
|
4350
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
4351
|
+
# @type InstanceId: String
|
|
4352
|
+
# @param RuleName: 策略名称,不能为空,3-64个字符,支持中文、字母、数字、“-”及“_”。
|
|
4353
|
+
# @type RuleName: String
|
|
4354
|
+
# @param Condition: 规则匹配条件,JSON格式,需要Base64编码
|
|
4355
|
+
# 样例
|
|
4356
|
+
# {"clientId":"client-1","username":"client-1","topic":"home/room1"}
|
|
4357
|
+
# Base64后
|
|
4358
|
+
# eyJjbGllbnRJZCI6ImNsaWVudC0xIiwidXNlcm5hbWUiOiJjbGllbnQtMSIsInRvcGljIjoiaG9tZS9yb29tMSJ9
|
|
4359
|
+
# @type Condition: String
|
|
4360
|
+
# @param Actions: 规则执行的动作,JSON格式,需要Base64编码
|
|
4361
|
+
# 样例
|
|
4362
|
+
# {"messageExpiryInterval":360,"responseTopic":"replies/${clientid}","correlationData":"${traceid}","userProperty":[{"key":"trace-id","value":"${traceid}"}]}
|
|
4363
|
+
# BASE64后 eyJtZXNzYWdlRXhwaXJ5SW50ZXJ2YWwiOjM2MCwicmVzcG9uc2VUb3BpYyI6InJlcGxpZXMvJHtjbGllbnRpZH0iLCJjb3JyZWxhdGlvbkRhdGEiOiIke3RyYWNlaWR9IiwidXNlclByb3BlcnR5IjpbeyJrZXkiOiJ0cmFjZS1pZCIsInZhbHVlIjoiJHt0cmFjZWlkfSJ9XX0=
|
|
4364
|
+
# @type Actions: String
|
|
4365
|
+
# @param Priority: 规则优先级,数字越小,优先级越高,高优先级覆盖低优先级。UserProperty字段会合并
|
|
4366
|
+
# @type Priority: Integer
|
|
4367
|
+
# @param Status: 策略状态。 0:未定义;1:激活;2:不激活;默认不激活
|
|
4368
|
+
# @type Status: Integer
|
|
4369
|
+
# @param Remark: 备注信息,最长 128 字符
|
|
4370
|
+
# @type Remark: String
|
|
4371
|
+
|
|
4372
|
+
attr_accessor :Id, :InstanceId, :RuleName, :Condition, :Actions, :Priority, :Status, :Remark
|
|
4373
|
+
|
|
4374
|
+
def initialize(id=nil, instanceid=nil, rulename=nil, condition=nil, actions=nil, priority=nil, status=nil, remark=nil)
|
|
4375
|
+
@Id = id
|
|
4376
|
+
@InstanceId = instanceid
|
|
4377
|
+
@RuleName = rulename
|
|
4378
|
+
@Condition = condition
|
|
4379
|
+
@Actions = actions
|
|
4380
|
+
@Priority = priority
|
|
4381
|
+
@Status = status
|
|
4382
|
+
@Remark = remark
|
|
4383
|
+
end
|
|
4384
|
+
|
|
4385
|
+
def deserialize(params)
|
|
4386
|
+
@Id = params['Id']
|
|
4387
|
+
@InstanceId = params['InstanceId']
|
|
4388
|
+
@RuleName = params['RuleName']
|
|
4389
|
+
@Condition = params['Condition']
|
|
4390
|
+
@Actions = params['Actions']
|
|
4391
|
+
@Priority = params['Priority']
|
|
4392
|
+
@Status = params['Status']
|
|
4393
|
+
@Remark = params['Remark']
|
|
4394
|
+
end
|
|
4395
|
+
end
|
|
4396
|
+
|
|
4397
|
+
# ModifyMessageEnrichmentRule返回参数结构体
|
|
4398
|
+
class ModifyMessageEnrichmentRuleResponse < TencentCloud::Common::AbstractModel
|
|
4399
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4400
|
+
# @type RequestId: String
|
|
4401
|
+
|
|
4402
|
+
attr_accessor :RequestId
|
|
4403
|
+
|
|
4404
|
+
def initialize(requestid=nil)
|
|
4405
|
+
@RequestId = requestid
|
|
4406
|
+
end
|
|
4407
|
+
|
|
4408
|
+
def deserialize(params)
|
|
4409
|
+
@RequestId = params['RequestId']
|
|
4410
|
+
end
|
|
4411
|
+
end
|
|
4412
|
+
|
|
4030
4413
|
# ModifyTopic请求参数结构体
|
|
4031
4414
|
class ModifyTopicRequest < TencentCloud::Common::AbstractModel
|
|
4032
4415
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
@@ -4562,6 +4945,49 @@ module TencentCloud
|
|
|
4562
4945
|
end
|
|
4563
4946
|
end
|
|
4564
4947
|
|
|
4948
|
+
# UpdateMessageEnrichmentRulePriority请求参数结构体
|
|
4949
|
+
class UpdateMessageEnrichmentRulePriorityRequest < TencentCloud::Common::AbstractModel
|
|
4950
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
4951
|
+
# @type InstanceId: String
|
|
4952
|
+
# @param Priorities: 策略ID和优先级
|
|
4953
|
+
# @type Priorities: Array
|
|
4954
|
+
|
|
4955
|
+
attr_accessor :InstanceId, :Priorities
|
|
4956
|
+
|
|
4957
|
+
def initialize(instanceid=nil, priorities=nil)
|
|
4958
|
+
@InstanceId = instanceid
|
|
4959
|
+
@Priorities = priorities
|
|
4960
|
+
end
|
|
4961
|
+
|
|
4962
|
+
def deserialize(params)
|
|
4963
|
+
@InstanceId = params['InstanceId']
|
|
4964
|
+
unless params['Priorities'].nil?
|
|
4965
|
+
@Priorities = []
|
|
4966
|
+
params['Priorities'].each do |i|
|
|
4967
|
+
messageenrichmentrulepriority_tmp = MessageEnrichmentRulePriority.new
|
|
4968
|
+
messageenrichmentrulepriority_tmp.deserialize(i)
|
|
4969
|
+
@Priorities << messageenrichmentrulepriority_tmp
|
|
4970
|
+
end
|
|
4971
|
+
end
|
|
4972
|
+
end
|
|
4973
|
+
end
|
|
4974
|
+
|
|
4975
|
+
# UpdateMessageEnrichmentRulePriority返回参数结构体
|
|
4976
|
+
class UpdateMessageEnrichmentRulePriorityResponse < TencentCloud::Common::AbstractModel
|
|
4977
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4978
|
+
# @type RequestId: String
|
|
4979
|
+
|
|
4980
|
+
attr_accessor :RequestId
|
|
4981
|
+
|
|
4982
|
+
def initialize(requestid=nil)
|
|
4983
|
+
@RequestId = requestid
|
|
4984
|
+
end
|
|
4985
|
+
|
|
4986
|
+
def deserialize(params)
|
|
4987
|
+
@RequestId = params['RequestId']
|
|
4988
|
+
end
|
|
4989
|
+
end
|
|
4990
|
+
|
|
4565
4991
|
# map结构返回
|
|
4566
4992
|
class UserProperty < TencentCloud::Common::AbstractModel
|
|
4567
4993
|
# @param Key: key
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-mqtt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1177
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|