tencentcloud-sdk-python 3.0.1403__py2.py3-none-any.whl → 3.0.1404__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1403'
17
+ __version__ = '3.0.1404'
@@ -5887,7 +5887,7 @@ class ModifyFileSystemAutoScaleUpRuleResponse(AbstractModel):
5887
5887
  :type Status: int
5888
5888
  :param _ScaleUpThreshold: 扩容阈值,范围[10-90]
5889
5889
  :type ScaleUpThreshold: int
5890
- :param _TargetThreshold: 扩容后达到阈值,范围[10-90]
5890
+ :param _TargetThreshold: 扩容后达到阈值,范围[1-90]
5891
5891
  :type TargetThreshold: int
5892
5892
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5893
5893
  :type RequestId: str
@@ -5933,7 +5933,7 @@ class ModifyFileSystemAutoScaleUpRuleResponse(AbstractModel):
5933
5933
 
5934
5934
  @property
5935
5935
  def TargetThreshold(self):
5936
- """扩容后达到阈值,范围[10-90]
5936
+ """扩容后达到阈值,范围[1-90]
5937
5937
  :rtype: int
5938
5938
  """
5939
5939
  return self._TargetThreshold
@@ -25152,7 +25152,7 @@ class RateMsgRecordRequest(AbstractModel):
25152
25152
  r"""
25153
25153
  :param _BotAppKey: 应用appKey
25154
25154
  :type BotAppKey: str
25155
- :param _RecordId: 消息ID
25155
+ :param _RecordId: 消息ID 【大模型回复答案的RecordID】
25156
25156
  :type RecordId: str
25157
25157
  :param _Score: 1点赞2点踩
25158
25158
  :type Score: int
@@ -25177,7 +25177,7 @@ class RateMsgRecordRequest(AbstractModel):
25177
25177
 
25178
25178
  @property
25179
25179
  def RecordId(self):
25180
- """消息ID
25180
+ """消息ID 【大模型回复答案的RecordID】
25181
25181
  :rtype: str
25182
25182
  """
25183
25183
  return self._RecordId
@@ -1753,6 +1753,69 @@ class AdaptiveStreamTemplate(AbstractModel):
1753
1753
 
1754
1754
 
1755
1755
 
1756
+ class AddBlindWatermarkConfig(AbstractModel):
1757
+ """增加盲水印配置
1758
+
1759
+ """
1760
+
1761
+ def __init__(self):
1762
+ r"""
1763
+ :param _Switch: 能力配置开关,可选值:
1764
+ <li>ON:开启;</li>
1765
+ <li>OFF:关闭。</li>
1766
+ 默认值:ON。
1767
+ 注意:此字段可能返回 null,表示取不到有效值。
1768
+ :type Switch: str
1769
+ :param _EmbedInfo: 盲水印嵌入数据
1770
+ 注意:此字段可能返回 null,表示取不到有效值。
1771
+ :type EmbedInfo: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkEmbedInfo`
1772
+ """
1773
+ self._Switch = None
1774
+ self._EmbedInfo = None
1775
+
1776
+ @property
1777
+ def Switch(self):
1778
+ """能力配置开关,可选值:
1779
+ <li>ON:开启;</li>
1780
+ <li>OFF:关闭。</li>
1781
+ 默认值:ON。
1782
+ 注意:此字段可能返回 null,表示取不到有效值。
1783
+ :rtype: str
1784
+ """
1785
+ return self._Switch
1786
+
1787
+ @Switch.setter
1788
+ def Switch(self, Switch):
1789
+ self._Switch = Switch
1790
+
1791
+ @property
1792
+ def EmbedInfo(self):
1793
+ """盲水印嵌入数据
1794
+ 注意:此字段可能返回 null,表示取不到有效值。
1795
+ :rtype: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkEmbedInfo`
1796
+ """
1797
+ return self._EmbedInfo
1798
+
1799
+ @EmbedInfo.setter
1800
+ def EmbedInfo(self, EmbedInfo):
1801
+ self._EmbedInfo = EmbedInfo
1802
+
1803
+
1804
+ def _deserialize(self, params):
1805
+ self._Switch = params.get("Switch")
1806
+ if params.get("EmbedInfo") is not None:
1807
+ self._EmbedInfo = BlindWatermarkEmbedInfo()
1808
+ self._EmbedInfo._deserialize(params.get("EmbedInfo"))
1809
+ memeber_set = set(params.keys())
1810
+ for name, value in vars(self).items():
1811
+ property_name = name[1:]
1812
+ if property_name in memeber_set:
1813
+ memeber_set.remove(property_name)
1814
+ if len(memeber_set) > 0:
1815
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1816
+
1817
+
1818
+
1756
1819
  class AddOnSubtitle(AbstractModel):
1757
1820
  """外挂字幕。
1758
1821
 
@@ -12798,6 +12861,122 @@ class BatchSubTaskResult(AbstractModel):
12798
12861
 
12799
12862
 
12800
12863
 
