tencentcloud-sdk-mqtt 3.0.1132 → 3.0.1153
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/models.rb +83 -18
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c22430f195994f1b1f3a91da918a7683300f4b5
|
4
|
+
data.tar.gz: 5d7876b4cfa8f040d953545d31ff94a4831a66a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01763412b1a4b6ce04c3dfdb8361685782634d327bd65fff8aa834df0fe5861177abd687c4998e8305d8d75729d1cddde67d3ba84959d5744ef0ebbc3ab93e2
|
7
|
+
data.tar.gz: 527e57fa64fcd10298371650d16cc9c5d0f39bc6940bc94801b7cc6473529bb067c0b9d1a1fd3c404e6ced4fa548148a3b23218e7de9f4733aff336a4efbb210
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1153
|
data/lib/v20240516/models.rb
CHANGED
@@ -2175,12 +2175,18 @@ module TencentCloud
|
|
2175
2175
|
# @type TrustedCaLimit: Integer
|
2176
2176
|
# @param ServerCertLimit: 服务端证书最大数量
|
2177
2177
|
# @type ServerCertLimit: Integer
|
2178
|
+
# @param TopicPrefixSlashLimit: topic前缀最大层级
|
2179
|
+
# @type TopicPrefixSlashLimit: Integer
|
2180
|
+
# @param MessageRate: 单客户端发送消息限速,单位 条/秒
|
2181
|
+
# @type MessageRate: Integer
|
2182
|
+
# @param TransportLayerSecurity: 服务端tls支持的协议,使用“,”分割。例如:TLSv1.3,TLSv1.2,TLSv1.1,TLSv1
|
2183
|
+
# @type TransportLayerSecurity: String
|
2178
2184
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2179
2185
|
# @type RequestId: String
|
2180
2186
|
|
2181
|
-
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, :RequestId
|
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
|
2182
2188
|
|
2183
|
-
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, requestid=nil)
|
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)
|
2184
2190
|
@InstanceType = instancetype
|
2185
2191
|
@InstanceId = instanceid
|
2186
2192
|
@InstanceName = instancename
|
@@ -2212,6 +2218,9 @@ module TencentCloud
|
|
2212
2218
|
@UseDefaultServerCert = usedefaultservercert
|
2213
2219
|
@TrustedCaLimit = trustedcalimit
|
2214
2220
|
@ServerCertLimit = servercertlimit
|
2221
|
+
@TopicPrefixSlashLimit = topicprefixslashlimit
|
2222
|
+
@MessageRate = messagerate
|
2223
|
+
@TransportLayerSecurity = transportlayersecurity
|
2215
2224
|
@RequestId = requestid
|
2216
2225
|
end
|
2217
2226
|
|
@@ -2247,6 +2256,9 @@ module TencentCloud
|
|
2247
2256
|
@UseDefaultServerCert = params['UseDefaultServerCert']
|
2248
2257
|
@TrustedCaLimit = params['TrustedCaLimit']
|
2249
2258
|
@ServerCertLimit = params['ServerCertLimit']
|
2259
|
+
@TopicPrefixSlashLimit = params['TopicPrefixSlashLimit']
|
2260
|
+
@MessageRate = params['MessageRate']
|
2261
|
+
@TransportLayerSecurity = params['TransportLayerSecurity']
|
2250
2262
|
@RequestId = params['RequestId']
|
2251
2263
|
end
|
2252
2264
|
end
|
@@ -2346,12 +2358,49 @@ module TencentCloud
|
|
2346
2358
|
# @type Qos: String
|
2347
2359
|
# @param OriginTopic: 源topic
|
2348
2360
|
# @type OriginTopic: String
|
2361
|
+
# @param ContentType: 内容类型(MQTT5)
|
2362
|
+
# 含义:指示消息载荷的内容类型,使用标准的 MIME 类型格式。这帮助接收方正确解析和处理消息内容。
|
2363
|
+
# 示例:
|
2364
|
+
# application/json:表示载荷是 JSON 格式的数据。
|
2365
|
+
# text/plain:表示载荷是纯文本。
|
2366
|
+
# application/octet-stream:表示载荷是二进制数据。
|
2367
|
+
# @type ContentType: String
|
2368
|
+
# @param PayloadFormatIndicator: 载荷格式指示符(MQTT5)
|
2369
|
+
# 含义:指示载荷的格式,是一个布尔值。0表示未指定格式(二进制),1表示 UTF-8 编码的字符串。
|
2370
|
+
# 示例:
|
2371
|
+
# 值为0:当载荷是二进制数据,如图片、音频等。
|
2372
|
+
# 值为1:当载荷是 UTF-8 编码的文本,如 JSON 字符串、XML 等。
|
2373
|
+
# @type PayloadFormatIndicator: Integer
|
2374
|
+
# @param MessageExpiryInterval: 消息过期间隔(MQTT5)
|
2375
|
+
# 含义:指定消息在被丢弃前的有效时间(秒)。如果消息在过期前未能送达,则会被 MQTT 服务器丢弃。
|
2376
|
+
# 示例:
|
2377
|
+
# 值为60:表示消息在发布后的 60 秒内有效,过期后未送达则被丢弃。
|
2378
|
+
# 值为0:表示消息不过期,永久有效(直到被接收或会话结束)。
|
2379
|
+
# @type MessageExpiryInterval: Integer
|
2380
|
+
# @param ResponseTopic: 响应主题(MQTT5)
|
2381
|
+
# 含义:指定一个主题,用于请求 - 响应模式中的响应消息。发送方可以指定接收方应该将响应发送到哪个主题。
|
2382
|
+
# 示例:
|
2383
|
+
# 发送方发布请求到主题devices/device1/commands,并设置ResponseTopic为devices/device1/responses。
|
2384
|
+
# 接收方处理请求后,将响应发布到devices/device1/responses主题。
|
2385
|
+
# @type ResponseTopic: String
|
2386
|
+
# @param CorrelationData: 关联数据(MQTT5)
|
2387
|
+
# 含义:用于关联请求和响应的标识符,通常是一个字节数组。在请求 - 响应模式中,发送方设置此值,接收方在响应中包含相同的值,以便发送方识别响应对应的请求。
|
2388
|
+
# 示例:
|
2389
|
+
# 发送方生成一个唯一 ID(如 UUID 的字节数组)作为CorrelationData,附加到请求消息中。
|
2390
|
+
# 接收方在响应消息中包含相同的CorrelationData,发送方通过比较此值来匹配响应和请求。
|
2391
|
+
# @type CorrelationData: String
|
2392
|
+
# @param SubscriptionIdentifier: 订阅标识符(MQTT5)
|
2393
|
+
# 含义:为订阅分配的唯一标识符,用于标识客户端的特定订阅。当服务器向客户端发送消息时,可以包含此标识符,帮助客户端识别消息对应的订阅。
|
2394
|
+
# 示例:
|
2395
|
+
# 客户端订阅主题devices/+/temperature,并设置SubscriptionIdentifier为123。
|
2396
|
+
# 当服务器向客户端发送此主题的消息时,会在消息中包含SubscriptionIdentifier: 123,客户端可以根据此值知道消息是通过哪个订阅接收的。
|
2397
|
+
# @type SubscriptionIdentifier: String
|
2349
2398
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2350
2399
|
# @type RequestId: String
|
2351
2400
|
|
2352
|
-
attr_accessor :Body, :UserProperties, :StoreTimestamp, :MessageId, :ClientId, :Qos, :OriginTopic, :RequestId
|
2401
|
+
attr_accessor :Body, :UserProperties, :StoreTimestamp, :MessageId, :ClientId, :Qos, :OriginTopic, :ContentType, :PayloadFormatIndicator, :MessageExpiryInterval, :ResponseTopic, :CorrelationData, :SubscriptionIdentifier, :RequestId
|
2353
2402
|
|
2354
|
-
def initialize(body=nil, userproperties=nil, storetimestamp=nil, messageid=nil, clientid=nil, qos=nil, origintopic=nil, requestid=nil)
|
2403
|
+
def initialize(body=nil, userproperties=nil, storetimestamp=nil, messageid=nil, clientid=nil, qos=nil, origintopic=nil, contenttype=nil, payloadformatindicator=nil, messageexpiryinterval=nil, responsetopic=nil, correlationdata=nil, subscriptionidentifier=nil, requestid=nil)
|
2355
2404
|
@Body = body
|
2356
2405
|
@UserProperties = userproperties
|
2357
2406
|
@StoreTimestamp = storetimestamp
|
@@ -2359,6 +2408,12 @@ module TencentCloud
|
|
2359
2408
|
@ClientId = clientid
|
2360
2409
|
@Qos = qos
|
2361
2410
|
@OriginTopic = origintopic
|
2411
|
+
@ContentType = contenttype
|
2412
|
+
@PayloadFormatIndicator = payloadformatindicator
|
2413
|
+
@MessageExpiryInterval = messageexpiryinterval
|
2414
|
+
@ResponseTopic = responsetopic
|
2415
|
+
@CorrelationData = correlationdata
|
2416
|
+
@SubscriptionIdentifier = subscriptionidentifier
|
2362
2417
|
@RequestId = requestid
|
2363
2418
|
end
|
2364
2419
|
|
@@ -2377,6 +2432,12 @@ module TencentCloud
|
|
2377
2432
|
@ClientId = params['ClientId']
|
2378
2433
|
@Qos = params['Qos']
|
2379
2434
|
@OriginTopic = params['OriginTopic']
|
2435
|
+
@ContentType = params['ContentType']
|
2436
|
+
@PayloadFormatIndicator = params['PayloadFormatIndicator']
|
2437
|
+
@MessageExpiryInterval = params['MessageExpiryInterval']
|
2438
|
+
@ResponseTopic = params['ResponseTopic']
|
2439
|
+
@CorrelationData = params['CorrelationData']
|
2440
|
+
@SubscriptionIdentifier = params['SubscriptionIdentifier']
|
2380
2441
|
@RequestId = params['RequestId']
|
2381
2442
|
end
|
2382
2443
|
end
|
@@ -3299,12 +3360,12 @@ module TencentCloud
|
|
3299
3360
|
|
3300
3361
|
attr_accessor :MsgId, :Tags, :Keys, :ProducerAddr, :ProduceTime, :DeadLetterResendTimes, :DeadLetterResendSuccessTimes, :SubTopic, :Qos
|
3301
3362
|
extend Gem::Deprecate
|
3302
|
-
deprecate :DeadLetterResendTimes, :none, 2025,
|
3303
|
-
deprecate :DeadLetterResendTimes=, :none, 2025,
|
3304
|
-
deprecate :DeadLetterResendSuccessTimes, :none, 2025,
|
3305
|
-
deprecate :DeadLetterResendSuccessTimes=, :none, 2025,
|
3306
|
-
deprecate :SubTopic, :none, 2025,
|
3307
|
-
deprecate :SubTopic=, :none, 2025,
|
3363
|
+
deprecate :DeadLetterResendTimes, :none, 2025, 10
|
3364
|
+
deprecate :DeadLetterResendTimes=, :none, 2025, 10
|
3365
|
+
deprecate :DeadLetterResendSuccessTimes, :none, 2025, 10
|
3366
|
+
deprecate :DeadLetterResendSuccessTimes=, :none, 2025, 10
|
3367
|
+
deprecate :SubTopic, :none, 2025, 10
|
3368
|
+
deprecate :SubTopic=, :none, 2025, 10
|
3308
3369
|
|
3309
3370
|
def initialize(msgid=nil, tags=nil, keys=nil, produceraddr=nil, producetime=nil, deadletterresendtimes=nil, deadletterresendsuccesstimes=nil, subtopic=nil, qos=nil)
|
3310
3371
|
@MsgId = msgid
|
@@ -3754,15 +3815,17 @@ module TencentCloud
|
|
3754
3815
|
# mTLS;双向认证
|
3755
3816
|
# BYOC:一机一证
|
3756
3817
|
# @type X509Mode: String
|
3818
|
+
# @param MessageRate: 单客户端消息收发限速单位 条/秒
|
3819
|
+
# @type MessageRate: Integer
|
3757
3820
|
|
3758
|
-
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode
|
3821
|
+
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode, :MessageRate
|
3759
3822
|
extend Gem::Deprecate
|
3760
|
-
deprecate :DeviceCertificateProvisionType, :none, 2025,
|
3761
|
-
deprecate :DeviceCertificateProvisionType=, :none, 2025,
|
3762
|
-
deprecate :AutomaticActivation, :none, 2025,
|
3763
|
-
deprecate :AutomaticActivation=, :none, 2025,
|
3823
|
+
deprecate :DeviceCertificateProvisionType, :none, 2025, 10
|
3824
|
+
deprecate :DeviceCertificateProvisionType=, :none, 2025, 10
|
3825
|
+
deprecate :AutomaticActivation, :none, 2025, 10
|
3826
|
+
deprecate :AutomaticActivation=, :none, 2025, 10
|
3764
3827
|
|
3765
|
-
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil)
|
3828
|
+
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil, messagerate=nil)
|
3766
3829
|
@InstanceId = instanceid
|
3767
3830
|
@Name = name
|
3768
3831
|
@Remark = remark
|
@@ -3772,6 +3835,7 @@ module TencentCloud
|
|
3772
3835
|
@AuthorizationPolicy = authorizationpolicy
|
3773
3836
|
@UseDefaultServerCert = usedefaultservercert
|
3774
3837
|
@X509Mode = x509mode
|
3838
|
+
@MessageRate = messagerate
|
3775
3839
|
end
|
3776
3840
|
|
3777
3841
|
def deserialize(params)
|
@@ -3784,6 +3848,7 @@ module TencentCloud
|
|
3784
3848
|
@AuthorizationPolicy = params['AuthorizationPolicy']
|
3785
3849
|
@UseDefaultServerCert = params['UseDefaultServerCert']
|
3786
3850
|
@X509Mode = params['X509Mode']
|
3851
|
+
@MessageRate = params['MessageRate']
|
3787
3852
|
end
|
3788
3853
|
end
|
3789
3854
|
|
@@ -3884,8 +3949,8 @@ module TencentCloud
|
|
3884
3949
|
|
3885
3950
|
attr_accessor :InstanceId, :Algorithm, :From, :Secret, :PublicKey, :Status, :Remark, :Text
|
3886
3951
|
extend Gem::Deprecate
|
3887
|
-
deprecate :Text, :none, 2025,
|
3888
|
-
deprecate :Text=, :none, 2025,
|
3952
|
+
deprecate :Text, :none, 2025, 10
|
3953
|
+
deprecate :Text=, :none, 2025, 10
|
3889
3954
|
|
3890
3955
|
def initialize(instanceid=nil, algorithm=nil, from=nil, secret=nil, publickey=nil, status=nil, remark=nil, text=nil)
|
3891
3956
|
@InstanceId = instanceid
|
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.1153
|
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-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20240516/client.rb
|
37
|
-
- lib/v20240516/models.rb
|
38
36
|
- lib/tencentcloud-sdk-mqtt.rb
|
37
|
+
- lib/v20240516/models.rb
|
38
|
+
- lib/v20240516/client.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|