tencentcloud-sdk-python 3.0.1309__py2.py3-none-any.whl → 3.0.1311__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.
@@ -1435,6 +1435,56 @@ class OcrClient(AbstractClient):
1435
1435
  raise TencentCloudSDKException(type(e).__name__, str(e))
1436
1436
 
1437
1437
 
1438
+ def QuestionOCR(self, request):
1439
+ """题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
1440
+
1441
+ 默认接口请求频率限制:2次/秒。
1442
+
1443
+ :param request: Request instance for QuestionOCR.
1444
+ :type request: :class:`tencentcloud.ocr.v20181119.models.QuestionOCRRequest`
1445
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.QuestionOCRResponse`
1446
+
1447
+ """
1448
+ try:
1449
+ params = request._serialize()
1450
+ headers = request.headers
1451
+ body = self.call("QuestionOCR", params, headers=headers)
1452
+ response = json.loads(body)
1453
+ model = models.QuestionOCRResponse()
1454
+ model._deserialize(response["Response"])
1455
+ return model
1456
+ except Exception as e:
1457
+ if isinstance(e, TencentCloudSDKException):
1458
+ raise
1459
+ else:
1460
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1461
+
1462
+
1463
+ def QuestionSplitOCR(self, request):
1464
+ """试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1465
+
1466
+ 默认接口请求频率限制:2次/秒。
1467
+
1468
+ :param request: Request instance for QuestionSplitOCR.
1469
+ :type request: :class:`tencentcloud.ocr.v20181119.models.QuestionSplitOCRRequest`
1470
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.QuestionSplitOCRResponse`
1471
+
1472
+ """
1473
+ try:
1474
+ params = request._serialize()
1475
+ headers = request.headers
1476
+ body = self.call("QuestionSplitOCR", params, headers=headers)
1477
+ response = json.loads(body)
1478
+ model = models.QuestionSplitOCRResponse()
1479
+ model._deserialize(response["Response"])
1480
+ return model
1481
+ except Exception as e:
1482
+ if isinstance(e, TencentCloudSDKException):
1483
+ raise
1484
+ else:
1485
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1486
+
1487
+
1438
1488
  def QuotaInvoiceOCR(self, request):
1439
1489
  """本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
1440
1490
 
@@ -1581,20 +1631,22 @@ class OcrClient(AbstractClient):
1581
1631
  raise TencentCloudSDKException(type(e).__name__, str(e))
1582
1632
 
1583
1633
 
1584
- def RecognizeGeneralCardWarn(self, request):
1585
- """支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
1634
+ def RecognizeFormulaOCR(self, request):
1635
+ """公式识别是教育的基础OCR识别能力,可支持理科(数学、物理、化学、生物)的印刷体和手写体的公式识别。
1636
+
1637
+ 默认接口请求频率限制:2次/秒。
1586
1638
 
1587
- :param request: Request instance for RecognizeGeneralCardWarn.
1588
- :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralCardWarnRequest`
1589
- :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralCardWarnResponse`
1639
+ :param request: Request instance for RecognizeFormulaOCR.
1640
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeFormulaOCRRequest`
1641
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeFormulaOCRResponse`
1590
1642
 
1591
1643
  """
1592
1644
  try:
1593
1645
  params = request._serialize()
1594
1646
  headers = request.headers
1595
- body = self.call("RecognizeGeneralCardWarn", params, headers=headers)
1647
+ body = self.call("RecognizeFormulaOCR", params, headers=headers)
1596
1648
  response = json.loads(body)
1597
- model = models.RecognizeGeneralCardWarnResponse()
1649
+ model = models.RecognizeFormulaOCRResponse()
1598
1650
  model._deserialize(response["Response"])
1599
1651
  return model
1600
1652
  except Exception as e:
@@ -999,11 +999,81 @@ class CreateReceiverDetailResponse(AbstractModel):
999
999
 
1000
1000
  def __init__(self):
1001
1001
  r"""
1002
+ :param _TotalCount: 收件人总数
1003
+ :type TotalCount: int
1004
+ :param _ValidCount: 实际上传数量
1005
+ :type ValidCount: int
1006
+ :param _TooLongCount: 数据过长数量
1007
+ :type TooLongCount: int
1008
+ :param _EmptyEmailCount: 邮件地址为空数量
1009
+ :type EmptyEmailCount: int
1010
+ :param _RepeatCount: 重复数量
1011
+ :type RepeatCount: int
1002
1012
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1003
1013
  :type RequestId: str
1004
1014
  """
