tencentcloud-sdk-python-mqtt 3.1.77__tar.gz → 3.1.82__tar.gz
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.
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/setup.py +1 -1
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/v20240516/models.py +229 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/v20240516/mqtt_client.py +23 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/v20240516/mqtt_client_async.py +18 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mqtt-3.1.82/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mqtt-3.1.77/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/README.rst +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/__init__.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud/mqtt/v20240516/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.82}/tencentcloud_sdk_python_mqtt.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mqtt
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.82
|
|
4
4
|
Summary: Tencent Cloud Mqtt SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.82
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mqtt',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.82,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mqtt SDK for Python',
|
|
@@ -7090,6 +7090,105 @@ class DescribeProductSKUListResponse(AbstractModel):
|
|
|
7090
7090
|
self._RequestId = params.get("RequestId")
|
|
7091
7091
|
|
|
7092
7092
|
|
|
7093
|
+
class DescribeSharedSubscriptionGroupsRequest(AbstractModel):
|
|
7094
|
+
r"""DescribeSharedSubscriptionGroups请求参数结构体
|
|
7095
|
+
|
|
7096
|
+
"""
|
|
7097
|
+
|
|
7098
|
+
def __init__(self):
|
|
7099
|
+
r"""
|
|
7100
|
+
:param _InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
7101
|
+
:type InstanceId: str
|
|
7102
|
+
"""
|
|
7103
|
+
self._InstanceId = None
|
|
7104
|
+
|
|
7105
|
+
@property
|
|
7106
|
+
def InstanceId(self):
|
|
7107
|
+
r"""腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
7108
|
+
:rtype: str
|
|
7109
|
+
"""
|
|
7110
|
+
return self._InstanceId
|
|
7111
|
+
|
|
7112
|
+
@InstanceId.setter
|
|
7113
|
+
def InstanceId(self, InstanceId):
|
|
7114
|
+
self._InstanceId = InstanceId
|
|
7115
|
+
|
|
7116
|
+
|
|
7117
|
+
def _deserialize(self, params):
|
|
7118
|
+
self._InstanceId = params.get("InstanceId")
|
|
7119
|
+
memeber_set = set(params.keys())
|
|
7120
|
+
for name, value in vars(self).items():
|
|
7121
|
+
property_name = name[1:]
|
|
7122
|
+
if property_name in memeber_set:
|
|
7123
|
+
memeber_set.remove(property_name)
|
|
7124
|
+
if len(memeber_set) > 0:
|
|
7125
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7126
|
+
|
|
7127
|
+
|
|
7128
|
+
|
|
7129
|
+
class DescribeSharedSubscriptionGroupsResponse(AbstractModel):
|
|
7130
|
+
r"""DescribeSharedSubscriptionGroups返回参数结构体
|
|
7131
|
+
|
|
7132
|
+
"""
|
|
7133
|
+
|
|
7134
|
+
def __init__(self):
|
|
7135
|
+
r"""
|
|
7136
|
+
:param _Data: 集群下共享订阅组列表
|
|
7137
|
+
:type Data: list of SharedGroup
|
|
7138
|
+
:param _TotalCount: 查询总数
|
|
7139
|
+
:type TotalCount: int
|
|
7140
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7141
|
+
:type RequestId: str
|
|
7142
|
+
"""
|
|
7143
|
+
self._Data = None
|
|
7144
|
+
self._TotalCount = None
|
|
7145
|
+
self._RequestId = None
|
|
7146
|
+
|
|
7147
|
+
@property
|
|
7148
|
+
def Data(self):
|
|
7149
|
+
r"""集群下共享订阅组列表
|
|
7150
|
+
:rtype: list of SharedGroup
|
|
7151
|
+
"""
|
|
7152
|
+
return self._Data
|
|
7153
|
+
|
|
7154
|
+
@Data.setter
|
|
7155
|
+
def Data(self, Data):
|
|
7156
|
+
self._Data = Data
|
|
7157
|
+
|
|
7158
|
+
@property
|
|
7159
|
+
def TotalCount(self):
|
|
7160
|
+
r""" 查询总数
|
|
7161
|
+
:rtype: int
|
|
7162
|
+
"""
|
|
7163
|
+
return self._TotalCount
|
|
7164
|
+
|
|
7165
|
+
@TotalCount.setter
|
|
7166
|
+
def TotalCount(self, TotalCount):
|
|
7167
|
+
self._TotalCount = TotalCount
|
|
7168
|
+
|
|
7169
|
+
@property
|
|
7170
|
+
def RequestId(self):
|
|
7171
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7172
|
+
:rtype: str
|
|
7173
|
+
"""
|
|
7174
|
+
return self._RequestId
|
|
7175
|
+
|
|
7176
|
+
@RequestId.setter
|
|
7177
|
+
def RequestId(self, RequestId):
|
|
7178
|
+
self._RequestId = RequestId
|
|
7179
|
+
|
|
7180
|
+
|
|
7181
|
+
def _deserialize(self, params):
|
|
7182
|
+
if params.get("Data") is not None:
|
|
7183
|
+
self._Data = []
|
|
7184
|
+
for item in params.get("Data"):
|
|
7185
|
+
obj = SharedGroup()
|
|
7186
|
+
obj._deserialize(item)
|
|
7187
|
+
self._Data.append(obj)
|
|
7188
|
+
self._TotalCount = params.get("TotalCount")
|
|
7189
|
+
self._RequestId = params.get("RequestId")
|
|
7190
|
+
|
|
7191
|
+
|
|
7093
7192
|
class DescribeSharedSubscriptionLagRequest(AbstractModel):
|
|
7094
7193
|
r"""DescribeSharedSubscriptionLag请求参数结构体
|
|
7095
7194
|
|
|
@@ -12669,6 +12768,136 @@ class RevokedDeviceCertificateResponse(AbstractModel):
|
|
|
12669
12768
|
self._RequestId = params.get("RequestId")
|
|
12670
12769
|
|
|
12671
12770
|
|
|
12771
|
+
class SharedGroup(AbstractModel):
|
|
12772
|
+
r"""共享订阅组
|
|
12773
|
+
|
|
12774
|
+
"""
|
|
12775
|
+
|
|
12776
|
+
def __init__(self):
|
|
12777
|
+
r"""
|
|
12778
|
+
:param _InstanceId: 腾讯云MQTT实例ID
|
|
12779
|
+
:type InstanceId: str
|
|
12780
|
+
:param _SharedName: 共享订阅组名
|
|
12781
|
+
:type SharedName: str
|
|
12782
|
+
:param _LbStrategy: 共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
|
|
12783
|
+
:type LbStrategy: int
|
|
12784
|
+
:param _ExpiryInterval: HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
|
|
12785
|
+
范围:0~600秒
|
|
12786
|
+
:type ExpiryInterval: int
|
|
12787
|
+
:param _Remark: 备注,长度不超过128个字符。
|
|
12788
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12789
|
+
:type Remark: str
|
|
12790
|
+
:param _CreateTime: 创建时间,毫秒级时间戳 。
|
|
12791
|
+
:type CreateTime: int
|
|
12792
|
+
:param _UpdateTime: 上次更新时间,毫秒级时间戳 。
|
|
12793
|
+
:type UpdateTime: int
|
|
12794
|
+
"""
|
|
12795
|
+
self._InstanceId = None
|
|
12796
|
+
self._SharedName = None
|
|
12797
|
+
self._LbStrategy = None
|
|
12798
|
+
self._ExpiryInterval = None
|
|
12799
|
+
self._Remark = None
|
|
12800
|
+
self._CreateTime = None
|
|
12801
|
+
self._UpdateTime = None
|
|
12802
|
+
|
|
12803
|
+
@property
|
|
12804
|
+
def InstanceId(self):
|
|
12805
|
+
r"""腾讯云MQTT实例ID
|
|
12806
|
+
:rtype: str
|
|
12807
|
+
"""
|
|
12808
|
+
return self._InstanceId
|
|
12809
|
+
|
|
12810
|
+
@InstanceId.setter
|
|
12811
|
+
def InstanceId(self, InstanceId):
|
|
12812
|
+
self._InstanceId = InstanceId
|
|
12813
|
+
|
|
12814
|
+
@property
|
|
12815
|
+
def SharedName(self):
|
|
12816
|
+
r"""共享订阅组名
|
|
12817
|
+
:rtype: str
|
|
12818
|
+
"""
|
|
12819
|
+
return self._SharedName
|
|
12820
|
+
|
|
12821
|
+
@SharedName.setter
|
|
12822
|
+
def SharedName(self, SharedName):
|
|
12823
|
+
self._SharedName = SharedName
|
|
12824
|
+
|
|
12825
|
+
@property
|
|
12826
|
+
def LbStrategy(self):
|
|
12827
|
+
r"""共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
|
|
12828
|
+
:rtype: int
|
|
12829
|
+
"""
|
|
12830
|
+
return self._LbStrategy
|
|
12831
|
+
|
|
12832
|
+
@LbStrategy.setter
|
|
12833
|
+
def LbStrategy(self, LbStrategy):
|
|
12834
|
+
self._LbStrategy = LbStrategy
|
|
12835
|
+
|
|
12836
|
+
@property
|
|
12837
|
+
def ExpiryInterval(self):
|
|
12838
|
+
r"""HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
|
|
12839
|
+
范围:0~600秒
|
|
12840
|
+
:rtype: int
|
|
12841
|
+
"""
|
|
12842
|
+
return self._ExpiryInterval
|
|
12843
|
+
|
|
12844
|
+
@ExpiryInterval.setter
|
|
12845
|
+
def ExpiryInterval(self, ExpiryInterval):
|
|
12846
|
+
self._ExpiryInterval = ExpiryInterval
|
|
12847
|
+
|
|
12848
|
+
@property
|
|
12849
|
+
def Remark(self):
|
|
12850
|
+
r"""备注,长度不超过128个字符。
|
|
12851
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12852
|
+
:rtype: str
|
|
12853
|
+
"""
|
|
12854
|
+
return self._Remark
|
|
12855
|
+
|
|
12856
|
+
@Remark.setter
|
|
12857
|
+
def Remark(self, Remark):
|
|
12858
|
+
self._Remark = Remark
|
|
12859
|
+
|
|
12860
|
+
@property
|
|
12861
|
+
def CreateTime(self):
|
|
12862
|
+
r"""创建时间,毫秒级时间戳 。
|
|
12863
|
+
:rtype: int
|
|
12864
|
+
"""
|
|
12865
|
+
return self._CreateTime
|
|
12866
|
+
|
|
12867
|
+
@CreateTime.setter
|
|
12868
|
+
def CreateTime(self, CreateTime):
|
|
12869
|
+
self._CreateTime = CreateTime
|
|
12870
|
+
|
|
12871
|
+
@property
|
|
12872
|
+
def UpdateTime(self):
|
|
12873
|
+
r"""上次更新时间,毫秒级时间戳 。
|
|
12874
|
+
:rtype: int
|
|
12875
|
+
"""
|
|
12876
|
+
return self._UpdateTime
|
|
12877
|
+
|
|
12878
|
+
@UpdateTime.setter
|
|
12879
|
+
def UpdateTime(self, UpdateTime):
|
|
12880
|
+
self._UpdateTime = UpdateTime
|
|
12881
|
+
|
|
12882
|
+
|
|
12883
|
+
def _deserialize(self, params):
|
|
12884
|
+
self._InstanceId = params.get("InstanceId")
|
|
12885
|
+
self._SharedName = params.get("SharedName")
|
|
12886
|
+
self._LbStrategy = params.get("LbStrategy")
|
|
12887
|
+
self._ExpiryInterval = params.get("ExpiryInterval")
|
|
12888
|
+
self._Remark = params.get("Remark")
|
|
12889
|
+
self._CreateTime = params.get("CreateTime")
|
|
12890
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
12891
|
+
memeber_set = set(params.keys())
|
|
12892
|
+
for name, value in vars(self).items():
|
|
12893
|
+
property_name = name[1:]
|
|
12894
|
+
if property_name in memeber_set:
|
|
12895
|
+
memeber_set.remove(property_name)
|
|
12896
|
+
if len(memeber_set) > 0:
|
|
12897
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12898
|
+
|
|
12899
|
+
|
|
12900
|
+
|
|
12672
12901
|
class SubscriptionUserProperty(AbstractModel):
|
|
12673
12902
|
r"""订阅的UserProperty结构
|
|
12674
12903
|
|
|
@@ -1066,6 +1066,29 @@ class MqttClient(AbstractClient):
|
|
|
1066
1066
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1067
1067
|
|
|
1068
1068
|
|
|
1069
|
+
def DescribeSharedSubscriptionGroups(self, request):
|
|
1070
|
+
r"""查询集群下共享订阅组列表
|
|
1071
|
+
|
|
1072
|
+
:param request: Request instance for DescribeSharedSubscriptionGroups.
|
|
1073
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionGroupsRequest`
|
|
1074
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionGroupsResponse`
|
|
1075
|
+
|
|
1076
|
+
"""
|
|
1077
|
+
try:
|
|
1078
|
+
params = request._serialize()
|
|
1079
|
+
headers = request.headers
|
|
1080
|
+
body = self.call("DescribeSharedSubscriptionGroups", params, headers=headers)
|
|
1081
|
+
response = json.loads(body)
|
|
1082
|
+
model = models.DescribeSharedSubscriptionGroupsResponse()
|
|
1083
|
+
model._deserialize(response["Response"])
|
|
1084
|
+
return model
|
|
1085
|
+
except Exception as e:
|
|
1086
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1087
|
+
raise
|
|
1088
|
+
else:
|
|
1089
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1090
|
+
|
|
1091
|
+
|
|
1069
1092
|
def DescribeSharedSubscriptionLag(self, request):
|
|
1070
1093
|
r"""查询共享订阅消息堆积量
|
|
1071
1094
|
|
|
@@ -840,6 +840,24 @@ class MqttClient(AbstractClient):
|
|
|
840
840
|
|
|
841
841
|
return await self.call_and_deserialize(**kwargs)
|
|
842
842
|
|
|
843
|
+
async def DescribeSharedSubscriptionGroups(
|
|
844
|
+
self,
|
|
845
|
+
request: models.DescribeSharedSubscriptionGroupsRequest,
|
|
846
|
+
opts: Dict = None,
|
|
847
|
+
) -> models.DescribeSharedSubscriptionGroupsResponse:
|
|
848
|
+
"""
|
|
849
|
+
查询集群下共享订阅组列表
|
|
850
|
+
"""
|
|
851
|
+
|
|
852
|
+
kwargs = {}
|
|
853
|
+
kwargs["action"] = "DescribeSharedSubscriptionGroups"
|
|
854
|
+
kwargs["params"] = request._serialize()
|
|
855
|
+
kwargs["resp_cls"] = models.DescribeSharedSubscriptionGroupsResponse
|
|
856
|
+
kwargs["headers"] = request.headers
|
|
857
|
+
kwargs["opts"] = opts or {}
|
|
858
|
+
|
|
859
|
+
return await self.call_and_deserialize(**kwargs)
|
|
860
|
+
|
|
843
861
|
async def DescribeSharedSubscriptionLag(
|
|
844
862
|
self,
|
|
845
863
|
request: models.DescribeSharedSubscriptionLagRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mqtt
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.82
|
|
4
4
|
Summary: Tencent Cloud Mqtt SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.82
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.82
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|