tencentcloud-sdk-mqtt 3.0.1127 → 3.0.1139
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 +80 -19
- 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: 6a54b2145ea7b33ac0be84e534916c9bd54ff4df
|
4
|
+
data.tar.gz: 40e296f3983ccb8a10d572f1b791e2596ed405ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc93916d8df89cf6634aaa537d10a7ea273b75fcaaf154485c41b87235e6d2b0570933eb32437430a07a75f8e73e494dc8cfd8a3bbb092ee586b7afef0eae6c
|
7
|
+
data.tar.gz: e1c930a8eafe3835cfb2890b07c88d83ab47b2acdb605f924d1b4ac95c31a012aa7103c58ac547cbad8e5dafca20a33873449a4a2a6f02ec2a7b38419f3df378
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1139
|
data/lib/v20240516/models.rb
CHANGED
@@ -435,7 +435,7 @@ module TencentCloud
|
|
435
435
|
# @type Status: String
|
436
436
|
# @param PrimaryKey: 主要签名key,不传则由系统自动生成,需要base64编码。
|
437
437
|
# @type PrimaryKey: String
|
438
|
-
# @param SecondaryKey: 次要签名key
|
438
|
+
# @param SecondaryKey: 次要签名key,不传则由系统自动生成,需要base64编码。
|
439
439
|
# @type SecondaryKey: String
|
440
440
|
# @param PropagatingProperties: 该设备id的传播属性设置
|
441
441
|
# @type PropagatingProperties: Array
|
@@ -2175,12 +2175,16 @@ 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
|
2178
2182
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2179
2183
|
# @type RequestId: String
|
2180
2184
|
|
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
|
2185
|
+
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, :RequestId
|
2182
2186
|
|
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)
|
2187
|
+
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, requestid=nil)
|
2184
2188
|
@InstanceType = instancetype
|
2185
2189
|
@InstanceId = instanceid
|
2186
2190
|
@InstanceName = instancename
|
@@ -2212,6 +2216,8 @@ module TencentCloud
|
|
2212
2216
|
@UseDefaultServerCert = usedefaultservercert
|
2213
2217
|
@TrustedCaLimit = trustedcalimit
|
2214
2218
|
@ServerCertLimit = servercertlimit
|
2219
|
+
@TopicPrefixSlashLimit = topicprefixslashlimit
|
2220
|
+
@MessageRate = messagerate
|
2215
2221
|
@RequestId = requestid
|
2216
2222
|
end
|
2217
2223
|
|
@@ -2247,6 +2253,8 @@ module TencentCloud
|
|
2247
2253
|
@UseDefaultServerCert = params['UseDefaultServerCert']
|
2248
2254
|
@TrustedCaLimit = params['TrustedCaLimit']
|
2249
2255
|
@ServerCertLimit = params['ServerCertLimit']
|
2256
|
+
@TopicPrefixSlashLimit = params['TopicPrefixSlashLimit']
|
2257
|
+
@MessageRate = params['MessageRate']
|
2250
2258
|
@RequestId = params['RequestId']
|
2251
2259
|
end
|
2252
2260
|
end
|
@@ -2346,12 +2354,49 @@ module TencentCloud
|
|
2346
2354
|
# @type Qos: String
|
2347
2355
|
# @param OriginTopic: 源topic
|
2348
2356
|
# @type OriginTopic: String
|
2357
|
+
# @param ContentType: 内容类型(MQTT5)
|
2358
|
+
# 含义:指示消息载荷的内容类型,使用标准的 MIME 类型格式。这帮助接收方正确解析和处理消息内容。
|
2359
|
+
# 示例:
|
2360
|
+
# application/json:表示载荷是 JSON 格式的数据。
|
2361
|
+
# text/plain:表示载荷是纯文本。
|
2362
|
+
# application/octet-stream:表示载荷是二进制数据。
|
2363
|
+
# @type ContentType: String
|
2364
|
+
# @param PayloadFormatIndicator: 载荷格式指示符(MQTT5)
|
2365
|
+
# 含义:指示载荷的格式,是一个布尔值。0表示未指定格式(二进制),1表示 UTF-8 编码的字符串。
|
2366
|
+
# 示例:
|
2367
|
+
# 值为0:当载荷是二进制数据,如图片、音频等。
|
2368
|
+
# 值为1:当载荷是 UTF-8 编码的文本,如 JSON 字符串、XML 等。
|
2369
|
+
# @type PayloadFormatIndicator: Integer
|
2370
|
+
# @param MessageExpiryInterval: 消息过期间隔(MQTT5)
|
2371
|
+
# 含义:指定消息在被丢弃前的有效时间(秒)。如果消息在过期前未能送达,则会被 MQTT 服务器丢弃。
|
2372
|
+
# 示例:
|
2373
|
+
# 值为60:表示消息在发布后的 60 秒内有效,过期后未送达则被丢弃。
|
2374
|
+
# 值为0:表示消息不过期,永久有效(直到被接收或会话结束)。
|
2375
|
+
# @type MessageExpiryInterval: Integer
|
2376
|
+
# @param ResponseTopic: 响应主题(MQTT5)
|
2377
|
+
# 含义:指定一个主题,用于请求 - 响应模式中的响应消息。发送方可以指定接收方应该将响应发送到哪个主题。
|
2378
|
+
# 示例:
|
2379
|
+
# 发送方发布请求到主题devices/device1/commands,并设置ResponseTopic为devices/device1/responses。
|
2380
|
+
# 接收方处理请求后,将响应发布到devices/device1/responses主题。
|
2381
|
+
# @type ResponseTopic: String
|
2382
|
+
# @param CorrelationData: 关联数据(MQTT5)
|
2383
|
+
# 含义:用于关联请求和响应的标识符,通常是一个字节数组。在请求 - 响应模式中,发送方设置此值,接收方在响应中包含相同的值,以便发送方识别响应对应的请求。
|
2384
|
+
# 示例:
|
2385
|
+
# 发送方生成一个唯一 ID(如 UUID 的字节数组)作为CorrelationData,附加到请求消息中。
|
2386
|
+
# 接收方在响应消息中包含相同的CorrelationData,发送方通过比较此值来匹配响应和请求。
|
2387
|
+
# @type CorrelationData: String
|
2388
|
+
# @param SubscriptionIdentifier: 订阅标识符(MQTT5)
|
2389
|
+
# 含义:为订阅分配的唯一标识符,用于标识客户端的特定订阅。当服务器向客户端发送消息时,可以包含此标识符,帮助客户端识别消息对应的订阅。
|
2390
|
+
# 示例:
|
2391
|
+
# 客户端订阅主题devices/+/temperature,并设置SubscriptionIdentifier为123。
|
2392
|
+
# 当服务器向客户端发送此主题的消息时,会在消息中包含SubscriptionIdentifier: 123,客户端可以根据此值知道消息是通过哪个订阅接收的。
|
2393
|
+
# @type SubscriptionIdentifier: String
|
2349
2394
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2350
2395
|
# @type RequestId: String
|
2351
2396
|
|
2352
|
-
attr_accessor :Body, :UserProperties, :StoreTimestamp, :MessageId, :ClientId, :Qos, :OriginTopic, :RequestId
|
2397
|
+
attr_accessor :Body, :UserProperties, :StoreTimestamp, :MessageId, :ClientId, :Qos, :OriginTopic, :ContentType, :PayloadFormatIndicator, :MessageExpiryInterval, :ResponseTopic, :CorrelationData, :SubscriptionIdentifier, :RequestId
|
2353
2398
|
|
2354
|
-
def initialize(body=nil, userproperties=nil, storetimestamp=nil, messageid=nil, clientid=nil, qos=nil, origintopic=nil, requestid=nil)
|
2399
|
+
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
2400
|
@Body = body
|
2356
2401
|
@UserProperties = userproperties
|
2357
2402
|
@StoreTimestamp = storetimestamp
|
@@ -2359,6 +2404,12 @@ module TencentCloud
|
|
2359
2404
|
@ClientId = clientid
|
2360
2405
|
@Qos = qos
|
2361
2406
|
@OriginTopic = origintopic
|
2407
|
+
@ContentType = contenttype
|
2408
|
+
@PayloadFormatIndicator = payloadformatindicator
|
2409
|
+
@MessageExpiryInterval = messageexpiryinterval
|
2410
|
+
@ResponseTopic = responsetopic
|
2411
|
+
@CorrelationData = correlationdata
|
2412
|
+
@SubscriptionIdentifier = subscriptionidentifier
|
2362
2413
|
@RequestId = requestid
|
2363
2414
|
end
|
2364
2415
|
|
@@ -2377,6 +2428,12 @@ module TencentCloud
|
|
2377
2428
|
@ClientId = params['ClientId']
|
2378
2429
|
@Qos = params['Qos']
|
2379
2430
|
@OriginTopic = params['OriginTopic']
|
2431
|
+
@ContentType = params['ContentType']
|
2432
|
+
@PayloadFormatIndicator = params['PayloadFormatIndicator']
|
2433
|
+
@MessageExpiryInterval = params['MessageExpiryInterval']
|
2434
|
+
@ResponseTopic = params['ResponseTopic']
|
2435
|
+
@CorrelationData = params['CorrelationData']
|
2436
|
+
@SubscriptionIdentifier = params['SubscriptionIdentifier']
|
2380
2437
|
@RequestId = params['RequestId']
|
2381
2438
|
end
|
2382
2439
|
end
|
@@ -3299,12 +3356,12 @@ module TencentCloud
|
|
3299
3356
|
|
3300
3357
|
attr_accessor :MsgId, :Tags, :Keys, :ProducerAddr, :ProduceTime, :DeadLetterResendTimes, :DeadLetterResendSuccessTimes, :SubTopic, :Qos
|
3301
3358
|
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,
|
3359
|
+
deprecate :DeadLetterResendTimes, :none, 2025, 9
|
3360
|
+
deprecate :DeadLetterResendTimes=, :none, 2025, 9
|
3361
|
+
deprecate :DeadLetterResendSuccessTimes, :none, 2025, 9
|
3362
|
+
deprecate :DeadLetterResendSuccessTimes=, :none, 2025, 9
|
3363
|
+
deprecate :SubTopic, :none, 2025, 9
|
3364
|
+
deprecate :SubTopic=, :none, 2025, 9
|
3308
3365
|
|
3309
3366
|
def initialize(msgid=nil, tags=nil, keys=nil, produceraddr=nil, producetime=nil, deadletterresendtimes=nil, deadletterresendsuccesstimes=nil, subtopic=nil, qos=nil)
|
3310
3367
|
@MsgId = msgid
|
@@ -3754,15 +3811,17 @@ module TencentCloud
|
|
3754
3811
|
# mTLS;双向认证
|
3755
3812
|
# BYOC:一机一证
|
3756
3813
|
# @type X509Mode: String
|
3814
|
+
# @param MessageRate: 单客户端消息收发限速单位 条/秒
|
3815
|
+
# @type MessageRate: Integer
|
3757
3816
|
|
3758
|
-
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode
|
3817
|
+
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode, :MessageRate
|
3759
3818
|
extend Gem::Deprecate
|
3760
|
-
deprecate :DeviceCertificateProvisionType, :none, 2025,
|
3761
|
-
deprecate :DeviceCertificateProvisionType=, :none, 2025,
|
3762
|
-
deprecate :AutomaticActivation, :none, 2025,
|
3763
|
-
deprecate :AutomaticActivation=, :none, 2025,
|
3819
|
+
deprecate :DeviceCertificateProvisionType, :none, 2025, 9
|
3820
|
+
deprecate :DeviceCertificateProvisionType=, :none, 2025, 9
|
3821
|
+
deprecate :AutomaticActivation, :none, 2025, 9
|
3822
|
+
deprecate :AutomaticActivation=, :none, 2025, 9
|
3764
3823
|
|
3765
|
-
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil)
|
3824
|
+
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil, messagerate=nil)
|
3766
3825
|
@InstanceId = instanceid
|
3767
3826
|
@Name = name
|
3768
3827
|
@Remark = remark
|
@@ -3772,6 +3831,7 @@ module TencentCloud
|
|
3772
3831
|
@AuthorizationPolicy = authorizationpolicy
|
3773
3832
|
@UseDefaultServerCert = usedefaultservercert
|
3774
3833
|
@X509Mode = x509mode
|
3834
|
+
@MessageRate = messagerate
|
3775
3835
|
end
|
3776
3836
|
|
3777
3837
|
def deserialize(params)
|
@@ -3784,6 +3844,7 @@ module TencentCloud
|
|
3784
3844
|
@AuthorizationPolicy = params['AuthorizationPolicy']
|
3785
3845
|
@UseDefaultServerCert = params['UseDefaultServerCert']
|
3786
3846
|
@X509Mode = params['X509Mode']
|
3847
|
+
@MessageRate = params['MessageRate']
|
3787
3848
|
end
|
3788
3849
|
end
|
3789
3850
|
|
@@ -3884,8 +3945,8 @@ module TencentCloud
|
|
3884
3945
|
|
3885
3946
|
attr_accessor :InstanceId, :Algorithm, :From, :Secret, :PublicKey, :Status, :Remark, :Text
|
3886
3947
|
extend Gem::Deprecate
|
3887
|
-
deprecate :Text, :none, 2025,
|
3888
|
-
deprecate :Text=, :none, 2025,
|
3948
|
+
deprecate :Text, :none, 2025, 9
|
3949
|
+
deprecate :Text=, :none, 2025, 9
|
3889
3950
|
|
3890
3951
|
def initialize(instanceid=nil, algorithm=nil, from=nil, secret=nil, publickey=nil, status=nil, remark=nil, text=nil)
|
3891
3952
|
@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.1139
|
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-09-10 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:
|