tencentcloud-sdk-python 3.0.1081__py2.py3-none-any.whl → 3.0.1083__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.

Files changed (50) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ccc/v20200210/ccc_client.py +1 -1
  3. tencentcloud/cdb/v20170320/cdb_client.py +1 -1
  4. tencentcloud/cdb/v20170320/errorcodes.py +3 -0
  5. tencentcloud/cdb/v20170320/models.py +38 -1
  6. tencentcloud/cdwdoris/v20211228/models.py +39 -0
  7. tencentcloud/cfw/v20190904/models.py +316 -26
  8. tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
  9. tencentcloud/cynosdb/v20190107/models.py +440 -0
  10. tencentcloud/dasb/v20191018/models.py +26 -0
  11. tencentcloud/emr/v20190103/models.py +26 -0
  12. tencentcloud/es/v20180416/models.py +12 -0
  13. tencentcloud/ess/v20201111/ess_client.py +36 -2
  14. tencentcloud/ess/v20201111/models.py +169 -15
  15. tencentcloud/essbasic/v20210526/essbasic_client.py +42 -1
  16. tencentcloud/essbasic/v20210526/models.py +185 -11
  17. tencentcloud/hai/v20230812/errorcodes.py +3 -0
  18. tencentcloud/iss/v20230517/models.py +4 -2
  19. tencentcloud/kms/v20190118/models.py +1 -1
  20. tencentcloud/monitor/v20180724/models.py +28 -1
  21. tencentcloud/mps/v20190612/errorcodes.py +3 -0
  22. tencentcloud/mps/v20190612/models.py +55 -17
  23. tencentcloud/mps/v20190612/mps_client.py +2 -1
  24. tencentcloud/ocr/v20181119/models.py +475 -2
  25. tencentcloud/ocr/v20181119/ocr_client.py +74 -0
  26. tencentcloud/postgres/v20170312/models.py +5 -5
  27. tencentcloud/scf/v20180416/errorcodes.py +3 -0
  28. tencentcloud/tag/v20180813/models.py +24 -0
  29. tencentcloud/teo/v20220901/errorcodes.py +15 -0
  30. tencentcloud/teo/v20220901/models.py +2165 -665
  31. tencentcloud/teo/v20220901/teo_client.py +230 -0
  32. tencentcloud/tione/v20211111/errorcodes.py +9 -0
  33. tencentcloud/tione/v20211111/models.py +53 -34
  34. tencentcloud/tione/v20211111/tione_client.py +6 -6
  35. tencentcloud/tmt/v20180321/models.py +1 -1
  36. tencentcloud/tmt/v20180321/tmt_client.py +1 -1
  37. tencentcloud/trtc/v20190722/models.py +15 -3
  38. tencentcloud/trtc/v20190722/trtc_client.py +2 -2
  39. tencentcloud/vod/v20180717/models.py +67 -0
  40. tencentcloud/waf/v20180125/errorcodes.py +3 -0
  41. tencentcloud/waf/v20180125/models.py +792 -162
  42. tencentcloud/waf/v20180125/waf_client.py +29 -7
  43. tencentcloud/wedata/v20210820/errorcodes.py +18 -0
  44. tencentcloud/wedata/v20210820/models.py +87321 -44139
  45. tencentcloud/wedata/v20210820/wedata_client.py +6598 -1971
  46. {tencentcloud_sdk_python-3.0.1081.dist-info → tencentcloud_sdk_python-3.0.1083.dist-info}/METADATA +1 -1
  47. {tencentcloud_sdk_python-3.0.1081.dist-info → tencentcloud_sdk_python-3.0.1083.dist-info}/RECORD +50 -50
  48. {tencentcloud_sdk_python-3.0.1081.dist-info → tencentcloud_sdk_python-3.0.1083.dist-info}/LICENSE +0 -0
  49. {tencentcloud_sdk_python-3.0.1081.dist-info → tencentcloud_sdk_python-3.0.1083.dist-info}/WHEEL +0 -0
  50. {tencentcloud_sdk_python-3.0.1081.dist-info → tencentcloud_sdk_python-3.0.1083.dist-info}/top_level.txt +0 -0
