tencentcloud-sdk-python-mqtt 3.0.1409__tar.gz → 3.0.1411__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.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/setup.py +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/mqtt/v20240516/errorcodes.py +3 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/mqtt/v20240516/models.py +255 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/mqtt/v20240516/mqtt_client.py +23 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mqtt-3.0.1411/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mqtt-3.0.1409/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/README.rst +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/mqtt/__init__.py +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1409 → tencentcloud-sdk-python-mqtt-3.0.1411}/tencentcloud_sdk_python_mqtt.egg-info/top_level.txt +0 -0
|
@@ -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.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1411"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mqtt SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -83,6 +83,9 @@ RESOURCENOTFOUND_CERTIFICATE = 'ResourceNotFound.Certificate'
|
|
|
83
83
|
# ResourceNotFound.Instance
|
|
84
84
|
RESOURCENOTFOUND_INSTANCE = 'ResourceNotFound.Instance'
|
|
85
85
|
|
|
86
|
+
# ResourceNotFound.Message
|
|
87
|
+
RESOURCENOTFOUND_MESSAGE = 'ResourceNotFound.Message'
|
|
88
|
+
|
|
86
89
|
# NoAuthenticator
|
|
87
90
|
RESOURCENOTFOUND_NOAUTHENTICATOR = 'ResourceNotFound.NoAuthenticator'
|
|
88
91
|
|
|
@@ -5263,6 +5263,210 @@ class DescribeMessageByTopicResponse(AbstractModel):
|
|
|
5263
5263
|
self._RequestId = params.get("RequestId")
|
|
5264
5264
|
|
|
5265
5265
|
|
|
5266
|
+
class DescribeMessageDetailsRequest(AbstractModel):
|
|
5267
|
+
"""DescribeMessageDetails请求参数结构体
|
|
5268
|
+
|
|
5269
|
+
"""
|
|
5270
|
+
|
|
5271
|
+
def __init__(self):
|
|
5272
|
+
r"""
|
|
5273
|
+
:param _InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
5274
|
+
:type InstanceId: str
|
|
5275
|
+
:param _MessageId: 消息ID
|
|
5276
|
+
:type MessageId: str
|
|
5277
|
+
:param _Subscription: 订阅表达式
|
|
5278
|
+
:type Subscription: str
|
|
5279
|
+
"""
|
|
5280
|
+
self._InstanceId = None
|
|
5281
|
+
self._MessageId = None
|
|
5282
|
+
self._Subscription = None
|
|
5283
|
+
|
|
5284
|
+
@property
|
|
5285
|
+
def InstanceId(self):
|
|
5286
|
+
"""腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
5287
|
+
:rtype: str
|
|
5288
|
+
"""
|
|
5289
|
+
return self._InstanceId
|
|
5290
|
+
|
|
5291
|
+
@InstanceId.setter
|
|
5292
|
+
def InstanceId(self, InstanceId):
|
|
5293
|
+
self._InstanceId = InstanceId
|
|
5294
|
+
|
|
5295
|
+
@property
|
|
5296
|
+
def MessageId(self):
|
|
5297
|
+
"""消息ID
|
|
5298
|
+
:rtype: str
|
|
5299
|
+
"""
|
|
5300
|
+
return self._MessageId
|
|
5301
|
+
|
|
5302
|
+
@MessageId.setter
|
|
5303
|
+
def MessageId(self, MessageId):
|
|
5304
|
+
self._MessageId = MessageId
|
|
5305
|
+
|
|
5306
|
+
@property
|
|
5307
|
+
def Subscription(self):
|
|
5308
|
+
"""订阅表达式
|
|
5309
|
+
:rtype: str
|
|
5310
|
+
"""
|
|
5311
|
+
return self._Subscription
|
|
5312
|
+
|
|
5313
|
+
@Subscription.setter
|
|
5314
|
+
def Subscription(self, Subscription):
|
|
5315
|
+
self._Subscription = Subscription
|
|
5316
|
+
|
|
5317
|
+
|
|
5318
|
+
def _deserialize(self, params):
|
|
5319
|
+
self._InstanceId = params.get("InstanceId")
|
|
5320
|
+
self._MessageId = params.get("MessageId")
|
|
5321
|
+
self._Subscription = params.get("Subscription")
|
|
5322
|
+
memeber_set = set(params.keys())
|
|
5323
|
+
for name, value in vars(self).items():
|
|
5324
|
+
property_name = name[1:]
|
|
5325
|
+
if property_name in memeber_set:
|
|
5326
|
+
memeber_set.remove(property_name)
|
|
5327
|
+
if len(memeber_set) > 0:
|
|
5328
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5329
|
+
|
|
5330
|
+
|
|
5331
|
+
|
|
5332
|
+
class DescribeMessageDetailsResponse(AbstractModel):
|
|
5333
|
+
"""DescribeMessageDetails返回参数结构体
|
|
5334
|
+
|
|
5335
|
+
"""
|
|
5336
|
+
|
|
5337
|
+
def __init__(self):
|
|
5338
|
+
r"""
|
|
5339
|
+
:param _Body: 消息体
|
|
5340
|
+
:type Body: str
|
|
5341
|
+
:param _UserProperties: 用户自定义属性
|
|
5342
|
+
:type UserProperties: list of UserProperty
|
|
5343
|
+
:param _StoreTimestamp: 消息存储时间,毫秒级时间戳。
|
|
5344
|
+
:type StoreTimestamp: int
|
|
5345
|
+
:param _MessageId: 消息ID
|
|
5346
|
+
:type MessageId: str
|
|
5347
|
+
:param _ClientId: 生产者地址
|
|
5348
|
+
:type ClientId: str
|
|
5349
|
+
:param _Qos: Topic
|
|
5350
|
+
:type Qos: str
|
|
5351
|
+
:param _OriginTopic: 源topic
|
|
5352
|
+
:type OriginTopic: str
|
|
5353
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5354
|
+
:type RequestId: str
|
|
5355
|
+
"""
|
|
5356
|
+
self._Body = None
|
|
5357
|
+
self._UserProperties = None
|
|
5358
|
+
self._StoreTimestamp = None
|
|
5359
|
+
self._MessageId = None
|
|
5360
|
+
self._ClientId = None
|
|
5361
|
+
self._Qos = None
|
|
5362
|
+
self._OriginTopic = None
|
|
5363
|
+
self._RequestId = None
|
|
5364
|
+
|
|
5365
|
+
@property
|
|
5366
|
+
def Body(self):
|
|
5367
|
+
"""消息体
|
|
5368
|
+
:rtype: str
|
|
5369
|
+
"""
|
|
5370
|
+
return self._Body
|
|
5371
|
+
|
|
5372
|
+
@Body.setter
|
|
5373
|
+
def Body(self, Body):
|
|
5374
|
+
self._Body = Body
|
|
5375
|
+
|
|
5376
|
+
@property
|
|
5377
|
+
def UserProperties(self):
|
|
5378
|
+
"""用户自定义属性
|
|
5379
|
+
:rtype: list of UserProperty
|
|
5380
|
+
"""
|
|
5381
|
+
return self._UserProperties
|
|
5382
|
+
|
|
5383
|
+
@UserProperties.setter
|
|
5384
|
+
def UserProperties(self, UserProperties):
|
|
5385
|
+
self._UserProperties = UserProperties
|
|
5386
|
+
|
|
5387
|
+
@property
|
|
5388
|
+
def StoreTimestamp(self):
|
|
5389
|
+
"""消息存储时间,毫秒级时间戳。
|
|
5390
|
+
:rtype: int
|
|
5391
|
+
"""
|
|
5392
|
+
return self._StoreTimestamp
|
|
5393
|
+
|
|
5394
|
+
@StoreTimestamp.setter
|
|
5395
|
+
def StoreTimestamp(self, StoreTimestamp):
|
|
5396
|
+
self._StoreTimestamp = StoreTimestamp
|
|
5397
|
+
|
|
5398
|
+
@property
|
|
5399
|
+
def MessageId(self):
|
|
5400
|
+
"""消息ID
|
|
5401
|
+
:rtype: str
|
|
5402
|
+
"""
|
|
5403
|
+
return self._MessageId
|
|
5404
|
+
|
|
5405
|
+
@MessageId.setter
|
|
5406
|
+
def MessageId(self, MessageId):
|
|
5407
|
+
self._MessageId = MessageId
|
|
5408
|
+
|
|
5409
|
+
@property
|
|
5410
|
+
def ClientId(self):
|
|
5411
|
+
"""生产者地址
|
|
5412
|
+
:rtype: str
|
|
5413
|
+
"""
|
|
5414
|
+
return self._ClientId
|
|
5415
|
+
|
|
5416
|
+
@ClientId.setter
|
|
5417
|
+
def ClientId(self, ClientId):
|
|
5418
|
+
self._ClientId = ClientId
|
|
5419
|
+
|
|
5420
|
+
@property
|
|
5421
|
+
def Qos(self):
|
|
5422
|
+
"""Topic
|
|
5423
|
+
:rtype: str
|
|
5424
|
+
"""
|
|
5425
|
+
return self._Qos
|
|
5426
|
+
|
|
5427
|
+
@Qos.setter
|
|
5428
|
+
def Qos(self, Qos):
|
|
5429
|
+
self._Qos = Qos
|
|
5430
|
+
|
|
5431
|
+
@property
|
|
5432
|
+
def OriginTopic(self):
|
|
5433
|
+
"""源topic
|
|
5434
|
+
:rtype: str
|
|
5435
|
+
"""
|
|
5436
|
+
return self._OriginTopic
|
|
5437
|
+
|
|
5438
|
+
@OriginTopic.setter
|
|
5439
|
+
def OriginTopic(self, OriginTopic):
|
|
5440
|
+
self._OriginTopic = OriginTopic
|
|
5441
|
+
|
|
5442
|
+
@property
|
|
5443
|
+
def RequestId(self):
|
|
5444
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5445
|
+
:rtype: str
|
|
5446
|
+
"""
|
|
5447
|
+
return self._RequestId
|
|
5448
|
+
|
|
5449
|
+
@RequestId.setter
|
|
5450
|
+
def RequestId(self, RequestId):
|
|
5451
|
+
self._RequestId = RequestId
|
|
5452
|
+
|
|
5453
|
+
|
|
5454
|
+
def _deserialize(self, params):
|
|
5455
|
+
self._Body = params.get("Body")
|
|
5456
|
+
if params.get("UserProperties") is not None:
|
|
5457
|
+
self._UserProperties = []
|
|
5458
|
+
for item in params.get("UserProperties"):
|
|
5459
|
+
obj = UserProperty()
|
|
5460
|
+
obj._deserialize(item)
|
|
5461
|
+
self._UserProperties.append(obj)
|
|
5462
|
+
self._StoreTimestamp = params.get("StoreTimestamp")
|
|
5463
|
+
self._MessageId = params.get("MessageId")
|
|
5464
|
+
self._ClientId = params.get("ClientId")
|
|
5465
|
+
self._Qos = params.get("Qos")
|
|
5466
|
+
self._OriginTopic = params.get("OriginTopic")
|
|
5467
|
+
self._RequestId = params.get("RequestId")
|
|
5468
|
+
|
|
5469
|
+
|
|
5266
5470
|
class DescribeMessageListRequest(AbstractModel):
|
|
5267
5471
|
"""DescribeMessageList请求参数结构体
|
|
5268
5472
|
|
|
@@ -10408,6 +10612,57 @@ class UpdateAuthorizationPolicyPriorityResponse(AbstractModel):
|
|
|
10408
10612
|
self._RequestId = params.get("RequestId")
|
|
10409
10613
|
|
|
10410
10614
|
|
|
10615
|
+
class UserProperty(AbstractModel):
|
|
10616
|
+
"""map结构返回
|
|
10617
|
+
|
|
10618
|
+
"""
|
|
10619
|
+
|
|
10620
|
+
def __init__(self):
|
|
10621
|
+
r"""
|
|
10622
|
+
:param _Key: key
|
|
10623
|
+
:type Key: str
|
|
10624
|
+
:param _Value: value
|
|
10625
|
+
:type Value: str
|
|
10626
|
+
"""
|
|
10627
|
+
self._Key = None
|
|
10628
|
+
self._Value = None
|
|
10629
|
+
|
|
10630
|
+
@property
|
|
10631
|
+
def Key(self):
|
|
10632
|
+
"""key
|
|
10633
|
+
:rtype: str
|
|
10634
|
+
"""
|
|
10635
|
+
return self._Key
|
|
10636
|
+
|
|
10637
|
+
@Key.setter
|
|
10638
|
+
def Key(self, Key):
|
|
10639
|
+
self._Key = Key
|
|
10640
|
+
|
|
10641
|
+
@property
|
|
10642
|
+
def Value(self):
|
|
10643
|
+
"""value
|
|
10644
|
+
:rtype: str
|
|
10645
|
+
"""
|
|
10646
|
+
return self._Value
|
|
10647
|
+
|
|
10648
|
+
@Value.setter
|
|
10649
|
+
def Value(self, Value):
|
|
10650
|
+
self._Value = Value
|
|
10651
|
+
|
|
10652
|
+
|
|
10653
|
+
def _deserialize(self, params):
|
|
10654
|
+
self._Key = params.get("Key")
|
|
10655
|
+
self._Value = params.get("Value")
|
|
10656
|
+
memeber_set = set(params.keys())
|
|
10657
|
+
for name, value in vars(self).items():
|
|
10658
|
+
property_name = name[1:]
|
|
10659
|
+
if property_name in memeber_set:
|
|
10660
|
+
memeber_set.remove(property_name)
|
|
10661
|
+
if len(memeber_set) > 0:
|
|
10662
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10663
|
+
|
|
10664
|
+
|
|
10665
|
+
|
|
10411
10666
|
class VpcInfo(AbstractModel):
|
|
10412
10667
|
"""VPC信息
|
|
10413
10668
|
|
|
@@ -790,6 +790,29 @@ class MqttClient(AbstractClient):
|
|
|
790
790
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
791
791
|
|
|
792
792
|
|
|
793
|
+
def DescribeMessageDetails(self, request):
|
|
794
|
+
"""查询MQTT消息详情
|
|
795
|
+
|
|
796
|
+
:param request: Request instance for DescribeMessageDetails.
|
|
797
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeMessageDetailsRequest`
|
|
798
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeMessageDetailsResponse`
|
|
799
|
+
|
|
800
|
+
"""
|
|
801
|
+
try:
|
|
802
|
+
params = request._serialize()
|
|
803
|
+
headers = request.headers
|
|
804
|
+
body = self.call("DescribeMessageDetails", params, headers=headers)
|
|
805
|
+
response = json.loads(body)
|
|
806
|
+
model = models.DescribeMessageDetailsResponse()
|
|
807
|
+
model._deserialize(response["Response"])
|
|
808
|
+
return model
|
|
809
|
+
except Exception as e:
|
|
810
|
+
if isinstance(e, TencentCloudSDKException):
|
|
811
|
+
raise
|
|
812
|
+
else:
|
|
813
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
814
|
+
|
|
815
|
+
|
|
793
816
|
def DescribeMessageList(self, request):
|
|
794
817
|
"""根据一级Topic查询消息列表
|
|
795
818
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1411
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1409
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|