tencentcloud-sdk-mqtt 3.0.1012 → 3.0.1014

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 446fac9084b5c212fe2dbecaab887c5a9493414d
4
- data.tar.gz: a414eeb4977cef88648e35285d2e72b29fd4869e
3
+ metadata.gz: 104e6defb365619cd19dcf58738991ffce17da29
4
+ data.tar.gz: 31e22d73a3a5d7d1c1d9ba65a732949ff1833082
5
5
  SHA512:
6
- metadata.gz: a45ba779f166986d1197fa77532f78f0ad8a32dd86736c157c70ae9a90d82fd5a8b8b91621ab66e687f628e1c69312a41a14f8bb080142d997dad26e2d094c5c
7
- data.tar.gz: 1ccd7936121151e04a35cf4c949f03fc1d77fc05c819898697a850f042700f6b7d5594f849f58681eeb1d22ccbd730f9fda85277cc5b69d69b072a37e7f7a07a
6
+ metadata.gz: ce64f20a95fff4a3674d4fae67f062fcafa095d44fcbc87855bc600797e6557ab0b9ff0b0cf66735f0a376451196da41be6e9cae0d8517cf6a98cf543ee17835
7
+ data.tar.gz: 5121ad2bc15a71603286124e90c4759e07ea95887e9827981b463b00206d5644693cc46f3ed7a36cf690663bdd1df3b940186a6d16be26a830552e0ac74c7938
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1012
1
+ 3.0.1014
@@ -677,6 +677,30 @@ module TencentCloud
677
677
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
678
  end
679
679
 