@@ -1467,7 +1467,7 @@ class BizLicenseOCRRequest(AbstractModel):
1467
1467
  图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1468
1468
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1469
1469
  :type ImageUrl: str
1470
- :param _EnableCopyWarn: 是否返回黑白复印件告警码,默认为false
1470
+ :param _EnableCopyWarn: 是否返回告警码,默认为false
1471
1471
  :type EnableCopyWarn: bool
1472
1472
  """
1473
1473
  self._ImageBase64 = None
@@ -1546,7 +1546,7 @@ class BizLicenseOCRResponse(AbstractModel):
1546
1546
  :type RecognizeWarnCode: list of int
1547
1547
  :param _RecognizeWarnMsg: 告警码说明:
1548
1548
  WARN_COPY_CARD 黑白复印件告警
1549
- WARN_RESHOOT_SCREENED_CARD 翻拍件告警
1549
+ WARN_RESHOOT_CARD翻拍件告警
1550
1550
  :type RecognizeWarnMsg: list of str
1551
1551
  :param _IsDuplication: 是否为副本。1为是,-1为不是。
1552
1552
  :type IsDuplication: int
@@ -5213,6 +5213,92 @@ class ElectronicTrainTicketFull(AbstractModel):
5213
5213
 
5214
5214
 
5215
5215
 
5216
+ class Encryption(AbstractModel):
5217
+ """敏感数据加密
5218
+
5219
+ """
5220
+
5221
+ def __init__(self):
5222
+ r"""
5223
+ :param _CiphertextBlob: 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅数据加密 文档。
5224
+ 注意:此字段可能返回 null,表示取不到有效值。
5225
+ :type CiphertextBlob: str
5226
+ :param _Iv: 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
5227
+ 注意:此字段可能返回 null,表示取不到有效值。
5228
+ :type Iv: str
5229
+ :param _Algorithm: 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
5230
+ 注意:此字段可能返回 null,表示取不到有效值。
5231
+ :type Algorithm: str
5232
+ :param _TagList: SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
5233
+ 注意:此字段可能返回 null,表示取不到有效值。
5234
+ :type TagList: list of str
5235
+ :param _EncryptList: 在使用加密服务时,指定要被加密的字段。本接口默认为EncryptedBody
5236
+ 注意:此字段可能返回 null,表示取不到有效值。
5237
+ :type EncryptList: list of str
5238
+ """
5239
+ self._CiphertextBlob = None
5240
+ self._Iv = None
5241
+ self._Algorithm = None
5242
+ self._TagList = None
5243
+ self._EncryptList = None
5244
+
5245
+ @property
5246
+ def CiphertextBlob(self):
5247
+ return self._CiphertextBlob
5248
+
5249
+ @CiphertextBlob.setter
5250
+ def CiphertextBlob(self, CiphertextBlob):
5251
+ self._CiphertextBlob = CiphertextBlob
5252
+
5253
+ @property
5254
+ def Iv(self):
5255
+ return self._Iv
5256
+
5257
+ @Iv.setter
5258
+ def Iv(self, Iv):
5259
+ self._Iv = Iv
5260
+
5261
+ @property
5262
+ def Algorithm(self):
5263
+ return self._Algorithm
5264
+
5265
+ @Algorithm.setter
5266
+ def Algorithm(self, Algorithm):
5267
+ self._Algorithm = Algorithm
5268
+
5269
+ @property
5270
+ def TagList(self):
5271
+ return self._TagList
5272
+
5273
+ @TagList.setter
5274
+ def TagList(self, TagList):
5275
+ self._TagList = TagList
5276
+
5277
+ @property
5278
+ def EncryptList(self):
5279
+ return self._EncryptList
5280
+
5281
+ @EncryptList.setter
5282
+ def EncryptList(self, EncryptList):
5283
+ self._EncryptList = EncryptList
5284
+
5285
+
5286
+ def _deserialize(self, params):
5287
+ self._CiphertextBlob = params.get("CiphertextBlob")
5288
+ self._Iv = params.get("Iv")
5289
+ self._Algorithm = params.get("Algorithm")
5290
+ self._TagList = params.get("TagList")
5291
+ self._EncryptList = params.get("EncryptList")
5292
+ memeber_set = set(params.keys())
5293
+ for name, value in vars(self).items():
5294
+ property_name = name[1:]
5295
+ if property_name in memeber_set:
5296
+ memeber_set.remove(property_name)
5297
+ if len(memeber_set) > 0:
5298
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5299
+
5300
+
5301
+
5216
5302
  class EnglishOCRRequest(AbstractModel):
5217
5303
  """EnglishOCR请求参数结构体
