tencentcloud-sdk-mqtt 3.0.1001 → 3.0.1003
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 +139 -0
- 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: dfbf524a86d0b63491b36c5abd6145264fe2ac2e
|
4
|
+
data.tar.gz: 96f392502eefd660d3adc2da772f9ddfa127c3b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8632dd612315d1984269d3d4c075a425f93c0e7558a46cfbf46ccd9736666b52bab3b271123c44c1b31987d0fc56d05c16747375796b9a1920b0c7a9d2ca80e8
|
7
|
+
data.tar.gz: 419ef497f81bff20b3e2c570339e1b02d67dac71e0a8aa9b5be284430bafab675474f280697d75999b20dda4b8810a0ec259e441f8addfba3a2e0b5a11a19f23
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1003
|
data/lib/v20240516/client.rb
CHANGED
@@ -730,6 +730,30 @@ module TencentCloud
|
|
730
730
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
731
731
|
end
|
732
732
|
|
733
|
+
# 获取产品售卖规格
|
734
|
+
|
735
|
+
# @param request: Request instance for DescribeProductSKUList.
|
736
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeProductSKUListRequest`
|
737
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeProductSKUListResponse`
|
738
|
+
def DescribeProductSKUList(request)
|
739
|
+
body = send_request('DescribeProductSKUList', request.serialize)
|
740
|
+
response = JSON.parse(body)
|
741
|
+
if response['Response'].key?('Error') == false
|
742
|
+
model = DescribeProductSKUListResponse.new
|
743
|
+
model.deserialize(response['Response'])
|
744
|
+
model
|
745
|
+
else
|
746
|
+
code = response['Response']['Error']['Code']
|
747
|
+
message = response['Response']['Error']['Message']
|
748
|
+
reqid = response['Response']['RequestId']
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
750
|
+
end
|
751
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
752
|
+
raise e
|
753
|
+
rescue StandardError => e
|
754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
755
|
+
end
|
756
|
+
|
733
757
|
# 查询mqtt主题详情
|
734
758
|
|
735
759
|
# @param request: Request instance for DescribeTopic.
|
data/lib/v20240516/models.rb
CHANGED
@@ -1765,6 +1765,50 @@ module TencentCloud
|
|
1765
1765
|
end
|
1766
1766
|
end
|
1767
1767
|
|
1768
|
+
# DescribeProductSKUList请求参数结构体
|
1769
|
+
class DescribeProductSKUListRequest < TencentCloud::Common::AbstractModel
|
1770
|
+
|
1771
|
+
|
1772
|
+
def initialize()
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
def deserialize(params)
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
# DescribeProductSKUList返回参数结构体
|
1780
|
+
class DescribeProductSKUListResponse < TencentCloud::Common::AbstractModel
|
1781
|
+
# @param TotalCount: 查询总数
|
1782
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1783
|
+
# @type TotalCount: Integer
|
1784
|
+
# @param MQTTProductSkuList: mqtt商品配置信息
|
1785
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1786
|
+
# @type MQTTProductSkuList: Array
|
1787
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1788
|
+
# @type RequestId: String
|
1789
|
+
|
1790
|
+
attr_accessor :TotalCount, :MQTTProductSkuList, :RequestId
|
1791
|
+
|
1792
|
+
def initialize(totalcount=nil, mqttproductskulist=nil, requestid=nil)
|
1793
|
+
@TotalCount = totalcount
|
1794
|
+
@MQTTProductSkuList = mqttproductskulist
|
1795
|
+
@RequestId = requestid
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
def deserialize(params)
|
1799
|
+
@TotalCount = params['TotalCount']
|
1800
|
+
unless params['MQTTProductSkuList'].nil?
|
1801
|
+
@MQTTProductSkuList = []
|
1802
|
+
params['MQTTProductSkuList'].each do |i|
|
1803
|
+
productskuitem_tmp = ProductSkuItem.new
|
1804
|
+
productskuitem_tmp.deserialize(i)
|
1805
|
+
@MQTTProductSkuList << productskuitem_tmp
|
1806
|
+
end
|
1807
|
+
end
|
1808
|
+
@RequestId = params['RequestId']
|
1809
|
+
end
|
1810
|
+
end
|
1811
|
+
|
1768
1812
|
# DescribeTopicList请求参数结构体
|
1769
1813
|
class DescribeTopicListRequest < TencentCloud::Common::AbstractModel
|
1770
1814
|
# @param InstanceId: 实例ID
|
@@ -2774,6 +2818,101 @@ module TencentCloud
|
|
2774
2818
|
end
|
2775
2819
|
end
|
2776
2820
|
|
2821
|
+
# 价格标签信息
|
2822
|
+
class PriceTag < TencentCloud::Common::AbstractModel
|
2823
|
+
# @param Name: 计价名称
|
2824
|
+
# @type Name: String
|
2825
|
+
# @param Category: 计价类别
|
2826
|
+
# @type Category: String
|
2827
|
+
# @param Code: 计费项标签
|
2828
|
+
# @type Code: String
|
2829
|
+
# @param Step: 步长
|
2830
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2831
|
+
# @type Step: Integer
|
2832
|
+
|
2833
|
+
attr_accessor :Name, :Category, :Code, :Step
|
2834
|
+
|
2835
|
+
def initialize(name=nil, category=nil, code=nil, step=nil)
|
2836
|
+
@Name = name
|
2837
|
+
@Category = category
|
2838
|
+
@Code = code
|
2839
|
+
@Step = step
|
2840
|
+
end
|
2841
|
+
|
2842
|
+
def deserialize(params)
|
2843
|
+
@Name = params['Name']
|
2844
|
+
@Category = params['Category']
|
2845
|
+
@Code = params['Code']
|
2846
|
+
@Step = params['Step']
|
2847
|
+
end
|
2848
|
+
end
|
2849
|
+
|
2850
|
+
# MQTT ProductSkuItem
|
2851
|
+
class ProductSkuItem < TencentCloud::Common::AbstractModel
|
2852
|
+
# @param InstanceType: 规格类型
|
2853
|
+
# BASIC:基础版
|
2854
|
+
# PRO :专业版
|
2855
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2856
|
+
# @type InstanceType: String
|
2857
|
+
# @param SkuCode: 规格代码
|
2858
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2859
|
+
# @type SkuCode: String
|
2860
|
+
# @param OnSale: 是否售卖
|
2861
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2862
|
+
# @type OnSale: Boolean
|
2863
|
+
# @param TopicNumLimit: topic num限制
|
2864
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2865
|
+
# @type TopicNumLimit: Integer
|
2866
|
+
# @param TpsLimit: tps
|
2867
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2868
|
+
# @type TpsLimit: Integer
|
2869
|
+
# @param ClientNumLimit: 客户端连接数
|
2870
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2871
|
+
# @type ClientNumLimit: Integer
|
2872
|
+
# @param MaxSubscriptionPerClient: 单客户端最大订阅数
|
2873
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2874
|
+
# @type MaxSubscriptionPerClient: Integer
|
2875
|
+
# @param AuthorizationPolicyLimit: 授权规则条数
|
2876
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2877
|
+
# @type AuthorizationPolicyLimit: Integer
|
2878
|
+
# @param PriceTags: 计费项信息
|
2879
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2880
|
+
# @type PriceTags: Array
|
2881
|
+
|
2882
|
+
attr_accessor :InstanceType, :SkuCode, :OnSale, :TopicNumLimit, :TpsLimit, :ClientNumLimit, :MaxSubscriptionPerClient, :AuthorizationPolicyLimit, :PriceTags
|
2883
|
+
|
2884
|
+
def initialize(instancetype=nil, skucode=nil, onsale=nil, topicnumlimit=nil, tpslimit=nil, clientnumlimit=nil, maxsubscriptionperclient=nil, authorizationpolicylimit=nil, pricetags=nil)
|
2885
|
+
@InstanceType = instancetype
|
2886
|
+
@SkuCode = skucode
|
2887
|
+
@OnSale = onsale
|
2888
|
+
@TopicNumLimit = topicnumlimit
|
2889
|
+
@TpsLimit = tpslimit
|
2890
|
+
@ClientNumLimit = clientnumlimit
|
2891
|
+
@MaxSubscriptionPerClient = maxsubscriptionperclient
|
2892
|
+
@AuthorizationPolicyLimit = authorizationpolicylimit
|
2893
|
+
@PriceTags = pricetags
|
2894
|
+
end
|
2895
|
+
|
2896
|
+
def deserialize(params)
|
2897
|
+
@InstanceType = params['InstanceType']
|
2898
|
+
@SkuCode = params['SkuCode']
|
2899
|
+
@OnSale = params['OnSale']
|
2900
|
+
@TopicNumLimit = params['TopicNumLimit']
|
2901
|
+
@TpsLimit = params['TpsLimit']
|
2902
|
+
@ClientNumLimit = params['ClientNumLimit']
|
2903
|
+
@MaxSubscriptionPerClient = params['MaxSubscriptionPerClient']
|
2904
|
+
@AuthorizationPolicyLimit = params['AuthorizationPolicyLimit']
|
2905
|
+
unless params['PriceTags'].nil?
|
2906
|
+
@PriceTags = []
|
2907
|
+
params['PriceTags'].each do |i|
|
2908
|
+
pricetag_tmp = PriceTag.new
|
2909
|
+
pricetag_tmp.deserialize(i)
|
2910
|
+
@PriceTags << pricetag_tmp
|
2911
|
+
end
|
2912
|
+
end
|
2913
|
+
end
|
2914
|
+
end
|
2915
|
+
|
2777
2916
|
# 公网访问安全规则
|
2778
2917
|
class PublicAccessRule < TencentCloud::Common::AbstractModel
|
2779
2918
|
# @param IpRule: ip网段信息
|
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.1003
|
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-02-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|