tencentcloud-sdk-python-mqtt 3.1.82__tar.gz → 3.1.93__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/models.py +334 -0
  5. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/mqtt_client.py +46 -0
  6. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/mqtt_client_async.py +36 -0
  7. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_mqtt-3.1.93/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mqtt-3.1.82/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mqtt-3.1.82 → tencentcloud_sdk_python_mqtt-3.1.93}/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.82
3
+ Version: 3.1.93
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.82
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.93
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.82,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.93,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mqtt SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.82'
17
+ __version__ = '3.1.93'
@@ -7090,6 +7090,135 @@ class DescribeProductSKUListResponse(AbstractModel):
7090
7090
  self._RequestId = params.get("RequestId")
7091
7091
 
7092
7092
 
7093
+ class DescribeSharedSubscriptionClientRequest(AbstractModel):
7094
+ r"""DescribeSharedSubscriptionClient请求参数结构体
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
+ :param _SharedName: 共享订阅组名
7103
+ :type SharedName: str
7104
+ :param _TopicFilter: 订阅表达式
7105
+ :type TopicFilter: str
7106
+ """
7107
+ self._InstanceId = None
7108
+ self._SharedName = None
7109
+ self._TopicFilter = None
7110
+
7111
+ @property
7112
+ def InstanceId(self):
7113
+ r"""腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
7114
+ :rtype: str
7115
+ """
7116
+ return self._InstanceId
7117
+
7118
+ @InstanceId.setter
7119
+ def InstanceId(self, InstanceId):
7120
+ self._InstanceId = InstanceId
7121
+
7122
+ @property
7123
+ def SharedName(self):
7124
+ r"""共享订阅组名
7125
+ :rtype: str
7126
+ """
7127
+ return self._SharedName
7128
+
7129
+ @SharedName.setter
7130
+ def SharedName(self, SharedName):
7131
+ self._SharedName = SharedName
7132
+
7133
+ @property
7134
+ def TopicFilter(self):
7135
+ r"""订阅表达式
7136
+ :rtype: str
7137
+ """
7138
+ return self._TopicFilter
7139
+
7140
+ @TopicFilter.setter
7141
+ def TopicFilter(self, TopicFilter):
7142
+ self._TopicFilter = TopicFilter
7143
+
7144
+
7145
+ def _deserialize(self, params):
7146
+ self._InstanceId = params.get("InstanceId")
7147
+ self._SharedName = params.get("SharedName")
7148
+ self._TopicFilter = params.get("TopicFilter")
7149
+ memeber_set = set(params.keys())
7150
+ for name, value in vars(self).items():
7151
+ property_name = name[1:]
7152
+ if property_name in memeber_set:
7153
+ memeber_set.remove(property_name)
7154
+ if len(memeber_set) > 0:
7155
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7156
+
7157
+
7158
+
7159
+ class DescribeSharedSubscriptionClientResponse(AbstractModel):
7160
+ r"""DescribeSharedSubscriptionClient返回参数结构体
7161
+
7162
+ """
7163
+
7164
+ def __init__(self):
7165
+ r"""
7166
+ :param _Data: 共享订阅组下Client信息
7167
+ :type Data: list of SharedSubscriptionClient
7168
+ :param _TotalCount: 查询总数
7169
+ :type TotalCount: int
7170
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7171
+ :type RequestId: str
7172
+ """
7173
+ self._Data = None
7174
+ self._TotalCount = None
7175
+ self._RequestId = None
7176
+
7177
+ @property
7178
+ def Data(self):
7179
+ r"""共享订阅组下Client信息
7180
+ :rtype: list of SharedSubscriptionClient
7181
+ """
7182
+ return self._Data
7183
+
7184
+ @Data.setter
7185
+ def Data(self, Data):
7186
+ self._Data = Data
7187
+
7188
+ @property
7189
+ def TotalCount(self):
7190
+ r"""查询总数
7191
+ :rtype: int
7192
+ """
7193
+ return self._TotalCount
7194
+
7195
+ @TotalCount.setter
7196
+ def TotalCount(self, TotalCount):
7197
+ self._TotalCount = TotalCount
7198
+
7199
+ @property
7200
+ def RequestId(self):
7201
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7202
+ :rtype: str
7203
+ """
7204
+ return self._RequestId
7205
+
7206
+ @RequestId.setter
7207
+ def RequestId(self, RequestId):
7208
+ self._RequestId = RequestId
7209
+
7210
+
7211
+ def _deserialize(self, params):
7212
+ if params.get("Data") is not None:
7213
+ self._Data = []
7214
+ for item in params.get("Data"):
7215
+ obj = SharedSubscriptionClient()
7216
+ obj._deserialize(item)
7217
+ self._Data.append(obj)
7218
+ self._TotalCount = params.get("TotalCount")
7219
+ self._RequestId = params.get("RequestId")
7220
+
7221
+
7093
7222
  class DescribeSharedSubscriptionGroupsRequest(AbstractModel):
7094
7223
  r"""DescribeSharedSubscriptionGroups请求参数结构体
