tencentcloud-sdk-python 3.0.1329__py2.py3-none-any.whl → 3.0.1331__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/ams/v20201229/models.py +207 -14
- tencentcloud/batch/v20170312/models.py +2 -26
- tencentcloud/cfw/v20190904/cfw_client.py +9 -3
- tencentcloud/cvm/v20170312/models.py +37 -38
- tencentcloud/cynosdb/v20190107/models.py +23 -4
- tencentcloud/emr/v20190103/models.py +4 -4
- tencentcloud/ess/v20201111/ess_client.py +57 -0
- tencentcloud/ess/v20201111/models.py +406 -322
- tencentcloud/essbasic/v20210526/essbasic_client.py +57 -0
- tencentcloud/essbasic/v20210526/models.py +388 -238
- tencentcloud/ims/v20201229/models.py +157 -0
- tencentcloud/lcic/v20220817/models.py +12 -2
- tencentcloud/lighthouse/v20200324/models.py +12 -12
- tencentcloud/live/v20180801/models.py +0 -78
- tencentcloud/lke/v20231130/lke_client.py +23 -0
- tencentcloud/lke/v20231130/models.py +128 -4
- tencentcloud/lkeap/v20240522/lkeap_client.py +5 -1
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/rce/v20201103/models.py +16 -52
- tencentcloud/taf/v20200210/models.py +0 -2
- tencentcloud/teo/v20220901/models.py +18 -4
- tencentcloud/tione/v20211111/tione_client.py +3 -1
- tencentcloud/tke/v20180525/models.py +2 -178
- tencentcloud/trtc/v20190722/models.py +15 -0
- tencentcloud/tse/v20201207/models.py +153 -0
- tencentcloud/vm/v20201229/models.py +615 -68
- tencentcloud/vm/v20210922/models.py +737 -102
- tencentcloud/wedata/v20210820/models.py +19 -4
- {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/RECORD +34 -34
- {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/top_level.txt +0 -0
@@ -1572,6 +1572,92 @@ class ObjectResult(AbstractModel):
|
|
1572
1572
|
|
1573
1573
|
|
1574
1574
|
|
1575
|
+
class OcrHitInfo(AbstractModel):
|
1576
|
+
"""ocr关键词命中位置信息
|
1577
|
+
|
1578
|
+
"""
|
1579
|
+
|
1580
|
+
def __init__(self):
|
1581
|
+
r"""
|
1582
|
+
:param _Type: 标识模型命中还是关键词命中
|
1583
|
+
:type Type: str
|
1584
|
+
:param _Keyword: 命中关键词
|
1585
|
+
:type Keyword: str
|
1586
|
+
:param _LibName: 自定义词库名称
|
1587
|
+
:type LibName: str
|
1588
|
+
:param _Positions: 位置信息
|
1589
|
+
:type Positions: list of Positions
|
1590
|
+
"""
|
1591
|
+
self._Type = None
|
1592
|
+
self._Keyword = None
|
1593
|
+
self._LibName = None
|
1594
|
+
self._Positions = None
|
1595
|
+
|
1596
|
+
@property
|
1597
|
+
def Type(self):
|
1598
|
+
"""标识模型命中还是关键词命中
|
1599
|
+
:rtype: str
|
1600
|
+
"""
|
1601
|
+
return self._Type
|
1602
|
+
|
1603
|
+
@Type.setter
|
1604
|
+
def Type(self, Type):
|
1605
|
+
self._Type = Type
|
1606
|
+
|
1607
|
+
@property
|
1608
|
+
def Keyword(self):
|
1609
|
+
"""命中关键词
|
1610
|
+
:rtype: str
|
1611
|
+
"""
|
1612
|
+
return self._Keyword
|
1613
|
+
|
1614
|
+
@Keyword.setter
|
1615
|
+
def Keyword(self, Keyword):
|
1616
|
+
self._Keyword = Keyword
|
1617
|
+
|
1618
|
+
@property
|
1619
|
+
def LibName(self):
|
1620
|
+
"""自定义词库名称
|
1621
|
+
:rtype: str
|
1622
|
+
"""
|
1623
|
+
return self._LibName
|
1624
|
+
|
1625
|
+
@LibName.setter
|
1626
|
+
def LibName(self, LibName):
|
1627
|
+
self._LibName = LibName
|
1628
|
+
|
1629
|
+
@property
|
1630
|
+
def Positions(self):
|
1631
|
+
"""位置信息
|
1632
|
+
:rtype: list of Positions
|
1633
|
+
"""
|
1634
|
+
return self._Positions
|
1635
|
+
|
1636
|
+
@Positions.setter
|
1637
|
+
def Positions(self, Positions):
|
1638
|
+
self._Positions = Positions
|
1639
|
+
|
1640
|
+
|
1641
|
+
def _deserialize(self, params):
|
1642
|
+
self._Type = params.get("Type")
|
1643
|
+
self._Keyword = params.get("Keyword")
|
1644
|
+
self._LibName = params.get("LibName")
|
1645
|
+
if params.get("Positions") is not None:
|
1646
|
+
self._Positions = []
|
1647
|
+
for item in params.get("Positions"):
|
1648
|
+
obj = Positions()
|
1649
|
+
obj._deserialize(item)
|
1650
|
+
self._Positions.append(obj)
|
1651
|
+
memeber_set = set(params.keys())
|
1652
|
+
for name, value in vars(self).items():
|
1653
|
+
property_name = name[1:]
|
1654
|
+
if property_name in memeber_set:
|
1655
|
+
memeber_set.remove(property_name)
|
1656
|
+
if len(memeber_set) > 0:
|
1657
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1658
|
+
|
1659
|
+
|
1660
|
+
|
1575
1661
|
class OcrResult(AbstractModel):
|
1576
1662
|
"""用于返回OCR结果检测详情
|
1577
1663
|
|
@@ -1730,6 +1816,8 @@ class OcrTextDetail(AbstractModel):
|
|
1730
1816
|
:type Rate: int
|
1731
1817
|
:param _SubLabel: 该字段用于返回检测结果所对应的恶意二级标签。
|
1732
1818
|
:type SubLabel: str
|
1819
|
+
:param _HitInfos: 关键词命中位置信息
|
1820
|
+
:type HitInfos: list of OcrHitInfo
|
1733
1821
|
"""
|
1734
1822
|
self._Text = None
|
1735
1823
|
self._Label = None
|
@@ -1740,6 +1828,7 @@ class OcrTextDetail(AbstractModel):
|
|
1740
1828
|
self._Location = None
|
1741
1829
|
self._Rate = None
|
1742
1830
|
self._SubLabel = None
|
1831
|
+
self._HitInfos = None
|
1743
1832
|
|
1744
1833
|
@property
|
1745
1834
|
def Text(self):
|
@@ -1840,6 +1929,17 @@ class OcrTextDetail(AbstractModel):
|
|
1840
1929
|
def SubLabel(self, SubLabel):
|
1841
1930
|
self._SubLabel = SubLabel
|
1842
1931
|
|
1932
|
+
@property
|
1933
|
+
def HitInfos(self):
|
1934
|
+
"""关键词命中位置信息
|
1935
|
+
:rtype: list of OcrHitInfo
|
1936
|
+
"""
|
1937
|
+
return self._HitInfos
|
1938
|
+
|
1939
|
+
@HitInfos.setter
|
1940
|
+
def HitInfos(self, HitInfos):
|
1941
|
+
self._HitInfos = HitInfos
|
1942
|
+
|
1843
1943
|
|
1844
1944
|
def _deserialize(self, params):
|
1845
1945
|
self._Text = params.get("Text")
|
@@ -1853,6 +1953,63 @@ class OcrTextDetail(AbstractModel):
|
|
1853
1953
|
self._Location._deserialize(params.get("Location"))
|
1854
1954
|
self._Rate = params.get("Rate")
|
1855
1955
|
self._SubLabel = params.get("SubLabel")
|
1956
|
+
if params.get("HitInfos") is not None:
|
1957
|
+
self._HitInfos = []
|
1958
|
+
for item in params.get("HitInfos"):
|
1959
|
+
obj = OcrHitInfo()
|
1960
|
+
obj._deserialize(item)
|
1961
|
+
self._HitInfos.append(obj)
|
1962
|
+
memeber_set = set(params.keys())
|
1963
|
+
for name, value in vars(self).items():
|
1964
|
+
property_name = name[1:]
|
1965
|
+
if property_name in memeber_set:
|
1966
|
+
memeber_set.remove(property_name)
|
1967
|
+
if len(memeber_set) > 0:
|
1968
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1969
|
+
|
1970
|
+
|
1971
|
+
|
1972
|
+
class Positions(AbstractModel):
|
1973
|
+
"""标识命中的违规关键词位置信息
|
1974
|
+
|
1975
|
+
"""
|
1976
|
+
|
1977
|
+
def __init__(self):
|
1978
|
+
r"""
|
1979
|
+
:param _Start: 关键词起始位置
|
1980
|
+
:type Start: int
|
1981
|
+
:param _End: 关键词结束位置
|
1982
|
+
:type End: int
|
1983
|
+
"""
|
1984
|
+
self._Start = None
|
1985
|
+
self._End = None
|
1986
|
+
|
1987
|
+
@property
|
1988
|
+
def Start(self):
|
1989
|
+
"""关键词起始位置
|
1990
|
+
:rtype: int
|
1991
|
+
"""
|
1992
|
+
return self._Start
|
1993
|
+
|
1994
|
+
@Start.setter
|
1995
|
+
def Start(self, Start):
|
1996
|
+
self._Start = Start
|
1997
|
+
|
1998
|
+
@property
|
1999
|
+
def End(self):
|
2000
|
+
"""关键词结束位置
|
2001
|
+
:rtype: int
|
2002
|
+
"""
|
2003
|
+
return self._End
|
2004
|
+
|
2005
|
+
@End.setter
|
2006
|
+
def End(self, End):
|
2007
|
+
self._End = End
|
2008
|
+
|
2009
|
+
|
2010
|
+
def _deserialize(self, params):
|
2011
|
+
self._Start = params.get("Start")
|
2012
|
+
self._End = params.get("End")
|
1856
2013
|
memeber_set = set(params.keys())
|
1857
2014
|
for name, value in vars(self).items():
|
1858
2015
|
property_name = name[1:]
|
@@ -1665,6 +1665,10 @@ class CreateDocumentRequest(AbstractModel):
|
|
1665
1665
|
1 需要转码的文档,ppt,pptx,pdf,doc,docx,xls,xlsx
|
1666
1666
|
2 需要转码的视频,mp4,3pg,mpeg,avi,flv,wmv,rm,h264等
|
1667
1667
|
2 需要转码的音频,mp3,wav,wma,aac,flac,opus
|
1668
|
+
请注意,待录制的页面中任何视频的分辨率不能超过页面录制最大分辨率(1920*1080),否则将导致录制失败。
|
1669
|
+
- ppt课件内嵌视频或纯视频课件,在上传课件时,云api会进行转码,以确保视频分辨率不超过页面录制最大分辨率。
|
1670
|
+
- h5课件中内嵌音视频内容时,由于平台无法获取视频内容,因此在制作环节需确保视频分辨率不超过页面录制最大分辨率。
|
1671
|
+
|
1668
1672
|
:type TranscodeType: int
|
1669
1673
|
:param _Permission: 权限,可以有如下取值:
|
1670
1674
|
0 私有文档(默认)
|
@@ -1680,7 +1684,8 @@ class CreateDocumentRequest(AbstractModel):
|
|
1680
1684
|
2. 自动翻页:移除PPT上所有自动翻页设置,并设置为单击鼠标翻页
|
1681
1685
|
3. 已损坏音视频:移除PPT上对损坏音视频的引用
|
1682
1686
|
:type AutoHandleUnsupportedElement: bool
|
1683
|
-
:param _MinScaleResolution:
|
1687
|
+
:param _MinScaleResolution: 转码后文档的最小分辨率,不传、传空字符串或分辨率格式错误则使用文档原分辨率。该参数仅对TranscodeType=1的课件生效。示例:1280x720,注意分辨率宽高中间为英文字母"xyz"的"x"
|
1688
|
+
示例值:1280x720
|
1684
1689
|
:type MinScaleResolution: str
|
1685
1690
|
"""
|
1686
1691
|
self._SdkAppId = None
|
@@ -1745,6 +1750,10 @@ class CreateDocumentRequest(AbstractModel):
|
|
1745
1750
|
1 需要转码的文档,ppt,pptx,pdf,doc,docx,xls,xlsx
|
1746
1751
|
2 需要转码的视频,mp4,3pg,mpeg,avi,flv,wmv,rm,h264等
|
1747
1752
|
2 需要转码的音频,mp3,wav,wma,aac,flac,opus
|
1753
|
+
请注意,待录制的页面中任何视频的分辨率不能超过页面录制最大分辨率(1920*1080),否则将导致录制失败。
|
1754
|
+
- ppt课件内嵌视频或纯视频课件,在上传课件时,云api会进行转码,以确保视频分辨率不超过页面录制最大分辨率。
|
1755
|
+
- h5课件中内嵌音视频内容时,由于平台无法获取视频内容,因此在制作环节需确保视频分辨率不超过页面录制最大分辨率。
|
1756
|
+
|
1748
1757
|
:rtype: int
|
1749
1758
|
"""
|
1750
1759
|
return self._TranscodeType
|
@@ -1805,7 +1814,8 @@ class CreateDocumentRequest(AbstractModel):
|
|
1805
1814
|
|
1806
1815
|
@property
|
1807
1816
|
def MinScaleResolution(self):
|
1808
|
-
"""
|
1817
|
+
"""转码后文档的最小分辨率,不传、传空字符串或分辨率格式错误则使用文档原分辨率。该参数仅对TranscodeType=1的课件生效。示例:1280x720,注意分辨率宽高中间为英文字母"xyz"的"x"
|
1818
|
+
示例值:1280x720
|
1809
1819
|
:rtype: str
|
1810
1820
|
"""
|
1811
1821
|
return self._MinScaleResolution
|
@@ -3924,7 +3924,7 @@ class DescribeBlueprintsRequest(AbstractModel):
|
|
3924
3924
|
|
3925
3925
|
def __init__(self):
|
3926
3926
|
r"""
|
3927
|
-
:param _BlueprintIds: 镜像 ID
|
3927
|
+
:param _BlueprintIds: 镜像 ID 列表。可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取。列表长度最大值为100。
|
3928
3928
|
:type BlueprintIds: list of str
|
3929
3929
|
:param _Offset: 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
|
3930
3930
|
:type Offset: int
|
@@ -3962,7 +3962,7 @@ class DescribeBlueprintsRequest(AbstractModel):
|
|
3962
3962
|
|
3963
3963
|
@property
|
3964
3964
|
def BlueprintIds(self):
|
3965
|
-
"""镜像 ID
|
3965
|
+
"""镜像 ID 列表。可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取。列表长度最大值为100。
|
3966
3966
|
:rtype: list of str
|
3967
3967
|
"""
|
3968
3968
|
return self._BlueprintIds
|
@@ -4550,7 +4550,7 @@ class DescribeDiskBackupsRequest(AbstractModel):
|
|
4550
4550
|
|
4551
4551
|
def __init__(self):
|
4552
4552
|
r"""
|
4553
|
-
:param _DiskBackupIds: 查询的云硬盘备份点ID
|
4553
|
+
:param _DiskBackupIds: 查询的云硬盘备份点ID列表。可通过[DescribeDiskBackups](https://cloud.tencent.com/document/product/1207/84379)接口返回值字段DiskBackupSet获取。列表长度最大值为100。参数不支持同时指定 DiskBackupIds 和 Filters。
|
4554
4554
|
:type DiskBackupIds: list of str
|
4555
4555
|
:param _Filters: 过滤器列表。
|
4556
4556
|
<li>disk-backup-id</li>按照【云硬盘备份点 ID】进行过滤。
|
@@ -4582,7 +4582,7 @@ class DescribeDiskBackupsRequest(AbstractModel):
|
|
4582
4582
|
|
4583
4583
|
@property
|
4584
4584
|
def DiskBackupIds(self):
|
4585
|
-
"""查询的云硬盘备份点ID
|
4585
|
+
"""查询的云硬盘备份点ID列表。可通过[DescribeDiskBackups](https://cloud.tencent.com/document/product/1207/84379)接口返回值字段DiskBackupSet获取。列表长度最大值为100。参数不支持同时指定 DiskBackupIds 和 Filters。
|
4586
4586
|
:rtype: list of str
|
4587
4587
|
"""
|
4588
4588
|
return self._DiskBackupIds
|
@@ -5039,7 +5039,7 @@ class DescribeDisksRequest(AbstractModel):
|
|
5039
5039
|
|
5040
5040
|
def __init__(self):
|
5041
5041
|
r"""
|
5042
|
-
:param _DiskIds: 云硬盘ID
|
5042
|
+
:param _DiskIds: 云硬盘ID列表。可通过[DescribeDisks](https://cloud.tencent.com/document/product/1207/66093)接口返回值字段KeyPairSet获取。列表长度最大值为100。
|
5043
5043
|
:type DiskIds: list of str
|
5044
5044
|
:param _Filters: 过滤器列表。
|
5045
5045
|
disk-id
|
@@ -5088,7 +5088,7 @@ disk-state
|
|
5088
5088
|
|
5089
5089
|
@property
|
5090
5090
|
def DiskIds(self):
|
5091
|
-
"""云硬盘ID
|
5091
|
+
"""云硬盘ID列表。可通过[DescribeDisks](https://cloud.tencent.com/document/product/1207/66093)接口返回值字段KeyPairSet获取。列表长度最大值为100。
|
5092
5092
|
:rtype: list of str
|
5093
5093
|
"""
|
5094
5094
|
return self._DiskIds
|
@@ -6413,9 +6413,9 @@ class DescribeFirewallTemplateRulesRequest(AbstractModel):
|
|
6413
6413
|
|
6414
6414
|
def __init__(self):
|
6415
6415
|
r"""
|
6416
|
-
:param _TemplateId: 防火墙模板ID。
|
6416
|
+
:param _TemplateId: 防火墙模板ID列表。可通过[DescribeFirewallTemplates](https://cloud.tencent.com/document/product/1207/96874)接口返回值字段TemplateSet获取。列表长度最大值为100。
|
6417
6417
|
:type TemplateId: str
|
6418
|
-
:param _TemplateRuleIds: 防火墙模板规则ID
|
6418
|
+
:param _TemplateRuleIds: 防火墙模板规则ID列表。可通过[DescribeFirewallTemplateRules](https://cloud.tencent.com/document/product/1207/96875)接口返回值字段TemplateRuleSet获取。列表长度最大值为100。
|
6419
6419
|
:type TemplateRuleIds: list of str
|
6420
6420
|
:param _Offset: 偏移量,默认为 0。
|
6421
6421
|
:type Offset: int
|
@@ -6429,7 +6429,7 @@ class DescribeFirewallTemplateRulesRequest(AbstractModel):
|
|
6429
6429
|
|
6430
6430
|
@property
|
6431
6431
|
def TemplateId(self):
|
6432
|
-
"""防火墙模板ID。
|
6432
|
+
"""防火墙模板ID列表。可通过[DescribeFirewallTemplates](https://cloud.tencent.com/document/product/1207/96874)接口返回值字段TemplateSet获取。列表长度最大值为100。
|
6433
6433
|
:rtype: str
|
6434
6434
|
"""
|
6435
6435
|
return self._TemplateId
|
@@ -6440,7 +6440,7 @@ class DescribeFirewallTemplateRulesRequest(AbstractModel):
|
|
6440
6440
|
|
6441
6441
|
@property
|
6442
6442
|
def TemplateRuleIds(self):
|
6443
|
-
"""防火墙模板规则ID
|
6443
|
+
"""防火墙模板规则ID列表。可通过[DescribeFirewallTemplateRules](https://cloud.tencent.com/document/product/1207/96875)接口返回值字段TemplateRuleSet获取。列表长度最大值为100。
|
6444
6444
|
:rtype: list of str
|
6445
6445
|
"""
|
6446
6446
|
return self._TemplateRuleIds
|
@@ -7676,7 +7676,7 @@ class DescribeKeyPairsRequest(AbstractModel):
|
|
7676
7676
|
|
7677
7677
|
def __init__(self):
|
7678
7678
|
r"""
|
7679
|
-
:param _KeyIds: 密钥对 ID
|
7679
|
+
:param _KeyIds: 密钥对 ID 列表。可通过[DescribeKeyPairs](https://cloud.tencent.com/document/product/1207/55540)接口返回值字段KeyPairSet获取。列表长度最大值为100。
|
7680
7680
|
:type KeyIds: list of str
|
7681
7681
|
:param _Offset: 偏移量,默认为 0。
|
7682
7682
|
:type Offset: int
|
@@ -7699,7 +7699,7 @@ class DescribeKeyPairsRequest(AbstractModel):
|
|
7699
7699
|
|
7700
7700
|
@property
|
7701
7701
|
def KeyIds(self):
|
7702
|
-
"""密钥对 ID
|
7702
|
+
"""密钥对 ID 列表。可通过[DescribeKeyPairs](https://cloud.tencent.com/document/product/1207/55540)接口返回值字段KeyPairSet获取。列表长度最大值为100。
|
7703
7703
|
:rtype: list of str
|
7704
7704
|
"""
|
7705
7705
|
return self._KeyIds
|