1015
+ self._TotalCount = None
1016
+ self._ValidCount = None
1017
+ self._TooLongCount = None
1018
+ self._EmptyEmailCount = None
1019
+ self._RepeatCount = None
1005
1020
  self._RequestId = None
1006
1021
 
1022
+ @property
1023
+ def TotalCount(self):
1024
+ """收件人总数
1025
+ :rtype: int
1026
+ """
1027
+ return self._TotalCount
1028
+
1029
+ @TotalCount.setter
1030
+ def TotalCount(self, TotalCount):
1031
+ self._TotalCount = TotalCount
1032
+
1033
+ @property
1034
+ def ValidCount(self):
1035
+ """实际上传数量
1036
+ :rtype: int
1037
+ """
1038
+ return self._ValidCount
1039
+
1040
+ @ValidCount.setter
1041
+ def ValidCount(self, ValidCount):
1042
+ self._ValidCount = ValidCount
1043
+
1044
+ @property
1045
+ def TooLongCount(self):
1046
+ """数据过长数量
1047
+ :rtype: int
1048
+ """
1049
+ return self._TooLongCount
1050
+
1051
+ @TooLongCount.setter
1052
+ def TooLongCount(self, TooLongCount):
1053
+ self._TooLongCount = TooLongCount
1054
+
1055
+ @property
1056
+ def EmptyEmailCount(self):
1057
+ """邮件地址为空数量
1058
+ :rtype: int
1059
+ """
1060
+ return self._EmptyEmailCount
1061
+
1062
+ @EmptyEmailCount.setter
1063
+ def EmptyEmailCount(self, EmptyEmailCount):
1064
+ self._EmptyEmailCount = EmptyEmailCount
1065
+
1066
+ @property
1067
+ def RepeatCount(self):
1068
+ """重复数量
1069
+ :rtype: int
1070
+ """
1071
+ return self._RepeatCount
1072
+
1073
+ @RepeatCount.setter
1074
+ def RepeatCount(self, RepeatCount):
1075
+ self._RepeatCount = RepeatCount
1076
+
1007
1077
  @property
1008
1078
  def RequestId(self):
1009
1079
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -1017,6 +1087,11 @@ class CreateReceiverDetailResponse(AbstractModel):
1017
1087
 
1018
1088
 
1019
1089
  def _deserialize(self, params):
1090
+ self._TotalCount = params.get("TotalCount")
1091
+ self._ValidCount = params.get("ValidCount")
1092
+ self._TooLongCount = params.get("TooLongCount")
1093
+ self._EmptyEmailCount = params.get("EmptyEmailCount")
1094
+ self._RepeatCount = params.get("RepeatCount")
1020
1095
  self._RequestId = params.get("RequestId")
1021
1096
 
1022
1097
 
@@ -1935,15 +2010,16 @@ class EmailSender(AbstractModel):
1935
2010
  :param _EmailAddress: 发信地址
1936
2011
  :type EmailAddress: str
1937
2012
  :param _EmailSenderName: 发信人别名
1938
- 注意:此字段可能返回 null,表示取不到有效值。
1939
2013
  :type EmailSenderName: str
1940
2014
  :param _CreatedTimestamp: 创建时间
1941
- 注意:此字段可能返回 null,表示取不到有效值。
1942
2015
  :type CreatedTimestamp: int
2016
+ :param _SmtpPwdType: smtp密码类型,0=没有设置密码,1=已经设置了密码
2017
+ :type SmtpPwdType: int
1943
2018
  """
1944
2019
  self._EmailAddress = None
1945
2020
  self._EmailSenderName = None
1946
2021
  self._CreatedTimestamp = None
2022
+ self._SmtpPwdType = None
1947
2023
 
1948
2024
  @property
1949
2025
  def EmailAddress(self):
@@ -1959,7 +2035,6 @@ class EmailSender(AbstractModel):
1959
2035
  @property
1960
2036
  def EmailSenderName(self):
1961
2037
  """发信人别名
1962
- 注意:此字段可能返回 null,表示取不到有效值。
1963
2038
  :rtype: str
1964
2039
  """
1965
2040
  return self._EmailSenderName
@@ -1971,7 +2046,6 @@ class EmailSender(AbstractModel):
1971
2046
  @property
1972
2047
  def CreatedTimestamp(self):
1973
2048
  """创建时间
1974
- 注意:此字段可能返回 null,表示取不到有效值。
1975
2049
  :rtype: int