12864
+ class BlindWatermarkConfig(AbstractModel):
12865
+ """盲水印配置
12866
+
12867
+ """
12868
+
12869
+ def __init__(self):
12870
+ r"""
12871
+ :param _AddBlindWatermark: 增加盲水印
12872
+ 注意:此字段可能返回 null,表示取不到有效值。
12873
+ :type AddBlindWatermark: :class:`tencentcloud.mps.v20190612.models.AddBlindWatermarkConfig`
12874
+ :param _ExtractBlindWatermark: 提取盲水印
12875
+ 注意:此字段可能返回 null,表示取不到有效值。
12876
+ :type ExtractBlindWatermark: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkConfig`
12877
+ :param _RemoveBlindWatermark: 移除盲水印
12878
+ 注意:此字段可能返回 null,表示取不到有效值。
12879
+ :type RemoveBlindWatermark: :class:`tencentcloud.mps.v20190612.models.RemoveBlindWatermarkConfig`
12880
+ """
12881
+ self._AddBlindWatermark = None
12882
+ self._ExtractBlindWatermark = None
12883
+ self._RemoveBlindWatermark = None
12884
+
12885
+ @property
12886
+ def AddBlindWatermark(self):
12887
+ """增加盲水印
12888
+ 注意:此字段可能返回 null,表示取不到有效值。
12889
+ :rtype: :class:`tencentcloud.mps.v20190612.models.AddBlindWatermarkConfig`
12890
+ """
12891
+ return self._AddBlindWatermark
12892
+
12893
+ @AddBlindWatermark.setter
12894
+ def AddBlindWatermark(self, AddBlindWatermark):
12895
+ self._AddBlindWatermark = AddBlindWatermark
12896
+
12897
+ @property
12898
+ def ExtractBlindWatermark(self):
12899
+ """提取盲水印
12900
+ 注意:此字段可能返回 null,表示取不到有效值。
12901
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkConfig`
12902
+ """
12903
+ return self._ExtractBlindWatermark
12904
+
12905
+ @ExtractBlindWatermark.setter
12906
+ def ExtractBlindWatermark(self, ExtractBlindWatermark):
12907
+ self._ExtractBlindWatermark = ExtractBlindWatermark
12908
+
12909
+ @property
12910
+ def RemoveBlindWatermark(self):
12911
+ """移除盲水印
12912
+ 注意:此字段可能返回 null,表示取不到有效值。
12913
+ :rtype: :class:`tencentcloud.mps.v20190612.models.RemoveBlindWatermarkConfig`
12914
+ """
12915
+ return self._RemoveBlindWatermark
12916
+
12917
+ @RemoveBlindWatermark.setter
12918
+ def RemoveBlindWatermark(self, RemoveBlindWatermark):
12919
+ self._RemoveBlindWatermark = RemoveBlindWatermark
12920
+
12921
+
12922
+ def _deserialize(self, params):
12923
+ if params.get("AddBlindWatermark") is not None:
12924
+ self._AddBlindWatermark = AddBlindWatermarkConfig()
12925
+ self._AddBlindWatermark._deserialize(params.get("AddBlindWatermark"))
12926
+ if params.get("ExtractBlindWatermark") is not None:
12927
+ self._ExtractBlindWatermark = ExtractBlindWatermarkConfig()
12928
+ self._ExtractBlindWatermark._deserialize(params.get("ExtractBlindWatermark"))
12929
+ if params.get("RemoveBlindWatermark") is not None:
12930
+ self._RemoveBlindWatermark = RemoveBlindWatermarkConfig()
12931
+ self._RemoveBlindWatermark._deserialize(params.get("RemoveBlindWatermark"))
12932
+ memeber_set = set(params.keys())
12933
+ for name, value in vars(self).items():
12934
+ property_name = name[1:]
12935
+ if property_name in memeber_set:
12936
+ memeber_set.remove(property_name)
12937
+ if len(memeber_set) > 0:
12938
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12939
+
12940
+
12941
+
12942
+ class BlindWatermarkEmbedInfo(AbstractModel):
12943
+ """嵌入盲水印配置
12944
+
12945
+ """
12946
+
12947
+ def __init__(self):
12948
+ r"""
12949
+ :param _EmbedText: 盲水印文字,需要经过 URL 安全的 Base64 编码。
12950
+ 注意:此字段可能返回 null,表示取不到有效值。
12951
+ :type EmbedText: str
12952
+ """
12953
+ self._EmbedText = None
12954
+
12955
+ @property
12956
+ def EmbedText(self):
12957
+ """盲水印文字,需要经过 URL 安全的 Base64 编码。
12958
+ 注意:此字段可能返回 null,表示取不到有效值。
12959
+ :rtype: str
12960
+ """
12961
+ return self._EmbedText
12962
+
12963
+ @EmbedText.setter
12964
+ def EmbedText(self, EmbedText):
12965
+ self._EmbedText = EmbedText
12966
+
12967
+
12968
+ def _deserialize(self, params):
12969
+ self._EmbedText = params.get("EmbedText")
12970
+ memeber_set = set(params.keys())
12971
+ for name, value in vars(self).items():
12972
+ property_name = name[1:]
12973
+ if property_name in memeber_set:
12974
+ memeber_set.remove(property_name)
12975
+ if len(memeber_set) > 0:
12976
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12977
+
12978
+
12979
+
12801
12980
  class ClassificationConfigureInfo(AbstractModel):
12802
12981
  """智能分类任务控制参数
12803
12982
 
@@ -33208,6 +33387,50 @@ class ExpressionConfigInfo(AbstractModel):
33208
33387
 
33209
33388
 
33210
33389
 
33390
+ class ExtractBlindWatermarkConfig(AbstractModel):
33391
+ """提取盲水印配置
33392
+
33393
+ """
33394
+
33395
+ def __init__(self):
33396
+ r"""
33397
+ :param _Switch: 能力配置开关,可选值:
33398
+ <li>ON:开启;</li>
33399
+ <li>OFF:关闭。</li>
33400
+ 默认值:ON。
33401
+ 注意:此字段可能返回 null,表示取不到有效值。
33402
+ :type Switch: str
33403
+ """
33404
+ self._Switch = None
33405
+
33406
+ @property
33407
+ def Switch(self):
33408
+ """能力配置开关,可选值:
33409
+ <li>ON:开启;</li>
33410
+ <li>OFF:关闭。</li>
33411
+ 默认值:ON。
33412
+ 注意:此字段可能返回 null,表示取不到有效值。
33413
+ :rtype: str
33414
+ """
33415
+ return self._Switch
33416
+
33417
+ @Switch.setter
33418
+ def Switch(self, Switch):
33419
+ self._Switch = Switch
33420
+
33421
+
33422
+ def _deserialize(self, params):
33423
+ self._Switch = params.get("Switch")
33424
+ memeber_set = set(params.keys())
33425
+ for name, value in vars(self).items():
33426
+ property_name = name[1:]
33427
+ if property_name in memeber_set:
33428
+ memeber_set.remove(property_name)
33429
+ if len(memeber_set) > 0:
33430
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
33431
+
33432
+
33433
+
33211
33434
  class FaceConfigureInfo(AbstractModel):
33212
33435
  """人脸识别任务控制参数
33213
33436
 
@@ -36702,10 +36925,14 @@ class ImageTaskInput(AbstractModel):
36702
36925
  :param _EraseConfig: 图片擦除配置。
36703
36926
  注意:此字段可能返回 null,表示取不到有效值。
36704
36927
  :type EraseConfig: :class:`tencentcloud.mps.v20190612.models.ImageEraseConfig`
36928
+ :param _BlindWatermarkConfig: 盲水印配置。
36929
+ 注意:此字段可能返回 null,表示取不到有效值。
36930
+ :type BlindWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkConfig`
36705
36931
  """
36706
36932
  self._EncodeConfig = None
36707
36933
  self._EnhanceConfig = None
36708
36934
  self._EraseConfig = None
36935
+ self._BlindWatermarkConfig = None
36709
36936
 
36710
36937
  @property
36711
36938
  def EncodeConfig(self):
@@ -36743,6 +36970,18 @@ class ImageTaskInput(AbstractModel):
36743
36970
  def EraseConfig(self, EraseConfig):
36744
36971
  self._EraseConfig = EraseConfig
36745
36972
 
36973
+ @property
36974
+ def BlindWatermarkConfig(self):
36975
+ """盲水印配置。
36976
+ 注意:此字段可能返回 null,表示取不到有效值。
36977
+ :rtype: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkConfig`
36978
+ """
36979
+ return self._BlindWatermarkConfig
36980
+
36981
+ @BlindWatermarkConfig.setter
36982
+ def BlindWatermarkConfig(self, BlindWatermarkConfig):
36983
+ self._BlindWatermarkConfig = BlindWatermarkConfig
36984
+
36746
36985
 
36747
36986
  def _deserialize(self, params):
36748
36987
  if params.get("EncodeConfig") is not None:
@@ -36754,6 +36993,9 @@ class ImageTaskInput(AbstractModel):
36754
36993
  if params.get("EraseConfig") is not None:
36755
36994
  self._EraseConfig = ImageEraseConfig()
36756
36995
  self._EraseConfig._deserialize(params.get("EraseConfig"))
36996
+ if params.get("BlindWatermarkConfig") is not None:
36997
+ self._BlindWatermarkConfig = BlindWatermarkConfig()
36998
+ self._BlindWatermarkConfig._deserialize(params.get("BlindWatermarkConfig"))
36757
36999
  memeber_set = set(params.keys())
36758
37000
  for name, value in vars(self).items():
36759
37001
  property_name = name[1:]
@@ -53933,6 +54175,50 @@ class RegionInfo(AbstractModel):
53933
54175
 
53934
54176
 
53935
54177
 
54178
+ class RemoveBlindWatermarkConfig(AbstractModel):
54179
+ """移除盲水印配置
54180
+
54181
+ """
54182
+
54183
+ def __init__(self):
54184
+ r"""
54185
+ :param _Switch: 能力配置开关,可选值:
54186
+ <li>ON:开启;</li>
54187
+ <li>OFF:关闭。</li>
54188
+ 默认值:ON。
54189
+ 注意:此字段可能返回 null,表示取不到有效值。
54190
+ :type Switch: str
54191
+ """
54192
+ self._Switch = None
54193
+
54194
+ @property
54195
+ def Switch(self):
54196
+ """能力配置开关,可选值:
54197
+ <li>ON:开启;</li>
54198
+ <li>OFF:关闭。</li>
54199
+ 默认值:ON。
54200
+ 注意:此字段可能返回 null,表示取不到有效值。
54201
+ :rtype: str
54202
+ """
54203
+ return self._Switch
54204
+
54205
+ @Switch.setter
54206
+ def Switch(self, Switch):
54207
+ self._Switch = Switch
54208
+
54209
+
54210
+ def _deserialize(self, params):
54211
+ self._Switch = params.get("Switch")
54212
+ memeber_set = set(params.keys())
54213
+ for name, value in vars(self).items():
54214
+ property_name = name[1:]
54215
+ if property_name in memeber_set:
54216
+ memeber_set.remove(property_name)
54217
+ if len(memeber_set) > 0:
54218
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
54219
+
54220
+
54221
+
53936
54222
  class ResetWorkflowRequest(AbstractModel):
53937
54223
  """ResetWorkflow请求参数结构体
