tencentcloud-sdk-python-mqtt 3.0.1322__tar.gz → 3.0.1323__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 (16) hide show
  1. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/setup.py +1 -1
  3. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/mqtt/v20240516/models.py +339 -0
  5. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/mqtt/v20240516/mqtt_client.py +23 -0
  6. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud_sdk_python_mqtt.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-mqtt-3.0.1323/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-mqtt-3.0.1322/tencentcloud_sdk_python_mqtt.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/README.rst +0 -0
  10. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/mqtt/__init__.py +0 -0
  12. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/mqtt/v20240516/__init__.py +0 -0
  13. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud/mqtt/v20240516/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud_sdk_python_mqtt.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud_sdk_python_mqtt.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-mqtt-3.0.1322 → tencentcloud-sdk-python-mqtt-3.0.1323}/tencentcloud_sdk_python_mqtt.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-mqtt
3
- Version: 3.0.1322
3
+ Version: 3.0.1323
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
@@ -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.1322"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1323"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Mqtt SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1322'
17
+ __version__ = '3.0.1323'
@@ -4492,6 +4492,79 @@ API:通过API手动注册
4492
4492
  self._RequestId = params.get("RequestId")
4493
4493
 
4494
4494
 
4495
+ class DescribeProductSKUListRequest(AbstractModel):
4496
+ """DescribeProductSKUList请求参数结构体
4497
+
4498
+ """
4499
+
4500
+
4501
+ class DescribeProductSKUListResponse(AbstractModel):
4502
+ """DescribeProductSKUList返回参数结构体
4503
+
4504
+ """
4505
+
4506
+ def __init__(self):
4507
+ r"""
4508
+ :param _TotalCount: 查询总数
4509
+ 注意:此字段可能返回 null,表示取不到有效值。
4510
+ :type TotalCount: int
4511
+ :param _MQTTProductSkuList: mqtt商品配置信息
4512
+ 注意:此字段可能返回 null,表示取不到有效值。
4513
+ :type MQTTProductSkuList: list of ProductSkuItem
4514
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4515
+ :type RequestId: str
4516
+ """
4517
+ self._TotalCount = None
4518
+ self._MQTTProductSkuList = None
4519
+ self._RequestId = None
4520
+
4521
+ @property
4522
+ def TotalCount(self):
4523
+ """查询总数
4524
+ 注意:此字段可能返回 null,表示取不到有效值。
4525
+ :rtype: int
4526
+ """
4527
+ return self._TotalCount
4528
+
4529
+ @TotalCount.setter
4530
+ def TotalCount(self, TotalCount):
4531
+ self._TotalCount = TotalCount
4532
+
4533
+ @property
4534
+ def MQTTProductSkuList(self):
4535
+ """mqtt商品配置信息
4536
+ 注意:此字段可能返回 null,表示取不到有效值。
4537
+ :rtype: list of ProductSkuItem
4538
+ """
4539
+ return self._MQTTProductSkuList
4540
+
4541
+ @MQTTProductSkuList.setter
4542
+ def MQTTProductSkuList(self, MQTTProductSkuList):
4543
+ self._MQTTProductSkuList = MQTTProductSkuList
4544
+
4545
+ @property
4546
+ def RequestId(self):
4547
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4548
+ :rtype: str
4549
+ """
4550
+ return self._RequestId
4551
+
4552
+ @RequestId.setter
4553
+ def RequestId(self, RequestId):
4554
+ self._RequestId = RequestId
4555
+
4556
+
4557
+ def _deserialize(self, params):
4558
+ self._TotalCount = params.get("TotalCount")
4559
+ if params.get("MQTTProductSkuList") is not None:
4560
+ self._MQTTProductSkuList = []
4561
+ for item in params.get("MQTTProductSkuList"):
4562
+ obj = ProductSkuItem()
4563
+ obj._deserialize(item)
4564
+ self._MQTTProductSkuList.append(obj)
4565
+ self._RequestId = params.get("RequestId")
4566
+
4567
+
4495
4568
  class DescribeTopicListRequest(AbstractModel):
4496
4569
  """DescribeTopicList请求参数结构体
