tencentcloud-sdk-python 3.0.1275__py2.py3-none-any.whl → 3.0.1277__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/aiart/v20221229/models.py +27 -6
- tencentcloud/autoscaling/v20180419/models.py +15 -0
- tencentcloud/batch/v20170312/models.py +48 -68
- tencentcloud/billing/v20180709/models.py +45 -0
- tencentcloud/cam/v20190116/models.py +8 -8
- tencentcloud/cbs/v20170312/models.py +2 -2
- tencentcloud/cdb/v20170320/cdb_client.py +12 -4
- tencentcloud/cdb/v20170320/models.py +732 -48
- tencentcloud/cdwdoris/v20211228/models.py +2 -2
- tencentcloud/cfs/v20190719/models.py +30 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +1 -1
- tencentcloud/ckafka/v20190819/models.py +490 -324
- tencentcloud/clb/v20180317/models.py +2 -2
- tencentcloud/cloudapp/v20220530/models.py +4 -4
- tencentcloud/config/v20220802/models.py +40 -20
- tencentcloud/cvm/v20170312/models.py +48 -68
- tencentcloud/cwp/v20180228/models.py +2 -2
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +92 -0
- tencentcloud/cynosdb/v20190107/models.py +444 -4
- tencentcloud/dts/v20211206/models.py +30 -0
- tencentcloud/emr/v20190103/models.py +33 -16
- tencentcloud/ess/v20201111/models.py +242 -0
- tencentcloud/essbasic/v20210526/models.py +258 -6
- tencentcloud/faceid/v20180301/models.py +0 -2
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +23 -0
- tencentcloud/hunyuan/v20230901/models.py +591 -0
- tencentcloud/ims/v20201229/models.py +4 -4
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +23 -0
- tencentcloud/iotexplorer/v20190423/models.py +286 -6
- tencentcloud/ivld/v20210903/ivld_client.py +0 -1
- tencentcloud/ivld/v20210903/models.py +133 -15
- tencentcloud/lcic/v20220817/models.py +2 -8
- tencentcloud/live/v20180801/errorcodes.py +18 -0
- tencentcloud/live/v20180801/live_client.py +208 -0
- tencentcloud/live/v20180801/models.py +1649 -255
- tencentcloud/lke/v20231130/lke_client.py +161 -0
- tencentcloud/lke/v20231130/models.py +1517 -187
- tencentcloud/mps/v20190612/errorcodes.py +2 -173
- tencentcloud/mps/v20190612/models.py +377 -17
- tencentcloud/mqtt/v20240516/models.py +524 -6
- tencentcloud/mqtt/v20240516/mqtt_client.py +46 -1
- tencentcloud/mrs/v20200910/models.py +0 -2652
- tencentcloud/ocr/v20181119/models.py +15 -273
- tencentcloud/ocr/v20181119/ocr_client.py +0 -23
- tencentcloud/organization/v20210331/models.py +2 -24
- tencentcloud/privatedns/v20201028/models.py +47 -0
- tencentcloud/pts/v20210728/models.py +15 -0
- tencentcloud/rce/v20201103/models.py +2 -2
- tencentcloud/redis/v20180412/models.py +2 -2
- tencentcloud/scf/v20180416/models.py +17 -2
- tencentcloud/ssl/v20191205/errorcodes.py +3 -0
- tencentcloud/ssl/v20191205/models.py +316 -227
- tencentcloud/ssl/v20191205/ssl_client.py +2 -2
- tencentcloud/tcr/v20190924/models.py +24 -2
- tencentcloud/tdmq/v20200217/models.py +8 -148
- tencentcloud/tdmq/v20200217/tdmq_client.py +6 -27
- tencentcloud/teo/v20220901/errorcodes.py +3 -3
- tencentcloud/teo/v20220901/models.py +366 -18
- tencentcloud/teo/v20220901/teo_client.py +69 -0
- tencentcloud/tke/v20220501/models.py +200 -0
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- tencentcloud/trocket/v20230308/models.py +24 -24
- tencentcloud/trtc/v20190722/models.py +234 -2
- tencentcloud/tsf/v20180326/models.py +2405 -334
- tencentcloud/tsf/v20180326/tsf_client.py +3 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/tts/v20190823/tts_client.py +1 -1
- tencentcloud/vclm/v20240523/models.py +217 -12
- tencentcloud/vclm/v20240523/vclm_client.py +59 -53
- tencentcloud/vcube/__init__.py +0 -0
- tencentcloud/vcube/v20220410/__init__.py +0 -0
- tencentcloud/vcube/v20220410/errorcodes.py +72 -0
- tencentcloud/vcube/v20220410/models.py +7325 -0
- tencentcloud/vcube/v20220410/vcube_client.py +808 -0
- tencentcloud/vdb/v20230616/models.py +45 -0
- tencentcloud/vod/v20180717/errorcodes.py +6 -0
- tencentcloud/vod/v20180717/models.py +62 -2
- tencentcloud/vod/v20180717/vod_client.py +2 -2
- tencentcloud/vpc/v20170312/models.py +312 -40
- tencentcloud/vpc/v20170312/vpc_client.py +36 -5
- {tencentcloud_sdk_python-3.0.1275.dist-info → tencentcloud_sdk_python-3.0.1277.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1275.dist-info → tencentcloud_sdk_python-3.0.1277.dist-info}/RECORD +86 -81
- {tencentcloud_sdk_python-3.0.1275.dist-info → tencentcloud_sdk_python-3.0.1277.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1275.dist-info → tencentcloud_sdk_python-3.0.1277.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1275.dist-info → tencentcloud_sdk_python-3.0.1277.dist-info}/top_level.txt +0 -0
@@ -18,6 +18,85 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class ActivateDeviceCertificateRequest(AbstractModel):
|
22
|
+
"""ActivateDeviceCertificate请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _InstanceId: 集群id
|
29
|
+
:type InstanceId: str
|
30
|
+
:param _DeviceCertificateSn: 设备证书序列号
|
31
|
+
:type DeviceCertificateSn: str
|
32
|
+
"""
|
33
|
+
self._InstanceId = None
|
34
|
+
self._DeviceCertificateSn = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def InstanceId(self):
|
38
|
+
"""集群id
|
39
|
+
:rtype: str
|
40
|
+
"""
|
41
|
+
return self._InstanceId
|
42
|
+
|
43
|
+
@InstanceId.setter
|
44
|
+
def InstanceId(self, InstanceId):
|
45
|
+
self._InstanceId = InstanceId
|
46
|
+
|
47
|
+
@property
|
48
|
+
def DeviceCertificateSn(self):
|
49
|
+
"""设备证书序列号
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._DeviceCertificateSn
|
53
|
+
|
54
|
+
@DeviceCertificateSn.setter
|
55
|
+
def DeviceCertificateSn(self, DeviceCertificateSn):
|
56
|
+
self._DeviceCertificateSn = DeviceCertificateSn
|
57
|
+
|
58
|
+
|
59
|
+
def _deserialize(self, params):
|
60
|
+
self._InstanceId = params.get("InstanceId")
|
61
|
+
self._DeviceCertificateSn = params.get("DeviceCertificateSn")
|
62
|
+
memeber_set = set(params.keys())
|
63
|
+
for name, value in vars(self).items():
|
64
|
+
property_name = name[1:]
|
65
|
+
if property_name in memeber_set:
|
66
|
+
memeber_set.remove(property_name)
|
67
|
+
if len(memeber_set) > 0:
|
68
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
class ActivateDeviceCertificateResponse(AbstractModel):
|
73
|
+
"""ActivateDeviceCertificate返回参数结构体
|
74
|
+
|
75
|
+
"""
|
76
|
+
|
77
|
+
def __init__(self):
|
78
|
+
r"""
|
79
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
80
|
+
:type RequestId: str
|
81
|
+
"""
|
82
|
+
self._RequestId = None
|
83
|
+
|
84
|
+
@property
|
85
|
+
def RequestId(self):
|
86
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._RequestId
|
90
|
+
|
91
|
+
@RequestId.setter
|
92
|
+
def RequestId(self, RequestId):
|
93
|
+
self._RequestId = RequestId
|
94
|
+
|
95
|
+
|
96
|
+
def _deserialize(self, params):
|
97
|
+
self._RequestId = params.get("RequestId")
|
98
|
+
|
99
|
+
|
21
100
|
class AuthorizationPolicyItem(AbstractModel):
|
22
101
|
"""AuthorizationPolicyItem
|
23
102
|
|
@@ -1458,6 +1537,176 @@ class DescribeAuthorizationPoliciesResponse(AbstractModel):
|
|
1458
1537
|
self._RequestId = params.get("RequestId")
|
1459
1538
|
|
1460
1539
|
|
1540
|
+
class DescribeDeviceCertificatesRequest(AbstractModel):
|
1541
|
+
"""DescribeDeviceCertificates请求参数结构体
|
1542
|
+
|
1543
|
+
"""
|
1544
|
+
|
1545
|
+
def __init__(self):
|
1546
|
+
r"""
|
1547
|
+
:param _InstanceId: 集群ID
|
1548
|
+
:type InstanceId: str
|
1549
|
+
:param _Filters: 过滤器支持ClientId、CaSn、DeviceCertificateSn、Status搜索
|
1550
|
+
:type Filters: list of Filter
|
1551
|
+
:param _Limit: 分页limit
|
1552
|
+
:type Limit: int
|
1553
|
+
:param _Offset: 分页偏移量
|
1554
|
+
:type Offset: int
|
1555
|
+
:param _OrderBy: CREATE_TIME_DESC, 创建时间降序
|
1556
|
+
CREATE_TIME_ASC,创建时间升序
|
1557
|
+
UPDATE_TIME_DESC,更新时间降序
|
1558
|
+
UPDATE_TIME_ASC,更新时间升序
|
1559
|
+
:type OrderBy: str
|
1560
|
+
"""
|
1561
|
+
self._InstanceId = None
|
1562
|
+
self._Filters = None
|
1563
|
+
self._Limit = None
|
1564
|
+
self._Offset = None
|
1565
|
+
self._OrderBy = None
|
1566
|
+
|
1567
|
+
@property
|
1568
|
+
def InstanceId(self):
|
1569
|
+
"""集群ID
|
1570
|
+
:rtype: str
|
1571
|
+
"""
|
1572
|
+
return self._InstanceId
|
1573
|
+
|
1574
|
+
@InstanceId.setter
|
1575
|
+
def InstanceId(self, InstanceId):
|
1576
|
+
self._InstanceId = InstanceId
|
1577
|
+
|
1578
|
+
@property
|
1579
|
+
def Filters(self):
|
1580
|
+
"""过滤器支持ClientId、CaSn、DeviceCertificateSn、Status搜索
|
1581
|
+
:rtype: list of Filter
|
1582
|
+
"""
|
1583
|
+
return self._Filters
|
1584
|
+
|
1585
|
+
@Filters.setter
|
1586
|
+
def Filters(self, Filters):
|
1587
|
+
self._Filters = Filters
|
1588
|
+
|
1589
|
+
@property
|
1590
|
+
def Limit(self):
|
1591
|
+
"""分页limit
|
1592
|
+
:rtype: int
|
1593
|
+
"""
|
1594
|
+
return self._Limit
|
1595
|
+
|
1596
|
+
@Limit.setter
|
1597
|
+
def Limit(self, Limit):
|
1598
|
+
self._Limit = Limit
|
1599
|
+
|
1600
|
+
@property
|
1601
|
+
def Offset(self):
|
1602
|
+
"""分页偏移量
|
1603
|
+
:rtype: int
|
1604
|
+
"""
|
1605
|
+
return self._Offset
|
1606
|
+
|
1607
|
+
@Offset.setter
|
1608
|
+
def Offset(self, Offset):
|
1609
|
+
self._Offset = Offset
|
1610
|
+
|
1611
|
+
@property
|
1612
|
+
def OrderBy(self):
|
1613
|
+
"""CREATE_TIME_DESC, 创建时间降序
|
1614
|
+
CREATE_TIME_ASC,创建时间升序
|
1615
|
+
UPDATE_TIME_DESC,更新时间降序
|
1616
|
+
UPDATE_TIME_ASC,更新时间升序
|
1617
|
+
:rtype: str
|
1618
|
+
"""
|
1619
|
+
return self._OrderBy
|
1620
|
+
|
1621
|
+
@OrderBy.setter
|
1622
|
+
def OrderBy(self, OrderBy):
|
1623
|
+
self._OrderBy = OrderBy
|
1624
|
+
|
1625
|
+
|
1626
|
+
def _deserialize(self, params):
|
1627
|
+
self._InstanceId = params.get("InstanceId")
|
1628
|
+
if params.get("Filters") is not None:
|
1629
|
+
self._Filters = []
|
1630
|
+
for item in params.get("Filters"):
|
1631
|
+
obj = Filter()
|
1632
|
+
obj._deserialize(item)
|
1633
|
+
self._Filters.append(obj)
|
1634
|
+
self._Limit = params.get("Limit")
|
1635
|
+
self._Offset = params.get("Offset")
|
1636
|
+
self._OrderBy = params.get("OrderBy")
|
1637
|
+
memeber_set = set(params.keys())
|
1638
|
+
for name, value in vars(self).items():
|
1639
|
+
property_name = name[1:]
|
1640
|
+
if property_name in memeber_set:
|
1641
|
+
memeber_set.remove(property_name)
|
1642
|
+
if len(memeber_set) > 0:
|
1643
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1644
|
+
|
1645
|
+
|
1646
|
+
|
1647
|
+
class DescribeDeviceCertificatesResponse(AbstractModel):
|
1648
|
+
"""DescribeDeviceCertificates返回参数结构体
|
1649
|
+
|
1650
|
+
"""
|
1651
|
+
|
1652
|
+
def __init__(self):
|
1653
|
+
r"""
|
1654
|
+
:param _TotalCount: 总数
|
1655
|
+
:type TotalCount: int
|
1656
|
+
:param _Data: 设备证书
|
1657
|
+
:type Data: list of DeviceCertificateItem
|
1658
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1659
|
+
:type RequestId: str
|
1660
|
+
"""
|
1661
|
+
self._TotalCount = None
|
1662
|
+
self._Data = None
|
1663
|
+
self._RequestId = None
|
1664
|
+
|
1665
|
+
@property
|
1666
|
+
def TotalCount(self):
|
1667
|
+
"""总数
|
1668
|
+
:rtype: int
|
1669
|
+
"""
|
1670
|
+
return self._TotalCount
|
1671
|
+
|
1672
|
+
@TotalCount.setter
|
1673
|
+
def TotalCount(self, TotalCount):
|
1674
|
+
self._TotalCount = TotalCount
|
1675
|
+
|
1676
|
+
@property
|
1677
|
+
def Data(self):
|
1678
|
+
"""设备证书
|
1679
|
+
:rtype: list of DeviceCertificateItem
|
1680
|
+
"""
|
1681
|
+
return self._Data
|
1682
|
+
|
1683
|
+
@Data.setter
|
1684
|
+
def Data(self, Data):
|
1685
|
+
self._Data = Data
|
1686
|
+
|
1687
|
+
@property
|
1688
|
+
def RequestId(self):
|
1689
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1690
|
+
:rtype: str
|
1691
|
+
"""
|
1692
|
+
return self._RequestId
|
1693
|
+
|
1694
|
+
@RequestId.setter
|
1695
|
+
def RequestId(self, RequestId):
|
1696
|
+
self._RequestId = RequestId
|
1697
|
+
|
1698
|
+
|
1699
|
+
def _deserialize(self, params):
|
1700
|
+
self._TotalCount = params.get("TotalCount")
|
1701
|
+
if params.get("Data") is not None:
|
1702
|
+
self._Data = []
|
1703
|
+
for item in params.get("Data"):
|
1704
|
+
obj = DeviceCertificateItem()
|
1705
|
+
obj._deserialize(item)
|
1706
|
+
self._Data.append(obj)
|
1707
|
+
self._RequestId = params.get("RequestId")
|
1708
|
+
|
1709
|
+
|
1461
1710
|
class DescribeInstanceListRequest(AbstractModel):
|
1462
1711
|
"""DescribeInstanceList请求参数结构体
|
1463
1712
|
|
@@ -1465,7 +1714,10 @@ class DescribeInstanceListRequest(AbstractModel):
|
|
1465
1714
|
|
1466
1715
|
def __init__(self):
|
1467
1716
|
r"""
|
1468
|
-
:param _Filters:
|
1717
|
+
:param _Filters: 查询条件列表,支持以下子弹
|
1718
|
+
InstanceName:集群名模糊搜索
|
1719
|
+
InstanceId:集群id精确搜索
|
1720
|
+
InstanceStatus:集群状态搜索
|
1469
1721
|
:type Filters: list of Filter
|
1470
1722
|
:param _Offset: 查询起始位置
|
1471
1723
|
:type Offset: int
|
@@ -1481,7 +1733,10 @@ class DescribeInstanceListRequest(AbstractModel):
|
|
1481
1733
|
|
1482
1734
|
@property
|
1483
1735
|
def Filters(self):
|
1484
|
-
"""
|
1736
|
+
"""查询条件列表,支持以下子弹
|
1737
|
+
InstanceName:集群名模糊搜索
|
1738
|
+
InstanceId:集群id精确搜索
|
1739
|
+
InstanceStatus:集群状态搜索
|
1485
1740
|
:rtype: list of Filter
|
1486
1741
|
"""
|
1487
1742
|
return self._Filters
|
@@ -2044,7 +2299,8 @@ class DescribeTopicListRequest(AbstractModel):
|
|
2044
2299
|
r"""
|
2045
2300
|
:param _InstanceId: 实例ID
|
2046
2301
|
:type InstanceId: str
|
2047
|
-
:param _Filters:
|
2302
|
+
:param _Filters: 查询条件列表:
|
2303
|
+
支持TopicName模糊查询
|
2048
2304
|
:type Filters: list of Filter
|
2049
2305
|
:param _Offset: 查询起始位置
|
2050
2306
|
:type Offset: int
|
@@ -2069,7 +2325,8 @@ class DescribeTopicListRequest(AbstractModel):
|
|
2069
2325
|
|
2070
2326
|
@property
|
2071
2327
|
def Filters(self):
|
2072
|
-
"""
|
2328
|
+
"""查询条件列表:
|
2329
|
+
支持TopicName模糊查询
|
2073
2330
|
:rtype: list of Filter
|
2074
2331
|
"""
|
2075
2332
|
return self._Filters
|
@@ -2325,6 +2582,263 @@ class DescribeTopicResponse(AbstractModel):
|
|
2325
2582
|
self._RequestId = params.get("RequestId")
|
2326
2583
|
|
2327
2584
|
|
2585
|
+
class DeviceCertificateItem(AbstractModel):
|
2586
|
+
"""设备证书信息
|
2587
|
+
|
2588
|
+
"""
|
2589
|
+
|
2590
|
+
def __init__(self):
|
2591
|
+
r"""
|
2592
|
+
:param _ClientId: 客户端id
|
2593
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2594
|
+
:type ClientId: str
|
2595
|
+
:param _DeviceCertificate: 设备证书
|
2596
|
+
:type DeviceCertificate: str
|
2597
|
+
:param _DeviceCertificateSn: 设备证书Sn
|
2598
|
+
:type DeviceCertificateSn: str
|
2599
|
+
:param _DeviceCertificateCn: 设备证书Cn
|
2600
|
+
:type DeviceCertificateCn: str
|
2601
|
+
:param _CaSn: 签发ca的序列号
|
2602
|
+
:type CaSn: str
|
2603
|
+
:param _Format: 证书格式
|
2604
|
+
:type Format: str
|
2605
|
+
:param _Status: 证书状态
|
2606
|
+
ACTIVE,//激活
|
2607
|
+
INACTIVE,//未激活
|
2608
|
+
REVOKED,//吊销
|
2609
|
+
PENDING_ACTIVATION,//注册待激活
|
2610
|
+
:type Status: str
|
2611
|
+
:param _LastActivationTime: 上次激活时间
|
2612
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2613
|
+
:type LastActivationTime: int
|
2614
|
+
:param _LastInactivationTime: 上次取消激活时间
|
2615
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2616
|
+
:type LastInactivationTime: int
|
2617
|
+
:param _CreatedTime: 创建时间
|
2618
|
+
:type CreatedTime: int
|
2619
|
+
:param _UpdateTime: 预销毁时间
|
2620
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2621
|
+
:type UpdateTime: int
|
2622
|
+
:param _CertificateSource: 证书来源:
|
2623
|
+
API, 手动注册
|
2624
|
+
JITP 自动注册
|
2625
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2626
|
+
:type CertificateSource: str
|
2627
|
+
:param _NotAfterTime: 证书失效日期
|
2628
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2629
|
+
:type NotAfterTime: int
|
2630
|
+
:param _NotBeforeTime: 证书生效开始日期
|
2631
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2632
|
+
:type NotBeforeTime: int
|
2633
|
+
"""
|
2634
|
+
self._ClientId = None
|
2635
|
+
self._DeviceCertificate = None
|
2636
|
+
self._DeviceCertificateSn = None
|
2637
|
+
self._DeviceCertificateCn = None
|
2638
|
+
self._CaSn = None
|
2639
|
+
self._Format = None
|
2640
|
+
self._Status = None
|
2641
|
+
self._LastActivationTime = None
|
2642
|
+
self._LastInactivationTime = None
|
2643
|
+
self._CreatedTime = None
|
2644
|
+
self._UpdateTime = None
|
2645
|
+
self._CertificateSource = None
|
2646
|
+
self._NotAfterTime = None
|
2647
|
+
self._NotBeforeTime = None
|
2648
|
+
|
2649
|
+
@property
|
2650
|
+
def ClientId(self):
|
2651
|
+
"""客户端id
|
2652
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2653
|
+
:rtype: str
|
2654
|
+
"""
|
2655
|
+
return self._ClientId
|
2656
|
+
|
2657
|
+
@ClientId.setter
|
2658
|
+
def ClientId(self, ClientId):
|
2659
|
+
self._ClientId = ClientId
|
2660
|
+
|
2661
|
+
@property
|
2662
|
+
def DeviceCertificate(self):
|
2663
|
+
"""设备证书
|
2664
|
+
:rtype: str
|
2665
|
+
"""
|
2666
|
+
return self._DeviceCertificate
|
2667
|
+
|
2668
|
+
@DeviceCertificate.setter
|
2669
|
+
def DeviceCertificate(self, DeviceCertificate):
|
2670
|
+
self._DeviceCertificate = DeviceCertificate
|
2671
|
+
|
2672
|
+
@property
|
2673
|
+
def DeviceCertificateSn(self):
|
2674
|
+
"""设备证书Sn
|
2675
|
+
:rtype: str
|
2676
|
+
"""
|
2677
|
+
return self._DeviceCertificateSn
|
2678
|
+
|
2679
|
+
@DeviceCertificateSn.setter
|
2680
|
+
def DeviceCertificateSn(self, DeviceCertificateSn):
|
2681
|
+
self._DeviceCertificateSn = DeviceCertificateSn
|
2682
|
+
|
2683
|
+
@property
|
2684
|
+
def DeviceCertificateCn(self):
|
2685
|
+
"""设备证书Cn
|
2686
|
+
:rtype: str
|
2687
|
+
"""
|
2688
|
+
return self._DeviceCertificateCn
|
2689
|
+
|
2690
|
+
@DeviceCertificateCn.setter
|
2691
|
+
def DeviceCertificateCn(self, DeviceCertificateCn):
|
2692
|
+
self._DeviceCertificateCn = DeviceCertificateCn
|
2693
|
+
|
2694
|
+
@property
|
2695
|
+
def CaSn(self):
|
2696
|
+
"""签发ca的序列号
|
2697
|
+
:rtype: str
|
2698
|
+
"""
|
2699
|
+
return self._CaSn
|
2700
|
+
|
2701
|
+
@CaSn.setter
|
2702
|
+
def CaSn(self, CaSn):
|
2703
|
+
self._CaSn = CaSn
|
2704
|
+
|
2705
|
+
@property
|
2706
|
+
def Format(self):
|
2707
|
+
"""证书格式
|
2708
|
+
:rtype: str
|
2709
|
+
"""
|
2710
|
+
return self._Format
|
2711
|
+
|
2712
|
+
@Format.setter
|
2713
|
+
def Format(self, Format):
|
2714
|
+
self._Format = Format
|
2715
|
+
|
2716
|
+
@property
|
2717
|
+
def Status(self):
|
2718
|
+
"""证书状态
|
2719
|
+
ACTIVE,//激活
|
2720
|
+
INACTIVE,//未激活
|
2721
|
+
REVOKED,//吊销
|
2722
|
+
PENDING_ACTIVATION,//注册待激活
|
2723
|
+
:rtype: str
|
2724
|
+
"""
|
2725
|
+
return self._Status
|
2726
|
+
|
2727
|
+
@Status.setter
|
2728
|
+
def Status(self, Status):
|
2729
|
+
self._Status = Status
|
2730
|
+
|
2731
|
+
@property
|
2732
|
+
def LastActivationTime(self):
|
2733
|
+
"""上次激活时间
|
2734
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2735
|
+
:rtype: int
|
2736
|
+
"""
|
2737
|
+
return self._LastActivationTime
|
2738
|
+
|
2739
|
+
@LastActivationTime.setter
|
2740
|
+
def LastActivationTime(self, LastActivationTime):
|
2741
|
+
self._LastActivationTime = LastActivationTime
|
2742
|
+
|
2743
|
+
@property
|
2744
|
+
def LastInactivationTime(self):
|
2745
|
+
"""上次取消激活时间
|
2746
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2747
|
+
:rtype: int
|
2748
|
+
"""
|
2749
|
+
return self._LastInactivationTime
|
2750
|
+
|
2751
|
+
@LastInactivationTime.setter
|
2752
|
+
def LastInactivationTime(self, LastInactivationTime):
|
2753
|
+
self._LastInactivationTime = LastInactivationTime
|
2754
|
+
|
2755
|
+
@property
|
2756
|
+
def CreatedTime(self):
|
2757
|
+
"""创建时间
|
2758
|
+
:rtype: int
|
2759
|
+
"""
|
2760
|
+
return self._CreatedTime
|
2761
|
+
|
2762
|
+
@CreatedTime.setter
|
2763
|
+
def CreatedTime(self, CreatedTime):
|
2764
|
+
self._CreatedTime = CreatedTime
|
2765
|
+
|
2766
|
+
@property
|
2767
|
+
def UpdateTime(self):
|
2768
|
+
"""预销毁时间
|
2769
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2770
|
+
:rtype: int
|
2771
|
+
"""
|
2772
|
+
return self._UpdateTime
|
2773
|
+
|
2774
|
+
@UpdateTime.setter
|
2775
|
+
def UpdateTime(self, UpdateTime):
|
2776
|
+
self._UpdateTime = UpdateTime
|
2777
|
+
|
2778
|
+
@property
|
2779
|
+
def CertificateSource(self):
|
2780
|
+
"""证书来源:
|
2781
|
+
API, 手动注册
|
2782
|
+
JITP 自动注册
|
2783
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2784
|
+
:rtype: str
|
2785
|
+
"""
|
2786
|
+
return self._CertificateSource
|
2787
|
+
|
2788
|
+
@CertificateSource.setter
|
2789
|
+
def CertificateSource(self, CertificateSource):
|
2790
|
+
self._CertificateSource = CertificateSource
|
2791
|
+
|
2792
|
+
@property
|
2793
|
+
def NotAfterTime(self):
|
2794
|
+
"""证书失效日期
|
2795
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2796
|
+
:rtype: int
|
2797
|
+
"""
|
2798
|
+
return self._NotAfterTime
|
2799
|
+
|
2800
|
+
@NotAfterTime.setter
|
2801
|
+
def NotAfterTime(self, NotAfterTime):
|
2802
|
+
self._NotAfterTime = NotAfterTime
|
2803
|
+
|
2804
|
+
@property
|
2805
|
+
def NotBeforeTime(self):
|
2806
|
+
"""证书生效开始日期
|
2807
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2808
|
+
:rtype: int
|
2809
|
+
"""
|
2810
|
+
return self._NotBeforeTime
|
2811
|
+
|
2812
|
+
@NotBeforeTime.setter
|
2813
|
+
def NotBeforeTime(self, NotBeforeTime):
|
2814
|
+
self._NotBeforeTime = NotBeforeTime
|
2815
|
+
|
2816
|
+
|
2817
|
+
def _deserialize(self, params):
|
2818
|
+
self._ClientId = params.get("ClientId")
|
2819
|
+
self._DeviceCertificate = params.get("DeviceCertificate")
|
2820
|
+
self._DeviceCertificateSn = params.get("DeviceCertificateSn")
|
2821
|
+
self._DeviceCertificateCn = params.get("DeviceCertificateCn")
|
2822
|
+
self._CaSn = params.get("CaSn")
|
2823
|
+
self._Format = params.get("Format")
|
2824
|
+
self._Status = params.get("Status")
|
2825
|
+
self._LastActivationTime = params.get("LastActivationTime")
|
2826
|
+
self._LastInactivationTime = params.get("LastInactivationTime")
|
2827
|
+
self._CreatedTime = params.get("CreatedTime")
|
2828
|
+
self._UpdateTime = params.get("UpdateTime")
|
2829
|
+
self._CertificateSource = params.get("CertificateSource")
|
2830
|
+
self._NotAfterTime = params.get("NotAfterTime")
|
2831
|
+
self._NotBeforeTime = params.get("NotBeforeTime")
|
2832
|
+
memeber_set = set(params.keys())
|
2833
|
+
for name, value in vars(self).items():
|
2834
|
+
property_name = name[1:]
|
2835
|
+
if property_name in memeber_set:
|
2836
|
+
memeber_set.remove(property_name)
|
2837
|
+
if len(memeber_set) > 0:
|
2838
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2839
|
+
|
2840
|
+
|
2841
|
+
|
2328
2842
|
class Filter(AbstractModel):
|
2329
2843
|
"""查询过滤器
|
2330
2844
|
|
@@ -3347,7 +3861,9 @@ class ModifyJWTAuthenticatorRequest(AbstractModel):
|
|
3347
3861
|
:type InstanceId: str
|
3348
3862
|
:param _Algorithm: 算法:hmac-based,public-key
|
3349
3863
|
:type Algorithm: str
|
3350
|
-
:param _From: 设备连接时传递jwt的key;
|
3864
|
+
:param _From: 设备连接时传递jwt的key;
|
3865
|
+
username-使用用户名字段传递;
|
3866
|
+
password-使用密码字段传递
|
3351
3867
|
:type From: str
|
3352
3868
|
:param _Secret: 密码
|
3353
3869
|
:type Secret: str
|
@@ -3390,7 +3906,9 @@ class ModifyJWTAuthenticatorRequest(AbstractModel):
|
|
3390
3906
|
|
3391
3907
|
@property
|
3392
3908
|
def From(self):
|
3393
|
-
"""设备连接时传递jwt的key;
|
3909
|
+
"""设备连接时传递jwt的key;
|
3910
|
+
username-使用用户名字段传递;
|
3911
|
+
password-使用密码字段传递
|
3394
3912
|
:rtype: str
|
3395
3913
|
"""
|
3396
3914
|
return self._From
|
@@ -26,6 +26,29 @@ class MqttClient(AbstractClient):
|
|
26
26
|
_service = 'mqtt'
|
27
27
|
|
28
28
|
|
29
|
+
def ActivateDeviceCertificate(self, request):
|
30
|
+
"""生效设备证书
|
31
|
+
|
32
|
+
:param request: Request instance for ActivateDeviceCertificate.
|
33
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.ActivateDeviceCertificateRequest`
|
34
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.ActivateDeviceCertificateResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("ActivateDeviceCertificate", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.ActivateDeviceCertificateResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def CreateAuthorizationPolicy(self, request):
|
30
53
|
"""创建MQTT实例的性能测试任务
|
31
54
|
|
@@ -233,6 +256,29 @@ class MqttClient(AbstractClient):
|
|
233
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
234
257
|
|
235
258
|
|
259
|
+
def DescribeDeviceCertificates(self, request):
|
260
|
+
"""分页查询设备证书
|
261
|
+
|
262
|
+
:param request: Request instance for DescribeDeviceCertificates.
|
263
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeDeviceCertificatesRequest`
|
264
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeDeviceCertificatesResponse`
|
265
|
+
|
266
|
+
"""
|
267
|
+
try:
|
268
|
+
params = request._serialize()
|
269
|
+
headers = request.headers
|
270
|
+
body = self.call("DescribeDeviceCertificates", params, headers=headers)
|
271
|
+
response = json.loads(body)
|
272
|
+
model = models.DescribeDeviceCertificatesResponse()
|
273
|
+
model._deserialize(response["Response"])
|
274
|
+
return model
|
275
|
+
except Exception as e:
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
277
|
+
raise
|
278
|
+
else:
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
280
|
+
|
281
|
+
|
236
282
|
def DescribeInstance(self, request):
|
237
283
|
"""查询实例信息
|
238
284
|
|
@@ -260,7 +306,6 @@ class MqttClient(AbstractClient):
|
|
260
306
|
"""获取实例列表,Filters参数使用说明如下:
|
261
307
|
1. InstanceName, 名称模糊查询
|
262
308
|
2. InstanceId,实例ID查询
|
263
|
-
3. InstanceType, 实例类型查询,支持多选
|
264
309
|
3. InstanceStatus,实例状态查询,支持多选
|
265
310
|
|
266
311
|
当使用TagFilters查询时,Filters参数失效。
|