5218
5304
 
@@ -9963,9 +10049,13 @@ class MLIDPassportOCRRequest(AbstractModel):
9963
10049
  :type ImageBase64: str
9964
10050
  :param _RetImage: 是否返回图片,默认false
9965
10051
  :type RetImage: bool
10052
+ :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
10053
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
10054
+ :type ImageUrl: str
9966
10055
  """
9967
10056
  self._ImageBase64 = None
9968
10057
  self._RetImage = None
10058
+ self._ImageUrl = None
9969
10059
 
9970
10060
  @property
9971
10061
  def ImageBase64(self):
@@ -9983,10 +10073,19 @@ class MLIDPassportOCRRequest(AbstractModel):
9983
10073
  def RetImage(self, RetImage):
9984
10074
  self._RetImage = RetImage
9985
10075
 
10076
+ @property
10077
+ def ImageUrl(self):
10078
+ return self._ImageUrl
10079
+
10080
+ @ImageUrl.setter
10081
+ def ImageUrl(self, ImageUrl):
10082
+ self._ImageUrl = ImageUrl
10083
+
9986
10084
 
9987
10085
  def _deserialize(self, params):
9988
10086
  self._ImageBase64 = params.get("ImageBase64")
9989
10087
  self._RetImage = params.get("RetImage")
10088
+ self._ImageUrl = params.get("ImageUrl")
9990
10089
  memeber_set = set(params.keys())
9991
10090
  for name, value in vars(self).items():
9992
10091
  property_name = name[1:]
@@ -13369,6 +13468,18 @@ class PassportRecognizeInfos(AbstractModel):
13369
13468
  :type DateOfIssuance: str
13370
13469
  :param _DateOfExpiration: 截止日期(护照信息页识别结果)
13371
13470
  :type DateOfExpiration: str
13471
+ :param _Signature: 持证人签名(护照信息页识别结果)
13472
+
13473
+ 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
13474
+ :type Signature: str
13475
+ :param _IssuePlace: 签发地点(护照信息页识别结果)
13476
+
13477
+ 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
13478
+ :type IssuePlace: str
13479
+ :param _IssuingAuthority: 签发机关(护照信息页识别结果)
13480
+
13481
+ 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
13482
+ :type IssuingAuthority: str
13372
13483
  """
13373
13484
  self._Type = None
13374
13485
  self._IssuingCountry = None
@@ -13381,6 +13492,9 @@ class PassportRecognizeInfos(AbstractModel):
13381
13492
  self._Sex = None
13382
13493
  self._DateOfIssuance = None
13383
13494
  self._DateOfExpiration = None
13495
+ self._Signature = None
13496
+ self._IssuePlace = None
13497
+ self._IssuingAuthority = None
13384
13498
 
13385
13499
  @property
13386
13500
  def Type(self):