4497
4570
 
@@ -7246,6 +7319,272 @@ class ModifyUserResponse(AbstractModel):
7246
7319
  self._RequestId = params.get("RequestId")
7247
7320
 
7248
7321
 
7322
+ class PriceTag(AbstractModel):
7323
+ """价格标签信息
7324
+
7325
+ """
7326
+
7327
+ def __init__(self):
7328
+ r"""
7329
+ :param _Name: 计价名称
7330
+ :type Name: str
7331
+ :param _Category: 计价类别
7332
+ :type Category: str
7333
+ :param _Code: 计费项标签
7334
+ :type Code: str
7335
+ :param _Step: 步长
7336
+ 注意:此字段可能返回 null,表示取不到有效值。
7337
+ :type Step: int
7338
+ """
7339
+ self._Name = None
7340
+ self._Category = None
7341
+ self._Code = None
7342
+ self._Step = None
7343
+
7344
+ @property
7345
+ def Name(self):
7346
+ """计价名称
7347
+ :rtype: str
7348
+ """
7349
+ return self._Name
7350
+
7351
+ @Name.setter
7352
+ def Name(self, Name):
7353
+ self._Name = Name
7354
+
7355
+ @property
7356
+ def Category(self):
7357
+ """计价类别
7358
+ :rtype: str
7359
+ """
7360
+ return self._Category
7361
+
7362
+ @Category.setter
7363
+ def Category(self, Category):
7364
+ self._Category = Category
7365
+
7366
+ @property
7367
+ def Code(self):
7368
+ """计费项标签
7369
+ :rtype: str
7370
+ """
7371
+ return self._Code
7372
+
7373
+ @Code.setter
7374
+ def Code(self, Code):
7375
+ self._Code = Code
7376
+
7377
+ @property
7378
+ def Step(self):
7379
+ """步长
7380
+ 注意:此字段可能返回 null,表示取不到有效值。
7381
+ :rtype: int
7382
+ """
7383
+ return self._Step
7384
+
7385
+ @Step.setter
7386
+ def Step(self, Step):
7387
+ self._Step = Step
7388
+
7389
+
7390
+ def _deserialize(self, params):
7391
+ self._Name = params.get("Name")
7392
+ self._Category = params.get("Category")
7393
+ self._Code = params.get("Code")
7394
+ self._Step = params.get("Step")
7395
+ memeber_set = set(params.keys())
7396
+ for name, value in vars(self).items():
7397
+ property_name = name[1:]
7398
+ if property_name in memeber_set:
7399
+ memeber_set.remove(property_name)
7400
+ if len(memeber_set) > 0:
7401
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7402
+
7403
+
7404
+
7405
+ class ProductSkuItem(AbstractModel):
7406
+ """MQTT ProductSkuItem
7407
+
7408
+ """
7409
+
7410
+ def __init__(self):
7411
+ r"""
7412
+ :param _InstanceType: 规格类型
7413
+ BASIC:基础版
7414
+ PRO :专业版
7415
+ 注意:此字段可能返回 null,表示取不到有效值。
7416
+ :type InstanceType: str
7417
+ :param _SkuCode: 规格代码
7418
+ 注意:此字段可能返回 null,表示取不到有效值。
7419
+ :type SkuCode: str
7420
+ :param _OnSale: 是否售卖
7421
+ 注意:此字段可能返回 null,表示取不到有效值。
7422
+ :type OnSale: bool
7423
+ :param _TopicNumLimit: topic num限制
7424
+ 注意:此字段可能返回 null,表示取不到有效值。
7425
+ :type TopicNumLimit: int
7426
+ :param _TpsLimit: tps
7427
+ 注意:此字段可能返回 null,表示取不到有效值。
7428
+ :type TpsLimit: int
7429
+ :param _ClientNumLimit: 客户端连接数
7430
+ 注意:此字段可能返回 null,表示取不到有效值。
7431
+ :type ClientNumLimit: int
7432
+ :param _MaxSubscriptionPerClient: 单客户端最大订阅数
7433
+ 注意:此字段可能返回 null,表示取不到有效值。
7434
+ :type MaxSubscriptionPerClient: int
7435
+ :param _AuthorizationPolicyLimit: 授权规则条数
7436
+ 注意:此字段可能返回 null,表示取不到有效值。
7437
+ :type AuthorizationPolicyLimit: int
7438
+ :param _PriceTags: 计费项信息
7439
+ 注意:此字段可能返回 null,表示取不到有效值。
7440
+ :type PriceTags: list of PriceTag
7441
+ """
7442
+ self._InstanceType = None
7443
+ self._SkuCode = None
7444
+ self._OnSale = None
7445
+ self._TopicNumLimit = None
7446
+ self._TpsLimit = None
7447
+ self._ClientNumLimit = None
7448
+ self._MaxSubscriptionPerClient = None
7449
+ self._AuthorizationPolicyLimit = None
7450
+ self._PriceTags = None
7451
+
7452
+ @property
7453
+ def InstanceType(self):
7454
+ """规格类型
7455
+ BASIC:基础版
7456
+ PRO :专业版
7457
+ 注意:此字段可能返回 null,表示取不到有效值。
7458
+ :rtype: str
7459
+ """
7460
+ return self._InstanceType
7461
+
7462
+ @InstanceType.setter
7463
+ def InstanceType(self, InstanceType):
7464
+ self._InstanceType = InstanceType
7465
+
7466
+ @property
7467
+ def SkuCode(self):
7468
+ """规格代码
7469
+ 注意:此字段可能返回 null,表示取不到有效值。
7470
+ :rtype: str
7471
+ """
7472
+ return self._SkuCode
7473
+
7474
+ @SkuCode.setter
7475
+ def SkuCode(self, SkuCode):
7476
+ self._SkuCode = SkuCode
7477
+
7478
+ @property
7479
+ def OnSale(self):
7480
+ """是否售卖
7481
+ 注意:此字段可能返回 null,表示取不到有效值。
7482
+ :rtype: bool
7483
+ """
7484
+ return self._OnSale
7485
+
7486
+ @OnSale.setter
7487
+ def OnSale(self, OnSale):
7488
+ self._OnSale = OnSale
7489
+
7490
+ @property
7491
+ def TopicNumLimit(self):
7492
+ """topic num限制
7493
+ 注意:此字段可能返回 null,表示取不到有效值。
7494
+ :rtype: int
7495
+ """
7496
+ return self._TopicNumLimit
7497
+
7498
+ @TopicNumLimit.setter
7499
+ def TopicNumLimit(self, TopicNumLimit):
7500
+ self._TopicNumLimit = TopicNumLimit
7501
+
7502
+ @property
7503
+ def TpsLimit(self):
7504
+ """tps
7505
+ 注意:此字段可能返回 null,表示取不到有效值。
7506
+ :rtype: int
7507
+ """
7508
+ return self._TpsLimit
7509
+
7510
+ @TpsLimit.setter
7511
+ def TpsLimit(self, TpsLimit):
7512
+ self._TpsLimit = TpsLimit
7513
+
7514
+ @property
7515
+ def ClientNumLimit(self):
7516
+ """客户端连接数
7517
+ 注意:此字段可能返回 null,表示取不到有效值。
7518
+ :rtype: int
7519
+ """
7520
+ return self._ClientNumLimit
7521
+
7522
+ @ClientNumLimit.setter
7523
+ def ClientNumLimit(self, ClientNumLimit):
7524
+ self._ClientNumLimit = ClientNumLimit
7525
+
7526
+ @property
7527
+ def MaxSubscriptionPerClient(self):
7528
+ """单客户端最大订阅数
7529
+ 注意:此字段可能返回 null,表示取不到有效值。
7530
+ :rtype: int
7531
+ """
7532
+ return self._MaxSubscriptionPerClient
7533
+
7534
+ @MaxSubscriptionPerClient.setter
7535
+ def MaxSubscriptionPerClient(self, MaxSubscriptionPerClient):
7536
+ self._MaxSubscriptionPerClient = MaxSubscriptionPerClient
7537
+
7538
+ @property
7539
+ def AuthorizationPolicyLimit(self):
7540
+ """授权规则条数
7541
+ 注意:此字段可能返回 null,表示取不到有效值。
7542
+ :rtype: int
7543
+ """
7544
+ return self._AuthorizationPolicyLimit
7545
+
7546
+ @AuthorizationPolicyLimit.setter
7547
+ def AuthorizationPolicyLimit(self, AuthorizationPolicyLimit):
7548
+ self._AuthorizationPolicyLimit = AuthorizationPolicyLimit
7549
+
7550
+ @property
7551
+ def PriceTags(self):
7552
+ """计费项信息
7553
+ 注意:此字段可能返回 null,表示取不到有效值。
7554
+ :rtype: list of PriceTag
7555
+ """
7556
+ return self._PriceTags
7557
+
7558
+ @PriceTags.setter
7559
+ def PriceTags(self, PriceTags):
7560
+ self._PriceTags = PriceTags
7561
+
7562
+
7563
+ def _deserialize(self, params):
7564
+ self._InstanceType = params.get("InstanceType")
7565
+ self._SkuCode = params.get("SkuCode")
7566
+ self._OnSale = params.get("OnSale")
7567
+ self._TopicNumLimit = params.get("TopicNumLimit")
7568
+ self._TpsLimit = params.get("TpsLimit")
7569
+ self._ClientNumLimit = params.get("ClientNumLimit")
7570
+ self._MaxSubscriptionPerClient = params.get("MaxSubscriptionPerClient")
7571
+ self._AuthorizationPolicyLimit = params.get("AuthorizationPolicyLimit")
7572
+ if params.get("PriceTags") is not None:
7573
+ self._PriceTags = []
7574
+ for item in params.get("PriceTags"):
7575
+ obj = PriceTag()
7576
+ obj._deserialize(item)
7577
+ self._PriceTags.append(obj)
7578
+ memeber_set = set(params.keys())
7579
+ for name, value in vars(self).items():
7580
+ property_name = name[1:]
7581
+ if property_name in memeber_set:
7582
+ memeber_set.remove(property_name)
7583
+ if len(memeber_set) > 0:
7584
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7585
+
7586
+
7587
+
7249
7588
  class PublicAccessRule(AbstractModel):
7250
7589
  """公网访问安全规则
7251
7590
 
@@ -698,6 +698,29 @@ class MqttClient(AbstractClient):
698
698
  raise TencentCloudSDKException(type(e).__name__, str(e))
699
699
 
700
700
 
701
+ def DescribeProductSKUList(self, request):
702
+ """获取产品售卖规格
703
+
704
+ :param request: Request instance for DescribeProductSKUList.
705
+ :type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeProductSKUListRequest`
706
+ :rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeProductSKUListResponse`
707
+
708
+ """
709
+ try:
710
+ params = request._serialize()
711
+ headers = request.headers
712
+ body = self.call("DescribeProductSKUList", params, headers=headers)
713
+ response = json.loads(body)
714
+ model = models.DescribeProductSKUListResponse()
715
+ model._deserialize(response["Response"])
716
+ return model
717
+ except Exception as e:
718
+ if isinstance(e, TencentCloudSDKException):
719
+ raise
720
+ else:
721
+ raise TencentCloudSDKException(type(e).__name__, str(e))
722
+
723
+
701
724
  def DescribeTopic(self, request):
702
725
  """查询mqtt主题详情
703
726
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-mqtt
3
- Version: 3.0.1322
3
+ Version: 3.0.1323
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1323
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1322