tencentcloud-sdk-python-mqtt 3.1.77__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.
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/setup.py +1 -1
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/models.py +563 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/mqtt_client.py +69 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/mqtt_client_async.py +54 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mqtt-3.1.93/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.93}/README.rst +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/__init__.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud/mqtt/v20240516/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → tencentcloud_sdk_python_mqtt-3.1.93}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mqtt-3.1.77 → 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.
|
|
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.
|
|
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.
|
|
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',
|
|
@@ -7090,6 +7090,234 @@ 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
|
+
|
|
7222
|
+
class DescribeSharedSubscriptionGroupsRequest(AbstractModel):
|
|
7223
|
+
r"""DescribeSharedSubscriptionGroups请求参数结构体
|
|
7224
|
+
|
|
7225
|
+
"""
|
|
7226
|
+
|
|
7227
|
+
def __init__(self):
|
|
7228
|
+
r"""
|
|
7229
|
+
:param _InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
7230
|
+
:type InstanceId: str
|
|
7231
|
+
"""
|
|
7232
|
+
self._InstanceId = None
|
|
7233
|
+
|
|
7234
|
+
@property
|
|
7235
|
+
def InstanceId(self):
|
|
7236
|
+
r"""腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
7237
|
+
:rtype: str
|
|
7238
|
+
"""
|
|
7239
|
+
return self._InstanceId
|
|
7240
|
+
|
|
7241
|
+
@InstanceId.setter
|
|
7242
|
+
def InstanceId(self, InstanceId):
|
|
7243
|
+
self._InstanceId = InstanceId
|
|
7244
|
+
|
|
7245
|
+
|
|
7246
|
+
def _deserialize(self, params):
|
|
7247
|
+
self._InstanceId = params.get("InstanceId")
|
|
7248
|
+
memeber_set = set(params.keys())
|
|
7249
|
+
for name, value in vars(self).items():
|
|
7250
|
+
property_name = name[1:]
|
|
7251
|
+
if property_name in memeber_set:
|
|
7252
|
+
memeber_set.remove(property_name)
|
|
7253
|
+
if len(memeber_set) > 0:
|
|
7254
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7255
|
+
|
|
7256
|
+
|
|
7257
|
+
|
|
7258
|
+
class DescribeSharedSubscriptionGroupsResponse(AbstractModel):
|
|
7259
|
+
r"""DescribeSharedSubscriptionGroups返回参数结构体
|
|
7260
|
+
|
|
7261
|
+
"""
|
|
7262
|
+
|
|
7263
|
+
def __init__(self):
|
|
7264
|
+
r"""
|
|
7265
|
+
:param _Data: 集群下共享订阅组列表
|
|
7266
|
+
:type Data: list of SharedGroup
|
|
7267
|
+
:param _TotalCount: 查询总数
|
|
7268
|
+
:type TotalCount: int
|
|
7269
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7270
|
+
:type RequestId: str
|
|
7271
|
+
"""
|
|
7272
|
+
self._Data = None
|
|
7273
|
+
self._TotalCount = None
|
|
7274
|
+
self._RequestId = None
|
|
7275
|
+
|
|
7276
|
+
@property
|
|
7277
|
+
def Data(self):
|
|
7278
|
+
r"""集群下共享订阅组列表
|
|
7279
|
+
:rtype: list of SharedGroup
|
|
7280
|
+
"""
|
|
7281
|
+
return self._Data
|
|
7282
|
+
|
|
7283
|
+
@Data.setter
|
|
7284
|
+
def Data(self, Data):
|
|
7285
|
+
self._Data = Data
|
|
7286
|
+
|
|
7287
|
+
@property
|
|
7288
|
+
def TotalCount(self):
|
|
7289
|
+
r""" 查询总数
|
|
7290
|
+
:rtype: int
|
|
7291
|
+
"""
|
|
7292
|
+
return self._TotalCount
|
|
7293
|
+
|
|
7294
|
+
@TotalCount.setter
|
|
7295
|
+
def TotalCount(self, TotalCount):
|
|
7296
|
+
self._TotalCount = TotalCount
|
|
7297
|
+
|
|
7298
|
+
@property
|
|
7299
|
+
def RequestId(self):
|
|
7300
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7301
|
+
:rtype: str
|
|
7302
|
+
"""
|
|
7303
|
+
return self._RequestId
|
|
7304
|
+
|
|
7305
|
+
@RequestId.setter
|
|
7306
|
+
def RequestId(self, RequestId):
|
|
7307
|
+
self._RequestId = RequestId
|
|
7308
|
+
|
|
7309
|
+
|
|
7310
|
+
def _deserialize(self, params):
|
|
7311
|
+
if params.get("Data") is not None:
|
|
7312
|
+
self._Data = []
|
|
7313
|
+
for item in params.get("Data"):
|
|
7314
|
+
obj = SharedGroup()
|
|
7315
|
+
obj._deserialize(item)
|
|
7316
|
+
self._Data.append(obj)
|
|
7317
|
+
self._TotalCount = params.get("TotalCount")
|
|
7318
|
+
self._RequestId = params.get("RequestId")
|
|
7319
|
+
|
|
7320
|
+
|
|
7093
7321
|
class DescribeSharedSubscriptionLagRequest(AbstractModel):
|
|
7094
7322
|
r"""DescribeSharedSubscriptionLag请求参数结构体
|
|
7095
7323
|
|
|
@@ -7184,6 +7412,130 @@ class DescribeSharedSubscriptionLagResponse(AbstractModel):
|
|
|
7184
7412
|
self._RequestId = params.get("RequestId")
|
|
7185
7413
|
|
|
7186
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
|
+
|
|
7187
7539
|
class DescribeTopicListRequest(AbstractModel):
|
|
7188
7540
|
r"""DescribeTopicList请求参数结构体
|
|
7189
7541
|
|
|
@@ -12669,6 +13021,217 @@ class RevokedDeviceCertificateResponse(AbstractModel):
|
|
|
12669
13021
|
self._RequestId = params.get("RequestId")
|
|
12670
13022
|
|
|
12671
13023
|
|
|
13024
|
+
class SharedGroup(AbstractModel):
|
|
13025
|
+
r"""共享订阅组
|
|
13026
|
+
|
|
13027
|
+
"""
|
|
13028
|
+
|
|
13029
|
+
def __init__(self):
|
|
13030
|
+
r"""
|
|
13031
|
+
:param _InstanceId: 腾讯云MQTT实例ID
|
|
13032
|
+
:type InstanceId: str
|
|
13033
|
+
:param _SharedName: 共享订阅组名
|
|
13034
|
+
:type SharedName: str
|
|
13035
|
+
:param _LbStrategy: 共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
|
|
13036
|
+
:type LbStrategy: int
|
|
13037
|
+
:param _ExpiryInterval: HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
|
|
13038
|
+
范围:0~600秒
|
|
13039
|
+
:type ExpiryInterval: int
|
|
13040
|
+
:param _Remark: 备注,长度不超过128个字符。
|
|
13041
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13042
|
+
:type Remark: str
|
|
13043
|
+
:param _CreateTime: 创建时间,毫秒级时间戳 。
|
|
13044
|
+
:type CreateTime: int
|
|
13045
|
+
:param _UpdateTime: 上次更新时间,毫秒级时间戳 。
|
|
13046
|
+
:type UpdateTime: int
|
|
13047
|
+
"""
|
|
13048
|
+
self._InstanceId = None
|
|
13049
|
+
self._SharedName = None
|
|
13050
|
+
self._LbStrategy = None
|
|
13051
|
+
self._ExpiryInterval = None
|
|
13052
|
+
self._Remark = None
|
|
13053
|
+
self._CreateTime = None
|
|
13054
|
+
self._UpdateTime = None
|
|
13055
|
+
|
|
13056
|
+
@property
|
|
13057
|
+
def InstanceId(self):
|
|
13058
|
+
r"""腾讯云MQTT实例ID
|
|
13059
|
+
:rtype: str
|
|
13060
|
+
"""
|
|
13061
|
+
return self._InstanceId
|
|
13062
|
+
|
|
13063
|
+
@InstanceId.setter
|
|
13064
|
+
def InstanceId(self, InstanceId):
|
|
13065
|
+
self._InstanceId = InstanceId
|
|
13066
|
+
|
|
13067
|
+
@property
|
|
13068
|
+
def SharedName(self):
|
|
13069
|
+
r"""共享订阅组名
|
|
13070
|
+
:rtype: str
|
|
13071
|
+
"""
|
|
13072
|
+
return self._SharedName
|
|
13073
|
+
|
|
13074
|
+
@SharedName.setter
|
|
13075
|
+
def SharedName(self, SharedName):
|
|
13076
|
+
self._SharedName = SharedName
|
|
13077
|
+
|
|
13078
|
+
@property
|
|
13079
|
+
def LbStrategy(self):
|
|
13080
|
+
r"""共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
|
|
13081
|
+
:rtype: int
|
|
13082
|
+
"""
|
|
13083
|
+
return self._LbStrategy
|
|
13084
|
+
|
|
13085
|
+
@LbStrategy.setter
|
|
13086
|
+
def LbStrategy(self, LbStrategy):
|
|
13087
|
+
self._LbStrategy = LbStrategy
|
|
13088
|
+
|
|
13089
|
+
@property
|
|
13090
|
+
def ExpiryInterval(self):
|
|
13091
|
+
r"""HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
|
|
13092
|
+
范围:0~600秒
|
|
13093
|
+
:rtype: int
|
|
13094
|
+
"""
|
|
13095
|
+
return self._ExpiryInterval
|
|
13096
|
+
|
|
13097
|
+
@ExpiryInterval.setter
|
|
13098
|
+
def ExpiryInterval(self, ExpiryInterval):
|
|
13099
|
+
self._ExpiryInterval = ExpiryInterval
|
|
13100
|
+
|
|
13101
|
+
@property
|
|
13102
|
+
def Remark(self):
|
|
13103
|
+
r"""备注,长度不超过128个字符。
|
|
13104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13105
|
+
:rtype: str
|
|
13106
|
+
"""
|
|
13107
|
+
return self._Remark
|
|
13108
|
+
|
|
13109
|
+
@Remark.setter
|
|
13110
|
+
def Remark(self, Remark):
|
|
13111
|
+
self._Remark = Remark
|
|
13112
|
+
|
|
13113
|
+
@property
|
|
13114
|
+
def CreateTime(self):
|
|
13115
|
+
r"""创建时间,毫秒级时间戳 。
|
|
13116
|
+
:rtype: int
|
|
13117
|
+
"""
|
|
13118
|
+
return self._CreateTime
|
|
13119
|
+
|
|
13120
|
+
@CreateTime.setter
|
|
13121
|
+
def CreateTime(self, CreateTime):
|
|
13122
|
+
self._CreateTime = CreateTime
|
|
13123
|
+
|
|
13124
|
+
@property
|
|
13125
|
+
def UpdateTime(self):
|
|
13126
|
+
r"""上次更新时间,毫秒级时间戳 。
|
|
13127
|
+
:rtype: int
|
|
13128
|
+
"""
|
|
13129
|
+
return self._UpdateTime
|
|
13130
|
+
|
|
13131
|
+
@UpdateTime.setter
|
|
13132
|
+
def UpdateTime(self, UpdateTime):
|
|
13133
|
+
self._UpdateTime = UpdateTime
|
|
13134
|
+
|
|
13135
|
+
|
|
13136
|
+
def _deserialize(self, params):
|
|
13137
|
+
self._InstanceId = params.get("InstanceId")
|
|
13138
|
+
self._SharedName = params.get("SharedName")
|
|
13139
|
+
self._LbStrategy = params.get("LbStrategy")
|
|
13140
|
+
self._ExpiryInterval = params.get("ExpiryInterval")
|
|
13141
|
+
self._Remark = params.get("Remark")
|
|
13142
|
+
self._CreateTime = params.get("CreateTime")
|
|
13143
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
13144
|
+
memeber_set = set(params.keys())
|
|
13145
|
+
for name, value in vars(self).items():
|
|
13146
|
+
property_name = name[1:]
|
|
13147
|
+
if property_name in memeber_set:
|
|
13148
|
+
memeber_set.remove(property_name)
|
|
13149
|
+
if len(memeber_set) > 0:
|
|
13150
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13151
|
+
|
|
13152
|
+
|
|
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
|
+
|
|
12672
13235
|
class SubscriptionUserProperty(AbstractModel):
|
|
12673
13236
|
r"""订阅的UserProperty结构
|
|
12674
13237
|
|
|
@@ -1066,6 +1066,52 @@ 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
|
+
|
|
1092
|
+
def DescribeSharedSubscriptionGroups(self, request):
|
|
1093
|
+
r"""查询集群下共享订阅组列表
|
|
1094
|
+
|
|
1095
|
+
:param request: Request instance for DescribeSharedSubscriptionGroups.
|
|
1096
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionGroupsRequest`
|
|
1097
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeSharedSubscriptionGroupsResponse`
|
|
1098
|
+
|
|
1099
|
+
"""
|
|
1100
|
+
try:
|
|
1101
|
+
params = request._serialize()
|
|
1102
|
+
headers = request.headers
|
|
1103
|
+
body = self.call("DescribeSharedSubscriptionGroups", params, headers=headers)
|
|
1104
|
+
response = json.loads(body)
|
|
1105
|
+
model = models.DescribeSharedSubscriptionGroupsResponse()
|
|
1106
|
+
model._deserialize(response["Response"])
|
|
1107
|
+
return model
|
|
1108
|
+
except Exception as e:
|
|
1109
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1110
|
+
raise
|
|
1111
|
+
else:
|
|
1112
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1113
|
+
|
|
1114
|
+
|
|
1069
1115
|
def DescribeSharedSubscriptionLag(self, request):
|
|
1070
1116
|
r"""查询共享订阅消息堆积量
|
|
1071
1117
|
|
|
@@ -1089,6 +1135,29 @@ class MqttClient(AbstractClient):
|
|
|
1089
1135
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1090
1136
|
|
|
1091
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
|
+
|
|
1092
1161
|
def DescribeTopic(self, request):
|
|
1093
1162
|
r"""查询mqtt主题详情
|
|
1094
1163
|
|
|
@@ -840,6 +840,42 @@ 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
|
+
|
|
861
|
+
async def DescribeSharedSubscriptionGroups(
|
|
862
|
+
self,
|
|
863
|
+
request: models.DescribeSharedSubscriptionGroupsRequest,
|
|
864
|
+
opts: Dict = None,
|
|
865
|
+
) -> models.DescribeSharedSubscriptionGroupsResponse:
|
|
866
|
+
"""
|
|
867
|
+
查询集群下共享订阅组列表
|
|
868
|
+
"""
|
|
869
|
+
|
|
870
|
+
kwargs = {}
|
|
871
|
+
kwargs["action"] = "DescribeSharedSubscriptionGroups"
|
|
872
|
+
kwargs["params"] = request._serialize()
|
|
873
|
+
kwargs["resp_cls"] = models.DescribeSharedSubscriptionGroupsResponse
|
|
874
|
+
kwargs["headers"] = request.headers
|
|
875
|
+
kwargs["opts"] = opts or {}
|
|
876
|
+
|
|
877
|
+
return await self.call_and_deserialize(**kwargs)
|
|
878
|
+
|
|
843
879
|
async def DescribeSharedSubscriptionLag(
|
|
844
880
|
self,
|
|
845
881
|
request: models.DescribeSharedSubscriptionLagRequest,
|
|
@@ -858,6 +894,24 @@ class MqttClient(AbstractClient):
|
|
|
858
894
|
|
|
859
895
|
return await self.call_and_deserialize(**kwargs)
|
|
860
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
|
+
|
|
861
915
|
async def DescribeTopic(
|
|
862
916
|
self,
|
|
863
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.
|
|
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.
|
|
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.77
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|