680
+ # 查询MQTT实例公网接入点
681
+
682
+ # @param request: Request instance for DescribeInsVPCEndpoints.
683
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeInsVPCEndpointsRequest`
684
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeInsVPCEndpointsResponse`
685
+ def DescribeInsVPCEndpoints(request)
686
+ body = send_request('DescribeInsVPCEndpoints', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeInsVPCEndpointsResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
680
704
  # 查询实例信息
681
705
 
682
706
  # @param request: Request instance for DescribeInstance.
@@ -1024,6 +1048,30 @@ module TencentCloud
1024
1048
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1025
1049
  end
1026
1050
 
1051
+ # 发布 MQTT 消息到消息主题或客户端
1052
+
1053
+ # @param request: Request instance for PublishMessage.
1054
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::PublishMessageRequest`
1055
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::PublishMessageResponse`
1056
+ def PublishMessage(request)
1057
+ body = send_request('PublishMessage', request.serialize)
1058
+ response = JSON.parse(body)
1059
+ if response['Response'].key?('Error') == false
1060
+ model = PublishMessageResponse.new
1061
+ model.deserialize(response['Response'])
1062
+ model
1063
+ else
1064
+ code = response['Response']['Error']['Code']
1065
+ message = response['Response']['Error']['Message']
1066
+ reqid = response['Response']['RequestId']
1067
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1068
+ end
1069
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1070
+ raise e
1071
+ rescue StandardError => e
1072
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1073
+ end
1074
+
1027
1075
  # 注册ca证书
1028
1076
 
1029
1077
  # @param request: Request instance for RegisterCaCertificate.
@@ -1560,6 +1560,49 @@ module TencentCloud
1560
1560
  end
1561
1561
  end
1562
1562
 
1563
+ # DescribeInsVPCEndpoints请求参数结构体
1564
+ class DescribeInsVPCEndpointsRequest < TencentCloud::Common::AbstractModel
1565
+ # @param InstanceId: 实例ID
1566
+ # @type InstanceId: String
1567
+
1568
+ attr_accessor :InstanceId
1569
+
1570
+ def initialize(instanceid=nil)
1571
+ @InstanceId = instanceid
1572
+ end
1573
+
1574
+ def deserialize(params)
1575
+ @InstanceId = params['InstanceId']
1576
+ end
1577
+ end
1578
+
1579
+ # DescribeInsVPCEndpoints返回参数结构体
1580
+ class DescribeInsVPCEndpointsResponse < TencentCloud::Common::AbstractModel
1581
+ # @param Endpoints: 接入点
1582
+ # @type Endpoints: Array
1583
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1584
+ # @type RequestId: String
1585
+
1586
+ attr_accessor :Endpoints, :RequestId
1587
+
1588
+ def initialize(endpoints=nil, requestid=nil)
1589
+ @Endpoints = endpoints
1590
+ @RequestId = requestid
1591
+ end
1592
+
1593
+ def deserialize(params)
1594
+ unless params['Endpoints'].nil?
1595
+ @Endpoints = []
1596
+ params['Endpoints'].each do |i|
1597
+ mqttendpointitem_tmp = MQTTEndpointItem.new
1598
+ mqttendpointitem_tmp.deserialize(i)
1599
+ @Endpoints << mqttendpointitem_tmp
1600
+ end
1601
+ end
1602
+ @RequestId = params['RequestId']
1603
+ end
1604
+ end
1605
+
1563
1606
  # DescribeInstanceList请求参数结构体
1564
1607
  class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
1565
1608
  # @param Filters: 查询条件列表,支持以下子弹
@@ -2940,6 +2983,62 @@ module TencentCloud
2940
2983
  end
2941
2984
  end
2942
2985
 
2986
+ # PublishMessage请求参数结构体
2987
+ class PublishMessageRequest < TencentCloud::Common::AbstractModel
2988
+ # @param InstanceId: 实例ID
2989
+ # @type InstanceId: String
2990
+ # @param Payload: 消息 payload,需要按 encoding 指定的编码方式进行编码
2991
+ # @type Payload: String
2992
+ # @param TargetTopic: 消息目的主题,该参数与 TargetClientId 二选一
2993
+ # @type TargetTopic: String
2994
+ # @param TargetClientId: 消息目的客户端 ID,该参数与 TargetTopic 二选一
2995
+ # @type TargetClientId: String
2996
+ # @param Encoding: 消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)
2997
+ # @type Encoding: String
2998
+ # @param Qos: 消息的服务质量等级,默认为 1
2999
+ # @type Qos: Integer
3000
+ # @param Retain: 是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true
3001
+ # @type Retain: Boolean
3002
+
3003
+ attr_accessor :InstanceId, :Payload, :TargetTopic, :TargetClientId, :Encoding, :Qos, :Retain
3004
+
3005
+ def initialize(instanceid=nil, payload=nil, targettopic=nil, targetclientid=nil, encoding=nil, qos=nil, retain=nil)
3006
+ @InstanceId = instanceid
3007
+ @Payload = payload
3008
+ @TargetTopic = targettopic
3009
+ @TargetClientId = targetclientid
3010
+ @Encoding = encoding
3011
+ @Qos = qos
3012
+ @Retain = retain
3013
+ end
3014
+
3015
+ def deserialize(params)
3016
+ @InstanceId = params['InstanceId']
3017
+ @Payload = params['Payload']
3018
+ @TargetTopic = params['TargetTopic']
3019
+ @TargetClientId = params['TargetClientId']
3020
+ @Encoding = params['Encoding']
3021
+ @Qos = params['Qos']
3022
+ @Retain = params['Retain']
3023
+ end
3024
+ end
3025
+
3026
+ # PublishMessage返回参数结构体
3027
+ class PublishMessageResponse < TencentCloud::Common::AbstractModel
3028
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3029
+ # @type RequestId: String
3030
+
3031
+ attr_accessor :RequestId
3032
+
3033
+ def initialize(requestid=nil)
3034
+ @RequestId = requestid
3035
+ end
3036
+
3037
+ def deserialize(params)
3038
+ @RequestId = params['RequestId']
3039
+ end
3040
+ end
3041
+
2943
3042
  # RegisterCaCertificate请求参数结构体
2944
3043
  class RegisterCaCertificateRequest < TencentCloud::Common::AbstractModel
2945
3044
  # @param InstanceId: 集群id
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.1012
4
+ version: 3.0.1014
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-03-05 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common