53938
54224
 
@@ -30779,575 +30779,6 @@ class SmartStructuralOCRResponse(AbstractModel):
30779
30779
  self._RequestId = params.get("RequestId")
30780
30780
 
30781
30781
 
30782
- class SmartStructuralOCRV2Request(AbstractModel):
30783
- """SmartStructuralOCRV2请求参数结构体
30784
-
30785
- """
30786
-
30787
- def __init__(self):
30788
- r"""
30789
- :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
30790
- :type ImageUrl: str
30791
- :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
30792
- :type ImageBase64: str
30793
- :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
30794
- :type IsPdf: bool
30795
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
30796
- :type PdfPageNumber: int
30797
- :param _ItemNames: 自定义结构化功能需返回的字段名称,例:
30798
- 若客户只想返回姓名、性别两个字段的识别结果,则输入
30799
- ItemNames=["姓名","性别"]
30800
- :type ItemNames: list of str
30801
- :param _ReturnFullText: 是否开启全文字段识别
30802
- :type ReturnFullText: bool
30803
- :param _ConfigId: 配置id支持:
30804
- General -- 通用场景
30805
- OnlineTaxiItinerary -- 网约车行程单
30806
- RideHailingDriverLicense -- 网约车驾驶证
30807
- RideHailingTransportLicense -- 网约车运输证
30808
- WayBill -- 快递运单
30809
- AccountOpeningPermit -- 银行开户许可证
30810
- InvoiceEng -- 海外发票模版
30811
- Coin --钱币识别模板
30812
- OnboardingDocuments -- 入职材料识别
30813
- PropertyOwnershipCertificate -- 房产证识别
30814
- RealEstateCertificate --不动产权证识别
30815
- HouseEncumbranceCertificate -- 他权证识别
30816
- CarInsurance -- 车险保单
30817
- MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板
30818
- :type ConfigId: str
30819
- :param _EnableSealRecognize: 是否打开印章识别
30820
- :type EnableSealRecognize: bool
30821
- """
30822
- self._ImageUrl = None
30823
- self._ImageBase64 = None
30824
- self._IsPdf = None
30825
- self._PdfPageNumber = None
30826
- self._ItemNames = None
30827
- self._ReturnFullText = None
30828
- self._ConfigId = None
30829
- self._EnableSealRecognize = None
30830
-
30831
- @property
30832
- def ImageUrl(self):
30833
- """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
30834
- :rtype: str
30835
- """
30836
- return self._ImageUrl
30837
-
30838
- @ImageUrl.setter
30839
- def ImageUrl(self, ImageUrl):
30840
- self._ImageUrl = ImageUrl
30841
-
30842
- @property
30843
- def ImageBase64(self):
30844
- """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
30845
- :rtype: str
30846
- """
30847
- return self._ImageBase64
30848
-
30849
- @ImageBase64.setter
30850
- def ImageBase64(self, ImageBase64):
30851
- self._ImageBase64 = ImageBase64
30852
-
30853
- @property
30854
- def IsPdf(self):
30855
- """是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
30856
- :rtype: bool
30857
- """
30858
- return self._IsPdf
30859
-
30860
- @IsPdf.setter
30861
- def IsPdf(self, IsPdf):
30862
- self._IsPdf = IsPdf
30863
-
30864
- @property
30865
- def PdfPageNumber(self):
30866
- """需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
30867
- :rtype: int
30868
- """
30869
- return self._PdfPageNumber
30870
-
30871
- @PdfPageNumber.setter
30872
- def PdfPageNumber(self, PdfPageNumber):
30873
- self._PdfPageNumber = PdfPageNumber
30874
-
30875
- @property
30876
- def ItemNames(self):
30877
- """自定义结构化功能需返回的字段名称,例:
30878
- 若客户只想返回姓名、性别两个字段的识别结果,则输入
30879
- ItemNames=["姓名","性别"]
30880
- :rtype: list of str
30881
- """
30882
- return self._ItemNames
30883
-
30884
- @ItemNames.setter
30885
- def ItemNames(self, ItemNames):
30886
- self._ItemNames = ItemNames
30887
-
30888
- @property
30889
- def ReturnFullText(self):
30890
- """是否开启全文字段识别
30891
- :rtype: bool
30892
- """
30893
- return self._ReturnFullText
30894
-
30895
- @ReturnFullText.setter
30896
- def ReturnFullText(self, ReturnFullText):
30897
- self._ReturnFullText = ReturnFullText
30898
-
30899
- @property
30900
- def ConfigId(self):
30901
- """配置id支持:
30902
- General -- 通用场景
30903
- OnlineTaxiItinerary -- 网约车行程单
30904
- RideHailingDriverLicense -- 网约车驾驶证
30905
- RideHailingTransportLicense -- 网约车运输证
30906
- WayBill -- 快递运单
30907
- AccountOpeningPermit -- 银行开户许可证
30908
- InvoiceEng -- 海外发票模版
30909
- Coin --钱币识别模板
30910
- OnboardingDocuments -- 入职材料识别
30911
- PropertyOwnershipCertificate -- 房产证识别
30912
- RealEstateCertificate --不动产权证识别
30913
- HouseEncumbranceCertificate -- 他权证识别
30914
- CarInsurance -- 车险保单
30915
- MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板
30916
- :rtype: str
30917
- """
30918
- return self._ConfigId
30919
-
30920
- @ConfigId.setter
30921
- def ConfigId(self, ConfigId):
30922
- self._ConfigId = ConfigId
30923
-
30924
- @property
30925
- def EnableSealRecognize(self):
30926
- """是否打开印章识别
30927
- :rtype: bool
30928
- """
30929
- return self._EnableSealRecognize
30930
-
30931
- @EnableSealRecognize.setter
30932
- def EnableSealRecognize(self, EnableSealRecognize):
30933
- self._EnableSealRecognize = EnableSealRecognize
30934
-
30935
-
30936
- def _deserialize(self, params):
30937
- self._ImageUrl = params.get("ImageUrl")
30938
- self._ImageBase64 = params.get("ImageBase64")
30939
- self._IsPdf = params.get("IsPdf")
30940
- self._PdfPageNumber = params.get("PdfPageNumber")
30941
- self._ItemNames = params.get("ItemNames")
30942
- self._ReturnFullText = params.get("ReturnFullText")
30943
- self._ConfigId = params.get("ConfigId")
30944
- self._EnableSealRecognize = params.get("EnableSealRecognize")
30945
- memeber_set = set(params.keys())
30946
- for name, value in vars(self).items():
30947
- property_name = name[1:]
30948
- if property_name in memeber_set:
30949
- memeber_set.remove(property_name)
30950
- if len(memeber_set) > 0:
30951
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
30952
-
30953
-
30954
-
30955
- class SmartStructuralOCRV2Response(AbstractModel):
30956
- """SmartStructuralOCRV2返回参数结构体
30957
-
30958
- """
30959
-
30960
- def __init__(self):
30961
- r"""
30962
- :param _Angle: 图片旋转角度(角度制),文本的水平方向
30963
- 为 0;顺时针为正,逆时针为负
30964
- :type Angle: float
30965
- :param _StructuralList: 配置结构化文本信息
30966
- :type StructuralList: list of GroupInfo
30967
- :param _WordList: 还原文本信息
30968
- :type WordList: list of WordItem
30969
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
30970
- :type RequestId: str
30971
- """
30972
- self._Angle = None
30973
- self._StructuralList = None
30974
- self._WordList = None
30975
- self._RequestId = None
30976
-
30977
- @property
30978
- def Angle(self):
30979
- """图片旋转角度(角度制),文本的水平方向
30980
- 为 0;顺时针为正,逆时针为负
30981
- :rtype: float
30982
- """
30983
- return self._Angle
30984
-
30985
- @Angle.setter
30986
- def Angle(self, Angle):
30987
- self._Angle = Angle
30988
-
30989
- @property
30990
- def StructuralList(self):
30991
- """配置结构化文本信息
30992
- :rtype: list of GroupInfo
30993
- """
30994
- return self._StructuralList
30995
-
30996
- @StructuralList.setter
30997
- def StructuralList(self, StructuralList):
30998
- self._StructuralList = StructuralList
30999
-
31000
- @property
31001
- def WordList(self):
31002
- """还原文本信息
31003
- :rtype: list of WordItem
31004
- """
31005
- return self._WordList
31006
-
31007
- @WordList.setter
31008
- def WordList(self, WordList):
31009
- self._WordList = WordList
31010
-
31011
- @property
31012
- def RequestId(self):
31013
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31014
- :rtype: str
31015
- """
31016
- return self._RequestId
31017
-
31018
- @RequestId.setter
31019
- def RequestId(self, RequestId):
31020
- self._RequestId = RequestId
31021
-
31022
-
31023
- def _deserialize(self, params):
31024
- self._Angle = params.get("Angle")
31025
- if params.get("StructuralList") is not None:
31026
- self._StructuralList = []
31027
- for item in params.get("StructuralList"):
31028
- obj = GroupInfo()
31029
- obj._deserialize(item)
31030
- self._StructuralList.append(obj)
31031
- if params.get("WordList") is not None:
31032
- self._WordList = []
31033
- for item in params.get("WordList"):
31034
- obj = WordItem()
31035
- obj._deserialize(item)
31036
- self._WordList.append(obj)
31037
- self._RequestId = params.get("RequestId")
31038
-
31039
-
31040
- class SmartStructuralProRequest(AbstractModel):
31041
- """SmartStructuralPro请求参数结构体
31042
-
31043
- """
31044
-
31045
- def __init__(self):
31046
- r"""
31047
- :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
31048
- :type ImageUrl: str
31049
- :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
31050
- :type ImageBase64: str
31051
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
31052
- :type PdfPageNumber: int
31053
- :param _ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
31054
- :type ItemNames: list of str
31055
- :param _ItemNamesShowMode: true:仅输出自定义字段
31056
- flase:输出默认字段+自定义字段
31057
- 默认true
31058
- :type ItemNamesShowMode: bool
31059
- :param _ReturnFullText: 是否开启全文字段识别
31060
- :type ReturnFullText: bool
31061
- :param _ConfigId: 配置id支持:
31062
- General -- 通用场景
31063
- InvoiceEng -- 国际invoice模版
31064
- WayBillEng --海运订单模板
31065
- CustomsDeclaration -- 进出口报关单
31066
- WeightNote -- 磅单
31067
- MedicalMeter -- 血压仪表识别
31068
- BillOfLading -- 海运提单
31069
- EntrustmentBook -- 海运托书
31070
- WordRecognize -- 手写英文作文模版
31071
- Statement -- 对账单识别模板
31072
- BookingConfirmation -- 配舱通知书识别模板
31073
- AirWayBill -- 航空运单识别模板
31074
- DispatchWeightNote -- 磅单发货单识别模板
31075
- ReceiptWeightNote -- 磅单收货单识别模板
31076
- ArticalRecognize -- 手写作文模版
31077
- Table -- 表格模版
31078
- SteelLabel -- 实物标签识别模板
31079
- CarInsurance -- 车辆保险单识别模板
31080
- :type ConfigId: str
31081
- :param _EnableCoord: 是否开启全文字段坐标值的识别
31082
- :type EnableCoord: bool
31083
- :param _OutputParentKey: 是否开启父子key识别,默认是
31084
- :type OutputParentKey: bool
31085
- :param _ConfigAdvanced: 模版的单个属性配置
31086
- :type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
31087
- """
31088
- self._ImageUrl = None
31089
- self._ImageBase64 = None
31090
- self._PdfPageNumber = None
31091
- self._ItemNames = None
31092
- self._ItemNamesShowMode = None
31093
- self._ReturnFullText = None
31094
- self._ConfigId = None
31095
- self._EnableCoord = None
31096
- self._OutputParentKey = None
31097
- self._ConfigAdvanced = None
31098
-
31099
- @property
31100
- def ImageUrl(self):
31101
- """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
31102
- :rtype: str
31103
- """
31104
- return self._ImageUrl
31105
-
31106
- @ImageUrl.setter
31107
- def ImageUrl(self, ImageUrl):
31108
- self._ImageUrl = ImageUrl
31109
-
31110
- @property
31111
- def ImageBase64(self):
31112
- """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
31113
- :rtype: str
31114
- """
31115
- return self._ImageBase64
31116
-
31117
- @ImageBase64.setter
31118
- def ImageBase64(self, ImageBase64):
31119
- self._ImageBase64 = ImageBase64
31120
-
31121
- @property
31122
- def PdfPageNumber(self):
31123
- """需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
31124
- :rtype: int
31125
- """
31126
- return self._PdfPageNumber
31127
-
31128
- @PdfPageNumber.setter
31129
- def PdfPageNumber(self, PdfPageNumber):
31130
- self._PdfPageNumber = PdfPageNumber
31131
-
31132
- @property
31133
- def ItemNames(self):
31134
- """自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
31135
- :rtype: list of str
31136
- """
31137
- return self._ItemNames
31138
-
31139
- @ItemNames.setter
31140
- def ItemNames(self, ItemNames):
31141
- self._ItemNames = ItemNames
31142
-
31143
- @property
31144
- def ItemNamesShowMode(self):
31145
- """true:仅输出自定义字段
31146
- flase:输出默认字段+自定义字段
31147
- 默认true
31148
- :rtype: bool
31149
- """
31150
- return self._ItemNamesShowMode
31151
-
31152
- @ItemNamesShowMode.setter
31153
- def ItemNamesShowMode(self, ItemNamesShowMode):
31154
- self._ItemNamesShowMode = ItemNamesShowMode
31155
-
31156
- @property
31157
- def ReturnFullText(self):
31158
- """是否开启全文字段识别
31159
- :rtype: bool
31160
- """
31161
- return self._ReturnFullText
31162
-
31163
- @ReturnFullText.setter
31164
- def ReturnFullText(self, ReturnFullText):
31165
- self._ReturnFullText = ReturnFullText
31166
-
31167
- @property
31168
- def ConfigId(self):
31169
- """配置id支持:
31170
- General -- 通用场景
31171
- InvoiceEng -- 国际invoice模版
31172
- WayBillEng --海运订单模板
31173
- CustomsDeclaration -- 进出口报关单
31174
- WeightNote -- 磅单
31175
- MedicalMeter -- 血压仪表识别
31176
- BillOfLading -- 海运提单
31177
- EntrustmentBook -- 海运托书
31178
- WordRecognize -- 手写英文作文模版
31179
- Statement -- 对账单识别模板
31180
- BookingConfirmation -- 配舱通知书识别模板
31181
- AirWayBill -- 航空运单识别模板
31182
- DispatchWeightNote -- 磅单发货单识别模板
31183
- ReceiptWeightNote -- 磅单收货单识别模板
31184
- ArticalRecognize -- 手写作文模版
31185
- Table -- 表格模版
31186
- SteelLabel -- 实物标签识别模板
31187
- CarInsurance -- 车辆保险单识别模板
31188
- :rtype: str
31189
- """
31190
- return self._ConfigId
31191
-
31192
- @ConfigId.setter
31193
- def ConfigId(self, ConfigId):
31194
- self._ConfigId = ConfigId
31195
-
31196
- @property
31197
- def EnableCoord(self):
31198
- """是否开启全文字段坐标值的识别
31199
- :rtype: bool
31200
- """
31201
- return self._EnableCoord
31202
-
31203
- @EnableCoord.setter
31204
- def EnableCoord(self, EnableCoord):
31205
- self._EnableCoord = EnableCoord
31206
-
31207
- @property
31208
- def OutputParentKey(self):
31209
- """是否开启父子key识别,默认是
31210
- :rtype: bool
31211
- """
31212
- return self._OutputParentKey
31213
-
31214
- @OutputParentKey.setter
31215
- def OutputParentKey(self, OutputParentKey):
31216
- self._OutputParentKey = OutputParentKey
31217
-
31218
- @property
31219
- def ConfigAdvanced(self):
31220
- """模版的单个属性配置
31221
- :rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
31222
- """
31223
- return self._ConfigAdvanced
31224
-
31225
- @ConfigAdvanced.setter
31226
- def ConfigAdvanced(self, ConfigAdvanced):
31227
- self._ConfigAdvanced = ConfigAdvanced
31228
-
31229
-
31230
- def _deserialize(self, params):
31231
- self._ImageUrl = params.get("ImageUrl")
31232
- self._ImageBase64 = params.get("ImageBase64")
31233
- self._PdfPageNumber = params.get("PdfPageNumber")
31234
- self._ItemNames = params.get("ItemNames")
31235
- self._ItemNamesShowMode = params.get("ItemNamesShowMode")
31236
- self._ReturnFullText = params.get("ReturnFullText")
31237
- self._ConfigId = params.get("ConfigId")
31238
- self._EnableCoord = params.get("EnableCoord")
31239
- self._OutputParentKey = params.get("OutputParentKey")
31240
- if params.get("ConfigAdvanced") is not None:
31241
- self._ConfigAdvanced = ConfigAdvanced()
31242
- self._ConfigAdvanced._deserialize(params.get("ConfigAdvanced"))
31243
- memeber_set = set(params.keys())
31244
- for name, value in vars(self).items():
31245
- property_name = name[1:]
31246
- if property_name in memeber_set:
31247
- memeber_set.remove(property_name)
31248
- if len(memeber_set) > 0:
31249
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
31250
-
31251
-
31252
-
31253
- class SmartStructuralProResponse(AbstractModel):
31254
- """SmartStructuralPro返回参数结构体
31255
-
31256
- """
31257
-
31258
- def __init__(self):
31259
- r"""
31260
- :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
31261
- :type Angle: float
31262
- :param _StructuralList: 配置结构化文本信息
31263
- :type StructuralList: list of GroupInfo
31264
- :param _WordList: 还原文本信息
31265
- :type WordList: list of WordItem
31266
- :param _TokenNum: 识别出的token个数
31267
- :type TokenNum: int
31268
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31269
- :type RequestId: str
31270
- """
31271
- self._Angle = None
31272
- self._StructuralList = None
31273
- self._WordList = None
31274
- self._TokenNum = None
31275
- self._RequestId = None
31276
-
31277
- @property
31278
- def Angle(self):
31279
- """图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
31280
- :rtype: float
31281
- """
31282
- return self._Angle
31283
-
31284
- @Angle.setter
31285
- def Angle(self, Angle):
31286
- self._Angle = Angle
31287
-
31288
- @property
31289
- def StructuralList(self):
31290
- """配置结构化文本信息
31291
- :rtype: list of GroupInfo
31292
- """
31293
- return self._StructuralList
31294
-
31295
- @StructuralList.setter
31296
- def StructuralList(self, StructuralList):
31297
- self._StructuralList = StructuralList
31298
-
31299
- @property
31300
- def WordList(self):
31301
- """还原文本信息
31302
- :rtype: list of WordItem
31303
- """
31304
- return self._WordList
31305
-
31306
- @WordList.setter
31307
- def WordList(self, WordList):
31308
- self._WordList = WordList
31309
-
31310
- @property
31311
- def TokenNum(self):
31312
- """识别出的token个数
31313
- :rtype: int
31314
- """
31315
- return self._TokenNum
31316
-
31317
- @TokenNum.setter
31318
- def TokenNum(self, TokenNum):
31319
- self._TokenNum = TokenNum
31320
-
31321
- @property
31322
- def RequestId(self):
31323
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31324
- :rtype: str
31325
- """
31326
- return self._RequestId
31327
-
31328
- @RequestId.setter
31329
- def RequestId(self, RequestId):
31330
- self._RequestId = RequestId
31331
-
31332
-
31333
- def _deserialize(self, params):
31334
- self._Angle = params.get("Angle")
31335
- if params.get("StructuralList") is not None:
31336
- self._StructuralList = []
31337
- for item in params.get("StructuralList"):
31338
- obj = GroupInfo()
31339
- obj._deserialize(item)
31340
- self._StructuralList.append(obj)
31341
- if params.get("WordList") is not None:
31342
- self._WordList = []
31343
- for item in params.get("WordList"):
31344
- obj = WordItem()
31345
- obj._deserialize(item)
31346
- self._WordList.append(obj)
31347
- self._TokenNum = params.get("TokenNum")
31348
- self._RequestId = params.get("RequestId")
31349
-
31350
-
31351
30782
  class StoreInfo(AbstractModel):
