tencentcloud-sdk-mqtt 3.0.1139 → 3.0.1167
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 +24 -0
- data/lib/v20240516/models.rb +54 -14
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16b7604540e8e15c7909e4ff2738eab34e44d316
|
|
4
|
+
data.tar.gz: 91b96c5ef2a69160f9aad7d4e8947e615b7a7313
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90ff7a21905b4b3599c9f278fe6e721f696701db2703c5dec4e2ec0d2bb6efc4aead2f9983676ef401d3875c5550abbb4133352c4c5b064912efa3dd9bd68918
|
|
7
|
+
data.tar.gz: 16da94177d970fa3879fbcad808d494b630b6d58a9e7170852577a879ce31e0c2ea6f88bf2d9092e83d59c45276584d8e4798ad878001ac79be49b82dfff877f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1167
|
data/lib/v20240516/client.rb
CHANGED
|
@@ -1095,6 +1095,30 @@ module TencentCloud
|
|
|
1095
1095
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1096
1096
|
end
|
|
1097
1097
|
|
|
1098
|
+
# 踢出客户端
|
|
1099
|
+
|
|
1100
|
+
# @param request: Request instance for KickOutClient.
|
|
1101
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::KickOutClientRequest`
|
|
1102
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::KickOutClientResponse`
|
|
1103
|
+
def KickOutClient(request)
|
|
1104
|
+
body = send_request('KickOutClient', request.serialize)
|
|
1105
|
+
response = JSON.parse(body)
|
|
1106
|
+
if response['Response'].key?('Error') == false
|
|
1107
|
+
model = KickOutClientResponse.new
|
|
1108
|
+
model.deserialize(response['Response'])
|
|
1109
|
+
model
|
|
1110
|
+
else
|
|
1111
|
+
code = response['Response']['Error']['Code']
|
|
1112
|
+
message = response['Response']['Error']['Message']
|
|
1113
|
+
reqid = response['Response']['RequestId']
|
|
1114
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1115
|
+
end
|
|
1116
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1117
|
+
raise e
|
|
1118
|
+
rescue StandardError => e
|
|
1119
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1098
1122
|
# 修改策略规则,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)
|
|
1099
1123
|
|
|
1100
1124
|
# @param request: Request instance for ModifyAuthorizationPolicy.
|
data/lib/v20240516/models.rb
CHANGED
|
@@ -2179,12 +2179,14 @@ module TencentCloud
|
|
|
2179
2179
|
# @type TopicPrefixSlashLimit: Integer
|
|
2180
2180
|
# @param MessageRate: 单客户端发送消息限速,单位 条/秒
|
|
2181
2181
|
# @type MessageRate: Integer
|
|
2182
|
+
# @param TransportLayerSecurity: 服务端tls支持的协议,使用“,”分割。例如:TLSv1.3,TLSv1.2,TLSv1.1,TLSv1
|
|
2183
|
+
# @type TransportLayerSecurity: String
|
|
2182
2184
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2183
2185
|
# @type RequestId: String
|
|
2184
2186
|
|
|
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
|
|
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
|
|
2186
2188
|
|
|
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)
|
|
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)
|
|
2188
2190
|
@InstanceType = instancetype
|
|
2189
2191
|
@InstanceId = instanceid
|
|
2190
2192
|
@InstanceName = instancename
|
|
@@ -2218,6 +2220,7 @@ module TencentCloud
|
|
|
2218
2220
|
@ServerCertLimit = servercertlimit
|
|
2219
2221
|
@TopicPrefixSlashLimit = topicprefixslashlimit
|
|
2220
2222
|
@MessageRate = messagerate
|
|
2223
|
+
@TransportLayerSecurity = transportlayersecurity
|
|
2221
2224
|
@RequestId = requestid
|
|
2222
2225
|
end
|
|
2223
2226
|
|
|
@@ -2255,6 +2258,7 @@ module TencentCloud
|
|
|
2255
2258
|
@ServerCertLimit = params['ServerCertLimit']
|
|
2256
2259
|
@TopicPrefixSlashLimit = params['TopicPrefixSlashLimit']
|
|
2257
2260
|
@MessageRate = params['MessageRate']
|
|
2261
|
+
@TransportLayerSecurity = params['TransportLayerSecurity']
|
|
2258
2262
|
@RequestId = params['RequestId']
|
|
2259
2263
|
end
|
|
2260
2264
|
end
|
|
@@ -2970,6 +2974,42 @@ module TencentCloud
|
|
|
2970
2974
|
end
|
|
2971
2975
|
end
|
|
2972
2976
|
|
|
2977
|
+
# KickOutClient请求参数结构体
|
|
2978
|
+
class KickOutClientRequest < TencentCloud::Common::AbstractModel
|
|
2979
|
+
# @param InstanceId: 集群id
|
|
2980
|
+
# @type InstanceId: String
|
|
2981
|
+
# @param ClientId: 客户端id
|
|
2982
|
+
# @type ClientId: String
|
|
2983
|
+
|
|
2984
|
+
attr_accessor :InstanceId, :ClientId
|
|
2985
|
+
|
|
2986
|
+
def initialize(instanceid=nil, clientid=nil)
|
|
2987
|
+
@InstanceId = instanceid
|
|
2988
|
+
@ClientId = clientid
|
|
2989
|
+
end
|
|
2990
|
+
|
|
2991
|
+
def deserialize(params)
|
|
2992
|
+
@InstanceId = params['InstanceId']
|
|
2993
|
+
@ClientId = params['ClientId']
|
|
2994
|
+
end
|
|
2995
|
+
end
|
|
2996
|
+
|
|
2997
|
+
# KickOutClient返回参数结构体
|
|
2998
|
+
class KickOutClientResponse < TencentCloud::Common::AbstractModel
|
|
2999
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3000
|
+
# @type RequestId: String
|
|
3001
|
+
|
|
3002
|
+
attr_accessor :RequestId
|
|
3003
|
+
|
|
3004
|
+
def initialize(requestid=nil)
|
|
3005
|
+
@RequestId = requestid
|
|
3006
|
+
end
|
|
3007
|
+
|
|
3008
|
+
def deserialize(params)
|
|
3009
|
+
@RequestId = params['RequestId']
|
|
3010
|
+
end
|
|
3011
|
+
end
|
|
3012
|
+
|
|
2973
3013
|
# MQTT认证器信息
|
|
2974
3014
|
class MQTTAuthenticatorItem < TencentCloud::Common::AbstractModel
|
|
2975
3015
|
# @param Type: 认证器类型
|
|
@@ -3356,12 +3396,12 @@ module TencentCloud
|
|
|
3356
3396
|
|
|
3357
3397
|
attr_accessor :MsgId, :Tags, :Keys, :ProducerAddr, :ProduceTime, :DeadLetterResendTimes, :DeadLetterResendSuccessTimes, :SubTopic, :Qos
|
|
3358
3398
|
extend Gem::Deprecate
|
|
3359
|
-
deprecate :DeadLetterResendTimes, :none, 2025,
|
|
3360
|
-
deprecate :DeadLetterResendTimes=, :none, 2025,
|
|
3361
|
-
deprecate :DeadLetterResendSuccessTimes, :none, 2025,
|
|
3362
|
-
deprecate :DeadLetterResendSuccessTimes=, :none, 2025,
|
|
3363
|
-
deprecate :SubTopic, :none, 2025,
|
|
3364
|
-
deprecate :SubTopic=, :none, 2025,
|
|
3399
|
+
deprecate :DeadLetterResendTimes, :none, 2025, 11
|
|
3400
|
+
deprecate :DeadLetterResendTimes=, :none, 2025, 11
|
|
3401
|
+
deprecate :DeadLetterResendSuccessTimes, :none, 2025, 11
|
|
3402
|
+
deprecate :DeadLetterResendSuccessTimes=, :none, 2025, 11
|
|
3403
|
+
deprecate :SubTopic, :none, 2025, 11
|
|
3404
|
+
deprecate :SubTopic=, :none, 2025, 11
|
|
3365
3405
|
|
|
3366
3406
|
def initialize(msgid=nil, tags=nil, keys=nil, produceraddr=nil, producetime=nil, deadletterresendtimes=nil, deadletterresendsuccesstimes=nil, subtopic=nil, qos=nil)
|
|
3367
3407
|
@MsgId = msgid
|
|
@@ -3816,10 +3856,10 @@ module TencentCloud
|
|
|
3816
3856
|
|
|
3817
3857
|
attr_accessor :InstanceId, :Name, :Remark, :SkuCode, :DeviceCertificateProvisionType, :AutomaticActivation, :AuthorizationPolicy, :UseDefaultServerCert, :X509Mode, :MessageRate
|
|
3818
3858
|
extend Gem::Deprecate
|
|
3819
|
-
deprecate :DeviceCertificateProvisionType, :none, 2025,
|
|
3820
|
-
deprecate :DeviceCertificateProvisionType=, :none, 2025,
|
|
3821
|
-
deprecate :AutomaticActivation, :none, 2025,
|
|
3822
|
-
deprecate :AutomaticActivation=, :none, 2025,
|
|
3859
|
+
deprecate :DeviceCertificateProvisionType, :none, 2025, 11
|
|
3860
|
+
deprecate :DeviceCertificateProvisionType=, :none, 2025, 11
|
|
3861
|
+
deprecate :AutomaticActivation, :none, 2025, 11
|
|
3862
|
+
deprecate :AutomaticActivation=, :none, 2025, 11
|
|
3823
3863
|
|
|
3824
3864
|
def initialize(instanceid=nil, name=nil, remark=nil, skucode=nil, devicecertificateprovisiontype=nil, automaticactivation=nil, authorizationpolicy=nil, usedefaultservercert=nil, x509mode=nil, messagerate=nil)
|
|
3825
3865
|
@InstanceId = instanceid
|
|
@@ -3945,8 +3985,8 @@ module TencentCloud
|
|
|
3945
3985
|
|
|
3946
3986
|
attr_accessor :InstanceId, :Algorithm, :From, :Secret, :PublicKey, :Status, :Remark, :Text
|
|
3947
3987
|
extend Gem::Deprecate
|
|
3948
|
-
deprecate :Text, :none, 2025,
|
|
3949
|
-
deprecate :Text=, :none, 2025,
|
|
3988
|
+
deprecate :Text, :none, 2025, 11
|
|
3989
|
+
deprecate :Text=, :none, 2025, 11
|
|
3950
3990
|
|
|
3951
3991
|
def initialize(instanceid=nil, algorithm=nil, from=nil, secret=nil, publickey=nil, status=nil, remark=nil, text=nil)
|
|
3952
3992
|
@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.1167
|
|
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-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -34,8 +34,8 @@ extensions: []
|
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
36
|
- lib/tencentcloud-sdk-mqtt.rb
|
|
37
|
-
- lib/v20240516/models.rb
|
|
38
37
|
- lib/v20240516/client.rb
|
|
38
|
+
- lib/v20240516/models.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|