7095
7224
 
@@ -7283,6 +7412,130 @@ class DescribeSharedSubscriptionLagResponse(AbstractModel):
7283
7412
  self._RequestId = params.get("RequestId")
7284
7413
 
7285
7414
 
7415
+ class DescribeSharedSubscriptionsRequest(AbstractModel):
7416
+ r"""DescribeSharedSubscriptions请求参数结构体
7417
+
7418
+ """
7419
+
7420
+ def __init__(self):
7421
+ r"""
7422
+ :param _InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
7423
+ :type InstanceId: str
7424
+ :param _SharedName: 共享订阅组名
7425
+ :type SharedName: str
7426
+ """
7427
+ self._InstanceId = None
7428
+ self._SharedName = None
7429
+
7430
+ @property
7431
+ def InstanceId(self):
7432
+ r"""腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
7433
+ :rtype: str
7434
+ """
7435
+ return self._InstanceId
7436
+
7437
+ @InstanceId.setter
7438
+ def InstanceId(self, InstanceId):
7439
+ self._InstanceId = InstanceId
7440
+
7441
+ @property
7442
+ def SharedName(self):
7443
+ r"""共享订阅组名
7444
+ :rtype: str
7445
+ """
7446
+ return self._SharedName
7447
+
7448
+ @SharedName.setter
7449
+ def SharedName(self, SharedName):
7450
+ self._SharedName = SharedName
7451
+
7452
+
7453
+ def _deserialize(self, params):
7454
+ self._InstanceId = params.get("InstanceId")
7455
+ self._SharedName = params.get("SharedName")
7456
+ memeber_set = set(params.keys())
7457
+ for name, value in vars(self).items():
7458
+ property_name = name[1:]
7459
+ if property_name in memeber_set:
7460
+ memeber_set.remove(property_name)
7461
+ if len(memeber_set) > 0:
7462
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7463
+
7464
+
7465
+
7466
+ class DescribeSharedSubscriptionsResponse(AbstractModel):
7467
+ r"""DescribeSharedSubscriptions返回参数结构体
7468
+
7469
+ """
7470
+
7471
+ def __init__(self):
7472
+ r"""
7473
+ :param _InstanceId: 集群id
7474
+ :type InstanceId: str
7475
+ :param _SharedName: 共享组名
7476
+ :type SharedName: str
7477
+ :param _TopicFilter: 共享组下的订阅表达式列表
7478
+ :type TopicFilter: list of str
7479
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7480
+ :type RequestId: str
7481
+ """
7482
+ self._InstanceId = None
7483
+ self._SharedName = None
7484
+ self._TopicFilter = None
7485
+ self._RequestId = None
7486
+
7487
+ @property
7488
+ def InstanceId(self):
7489
+ r"""集群id
7490
+ :rtype: str
7491
+ """
7492
+ return self._InstanceId
7493
+
7494
+ @InstanceId.setter
7495
+ def InstanceId(self, InstanceId):
7496
+ self._InstanceId = InstanceId
7497
+
7498
+ @property
7499
+ def SharedName(self):
7500
+ r"""共享组名
7501
+ :rtype: str
7502
+ """
7503
+ return self._SharedName
7504
+
7505
+ @SharedName.setter
7506
+ def SharedName(self, SharedName):
7507
+ self._SharedName = SharedName
7508
+
7509
+ @property
7510
+ def TopicFilter(self):
7511
+ r"""共享组下的订阅表达式列表
7512
+ :rtype: list of str
7513
+ """
7514
+ return self._TopicFilter
7515
+
7516
+ @TopicFilter.setter
7517
+ def TopicFilter(self, TopicFilter):
7518
+ self._TopicFilter = TopicFilter
7519
+
7520
+ @property
7521
+ def RequestId(self):
7522
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7523
+ :rtype: str
7524
+ """
7525
+ return self._RequestId
7526
+
7527
+ @RequestId.setter
7528
+ def RequestId(self, RequestId):
7529
+ self._RequestId = RequestId
7530
+
7531
+
7532
+ def _deserialize(self, params):
7533
+ self._InstanceId = params.get("InstanceId")
7534
+ self._SharedName = params.get("SharedName")
7535
+ self._TopicFilter = params.get("TopicFilter")
7536
+ self._RequestId = params.get("RequestId")
7537
+
7538
+
7286
7539
  class DescribeTopicListRequest(AbstractModel):
7287
7540
  r"""DescribeTopicList请求参数结构体