31352
30783
  """门头照识别结果
31353
30784
 
@@ -2342,56 +2342,6 @@ class OcrClient(AbstractClient):
2342
2342
  raise TencentCloudSDKException(type(e).__name__, str(e))
2343
2343
 
2344
2344
 
2345
- def SmartStructuralOCRV2(self, request):
2346
- """本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
2347
-
2348
- 默认接口请求频率限制:5次/秒。
2349
-
2350
- :param request: Request instance for SmartStructuralOCRV2.
2351
- :type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralOCRV2Request`
2352
- :rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralOCRV2Response`
2353
-
2354
- """
2355
- try:
2356
- params = request._serialize()
2357
- headers = request.headers
2358
- body = self.call("SmartStructuralOCRV2", params, headers=headers)
2359
- response = json.loads(body)
2360
- model = models.SmartStructuralOCRV2Response()
2361
- model._deserialize(response["Response"])
2362
- return model
2363
- except Exception as e:
2364
- if isinstance(e, TencentCloudSDKException):
2365
- raise
2366
- else:
2367
- raise TencentCloudSDKException(type(e).__name__, str(e))
2368
-
2369
-
2370
- def SmartStructuralPro(self, request):
2371
- """本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
2372
-
2373
- 默认接口请求频率限制:5次/秒。
2374
-
2375
- :param request: Request instance for SmartStructuralPro.
2376
- :type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProRequest`
2377
- :rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProResponse`
2378
-
2379
- """
2380
- try:
2381
- params = request._serialize()
2382
- headers = request.headers
2383
- body = self.call("SmartStructuralPro", params, headers=headers)
2384
- response = json.loads(body)
2385
- model = models.SmartStructuralProResponse()
2386
- model._deserialize(response["Response"])
2387
- return model
2388
- except Exception as e:
2389
- if isinstance(e, TencentCloudSDKException):
2390
- raise
2391
- else:
2392
- raise TencentCloudSDKException(type(e).__name__, str(e))
2393
-
2394
-
2395
2345
  def TableOCR(self, request):
2396
2346
  """<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