@@ -13470,6 +13584,30 @@ class PassportRecognizeInfos(AbstractModel):
13470
13584
  def DateOfExpiration(self, DateOfExpiration):
13471
13585
  self._DateOfExpiration = DateOfExpiration
13472
13586
 
13587
+ @property
13588
+ def Signature(self):
13589
+ return self._Signature
13590
+
13591
+ @Signature.setter
13592
+ def Signature(self, Signature):
13593
+ self._Signature = Signature
13594
+
13595
+ @property
13596
+ def IssuePlace(self):
13597
+ return self._IssuePlace
13598
+
13599
+ @IssuePlace.setter
13600
+ def IssuePlace(self, IssuePlace):
13601
+ self._IssuePlace = IssuePlace
13602
+
13603
+ @property
13604
+ def IssuingAuthority(self):
13605
+ return self._IssuingAuthority
13606
+
13607
+ @IssuingAuthority.setter
13608
+ def IssuingAuthority(self, IssuingAuthority):
13609
+ self._IssuingAuthority = IssuingAuthority
13610
+
13473
13611
 
13474
13612
  def _deserialize(self, params):
13475
13613
  self._Type = params.get("Type")
@@ -13483,6 +13621,9 @@ class PassportRecognizeInfos(AbstractModel):
13483
13621
  self._Sex = params.get("Sex")
13484
13622
  self._DateOfIssuance = params.get("DateOfIssuance")
13485
13623
  self._DateOfExpiration = params.get("DateOfExpiration")
13624
+ self._Signature = params.get("Signature")
13625
+ self._IssuePlace = params.get("IssuePlace")
13626
+ self._IssuingAuthority = params.get("IssuingAuthority")
13486
13627
  memeber_set = set(params.keys())
13487
13628
  for name, value in vars(self).items():
13488
13629
  property_name = name[1:]
@@ -15203,6 +15344,338 @@ class RecognizeContainerOCRResponse(AbstractModel):
15203
15344
  self._RequestId = params.get("RequestId")
15204
15345
 
15205
15346
 