7288
7541
 
@@ -12898,6 +13151,87 @@ class SharedGroup(AbstractModel):
12898
13151
 
12899
13152
 
12900
13153
 
13154
+ class SharedSubscriptionClient(AbstractModel):
13155
+ r"""共享订阅组下客户端
13156
+
13157
+ """
13158
+
13159
+ def __init__(self):
13160
+ r"""
13161
+ :param _ClientId: 客户端ID
13162
+ :type ClientId: str
13163
+ :param _SharedName: 共享订阅组名
13164
+ :type SharedName: str
13165
+ :param _TopicFilter: 共享组下的订阅表达式列表
13166
+ :type TopicFilter: str
13167
+ :param _Online: 在线状态
13168
+ :type Online: bool
13169
+ """
13170
+ self._ClientId = None
13171
+ self._SharedName = None
13172
+ self._TopicFilter = None
13173
+ self._Online = None
13174
+
13175
+ @property
13176
+ def ClientId(self):
13177
+ r"""客户端ID
13178
+ :rtype: str
13179
+ """
13180
+ return self._ClientId
13181
+
13182
+ @ClientId.setter
13183
+ def ClientId(self, ClientId):
13184
+ self._ClientId = ClientId
13185
+
13186
+ @property
13187
+ def SharedName(self):
13188
+ r"""共享订阅组名
13189
+ :rtype: str
13190
+ """
13191
+ return self._SharedName
13192
+
13193
+ @SharedName.setter
13194
+ def SharedName(self, SharedName):
13195
+ self._SharedName = SharedName
13196
+
13197
+ @property
13198
+ def TopicFilter(self):
13199
+ r"""共享组下的订阅表达式列表
13200
+ :rtype: str
13201
+ """
13202
+ return self._TopicFilter
13203
+
13204
+ @TopicFilter.setter
13205
+ def TopicFilter(self, TopicFilter):
13206
+ self._TopicFilter = TopicFilter
13207
+
13208
+ @property
13209
+ def Online(self):
13210
+ r"""在线状态
13211
+ :rtype: bool
13212
+ """
13213
+ return self._Online
13214
+
13215
+ @Online.setter
13216
+ def Online(self, Online):
13217
+ self._Online = Online
13218
+
13219
+
13220
+ def _deserialize(self, params):
13221
+ self._ClientId = params.get("ClientId")
13222
+ self._SharedName = params.get("SharedName")
13223
+ self._TopicFilter = params.get("TopicFilter")
13224
+ self._Online = params.get("Online")
13225
+ memeber_set = set(params.keys())
13226
+ for name, value in vars(self).items():
13227
+ property_name = name[1:]
13228
+ if property_name in memeber_set:
13229
+ memeber_set.remove(property_name)
13230
+ if len(memeber_set) > 0:
13231
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13232
+
13233
+
13234
+
12901
13235
  class SubscriptionUserProperty(AbstractModel):
