tencentcloud-sdk-mqtt 3.0.1167 → 3.0.1169
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 +48 -0
- data/lib/v20240516/models.rb +90 -2
- 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: 78375542c03e7ef8df370776e8c6880353ac7478
|
|
4
|
+
data.tar.gz: cc9a3165a7b2b61c7d1fbd5f7c219ece85418b70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28e3d0678a3364dd6c1cb76367fcc15c67e9a408bb6fe74cd79a754e359180d7546c3262ddf9540dae130eb5c55d750a39a252b6f725c903c8550959b6dfc2c0
|
|
7
|
+
data.tar.gz: ec0dbe87df6daf27e68ef26e7ae9a75f5d67f9ac519669d769b371dbd151855fb288ca9fdb54db5302aea6601675540794fe5853b5d4dd9a28c8b012043dd11e
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1169
|
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.
|
|
@@ -437,6 +461,30 @@ module TencentCloud
|
|
|
437
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
462
|
end
|
|
439
463
|
|
|
464
|
+
# 删除MQTT客户端下的一条订阅
|
|
465
|
+
|
|
466
|
+
# @param request: Request instance for DeleteClientSubscription.
|
|
467
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteClientSubscriptionRequest`
|
|
468
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteClientSubscriptionResponse`
|
|
469
|
+
def DeleteClientSubscription(request)
|
|
470
|
+
body = send_request('DeleteClientSubscription', request.serialize)
|
|
471
|
+
response = JSON.parse(body)
|
|
472
|
+
if response['Response'].key?('Error') == false
|
|
473
|
+
model = DeleteClientSubscriptionResponse.new
|
|
474
|
+
model.deserialize(response['Response'])
|
|
475
|
+
model
|
|
476
|
+
else
|
|
477
|
+
code = response['Response']['Error']['Code']
|
|
478
|
+
message = response['Response']['Error']['Message']
|
|
479
|
+
reqid = response['Response']['RequestId']
|
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
481
|
+
end
|
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
483
|
+
raise e
|
|
484
|
+
rescue StandardError => e
|
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
486
|
+
end
|
|
487
|
+
|
|
440
488
|
# 删除设备证书
|
|
441
489
|
|
|
442
490
|
# @param request: Request instance for DeleteDeviceCertificate.
|
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)接口或控制台获得。
|
|
@@ -1111,6 +1155,46 @@ module TencentCloud
|
|
|
1111
1155
|
end
|
|
1112
1156
|
end
|
|
1113
1157
|
|
|
1158
|
+
# DeleteClientSubscription请求参数结构体
|
|
1159
|
+
class DeleteClientSubscriptionRequest < TencentCloud::Common::AbstractModel
|
|
1160
|
+
# @param InstanceId: 实例ID
|
|
1161
|
+
# @type InstanceId: String
|
|
1162
|
+
# @param ClientId: 客户端id
|
|
1163
|
+
# @type ClientId: String
|
|
1164
|
+
# @param TopicFilter: 订阅
|
|
1165
|
+
# @type TopicFilter: String
|
|
1166
|
+
|
|
1167
|
+
attr_accessor :InstanceId, :ClientId, :TopicFilter
|
|
1168
|
+
|
|
1169
|
+
def initialize(instanceid=nil, clientid=nil, topicfilter=nil)
|
|
1170
|
+
@InstanceId = instanceid
|
|
1171
|
+
@ClientId = clientid
|
|
1172
|
+
@TopicFilter = topicfilter
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
def deserialize(params)
|
|
1176
|
+
@InstanceId = params['InstanceId']
|
|
1177
|
+
@ClientId = params['ClientId']
|
|
1178
|
+
@TopicFilter = params['TopicFilter']
|
|
1179
|
+
end
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
# DeleteClientSubscription返回参数结构体
|
|
1183
|
+
class DeleteClientSubscriptionResponse < TencentCloud::Common::AbstractModel
|
|
1184
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1185
|
+
# @type RequestId: String
|
|
1186
|
+
|
|
1187
|
+
attr_accessor :RequestId
|
|
1188
|
+
|
|
1189
|
+
def initialize(requestid=nil)
|
|
1190
|
+
@RequestId = requestid
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
def deserialize(params)
|
|
1194
|
+
@RequestId = params['RequestId']
|
|
1195
|
+
end
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1114
1198
|
# DeleteDeviceCertificate请求参数结构体
|
|
1115
1199
|
class DeleteDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
|
1116
1200
|
# @param InstanceId: 集群id
|
|
@@ -2181,12 +2265,14 @@ module TencentCloud
|
|
|
2181
2265
|
# @type MessageRate: Integer
|
|
2182
2266
|
# @param TransportLayerSecurity: 服务端tls支持的协议,使用“,”分割。例如:TLSv1.3,TLSv1.2,TLSv1.1,TLSv1
|
|
2183
2267
|
# @type TransportLayerSecurity: String
|
|
2268
|
+
# @param MessageEnrichmentRuleLimit: 消息属性增强规则配额
|
|
2269
|
+
# @type MessageEnrichmentRuleLimit: Integer
|
|
2184
2270
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2185
2271
|
# @type RequestId: String
|
|
2186
2272
|
|
|
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
|
|
2273
|
+
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
2274
|
|
|
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)
|
|
2275
|
+
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
2276
|
@InstanceType = instancetype
|
|
2191
2277
|
@InstanceId = instanceid
|
|
2192
2278
|
@InstanceName = instancename
|
|
@@ -2221,6 +2307,7 @@ module TencentCloud
|
|
|
2221
2307
|
@TopicPrefixSlashLimit = topicprefixslashlimit
|
|
2222
2308
|
@MessageRate = messagerate
|
|
2223
2309
|
@TransportLayerSecurity = transportlayersecurity
|
|
2310
|
+
@MessageEnrichmentRuleLimit = messageenrichmentrulelimit
|
|
2224
2311
|
@RequestId = requestid
|
|
2225
2312
|
end
|
|
2226
2313
|
|
|
@@ -2259,6 +2346,7 @@ module TencentCloud
|
|
|
2259
2346
|
@TopicPrefixSlashLimit = params['TopicPrefixSlashLimit']
|
|
2260
2347
|
@MessageRate = params['MessageRate']
|
|
2261
2348
|
@TransportLayerSecurity = params['TransportLayerSecurity']
|
|
2349
|
+
@MessageEnrichmentRuleLimit = params['MessageEnrichmentRuleLimit']
|
|
2262
2350
|
@RequestId = params['RequestId']
|
|
2263
2351
|
end
|
|
2264
2352
|
end
|
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.1169
|
|
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-
|
|
11
|
+
date: 2025-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|