15347
+ class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
15348
+ """RecognizeEncryptedIDCardOCR请求参数结构体
15349
+
15350
+ """
15351
+
15352
+ def __init__(self):
15353
+ r"""
15354
+ :param _EncryptedBody: 请求体被加密后的密文,本接口只支持加密传输
15355
+ :type EncryptedBody: str
15356
+ :param _Encryption: 敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。
15357
+ :type Encryption: :class:`tencentcloud.ocr.v20181119.models.Encryption`
15358
+ :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
15359
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15360
+ :type ImageBase64: str
15361
+ :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
15362
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
15363
+ :type ImageUrl: str
15364
+ :param _CardSide: FRONT:身份证有照片的一面(人像面),
15365
+ BACK:身份证有国徽的一面(国徽面),
15366
+ 该参数如果不填,将为您自动判断身份证正反面。
15367
+ :type CardSide: str
15368
+ :param _Config: 以下可选字段均为bool 类型,默认false:
15369
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
15370
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
15371
+ CopyWarn,复印件告警
15372
+ BorderCheckWarn,边框和框内遮挡告警
15373
+ ReshootWarn,翻拍告警
15374
+ DetectPsWarn,疑似存在PS痕迹告警
15375
+ TempIdWarn,临时身份证告警
15376
+ InvalidDateWarn,身份证有效日期不合法告警
15377
+ Quality,图片质量分数(评价图片的模糊程度)
15378
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
15379
+ ReflectWarn,是否开启反光检测
15380
+
15381
+ SDK 设置方式参考:
15382
+ Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
15383
+ API 3.0 Explorer 设置方式参考:
15384
+ Config = {"CropIdCard":true,"CropPortrait":true}
15385
+ :type Config: str
15386
+ :param _EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
15387
+ :type EnableRecognitionRectify: bool
15388
+ :param _EnableReflectDetail: 默认值为false。
15389
+
15390
+ 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
15391
+ :type EnableReflectDetail: bool
15392
+ """
15393
+ self._EncryptedBody = None
15394
+ self._Encryption = None
15395
+ self._ImageBase64 = None
15396
+ self._ImageUrl = None
15397
+ self._CardSide = None
15398
+ self._Config = None
15399
+ self._EnableRecognitionRectify = None
15400
+ self._EnableReflectDetail = None
15401
+
15402
+ @property
15403
+ def EncryptedBody(self):
15404
+ return self._EncryptedBody
15405
+
15406
+ @EncryptedBody.setter
15407
+ def EncryptedBody(self, EncryptedBody):
15408
+ self._EncryptedBody = EncryptedBody
15409
+
15410
+ @property
15411
+ def Encryption(self):
15412
+ return self._Encryption
15413
+
15414
+ @Encryption.setter
15415
+ def Encryption(self, Encryption):
15416
+ self._Encryption = Encryption
15417
+
15418
+ @property
15419
+ def ImageBase64(self):
15420
+ return self._ImageBase64
15421
+
15422
+ @ImageBase64.setter
15423
+ def ImageBase64(self, ImageBase64):
15424
+ self._ImageBase64 = ImageBase64
15425
+
15426
+ @property
15427
+ def ImageUrl(self):
15428
+ return self._ImageUrl
15429
+
15430
+ @ImageUrl.setter
15431
+ def ImageUrl(self, ImageUrl):
15432
+ self._ImageUrl = ImageUrl
15433
+
15434
+ @property
15435
+ def CardSide(self):
15436
+ return self._CardSide
15437
+
15438
+ @CardSide.setter
15439
+ def CardSide(self, CardSide):
15440
+ self._CardSide = CardSide
15441
+
15442
+ @property
15443
+ def Config(self):
15444
+ return self._Config
15445
+
15446
+ @Config.setter
15447
+ def Config(self, Config):
15448
+ self._Config = Config
15449
+
15450
+ @property
15451
+ def EnableRecognitionRectify(self):
15452
+ return self._EnableRecognitionRectify
15453
+
15454
+ @EnableRecognitionRectify.setter
15455
+ def EnableRecognitionRectify(self, EnableRecognitionRectify):
15456
+ self._EnableRecognitionRectify = EnableRecognitionRectify
15457
+
15458
+ @property
15459
+ def EnableReflectDetail(self):
15460
+ return self._EnableReflectDetail
15461
+
15462
+ @EnableReflectDetail.setter
15463
+ def EnableReflectDetail(self, EnableReflectDetail):
15464
+ self._EnableReflectDetail = EnableReflectDetail
15465
+
15466
+
15467
+ def _deserialize(self, params):
15468
+ self._EncryptedBody = params.get("EncryptedBody")
15469
+ if params.get("Encryption") is not None:
15470
+ self._Encryption = Encryption()
15471
+ self._Encryption._deserialize(params.get("Encryption"))
15472
+ self._ImageBase64 = params.get("ImageBase64")
15473
+ self._ImageUrl = params.get("ImageUrl")
15474
+ self._CardSide = params.get("CardSide")
15475
+ self._Config = params.get("Config")
15476
+ self._EnableRecognitionRectify = params.get("EnableRecognitionRectify")
15477
+ self._EnableReflectDetail = params.get("EnableReflectDetail")
15478
+ memeber_set = set(params.keys())
15479
+ for name, value in vars(self).items():
15480
+ property_name = name[1:]
15481
+ if property_name in memeber_set:
15482
+ memeber_set.remove(property_name)
15483
+ if len(memeber_set) > 0:
15484
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15485
+
15486
+
15487
+
15488
+ class RecognizeEncryptedIDCardOCRResponse(AbstractModel):
15489
+ """RecognizeEncryptedIDCardOCR返回参数结构体
15490
+
15491
+ """
15492
+
15493
+ def __init__(self):
15494
+ r"""
15495
+ :param _Name: 姓名(人像面)
15496
+ :type Name: str
15497
+ :param _Sex: 性别(人像面)
15498
+ :type Sex: str
15499
+ :param _Nation: 民族(人像面)
15500
+ :type Nation: str
15501
+ :param _Birth: 出生日期(人像面)
15502
+ :type Birth: str
15503
+ :param _Address: 地址(人像面)
15504
+ :type Address: str
15505
+ :param _IdNum: 身份证号(人像面)
15506
+ :type IdNum: str
15507
+ :param _Authority: 发证机关(国徽面)
15508
+ :type Authority: str
15509
+ :param _ValidDate: 证件有效期(国徽面)
15510
+ :type ValidDate: str
15511
+ :param _AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
15512
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
15513
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
15514
+
15515
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
15516
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
15517
+
15518
+ WarnInfos,告警信息,Code 告警码列表和释义:
15519
+ -9100 身份证有效日期不合法告警,
15520
+ -9101 身份证边框不完整告警,
15521
+ -9102 身份证复印件告警,
15522
+ -9103 身份证翻拍告警,
15523
+ -9105 身份证框内遮挡告警,
15524
+ -9104 临时身份证告警,
15525
+ -9106 身份证疑似存在PS痕迹告警,
15526
+ -9107 身份证反光告警。
15527
+ :type AdvancedInfo: str
15528
+ :param _ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
15529
+ :type ReflectDetailInfos: list of ReflectDetailInfo
15530
+ :param _EncryptedBody: 加密后的数据
15531
+ :type EncryptedBody: str
15532
+ :param _Encryption: 敏感数据加密信息
15533
+ :type Encryption: :class:`tencentcloud.ocr.v20181119.models.Encryption`
15534
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
15535
+ :type RequestId: str
15536
+ """
15537
+ self._Name = None
15538
+ self._Sex = None
15539
+ self._Nation = None
15540
+ self._Birth = None
15541
+ self._Address = None
15542
+ self._IdNum = None
15543
+ self._Authority = None
15544
+ self._ValidDate = None
15545
+ self._AdvancedInfo = None
15546
+ self._ReflectDetailInfos = None
15547
+ self._EncryptedBody = None
15548
+ self._Encryption = None
15549
+ self._RequestId = None
15550
+
15551
+ @property
15552
+ def Name(self):
15553
+ return self._Name
15554
+
15555
+ @Name.setter
15556
+ def Name(self, Name):
15557
+ self._Name = Name
15558
+
15559
+ @property
15560
+ def Sex(self):
15561
+ return self._Sex
15562
+
15563
+ @Sex.setter
15564
+ def Sex(self, Sex):
15565
+ self._Sex = Sex
15566
+
15567
+ @property
15568
+ def Nation(self):
15569
+ return self._Nation
15570
+
15571
+ @Nation.setter
15572
+ def Nation(self, Nation):
15573
+ self._Nation = Nation
15574
+
15575
+ @property
15576
+ def Birth(self):
15577
+ return self._Birth
15578
+
15579
+ @Birth.setter
15580
+ def Birth(self, Birth):
15581
+ self._Birth = Birth
15582
+
15583
+ @property
15584
+ def Address(self):
15585
+ return self._Address
15586
+
15587
+ @Address.setter
15588
+ def Address(self, Address):
15589
+ self._Address = Address
15590
+
15591
+ @property
15592
+ def IdNum(self):
15593
+ return self._IdNum
15594
+
15595
+ @IdNum.setter
15596
+ def IdNum(self, IdNum):
15597
+ self._IdNum = IdNum
15598
+
15599
+ @property
15600
+ def Authority(self):
15601
+ return self._Authority
15602
+
15603
+ @Authority.setter
15604
+ def Authority(self, Authority):
15605
+ self._Authority = Authority
15606
+
15607
+ @property
15608
+ def ValidDate(self):
15609
+ return self._ValidDate
15610
+
15611
+ @ValidDate.setter
15612
+ def ValidDate(self, ValidDate):
15613
+ self._ValidDate = ValidDate
15614
+
15615
+ @property
15616
+ def AdvancedInfo(self):
15617
+ return self._AdvancedInfo
15618
+
15619
+ @AdvancedInfo.setter
15620
+ def AdvancedInfo(self, AdvancedInfo):
15621
+ self._AdvancedInfo = AdvancedInfo
15622
+
15623
+ @property
15624
+ def ReflectDetailInfos(self):
15625
+ return self._ReflectDetailInfos
15626
+
15627
+ @ReflectDetailInfos.setter
15628
+ def ReflectDetailInfos(self, ReflectDetailInfos):
15629
+ self._ReflectDetailInfos = ReflectDetailInfos
15630
+
15631
+ @property
15632
+ def EncryptedBody(self):
15633
+ return self._EncryptedBody
15634
+
15635
+ @EncryptedBody.setter
15636
+ def EncryptedBody(self, EncryptedBody):
15637
+ self._EncryptedBody = EncryptedBody
15638
+
15639
+ @property
15640
+ def Encryption(self):
15641
+ return self._Encryption
15642
+
15643
+ @Encryption.setter
15644
+ def Encryption(self, Encryption):
15645
+ self._Encryption = Encryption
15646
+
15647
+ @property
15648
+ def RequestId(self):
15649
+ return self._RequestId
15650
+
15651
+ @RequestId.setter
15652
+ def RequestId(self, RequestId):
15653
+ self._RequestId = RequestId
15654
+
15655
+
15656
+ def _deserialize(self, params):
15657
+ self._Name = params.get("Name")
15658
+ self._Sex = params.get("Sex")
15659
+ self._Nation = params.get("Nation")
15660
+ self._Birth = params.get("Birth")
15661
+ self._Address = params.get("Address")
15662
+ self._IdNum = params.get("IdNum")
15663
+ self._Authority = params.get("Authority")
15664
+ self._ValidDate = params.get("ValidDate")
15665
+ self._AdvancedInfo = params.get("AdvancedInfo")
15666
+ if params.get("ReflectDetailInfos") is not None:
15667
+ self._ReflectDetailInfos = []
15668
+ for item in params.get("ReflectDetailInfos"):
15669
+ obj = ReflectDetailInfo()
15670
+ obj._deserialize(item)
15671
+ self._ReflectDetailInfos.append(obj)
15672
+ self._EncryptedBody = params.get("EncryptedBody")
15673
+ if params.get("Encryption") is not None:
15674
+ self._Encryption = Encryption()
15675
+ self._Encryption._deserialize(params.get("Encryption"))
15676
+ self._RequestId = params.get("RequestId")
15677
+
15678
+
15206
15679
  class RecognizeForeignPermanentResidentIdCardRequest(AbstractModel):