2397
2347
 
@@ -155,6 +155,12 @@ FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWRESUBMIT = 'FailedOperation.Certificate
155
155
  # 证书当前状态不允许进行域名验证。
156
156
  FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWVERIFY = 'FailedOperation.CertificateStatusNotAllowVerify'
157
157
 
158
+ # 上传证书的托管续费证书不能手动提交订单
159
+ FAILEDOPERATION_CERTIFICATESUBMITHOSTINGCERTERROR = 'FailedOperation.CertificateSubmitHostingCertError'
160
+
161
+ # 证书操作参数无效,证书ID数量超过100。
162
+ FAILEDOPERATION_CERTIFICATESYNCTASKCERTIFICATEIDCOUNTINVALID = 'FailedOperation.CertificateSyncTaskCertificateIdCountInvalid'
163
+
158
164
  # 证书关联云资源查询任务ID无效
159
165
  FAILEDOPERATION_CERTIFICATESYNCTASKIDINVALID = 'FailedOperation.CertificateSyncTaskIdInvalid'
160
166
 
@@ -21323,6 +21323,187 @@ class UploadRevokeLetterResponse(AbstractModel):
21323
21323
  self._RequestId = params.get("RequestId")
21324
21324
 
21325
21325
 
21326
+ class UploadUpdateCertificateInstanceRequest(AbstractModel):
21327
+ """UploadUpdateCertificateInstance请求参数结构体
21328
+
21329
+ """
21330
+
21331
+ def __init__(self):
21332
+ r"""
21333
+ :param _OldCertificateId: 一键更新的旧证书ID。 通过查询该证书ID绑定的云资源,然后使用新证书对这些云资源进行更新
21334
+ :type OldCertificateId: str
21335
+ :param _ResourceTypes: 需要部署的资源类型,参数值可选(小写):clb
21336
+ :type ResourceTypes: list of str
21337
+ :param _CertificatePublicKey: 公钥证书
21338
+ :type CertificatePublicKey: str
21339
+ :param _CertificatePrivateKey: 私钥证书
21340
+ :type CertificatePrivateKey: str
21341
+ :param _ResourceTypesRegions: 云资源需要部署的地域列表,支持地域的云资源类型必传,取值:clb
21342
+ :type ResourceTypesRegions: list of ResourceTypeRegions
21343
+ """
21344
+ self._OldCertificateId = None
21345
+ self._ResourceTypes = None
21346
+ self._CertificatePublicKey = None
21347
+ self._CertificatePrivateKey = None
21348
+ self._ResourceTypesRegions = None
21349
+
21350
+ @property
21351
+ def OldCertificateId(self):
21352
+ """一键更新的旧证书ID。 通过查询该证书ID绑定的云资源,然后使用新证书对这些云资源进行更新
21353
+ :rtype: str
21354
+ """
21355
+ return self._OldCertificateId
21356
+
21357
+ @OldCertificateId.setter
21358
+ def OldCertificateId(self, OldCertificateId):
21359
+ self._OldCertificateId = OldCertificateId
21360
+
21361
+ @property
21362
+ def ResourceTypes(self):
21363
+ """需要部署的资源类型,参数值可选(小写):clb
21364
+ :rtype: list of str
21365
+ """
21366
+ return self._ResourceTypes
21367
+
21368
+ @ResourceTypes.setter
21369
+ def ResourceTypes(self, ResourceTypes):
21370
+ self._ResourceTypes = ResourceTypes
21371
+
21372
+ @property
21373
+ def CertificatePublicKey(self):
21374
+ """公钥证书
21375
+ :rtype: str
21376
+ """
21377
+ return self._CertificatePublicKey
21378
+
21379
+ @CertificatePublicKey.setter
21380
+ def CertificatePublicKey(self, CertificatePublicKey):
21381
+ self._CertificatePublicKey = CertificatePublicKey
21382
+
21383
+ @property
21384
+ def CertificatePrivateKey(self):
21385
+ """私钥证书
21386
+ :rtype: str
21387
+ """
21388
+ return self._CertificatePrivateKey
21389
+
21390
+ @CertificatePrivateKey.setter
21391
+ def CertificatePrivateKey(self, CertificatePrivateKey):
21392
+ self._CertificatePrivateKey = CertificatePrivateKey
21393
+
21394
+ @property
21395
+ def ResourceTypesRegions(self):
21396
+ """云资源需要部署的地域列表,支持地域的云资源类型必传,取值:clb
21397
+ :rtype: list of ResourceTypeRegions
21398
+ """
21399
+ return self._ResourceTypesRegions
21400
+
21401
+ @ResourceTypesRegions.setter
21402
+ def ResourceTypesRegions(self, ResourceTypesRegions):
21403
+ self._ResourceTypesRegions = ResourceTypesRegions
21404
+
21405
+
21406
+ def _deserialize(self, params):
21407
+ self._OldCertificateId = params.get("OldCertificateId")
21408
+ self._ResourceTypes = params.get("ResourceTypes")
21409
+ self._CertificatePublicKey = params.get("CertificatePublicKey")
21410
+ self._CertificatePrivateKey = params.get("CertificatePrivateKey")
21411
+ if params.get("ResourceTypesRegions") is not None:
21412
+ self._ResourceTypesRegions = []
21413
+ for item in params.get("ResourceTypesRegions"):
21414
+ obj = ResourceTypeRegions()
21415
+ obj._deserialize(item)
21416
+ self._ResourceTypesRegions.append(obj)
21417
+ memeber_set = set(params.keys())
21418
+ for name, value in vars(self).items():
21419
+ property_name = name[1:]
21420
+ if property_name in memeber_set:
21421
+ memeber_set.remove(property_name)
21422
+ if len(memeber_set) > 0:
21423
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21424
+
21425
+
21426
+
21427
+ class UploadUpdateCertificateInstanceResponse(AbstractModel):
21428
+ """UploadUpdateCertificateInstance返回参数结构体
21429
+
21430
+ """
21431
+
21432
+ def __init__(self):
21433
+ r"""
21434
+ :param _DeployRecordId: 云资源更新任务ID, DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
21435
+ :type DeployRecordId: int
21436
+ :param _DeployStatus: 更新任务创建状态;1表示创建成功; 0表示当前存在更新中的任务,未创建新的更新任务;返回值DeployRecordId为更新中的任务ID
21437
+ :type DeployStatus: int
21438
+ :param _UpdateSyncProgress: 更新异步创建任务进度详情
21439
+ 注意:此字段可能返回 null,表示取不到有效值。
21440
+ :type UpdateSyncProgress: list of UpdateSyncProgress
21441
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21442
+ :type RequestId: str
21443
+ """
21444
+ self._DeployRecordId = None
21445
+ self._DeployStatus = None
21446
+ self._UpdateSyncProgress = None
21447
+ self._RequestId = None
21448
+
21449
+ @property
21450
+ def DeployRecordId(self):
21451
+ """云资源更新任务ID, DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
21452
+ :rtype: int
21453
+ """
21454
+ return self._DeployRecordId
21455
+
21456
+ @DeployRecordId.setter
21457
+ def DeployRecordId(self, DeployRecordId):
21458
+ self._DeployRecordId = DeployRecordId
21459
+
21460
+ @property
21461
+ def DeployStatus(self):
21462
+ """更新任务创建状态;1表示创建成功; 0表示当前存在更新中的任务,未创建新的更新任务;返回值DeployRecordId为更新中的任务ID
21463
+ :rtype: int
21464
+ """
21465
+ return self._DeployStatus
21466
+
21467
+ @DeployStatus.setter
21468
+ def DeployStatus(self, DeployStatus):
21469
+ self._DeployStatus = DeployStatus
21470
+
21471
+ @property
21472
+ def UpdateSyncProgress(self):
21473
+ """更新异步创建任务进度详情
21474
+ 注意:此字段可能返回 null,表示取不到有效值。
21475
+ :rtype: list of UpdateSyncProgress
21476
+ """
21477
+ return self._UpdateSyncProgress
21478
+
21479
+ @UpdateSyncProgress.setter
21480
+ def UpdateSyncProgress(self, UpdateSyncProgress):
21481
+ self._UpdateSyncProgress = UpdateSyncProgress
21482
+
21483
+ @property
21484
+ def RequestId(self):
21485
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21486
+ :rtype: str
21487
+ """
21488
+ return self._RequestId
21489
+
21490
+ @RequestId.setter
21491
+ def RequestId(self, RequestId):
21492
+ self._RequestId = RequestId
21493
+
21494
+
21495
+ def _deserialize(self, params):
21496
+ self._DeployRecordId = params.get("DeployRecordId")
21497
+ self._DeployStatus = params.get("DeployStatus")
21498
+ if params.get("UpdateSyncProgress") is not None:
21499
+ self._UpdateSyncProgress = []
21500
+ for item in params.get("UpdateSyncProgress"):
21501
+ obj = UpdateSyncProgress()
21502
+ obj._deserialize(item)
21503
+ self._UpdateSyncProgress.append(obj)
21504
+ self._RequestId = params.get("RequestId")
21505
+
21506
+
21326
21507
  class VODInstanceList(AbstractModel):
21327
21508
  """vod实例详情 - 异步关联云资源数据结构
