tencentcloud-sdk-python 3.0.1479__py2.py3-none-any.whl → 3.0.1480__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwdoris/v20211228/models.py +20 -0
- tencentcloud/live/v20180801/models.py +2 -0
- tencentcloud/oceanus/v20190422/models.py +4 -4
- tencentcloud/ocr/v20181119/models.py +159 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +1931 -190
- tencentcloud/tke/v20180525/models.py +116 -4
- tencentcloud/tms/v20201229/errorcodes.py +30 -0
- tencentcloud/tms/v20201229/models.py +431 -0
- tencentcloud/tms/v20201229/tms_client.py +46 -0
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +96 -0
- tencentcloud/vclm/v20240523/models.py +260 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/RECORD +22 -22
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -338,6 +338,9 @@ LIMITEXCEEDED_CLSTOPICEXCEED = 'LimitExceeded.ClsTopicExceed'
|
|
|
338
338
|
# 缺少参数错误。
|
|
339
339
|
MISSINGPARAMETER = 'MissingParameter'
|
|
340
340
|
|
|
341
|
+
# 此域名因遭受过大规模 DDoS 攻击,为了保证平台稳定,当前无法接入。
|
|
342
|
+
OPERATIONDENIED_CDNHOSTHASDDOSRISK = 'OperationDenied.CdnHostHasDDosRisk'
|
|
343
|
+
|
|
341
344
|
# 腾讯云CDN已全面升级为边缘安全加速平台
|
|
342
345
|
OPERATIONDENIED_PRODUCTUPGRADED = 'OperationDenied.ProductUpgraded'
|
|
343
346
|
|
|
@@ -4772,6 +4772,8 @@ class DescribeClusterConfigsResponse(AbstractModel):
|
|
|
4772
4772
|
:type ErrorMsg: str
|
|
4773
4773
|
:param _HasCN: 是否包含CN节点
|
|
4774
4774
|
:type HasCN: bool
|
|
4775
|
+
:param _ExistingJarConfList: 实例已经存在的jar包列表
|
|
4776
|
+
:type ExistingJarConfList: list of ClusterConfigsInfoFromEMR
|
|
4775
4777
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4776
4778
|
:type RequestId: str
|
|
4777
4779
|
"""
|
|
@@ -4779,6 +4781,7 @@ class DescribeClusterConfigsResponse(AbstractModel):
|
|
|
4779
4781
|
self._BuildVersion = None
|
|
4780
4782
|
self._ErrorMsg = None
|
|
4781
4783
|
self._HasCN = None
|
|
4784
|
+
self._ExistingJarConfList = None
|
|
4782
4785
|
self._RequestId = None
|
|
4783
4786
|
|
|
4784
4787
|
@property
|
|
@@ -4825,6 +4828,17 @@ class DescribeClusterConfigsResponse(AbstractModel):
|
|
|
4825
4828
|
def HasCN(self, HasCN):
|
|
4826
4829
|
self._HasCN = HasCN
|
|
4827
4830
|
|
|
4831
|
+
@property
|
|
4832
|
+
def ExistingJarConfList(self):
|
|
4833
|
+
r"""实例已经存在的jar包列表
|
|
4834
|
+
:rtype: list of ClusterConfigsInfoFromEMR
|
|
4835
|
+
"""
|
|
4836
|
+
return self._ExistingJarConfList
|
|
4837
|
+
|
|
4838
|
+
@ExistingJarConfList.setter
|
|
4839
|
+
def ExistingJarConfList(self, ExistingJarConfList):
|
|
4840
|
+
self._ExistingJarConfList = ExistingJarConfList
|
|
4841
|
+
|
|
4828
4842
|
@property
|
|
4829
4843
|
def RequestId(self):
|
|
4830
4844
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -4847,6 +4861,12 @@ class DescribeClusterConfigsResponse(AbstractModel):
|
|
|
4847
4861
|
self._BuildVersion = params.get("BuildVersion")
|
|
4848
4862
|
self._ErrorMsg = params.get("ErrorMsg")
|
|
4849
4863
|
self._HasCN = params.get("HasCN")
|
|
4864
|
+
if params.get("ExistingJarConfList") is not None:
|
|
4865
|
+
self._ExistingJarConfList = []
|
|
4866
|
+
for item in params.get("ExistingJarConfList"):
|
|
4867
|
+
obj = ClusterConfigsInfoFromEMR()
|
|
4868
|
+
obj._deserialize(item)
|
|
4869
|
+
self._ExistingJarConfList.append(obj)
|
|
4850
4870
|
self._RequestId = params.get("RequestId")
|
|
4851
4871
|
|
|
4852
4872
|
|
|
@@ -36038,6 +36038,7 @@ FLV、MP4取值范围: 60-43200, AAC取值范围: 60-7200 。
|
|
|
36038
36038
|
:param _StorageTime: 录制存储时长。
|
|
36039
36039
|
单位秒,取值范围: 0 - 1500天。
|
|
36040
36040
|
0:表示永久存储。
|
|
36041
|
+
注:此参数只对录制到VOD有效。
|
|
36041
36042
|
:type StorageTime: int
|
|
36042
36043
|
:param _Enable: 是否开启当前格式录制,默认值为0,0:否, 1:是。
|
|
36043
36044
|
:type Enable: int
|
|
@@ -36116,6 +36117,7 @@ FLV、MP4取值范围: 60-43200, AAC取值范围: 60-7200 。
|
|
|
36116
36117
|
r"""录制存储时长。
|
|
36117
36118
|
单位秒,取值范围: 0 - 1500天。
|
|
36118
36119
|
0:表示永久存储。
|
|
36120
|
+
注:此参数只对录制到VOD有效。
|
|
36119
36121
|
:rtype: int
|
|
36120
36122
|
"""
|
|
36121
36123
|
return self._StorageTime
|
|
@@ -12886,9 +12886,9 @@ class ResourceRef(AbstractModel):
|
|
|
12886
12886
|
r"""
|
|
12887
12887
|
:param _ResourceId: 资源ID
|
|
12888
12888
|
:type ResourceId: str
|
|
12889
|
-
:param _Version:
|
|
12889
|
+
:param _Version: 资源版本
|
|
12890
12890
|
:type Version: int
|
|
12891
|
-
:param _Type:
|
|
12891
|
+
:param _Type: 0-引用 JAR 程序包,1-主程序包,2-引用配置文件,3-Python程序包,4-Python数据文件
|
|
12892
12892
|
:type Type: int
|
|
12893
12893
|
"""
|
|
12894
12894
|
self._ResourceId = None
|
|
@@ -12908,7 +12908,7 @@ class ResourceRef(AbstractModel):
|
|
|
12908
12908
|
|
|
12909
12909
|
@property
|
|
12910
12910
|
def Version(self):
|
|
12911
|
-
r"""
|
|
12911
|
+
r"""资源版本
|
|
12912
12912
|
:rtype: int
|
|
12913
12913
|
"""
|
|
12914
12914
|
return self._Version
|
|
@@ -12919,7 +12919,7 @@ class ResourceRef(AbstractModel):
|
|
|
12919
12919
|
|
|
12920
12920
|
@property
|
|
12921
12921
|
def Type(self):
|
|
12922
|
-
r"""
|
|
12922
|
+
r"""0-引用 JAR 程序包,1-主程序包,2-引用配置文件,3-Python程序包,4-Python数据文件
|
|
12923
12923
|
:rtype: int
|
|
12924
12924
|
"""
|
|
12925
12925
|
return self._Type
|
|
@@ -22742,6 +22742,165 @@ class QuestionObj(AbstractModel):
|
|
|
22742
22742
|
|
|
22743
22743
|
|
|
22744
22744
|
|
|
22745
|
+
class QuestionSplitLayoutOCRRequest(AbstractModel):
|
|
22746
|
+
r"""QuestionSplitLayoutOCR请求参数结构体
|
|
22747
|
+
|
|
22748
|
+
"""
|
|
22749
|
+
|
|
22750
|
+
def __init__(self):
|
|
22751
|
+
r"""
|
|
22752
|
+
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22753
|
+
:type ImageUrl: str
|
|
22754
|
+
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22755
|
+
:type ImageBase64: str
|
|
22756
|
+
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
22757
|
+
:type IsPdf: bool
|
|
22758
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
22759
|
+
:type PdfPageNumber: int
|
|
22760
|
+
:param _EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
|
|
22761
|
+
:type EnableImageCrop: bool
|
|
22762
|
+
:param _UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
|
|
22763
|
+
:type UseNewModel: bool
|
|
22764
|
+
"""
|
|
22765
|
+
self._ImageUrl = None
|
|
22766
|
+
self._ImageBase64 = None
|
|
22767
|
+
self._IsPdf = None
|
|
22768
|
+
self._PdfPageNumber = None
|
|
22769
|
+
self._EnableImageCrop = None
|
|
22770
|
+
self._UseNewModel = None
|
|
22771
|
+
|
|
22772
|
+
@property
|
|
22773
|
+
def ImageUrl(self):
|
|
22774
|
+
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22775
|
+
:rtype: str
|
|
22776
|
+
"""
|
|
22777
|
+
return self._ImageUrl
|
|
22778
|
+
|
|
22779
|
+
@ImageUrl.setter
|
|
22780
|
+
def ImageUrl(self, ImageUrl):
|
|
22781
|
+
self._ImageUrl = ImageUrl
|
|
22782
|
+
|
|
22783
|
+
@property
|
|
22784
|
+
def ImageBase64(self):
|
|
22785
|
+
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22786
|
+
:rtype: str
|
|
22787
|
+
"""
|
|
22788
|
+
return self._ImageBase64
|
|
22789
|
+
|
|
22790
|
+
@ImageBase64.setter
|
|
22791
|
+
def ImageBase64(self, ImageBase64):
|
|
22792
|
+
self._ImageBase64 = ImageBase64
|
|
22793
|
+
|
|
22794
|
+
@property
|
|
22795
|
+
def IsPdf(self):
|
|
22796
|
+
r"""是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
22797
|
+
:rtype: bool
|
|
22798
|
+
"""
|
|
22799
|
+
return self._IsPdf
|
|
22800
|
+
|
|
22801
|
+
@IsPdf.setter
|
|
22802
|
+
def IsPdf(self, IsPdf):
|
|
22803
|
+
self._IsPdf = IsPdf
|
|
22804
|
+
|
|
22805
|
+
@property
|
|
22806
|
+
def PdfPageNumber(self):
|
|
22807
|
+
r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
22808
|
+
:rtype: int
|
|
22809
|
+
"""
|
|
22810
|
+
return self._PdfPageNumber
|
|
22811
|
+
|
|
22812
|
+
@PdfPageNumber.setter
|
|
22813
|
+
def PdfPageNumber(self, PdfPageNumber):
|
|
22814
|
+
self._PdfPageNumber = PdfPageNumber
|
|
22815
|
+
|
|
22816
|
+
@property
|
|
22817
|
+
def EnableImageCrop(self):
|
|
22818
|
+
r"""是否开启切边增强和弯曲矫正,默认为false不开启
|
|
22819
|
+
:rtype: bool
|
|
22820
|
+
"""
|
|
22821
|
+
return self._EnableImageCrop
|
|
22822
|
+
|
|
22823
|
+
@EnableImageCrop.setter
|
|
22824
|
+
def EnableImageCrop(self, EnableImageCrop):
|
|
22825
|
+
self._EnableImageCrop = EnableImageCrop
|
|
22826
|
+
|
|
22827
|
+
@property
|
|
22828
|
+
def UseNewModel(self):
|
|
22829
|
+
r"""false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
|
|
22830
|
+
:rtype: bool
|
|
22831
|
+
"""
|
|
22832
|
+
return self._UseNewModel
|
|
22833
|
+
|
|
22834
|
+
@UseNewModel.setter
|
|
22835
|
+
def UseNewModel(self, UseNewModel):
|
|
22836
|
+
self._UseNewModel = UseNewModel
|
|
22837
|
+
|
|
22838
|
+
|
|
22839
|
+
def _deserialize(self, params):
|
|
22840
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
22841
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
22842
|
+
self._IsPdf = params.get("IsPdf")
|
|
22843
|
+
self._PdfPageNumber = params.get("PdfPageNumber")
|
|
22844
|
+
self._EnableImageCrop = params.get("EnableImageCrop")
|
|
22845
|
+
self._UseNewModel = params.get("UseNewModel")
|
|
22846
|
+
memeber_set = set(params.keys())
|
|
22847
|
+
for name, value in vars(self).items():
|
|
22848
|
+
property_name = name[1:]
|
|
22849
|
+
if property_name in memeber_set:
|
|
22850
|
+
memeber_set.remove(property_name)
|
|
22851
|
+
if len(memeber_set) > 0:
|
|
22852
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22853
|
+
|
|
22854
|
+
|
|
22855
|
+
|
|
22856
|
+
class QuestionSplitLayoutOCRResponse(AbstractModel):
|
|
22857
|
+
r"""QuestionSplitLayoutOCR返回参数结构体
|
|
22858
|
+
|
|
22859
|
+
"""
|
|
22860
|
+
|
|
22861
|
+
def __init__(self):
|
|
22862
|
+
r"""
|
|
22863
|
+
:param _QuestionInfo: 检测到的文本信息
|
|
22864
|
+
:type QuestionInfo: list of QuestionInfo
|
|
22865
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22866
|
+
:type RequestId: str
|
|
22867
|
+
"""
|
|
22868
|
+
self._QuestionInfo = None
|
|
22869
|
+
self._RequestId = None
|
|
22870
|
+
|
|
22871
|
+
@property
|
|
22872
|
+
def QuestionInfo(self):
|
|
22873
|
+
r"""检测到的文本信息
|
|
22874
|
+
:rtype: list of QuestionInfo
|
|
22875
|
+
"""
|
|
22876
|
+
return self._QuestionInfo
|
|
22877
|
+
|
|
22878
|
+
@QuestionInfo.setter
|
|
22879
|
+
def QuestionInfo(self, QuestionInfo):
|
|
22880
|
+
self._QuestionInfo = QuestionInfo
|
|
22881
|
+
|
|
22882
|
+
@property
|
|
22883
|
+
def RequestId(self):
|
|
22884
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22885
|
+
:rtype: str
|
|
22886
|
+
"""
|
|
22887
|
+
return self._RequestId
|
|
22888
|
+
|
|
22889
|
+
@RequestId.setter
|
|
22890
|
+
def RequestId(self, RequestId):
|
|
22891
|
+
self._RequestId = RequestId
|
|
22892
|
+
|
|
22893
|
+
|
|
22894
|
+
def _deserialize(self, params):
|
|
22895
|
+
if params.get("QuestionInfo") is not None:
|
|
22896
|
+
self._QuestionInfo = []
|
|
22897
|
+
for item in params.get("QuestionInfo"):
|
|
22898
|
+
obj = QuestionInfo()
|
|
22899
|
+
obj._deserialize(item)
|
|
22900
|
+
self._QuestionInfo.append(obj)
|
|
22901
|
+
self._RequestId = params.get("RequestId")
|
|
22902
|
+
|
|
22903
|
+
|
|
22745
22904
|
class QuestionSplitOCRRequest(AbstractModel):
|
|
22746
22905
|
r"""QuestionSplitOCR请求参数结构体
|
|
22747
22906
|
|
|
@@ -1535,6 +1535,31 @@ class OcrClient(AbstractClient):
|
|
|
1535
1535
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1536
1536
|
|
|
1537
1537
|
|
|
1538
|
+
def QuestionSplitLayoutOCR(self, request):
|
|
1539
|
+
r"""试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
|
|
1540
|
+
|
|
1541
|
+
默认接口请求频率限制:2次/秒。
|
|
1542
|
+
|
|
1543
|
+
:param request: Request instance for QuestionSplitLayoutOCR.
|
|
1544
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.QuestionSplitLayoutOCRRequest`
|
|
1545
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.QuestionSplitLayoutOCRResponse`
|
|
1546
|
+
|
|
1547
|
+
"""
|
|
1548
|
+
try:
|
|
1549
|
+
params = request._serialize()
|
|
1550
|
+
headers = request.headers
|
|
1551
|
+
body = self.call("QuestionSplitLayoutOCR", params, headers=headers)
|
|
1552
|
+
response = json.loads(body)
|
|
1553
|
+
model = models.QuestionSplitLayoutOCRResponse()
|
|
1554
|
+
model._deserialize(response["Response"])
|
|
1555
|
+
return model
|
|
1556
|
+
except Exception as e:
|
|
1557
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1558
|
+
raise
|
|
1559
|
+
else:
|
|
1560
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1561
|
+
|
|
1562
|
+
|
|
1538
1563
|
def QuestionSplitOCR(self, request):
|
|
1539
1564
|
r"""试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
|
|
1540
1565
|
|
|
@@ -19249,11 +19249,25 @@ class SetExternalSAMLIdentityProviderResponse(AbstractModel):
|
|
|
19249
19249
|
|
|
19250
19250
|
def __init__(self):
|
|
19251
19251
|
r"""
|
|
19252
|
+
:param _CertificateIds: 证书ID。
|
|
19253
|
+
:type CertificateIds: list of str
|
|
19252
19254
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19253
19255
|
:type RequestId: str
|
|
19254
19256
|
"""
|
|
19257
|
+
self._CertificateIds = None
|
|
19255
19258
|
self._RequestId = None
|
|
19256
19259
|
|
|
19260
|
+
@property
|
|
19261
|
+
def CertificateIds(self):
|
|
19262
|
+
r"""证书ID。
|
|
19263
|
+
:rtype: list of str
|
|
19264
|
+
"""
|
|
19265
|
+
return self._CertificateIds
|
|
19266
|
+
|
|
19267
|
+
@CertificateIds.setter
|
|
19268
|
+
def CertificateIds(self, CertificateIds):
|
|
19269
|
+
self._CertificateIds = CertificateIds
|
|
19270
|
+
|
|
19257
19271
|
@property
|
|
19258
19272
|
def RequestId(self):
|
|
19259
19273
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -19267,6 +19281,7 @@ class SetExternalSAMLIdentityProviderResponse(AbstractModel):
|
|
|
19267
19281
|
|
|
19268
19282
|
|
|
19269
19283
|
def _deserialize(self, params):
|
|
19284
|
+
self._CertificateIds = params.get("CertificateIds")
|
|
19270
19285
|
self._RequestId = params.get("RequestId")
|
|
19271
19286
|
|
|
19272
19287
|
|