15207
15680
  """RecognizeForeignPermanentResidentIdCard请求参数结构体
15208
15681
 
@@ -1408,6 +1408,80 @@ class OcrClient(AbstractClient):
1408
1408
  raise TencentCloudSDKException(type(e).__name__, str(e))
1409
1409
 
1410
1410
 
1411
+ def RecognizeEncryptedIDCardOCR(self, request):
1412
+ """身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
1413
+
1414
+ 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
1415
+
1416
+ 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1417
+
1418
+ <table style="width:650px">
1419
+ <thead>
1420
+ <tr>
1421
+ <th width="150">增值能力</th>
1422
+ <th width="500">能力项</th>
1423
+ </tr>
1424
+ </thead>
1425
+ <tbody>
1426
+ <tr>
1427
+ <td rowspan="2">裁剪功能</td>
1428
+ <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
1429
+ </tr>
1430
+ <tr>
1431
+ <td>人像照片裁剪(自动抠取身份证头像区域)</td>
1432
+ </tr>
1433
+ <tr>
1434
+ <td rowspan="9">告警功能</td>
1435
+ <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
1436
+
1437
+ </td>
1438
+ </tr>
1439
+ <tr>
1440
+ <td>身份证边框不完整告警</td>
1441
+ </tr>
1442
+ <tr>
1443
+ <td>身份证复印件告警</td>
1444
+ </tr>
1445
+ <tr>
1446
+ <td>身份证翻拍告警</td>
1447
+ </tr>
1448
+ <tr>
1449
+ <td>身份证框内遮挡告警</td>
1450
+ </tr>
1451
+ <tr>
1452
+ <td>临时身份证告警</td>
1453
+ </tr>
1454
+ <tr>
1455
+ <td>身份证疑似存在PS痕迹告警</td>
1456
+ </tr>
1457
+ <tr>
1458
+ <td>图片模糊告警(可根据图片质量分数判断)</td>
1459
+ </tr>
1460
+ </tbody>
1461
+ </table>
1462
+
1463
+ 默认接口请求频率限制:20次/秒。
1464
+
1465
+ :param request: Request instance for RecognizeEncryptedIDCardOCR.
1466
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeEncryptedIDCardOCRRequest`
1467
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeEncryptedIDCardOCRResponse`
1468
+
1469
+ """
1470
+ try:
1471
+ params = request._serialize()
1472
+ headers = request.headers
1473
+ body = self.call("RecognizeEncryptedIDCardOCR", params, headers=headers)
1474
+ response = json.loads(body)
1475
+ model = models.RecognizeEncryptedIDCardOCRResponse()
1476
+ model._deserialize(response["Response"])
1477
+ return model
1478
+ except Exception as e:
1479
+ if isinstance(e, TencentCloudSDKException):
1480
+ raise
1481
+ else:
1482
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1483
+
1484
+
1411
1485
  def RecognizeForeignPermanentResidentIdCard(self, request):
1412
1486
  """外国人永久居留身份证识别