21328
21509
 
@@ -1459,6 +1459,29 @@ class SslClient(AbstractClient):
1459
1459
  raise TencentCloudSDKException(type(e).__name__, str(e))
1460
1460
 
1461
1461
 
1462
+ def UploadUpdateCertificateInstance(self, request):
1463
+ """更新证书内容(证书ID不变)并更新关联的云资源,本接口为异步接口, 调用之后DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
1464
+
1465
+ :param request: Request instance for UploadUpdateCertificateInstance.
1466
+ :type request: :class:`tencentcloud.ssl.v20191205.models.UploadUpdateCertificateInstanceRequest`
1467
+ :rtype: :class:`tencentcloud.ssl.v20191205.models.UploadUpdateCertificateInstanceResponse`
1468
+
1469
+ """
1470
+ try:
1471
+ params = request._serialize()
1472
+ headers = request.headers
1473
+ body = self.call("UploadUpdateCertificateInstance", params, headers=headers)
1474
+ response = json.loads(body)
1475
+ model = models.UploadUpdateCertificateInstanceResponse()
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
+
1462
1485
  def VerifyManager(self, request):
1463
1486
  """重新核验管理人
1464
1487
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python
3
- Version: 3.0.1403
3
+ Version: 3.0.1404
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -50,7 +50,7 @@ QcloudApi/modules/vod.py,sha256=l05_qYx0l5bq6LJ8mAX2YO3pRXzxY3JMdDHV1N_SRKE,679
50
50
  QcloudApi/modules/vpc.py,sha256=JBiNpcnrAwf_UJ_UdpxQybKeCTfeveJ9R1B-vO1_w_U,679
51
51
  QcloudApi/modules/wenzhi.py,sha256=hr1rRLU8TxxSfejMqV2O4alO_yXF3C0tfZMSzziu54Q,685
52
52
  QcloudApi/modules/yunsou.py,sha256=JlgzMjnJaho6axFVhSTAv6DS0HLcjl0LJL02q6qI2yY,685
53
- tencentcloud/__init__.py,sha256=ZxAi3eYDSE-Ya-J2xN-iQ0Qz-gDYkmqwcscgPCltHcE,631
53
+ tencentcloud/__init__.py,sha256=g81Pe5EAox3Vkr1IJQVlN2_IESlU2t_sPZkJD9jrbd0,631
54
54
  tencentcloud/aai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  tencentcloud/aai/v20180522/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  tencentcloud/aai/v20180522/aai_client.py,sha256=UNkXLBkE-C-wBaan9RD0U4t2H-XCJDTPgWDFYzUitgE,5497
@@ -317,7 +317,7 @@ tencentcloud/cfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
317
317
  tencentcloud/cfs/v20190719/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
318
318
  tencentcloud/cfs/v20190719/cfs_client.py,sha256=nOGyw0zU6y-Uw67d13Xzl799mv5L4NTf5DmPukfixg0,42318
319
319
  tencentcloud/cfs/v20190719/errorcodes.py,sha256=fAooEvSCsoA7spNuZ71SPpvkGbmD0fhP9xSCK1KTRsc,16563
320
- tencentcloud/cfs/v20190719/models.py,sha256=KDsn0w49SbMrBwfTAA3HKD2fCFYNl4dxq8UCYkfXe14,269533
320
+ tencentcloud/cfs/v20190719/models.py,sha256=BRWZADWglQLeY5z0M6Q5FLBpyCOhMHlyl0ai--7UiI4,269531
321
321
  tencentcloud/cfw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
322
322
  tencentcloud/cfw/v20190904/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
323
323
  tencentcloud/cfw/v20190904/cfw_client.py,sha256=-SGv4CJzBmKKAzZO9gcNe2gyKC-RZrMzPyDPkeDDYNw,105727
@@ -849,7 +849,7 @@ tencentcloud/lke/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
849
849
  tencentcloud/lke/v20231130/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
850
850
  tencentcloud/lke/v20231130/errorcodes.py,sha256=F8jwAr2NVhzB1Nj3RsF71vsqdEzHFz-nNMv-1NOhRzU,1934
851
851
  tencentcloud/lke/v20231130/lke_client.py,sha256=6wBWm22KogbcE9YLXwdMp7IcfSnZNpA3QtNmtOHLBiI,98969
852
- tencentcloud/lke/v20231130/models.py,sha256=7S6sEeAEyHD2TCrFi-jeDdfvO_s7Pf1tWNgAOW-3ow8,902489
852
+ tencentcloud/lke/v20231130/models.py,sha256=WTd-9tIMncuIiagmJQYvQSRjDcY3Ee0a1Wq2xek4Eg4,902567
853
853
  tencentcloud/lkeap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
854
854
  tencentcloud/lkeap/v20240522/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
855
855
  tencentcloud/lkeap/v20240522/errorcodes.py,sha256=pSx0n_A6I_tVRJNr38UZIiklPU-CTx0v2g51OrUsnWM,2470
@@ -920,7 +920,7 @@ tencentcloud/monitor/v20230616/monitor_client.py,sha256=4yo6-frhbUpRJ_zbHR5CGa5H
920
920
  tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
921
921
  tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
922
922
  tencentcloud/mps/v20190612/errorcodes.py,sha256=wx4ZpyS-O21p75AdK5JY47D7vHqYOdJ0fMHyvvS9Dtk,15756
923
- tencentcloud/mps/v20190612/models.py,sha256=uoyHeqEt29hsmtkxyDUWA0PPVuPTQKCr1gZ3s-fV_8k,2208200
923
+ tencentcloud/mps/v20190612/models.py,sha256=xaD4W4LR_pdNz3nPUNf41F15qip_CsLtC3cOTg61Atk,2217690
924
924
  tencentcloud/mps/v20190612/mps_client.py,sha256=_okTsng8QgB7T3v7EeeqZEDox-i9PXkLz1EskRXqao4,130166
925
925
  tencentcloud/mqtt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
926
926
  tencentcloud/mqtt/v20240516/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -965,8 +965,8 @@ tencentcloud/oceanus/v20190422/oceanus_client.py,sha256=HZQ5Dmh06DpxJX0Em6NmrlAX
965
965
  tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
966
966
  tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
967
967
  tencentcloud/ocr/v20181119/errorcodes.py,sha256=L12AZxzshizeJibob00zcd-pBSaeP5XE7OlNM1Firlk,7012
968
- tencentcloud/ocr/v20181119/models.py,sha256=1cvuUst_QAAGfjF-_duR25U4TIe5chMOmI7K5-KdrQE,1383487
969
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=07801ok2bHJyINQxMmo4mzAD61-fUZQ8CNEAgOEaX-Y,124028
968
+ tencentcloud/ocr/v20181119/models.py,sha256=OUuwtuk76kiIT3w9CfD9M0rie6ux6c0QaGFhphrEWtw,1361740
969
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=QDWZ3EFzUvC7XiVXtYpYqsAC0RmtlTTcoWWrTqSGPAI,121743
970
970
  tencentcloud/omics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
971
971
  tencentcloud/omics/v20221128/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
972
972
  tencentcloud/omics/v20221128/errorcodes.py,sha256=UT5fVDRzRbNl7KiCWizmn26g7qYjWaLvcSVIt2VknhE,4545
@@ -1082,9 +1082,9 @@ tencentcloud/ssa/v20180608/models.py,sha256=_1wpc1bL8S0UoETOqEMRjVYa-ZXZI6WWpP-O
1082
1082
  tencentcloud/ssa/v20180608/ssa_client.py,sha256=F1LtQUdoWFMoWn38h03twyxnejuurOSD1WpM0o3vxhQ,21768
1083
1083
  tencentcloud/ssl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1084
1084
  tencentcloud/ssl/v20191205/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1085
- tencentcloud/ssl/v20191205/errorcodes.py,sha256=hKYoafBqqjrBXB4jC52Q3VTDIjTWr873ovDc2dquqsk,14391
1086
- tencentcloud/ssl/v20191205/models.py,sha256=gKx3uIcLIYroOyhwL9vwSqTESCqrsU6UVMUqaPET5Ew,689060
1087
- tencentcloud/ssl/v20191205/ssl_client.py,sha256=FtfW5Q5UzXzFcQjfj3tF0eeb27oAsVTf49x_sMiGsug,63084
1085
+ tencentcloud/ssl/v20191205/errorcodes.py,sha256=t-U7utaloe6g1asWqq6R-M4jF_QMeMB4DjPgIc5A-9c,14739
1086
+ tencentcloud/ssl/v20191205/models.py,sha256=3tMgYFm1Q8voO3LB4nc29Pha3gZluPfVSeIovzW6PRs,696226
1087
+ tencentcloud/ssl/v20191205/ssl_client.py,sha256=VP3trH3FPiOqV-eHS5UGRM3GwIXOQeDgO2AV6jdNXOU,64292
1088
1088
  tencentcloud/sslpod/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1089
1089
  tencentcloud/sslpod/v20190605/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1090
1090
  tencentcloud/sslpod/v20190605/errorcodes.py,sha256=Qg5U8QkgdjHsZQFti5AYETxR_N4CBl1qRbDJCEwhT8s,2079
@@ -1502,8 +1502,8 @@ tencentcloud/yunsou/v20191115/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
1502
1502
  tencentcloud/yunsou/v20191115/errorcodes.py,sha256=zB4-XPxmvEhgHoLsKlbayJVRLEagPDcs-UAheVZCoAc,1301
1503
1503
  tencentcloud/yunsou/v20191115/models.py,sha256=rL2feGJfTHvEmkfS_c9En9Xl1g32vTs9IC_q5p9CYgY,27680
1504
1504
  tencentcloud/yunsou/v20191115/yunsou_client.py,sha256=ly73Hr8rGamWa6AAvQjurKgd4L83PRY5WjcDv4ziQC8,2741
1505
- tencentcloud_sdk_python-3.0.1403.dist-info/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
1506
- tencentcloud_sdk_python-3.0.1403.dist-info/METADATA,sha256=j8Y7CqXVN-shrG-0ZnW8sGFwaVPy8osEuLMqOHs3D8o,1613
1507
- tencentcloud_sdk_python-3.0.1403.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
1508
- tencentcloud_sdk_python-3.0.1403.dist-info/top_level.txt,sha256=7kItXWSGlPDkhHTt2qPSt8zrlsPHLfRofR1QJo6eV_A,23
1509
- tencentcloud_sdk_python-3.0.1403.dist-info/RECORD,,
1505
+ tencentcloud_sdk_python-3.0.1404.dist-info/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
1506
+ tencentcloud_sdk_python-3.0.1404.dist-info/METADATA,sha256=P33QWLybJuF2P7OmAI0H8XqUgZppEDoGKjAE-0rkmFU,1613
1507
+ tencentcloud_sdk_python-3.0.1404.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
1508
+ tencentcloud_sdk_python-3.0.1404.dist-info/top_level.txt,sha256=7kItXWSGlPDkhHTt2qPSt8zrlsPHLfRofR1QJo6eV_A,23
1509
+ tencentcloud_sdk_python-3.0.1404.dist-info/RECORD,,