12902
13236
  r"""订阅的UserProperty结构
12903
13237
 
@@ -1066,6 +1066,29 @@ class MqttClient(AbstractClient):
1066
1066
  raise TencentCloudSDKException(type(e).__name__, str(e))
1067
1067
 
1068
1068
 
1069
+ def DescribeSharedSubscriptionClient(self, request):
1070
+ r"""查询共享订阅组详情信息
1071
+
1072
+ :param request: Request instance for DescribeSharedSubscriptionClient.
1073
+ :type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionClientRequest`
1074
+ :rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionClientResponse`
1075
+
1076
+ """
1077
+ try:
1078
+ params = request._serialize()
1079
+ headers = request.headers
1080
+ body = self.call("DescribeSharedSubscriptionClient", params, headers=headers)
1081
+ response = json.loads(body)
1082
+ model = models.DescribeSharedSubscriptionClientResponse()
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 DescribeSharedSubscriptionGroups(self, request):
1070
1093
  r"""查询集群下共享订阅组列表
1071
1094
 
@@ -1112,6 +1135,29 @@ class MqttClient(AbstractClient):
1112
1135
  raise TencentCloudSDKException(type(e).__name__, str(e))
1113
1136
 
1114
1137
 
1138
+ def DescribeSharedSubscriptions(self, request):
1139
+ r"""查询共享订阅组订阅列表
1140
+
1141
+ :param request: Request instance for DescribeSharedSubscriptions.
1142
+ :type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionsRequest`
1143
+ :rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionsResponse`
1144
+
1145
+ """
1146
+ try:
1147
+ params = request._serialize()
1148
+ headers = request.headers
1149
+ body = self.call("DescribeSharedSubscriptions", params, headers=headers)
1150
+ response = json.loads(body)
1151
+ model = models.DescribeSharedSubscriptionsResponse()
1152
+ model._deserialize(response["Response"])
1153
+ return model
1154
+ except Exception as e:
1155
+ if isinstance(e, TencentCloudSDKException):
1156
+ raise
1157
+ else:
1158
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1159
+
1160
+
1115
1161
  def DescribeTopic(self, request):
1116
1162
  r"""查询mqtt主题详情
1117
1163
 
@@ -840,6 +840,24 @@ class MqttClient(AbstractClient):
840
840
 
841
841
  return await self.call_and_deserialize(**kwargs)
842
842
 
843
+ async def DescribeSharedSubscriptionClient(
844
+ self,
845
+ request: models.DescribeSharedSubscriptionClientRequest,
846
+ opts: Dict = None,
847
+ ) -> models.DescribeSharedSubscriptionClientResponse:
848
+ """
849
+ 查询共享订阅组详情信息
850
+ """
851
+
852
+ kwargs = {}
853
+ kwargs["action"] = "DescribeSharedSubscriptionClient"
854
+ kwargs["params"] = request._serialize()
855
+ kwargs["resp_cls"] = models.DescribeSharedSubscriptionClientResponse
856
+ kwargs["headers"] = request.headers
857
+ kwargs["opts"] = opts or {}
858
+
859
+ return await self.call_and_deserialize(**kwargs)
860
+
843
861
  async def DescribeSharedSubscriptionGroups(
844
862
  self,
845
863
  request: models.DescribeSharedSubscriptionGroupsRequest,
@@ -876,6 +894,24 @@ class MqttClient(AbstractClient):
876
894
 
877
895
  return await self.call_and_deserialize(**kwargs)
878
896
 
897
+ async def DescribeSharedSubscriptions(
898
+ self,
899
+ request: models.DescribeSharedSubscriptionsRequest,
900
+ opts: Dict = None,
901
+ ) -> models.DescribeSharedSubscriptionsResponse:
902
+ """
903
+ 查询共享订阅组订阅列表
904
+ """
905
+
906
+ kwargs = {}
907
+ kwargs["action"] = "DescribeSharedSubscriptions"
908
+ kwargs["params"] = request._serialize()
909
+ kwargs["resp_cls"] = models.DescribeSharedSubscriptionsResponse
910
+ kwargs["headers"] = request.headers
911
+ kwargs["opts"] = opts or {}
912
+
913
+ return await self.call_and_deserialize(**kwargs)
914
+
879
915
  async def DescribeTopic(
880
916
  self,
881
917
  request: models.DescribeTopicRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mqtt
3
- Version: 3.1.82
3
+ Version: 3.1.93
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.82
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.93
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.93
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.82