1413
1487
 
@@ -11331,8 +11331,8 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
11331
11331
  :param _Storage: 修改后的实例磁盘大小,单位GiB。
11332
11332
  :type Storage: int
11333
11333
  :param _AutoVoucher: 是否自动使用代金券:
11334
- <li>0:否
11335
- <li>1:是
11334
+ <li>0:否</li>
11335
+ <li>1:是</li>
11336
11336
  默认值:0
11337
11337
  :type AutoVoucher: int
11338
11338
  :param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
@@ -11340,9 +11340,9 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
11340
11340
  :param _ActivityId: 活动ID。
11341
11341
  :type ActivityId: int
11342
11342
  :param _SwitchTag: 指定实例配置完成变更后的切换时间。
11343
- <li>0:立即切换
11344
- <li>1:指定时间切换
11345
- <li>2:维护时间窗口内切换
11343
+ <li>0:立即切换 </li>
11344
+ <li>1:指定时间切换</li>
11345
+ <li>2:维护时间窗口内</li>切换
11346
11346
  默认值:0
11347
11347
  :type SwitchTag: int
11348
11348
  :param _SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
@@ -44,6 +44,9 @@ FAILEDOPERATION_CALLROLEFAILED = 'FailedOperation.CallRoleFailed'
44
44
  # CLS服务未注册。
45
45
  FAILEDOPERATION_CLSSERVICEUNREGISTERED = 'FailedOperation.ClsServiceUnregistered'
46
46
 
47
+ # 函数集群不存在。
48
+ FAILEDOPERATION_CLUSTERNOTFOUND = 'FailedOperation.ClusterNotFound'
49
+
47
50
  # CopyAsyncRun 传参异常。
48
51
  FAILEDOPERATION_COPYASYNCRUN = 'FailedOperation.CopyAsyncRun'
49
52