tencentcloud-sdk-python-mqtt 3.0.1333__tar.gz → 3.0.1335__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.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/setup.py +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/mqtt/v20240516/models.py +238 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/mqtt/v20240516/mqtt_client.py +46 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mqtt-3.0.1335/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mqtt-3.0.1333/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/README.rst +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/mqtt/__init__.py +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud/mqtt/v20240516/errorcodes.py +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mqtt-3.0.1333 → tencentcloud-sdk-python-mqtt-3.0.1335}/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.1335"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mqtt SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -3913,6 +3913,90 @@ class DescribeInsPublicEndpointsResponse(AbstractModel):
|
|
|
3913
3913
|
self._RequestId = params.get("RequestId")
|
|
3914
3914
|
|
|
3915
3915
|
|
|
3916
|
+
class DescribeInsVPCEndpointsRequest(AbstractModel):
|
|
3917
|
+
"""DescribeInsVPCEndpoints请求参数结构体
|
|
3918
|
+
|
|
3919
|
+
"""
|
|
3920
|
+
|
|
3921
|
+
def __init__(self):
|
|
3922
|
+
r"""
|
|
3923
|
+
:param _InstanceId: 实例ID
|
|
3924
|
+
:type InstanceId: str
|
|
3925
|
+
"""
|
|
3926
|
+
self._InstanceId = None
|
|
3927
|
+
|
|
3928
|
+
@property
|
|
3929
|
+
def InstanceId(self):
|
|
3930
|
+
"""实例ID
|
|
3931
|
+
:rtype: str
|
|
3932
|
+
"""
|
|
3933
|
+
return self._InstanceId
|
|
3934
|
+
|
|
3935
|
+
@InstanceId.setter
|
|
3936
|
+
def InstanceId(self, InstanceId):
|
|
3937
|
+
self._InstanceId = InstanceId
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
def _deserialize(self, params):
|
|
3941
|
+
self._InstanceId = params.get("InstanceId")
|
|
3942
|
+
memeber_set = set(params.keys())
|
|
3943
|
+
for name, value in vars(self).items():
|
|
3944
|
+
property_name = name[1:]
|
|
3945
|
+
if property_name in memeber_set:
|
|
3946
|
+
memeber_set.remove(property_name)
|
|
3947
|
+
if len(memeber_set) > 0:
|
|
3948
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
class DescribeInsVPCEndpointsResponse(AbstractModel):
|
|
3953
|
+
"""DescribeInsVPCEndpoints返回参数结构体
|
|
3954
|
+
|
|
3955
|
+
"""
|
|
3956
|
+
|
|
3957
|
+
def __init__(self):
|
|
3958
|
+
r"""
|
|
3959
|
+
:param _Endpoints: 接入点
|
|
3960
|
+
:type Endpoints: list of MQTTEndpointItem
|
|
3961
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3962
|
+
:type RequestId: str
|
|
3963
|
+
"""
|
|
3964
|
+
self._Endpoints = None
|
|
3965
|
+
self._RequestId = None
|
|
3966
|
+
|
|
3967
|
+
@property
|
|
3968
|
+
def Endpoints(self):
|
|
3969
|
+
"""接入点
|
|
3970
|
+
:rtype: list of MQTTEndpointItem
|
|
3971
|
+
"""
|
|
3972
|
+
return self._Endpoints
|
|
3973
|
+
|
|
3974
|
+
@Endpoints.setter
|
|
3975
|
+
def Endpoints(self, Endpoints):
|
|
3976
|
+
self._Endpoints = Endpoints
|
|
3977
|
+
|
|
3978
|
+
@property
|
|
3979
|
+
def RequestId(self):
|
|
3980
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3981
|
+
:rtype: str
|
|
3982
|
+
"""
|
|
3983
|
+
return self._RequestId
|
|
3984
|
+
|
|
3985
|
+
@RequestId.setter
|
|
3986
|
+
def RequestId(self, RequestId):
|
|
3987
|
+
self._RequestId = RequestId
|
|
3988
|
+
|
|
3989
|
+
|
|
3990
|
+
def _deserialize(self, params):
|
|
3991
|
+
if params.get("Endpoints") is not None:
|
|
3992
|
+
self._Endpoints = []
|
|
3993
|
+
for item in params.get("Endpoints"):
|
|
3994
|
+
obj = MQTTEndpointItem()
|
|
3995
|
+
obj._deserialize(item)
|
|
3996
|
+
self._Endpoints.append(obj)
|
|
3997
|
+
self._RequestId = params.get("RequestId")
|
|
3998
|
+
|
|
3999
|
+
|
|
3916
4000
|
class DescribeInstanceListRequest(AbstractModel):
|
|
3917
4001
|
"""DescribeInstanceList请求参数结构体
|
|
3918
4002
|
|
|
@@ -7657,6 +7741,160 @@ class PublicAccessRule(AbstractModel):
|
|
|
7657
7741
|
|
|
7658
7742
|
|
|
7659
7743
|
|
|
7744
|
+
class PublishMessageRequest(AbstractModel):
|
|
7745
|
+
"""PublishMessage请求参数结构体
|
|
7746
|
+
|
|
7747
|
+
"""
|
|
7748
|
+
|
|
7749
|
+
def __init__(self):
|
|
7750
|
+
r"""
|
|
7751
|
+
:param _InstanceId: 实例ID
|
|
7752
|
+
:type InstanceId: str
|
|
7753
|
+
:param _Payload: 消息 payload,需要按 encoding 指定的编码方式进行编码
|
|
7754
|
+
:type Payload: str
|
|
7755
|
+
:param _TargetTopic: 消息目的主题,该参数与 TargetClientId 二选一
|
|
7756
|
+
:type TargetTopic: str
|
|
7757
|
+
:param _TargetClientId: 消息目的客户端 ID,该参数与 TargetTopic 二选一
|
|
7758
|
+
:type TargetClientId: str
|
|
7759
|
+
:param _Encoding: 消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)
|
|
7760
|
+
:type Encoding: str
|
|
7761
|
+
:param _Qos: 消息的服务质量等级,默认为 1
|
|
7762
|
+
:type Qos: int
|
|
7763
|
+
:param _Retain: 是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true
|
|
7764
|
+
:type Retain: bool
|
|
7765
|
+
"""
|
|
7766
|
+
self._InstanceId = None
|
|
7767
|
+
self._Payload = None
|
|
7768
|
+
self._TargetTopic = None
|
|
7769
|
+
self._TargetClientId = None
|
|
7770
|
+
self._Encoding = None
|
|
7771
|
+
self._Qos = None
|
|
7772
|
+
self._Retain = None
|
|
7773
|
+
|
|
7774
|
+
@property
|
|
7775
|
+
def InstanceId(self):
|
|
7776
|
+
"""实例ID
|
|
7777
|
+
:rtype: str
|
|
7778
|
+
"""
|
|
7779
|
+
return self._InstanceId
|
|
7780
|
+
|
|
7781
|
+
@InstanceId.setter
|
|
7782
|
+
def InstanceId(self, InstanceId):
|
|
7783
|
+
self._InstanceId = InstanceId
|
|
7784
|
+
|
|
7785
|
+
@property
|
|
7786
|
+
def Payload(self):
|
|
7787
|
+
"""消息 payload,需要按 encoding 指定的编码方式进行编码
|
|
7788
|
+
:rtype: str
|
|
7789
|
+
"""
|
|
7790
|
+
return self._Payload
|
|
7791
|
+
|
|
7792
|
+
@Payload.setter
|
|
7793
|
+
def Payload(self, Payload):
|
|
7794
|
+
self._Payload = Payload
|
|
7795
|
+
|
|
7796
|
+
@property
|
|
7797
|
+
def TargetTopic(self):
|
|
7798
|
+
"""消息目的主题,该参数与 TargetClientId 二选一
|
|
7799
|
+
:rtype: str
|
|
7800
|
+
"""
|
|
7801
|
+
return self._TargetTopic
|
|
7802
|
+
|
|
7803
|
+
@TargetTopic.setter
|
|
7804
|
+
def TargetTopic(self, TargetTopic):
|
|
7805
|
+
self._TargetTopic = TargetTopic
|
|
7806
|
+
|
|
7807
|
+
@property
|
|
7808
|
+
def TargetClientId(self):
|
|
7809
|
+
"""消息目的客户端 ID,该参数与 TargetTopic 二选一
|
|
7810
|
+
:rtype: str
|
|
7811
|
+
"""
|
|
7812
|
+
return self._TargetClientId
|
|
7813
|
+
|
|
7814
|
+
@TargetClientId.setter
|
|
7815
|
+
def TargetClientId(self, TargetClientId):
|
|
7816
|
+
self._TargetClientId = TargetClientId
|
|
7817
|
+
|
|
7818
|
+
@property
|
|
7819
|
+
def Encoding(self):
|
|
7820
|
+
"""消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)
|
|
7821
|
+
:rtype: str
|
|
7822
|
+
"""
|
|
7823
|
+
return self._Encoding
|
|
7824
|
+
|
|
7825
|
+
@Encoding.setter
|
|
7826
|
+
def Encoding(self, Encoding):
|
|
7827
|
+
self._Encoding = Encoding
|
|
7828
|
+
|
|
7829
|
+
@property
|
|
7830
|
+
def Qos(self):
|
|
7831
|
+
"""消息的服务质量等级,默认为 1
|
|
7832
|
+
:rtype: int
|
|
7833
|
+
"""
|
|
7834
|
+
return self._Qos
|
|
7835
|
+
|
|
7836
|
+
@Qos.setter
|
|
7837
|
+
def Qos(self, Qos):
|
|
7838
|
+
self._Qos = Qos
|
|
7839
|
+
|
|
7840
|
+
@property
|
|
7841
|
+
def Retain(self):
|
|
7842
|
+
"""是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true
|
|
7843
|
+
:rtype: bool
|
|
7844
|
+
"""
|
|
7845
|
+
return self._Retain
|
|
7846
|
+
|
|
7847
|
+
@Retain.setter
|
|
7848
|
+
def Retain(self, Retain):
|
|
7849
|
+
self._Retain = Retain
|
|
7850
|
+
|
|
7851
|
+
|
|
7852
|
+
def _deserialize(self, params):
|
|
7853
|
+
self._InstanceId = params.get("InstanceId")
|
|
7854
|
+
self._Payload = params.get("Payload")
|
|
7855
|
+
self._TargetTopic = params.get("TargetTopic")
|
|
7856
|
+
self._TargetClientId = params.get("TargetClientId")
|
|
7857
|
+
self._Encoding = params.get("Encoding")
|
|
7858
|
+
self._Qos = params.get("Qos")
|
|
7859
|
+
self._Retain = params.get("Retain")
|
|
7860
|
+
memeber_set = set(params.keys())
|
|
7861
|
+
for name, value in vars(self).items():
|
|
7862
|
+
property_name = name[1:]
|
|
7863
|
+
if property_name in memeber_set:
|
|
7864
|
+
memeber_set.remove(property_name)
|
|
7865
|
+
if len(memeber_set) > 0:
|
|
7866
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7867
|
+
|
|
7868
|
+
|
|
7869
|
+
|
|
7870
|
+
class PublishMessageResponse(AbstractModel):
|
|
7871
|
+
"""PublishMessage返回参数结构体
|
|
7872
|
+
|
|
7873
|
+
"""
|
|
7874
|
+
|
|
7875
|
+
def __init__(self):
|
|
7876
|
+
r"""
|
|
7877
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7878
|
+
:type RequestId: str
|
|
7879
|
+
"""
|
|
7880
|
+
self._RequestId = None
|
|
7881
|
+
|
|
7882
|
+
@property
|
|
7883
|
+
def RequestId(self):
|
|
7884
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7885
|
+
:rtype: str
|
|
7886
|
+
"""
|
|
7887
|
+
return self._RequestId
|
|
7888
|
+
|
|
7889
|
+
@RequestId.setter
|
|
7890
|
+
def RequestId(self, RequestId):
|
|
7891
|
+
self._RequestId = RequestId
|
|
7892
|
+
|
|
7893
|
+
|
|
7894
|
+
def _deserialize(self, params):
|
|
7895
|
+
self._RequestId = params.get("RequestId")
|
|
7896
|
+
|
|
7897
|
+
|
|
7660
7898
|
class RegisterCaCertificateRequest(AbstractModel):
|
|
7661
7899
|
"""RegisterCaCertificate请求参数结构体
|
|
7662
7900
|
|
|
@@ -647,6 +647,29 @@ class MqttClient(AbstractClient):
|
|
|
647
647
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
648
648
|
|
|
649
649
|
|
|
650
|
+
def DescribeInsVPCEndpoints(self, request):
|
|
651
|
+
"""查询MQTT实例公网接入点
|
|
652
|
+
|
|
653
|
+
:param request: Request instance for DescribeInsVPCEndpoints.
|
|
654
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeInsVPCEndpointsRequest`
|
|
655
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeInsVPCEndpointsResponse`
|
|
656
|
+
|
|
657
|
+
"""
|
|
658
|
+
try:
|
|
659
|
+
params = request._serialize()
|
|
660
|
+
headers = request.headers
|
|
661
|
+
body = self.call("DescribeInsVPCEndpoints", params, headers=headers)
|
|
662
|
+
response = json.loads(body)
|
|
663
|
+
model = models.DescribeInsVPCEndpointsResponse()
|
|
664
|
+
model._deserialize(response["Response"])
|
|
665
|
+
return model
|
|
666
|
+
except Exception as e:
|
|
667
|
+
if isinstance(e, TencentCloudSDKException):
|
|
668
|
+
raise
|
|
669
|
+
else:
|
|
670
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
671
|
+
|
|
672
|
+
|
|
650
673
|
def DescribeInstance(self, request):
|
|
651
674
|
"""查询实例信息
|
|
652
675
|
|
|
@@ -980,6 +1003,29 @@ class MqttClient(AbstractClient):
|
|
|
980
1003
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
981
1004
|
|
|
982
1005
|
|
|
1006
|
+
def PublishMessage(self, request):
|
|
1007
|
+
"""发布 MQTT 消息到消息主题或客户端
|
|
1008
|
+
|
|
1009
|
+
:param request: Request instance for PublishMessage.
|
|
1010
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.PublishMessageRequest`
|
|
1011
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.PublishMessageResponse`
|
|
1012
|
+
|
|
1013
|
+
"""
|
|
1014
|
+
try:
|
|
1015
|
+
params = request._serialize()
|
|
1016
|
+
headers = request.headers
|
|
1017
|
+
body = self.call("PublishMessage", params, headers=headers)
|
|
1018
|
+
response = json.loads(body)
|
|
1019
|
+
model = models.PublishMessageResponse()
|
|
1020
|
+
model._deserialize(response["Response"])
|
|
1021
|
+
return model
|
|
1022
|
+
except Exception as e:
|
|
1023
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1024
|
+
raise
|
|
1025
|
+
else:
|
|
1026
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1027
|
+
|
|
1028
|
+
|
|
983
1029
|
def RegisterCaCertificate(self, request):
|
|
984
1030
|
"""注册ca证书
|
|
985
1031
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1335
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1333
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|