1976
2050
  """
1977
2051
  return self._CreatedTimestamp
@@ -1980,11 +2054,23 @@ class EmailSender(AbstractModel):
1980
2054
  def CreatedTimestamp(self, CreatedTimestamp):
1981
2055
  self._CreatedTimestamp = CreatedTimestamp
1982
2056
 
2057
+ @property
2058
+ def SmtpPwdType(self):
2059
+ """smtp密码类型,0=没有设置密码,1=已经设置了密码
2060
+ :rtype: int
2061
+ """
2062
+ return self._SmtpPwdType
2063
+
2064
+ @SmtpPwdType.setter
2065
+ def SmtpPwdType(self, SmtpPwdType):
2066
+ self._SmtpPwdType = SmtpPwdType
2067
+
1983
2068
 
1984
2069
  def _deserialize(self, params):
1985
2070
  self._EmailAddress = params.get("EmailAddress")
1986
2071
  self._EmailSenderName = params.get("EmailSenderName")
1987
2072
  self._CreatedTimestamp = params.get("CreatedTimestamp")
2073
+ self._SmtpPwdType = params.get("SmtpPwdType")
1988
2074
  memeber_set = set(params.keys())
1989
2075
  for name, value in vars(self).items():
1990
2076
  property_name = name[1:]
@@ -2842,7 +2928,6 @@ class ListEmailAddressResponse(AbstractModel):
2842
2928
  def __init__(self):
2843
2929
  r"""
2844
2930
  :param _EmailSenders: 发信地址列表详情
2845
- 注意:此字段可能返回 null,表示取不到有效值。
2846
2931
  :type EmailSenders: list of EmailSender
2847
2932
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2848
2933
  :type RequestId: str
@@ -2853,7 +2938,6 @@ class ListEmailAddressResponse(AbstractModel):
2853
2938
  @property
2854
2939
  def EmailSenders(self):
2855
2940
  """发信地址列表详情
2856
- 注意:此字段可能返回 null,表示取不到有效值。
2857
2941
  :rtype: list of EmailSender
2858
2942
  """
2859
2943
  return self._EmailSenders
@@ -3923,7 +4007,7 @@ class SendEmailRequest(AbstractModel):
3923
4007
  :type ReplyToAddresses: str
3924
4008
  :param _Cc: 抄送人邮箱地址,最多支持抄送20人。
3925
4009
  :type Cc: list of str
3926
- :param _Bcc: 密送人邮箱地址,最多支持抄送20人。
4010
+ :param _Bcc: 密送人邮箱地址,最多支持抄送20人,Bcc和Destination不能重复。
3927
4011
  :type Bcc: list of str
3928
4012
  :param _Template: 使用模板发送时,填写模板相关参数。
3929
4013
  <dx-alert infotype="notice" title="注意"> 如您未申请过特殊配置,则该字段为必填 </dx-alert>
@@ -4013,7 +4097,7 @@ class SendEmailRequest(AbstractModel):
4013
4097
 
4014
4098
  @property
4015
4099
  def Bcc(self):
4016
- """密送人邮箱地址,最多支持抄送20人。
4100
+ """密送人邮箱地址,最多支持抄送20人,Bcc和Destination不能重复。
4017
4101
  :rtype: list of str
4018
4102
  """
4019
4103
  return self._Bcc
@@ -609,7 +609,7 @@ class TeoClient(AbstractClient):
609
609
 
610
610
 
611
611
  def CreateRule(self, request):
612
- """规则引擎创建规则。
612
+ """本接口为旧版,EdgeOne 已对规则引擎相关接口全面升级,详情请参考 [CreateL7AccRules](https://cloud.tencent.com/document/product/1552/115822)。
613
613
 
614
614
  :param request: Request instance for CreateRule.
615
615
  :type request: :class:`tencentcloud.teo.v20220901.models.CreateRuleRequest`
@@ -3067,7 +3067,7 @@ class TeoClient(AbstractClient):
3067
3067
 
3068
3068
 
3069
3069
  def ModifyRule(self, request):
3070
- """修改规则引擎规则。
3070
+ """本接口为旧版,EdgeOne 已对规则引擎相关接口全面升级,详情请参考 [ModifyL7AccRule](https://cloud.tencent.com/document/product/1552/115818)。
3071
3071
 
3072
3072
  :param request: Request instance for ModifyRule.
3073
3073
  :type request: :class:`tencentcloud.teo.v20220901.models.ModifyRuleRequest`