tencentcloud-sdk-python 3.0.1068__py2.py3-none-any.whl → 3.0.1075__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/antiddos/v20200309/models.py +27 -1
- tencentcloud/billing/v20180709/billing_client.py +23 -0
- tencentcloud/billing/v20180709/errorcodes.py +6 -0
- tencentcloud/billing/v20180709/models.py +479 -0
- tencentcloud/car/v20220110/car_client.py +2 -2
- tencentcloud/cfs/v20190719/models.py +12 -0
- tencentcloud/cfw/v20190904/models.py +116 -0
- tencentcloud/clb/v20180317/errorcodes.py +3 -0
- tencentcloud/cloudaudit/v20190319/cloudaudit_client.py +6 -6
- tencentcloud/cloudaudit/v20190319/errorcodes.py +6 -3
- tencentcloud/cloudaudit/v20190319/models.py +30 -2
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cynosdb/v20190107/models.py +188 -0
- tencentcloud/dnspod/v20210323/models.py +12 -0
- tencentcloud/dts/v20211206/dts_client.py +511 -0
- tencentcloud/dts/v20211206/errorcodes.py +3 -0
- tencentcloud/dts/v20211206/models.py +6918 -2996
- tencentcloud/ess/v20201111/models.py +24 -17
- tencentcloud/essbasic/v20210526/essbasic_client.py +54 -5
- tencentcloud/essbasic/v20210526/models.py +163 -181
- tencentcloud/faceid/v20180301/models.py +24 -0
- tencentcloud/hai/v20230812/errorcodes.py +6 -0
- tencentcloud/hunyuan/v20230901/models.py +1 -1
- tencentcloud/monitor/v20180724/models.py +1118 -97
- tencentcloud/monitor/v20180724/monitor_client.py +118 -0
- tencentcloud/mps/v20190612/models.py +60 -1
- tencentcloud/mrs/v20200910/models.py +5 -1
- tencentcloud/ocr/v20181119/models.py +27 -1
- tencentcloud/rum/v20210622/models.py +0 -504
- tencentcloud/rum/v20210622/rum_client.py +0 -138
- tencentcloud/scf/v20180416/errorcodes.py +3 -0
- tencentcloud/tat/v20201028/models.py +2 -0
- tencentcloud/tcb/v20180608/models.py +9 -0
- tencentcloud/tdid/v20210519/errorcodes.py +143 -2
- tencentcloud/tdid/v20210519/models.py +1424 -788
- tencentcloud/tdid/v20210519/tdid_client.py +201 -112
- tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
- tencentcloud/tdmq/v20200217/models.py +261 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +18 -16
- tencentcloud/tione/v20211111/errorcodes.py +12 -0
- tencentcloud/tione/v20211111/models.py +190 -32
- tencentcloud/trtc/v20190722/errorcodes.py +6 -0
- tencentcloud/trtc/v20190722/models.py +34 -5
- tencentcloud/trtc/v20190722/trtc_client.py +2 -0
- tencentcloud/tse/v20201207/models.py +1 -1
- tencentcloud/tsf/v20180326/models.py +14 -1
- tencentcloud/vod/v20180717/models.py +933 -43
- tencentcloud/vod/v20180717/vod_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/RECORD +55 -55
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/top_level.txt +0 -0
|
@@ -350,6 +350,32 @@ class MonitorClient(AbstractClient):
|
|
|
350
350
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
351
351
|
|
|
352
352
|
|
|
353
|
+
def CreatePrometheusAlertGroup(self, request):
|
|
354
|
+
"""创建Prometheus告警规则分组
|
|
355
|
+
|
|
356
|
+
告警分组中可包含多条告警规则,分组内告警消息通过告警分组的通知模板发送。
|
|
357
|
+
支持单个告警分组下分别创建启用/禁用的告警规则。
|
|
358
|
+
|
|
359
|
+
:param request: Request instance for CreatePrometheusAlertGroup.
|
|
360
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupRequest`
|
|
361
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupResponse`
|
|
362
|
+
|
|
363
|
+
"""
|
|
364
|
+
try:
|
|
365
|
+
params = request._serialize()
|
|
366
|
+
headers = request.headers
|
|
367
|
+
body = self.call("CreatePrometheusAlertGroup", params, headers=headers)
|
|
368
|
+
response = json.loads(body)
|
|
369
|
+
model = models.CreatePrometheusAlertGroupResponse()
|
|
370
|
+
model._deserialize(response["Response"])
|
|
371
|
+
return model
|
|
372
|
+
except Exception as e:
|
|
373
|
+
if isinstance(e, TencentCloudSDKException):
|
|
374
|
+
raise
|
|
375
|
+
else:
|
|
376
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
377
|
+
|
|
378
|
+
|
|
353
379
|
def CreatePrometheusAlertPolicy(self, request):
|
|
354
380
|
"""创建 Prometheus 告警策略(将逐步废弃,建议使用 CreatePrometheusAlertGroup 创建告警策略)
|
|
355
381
|
|
|
@@ -789,6 +815,29 @@ class MonitorClient(AbstractClient):
|
|
|
789
815
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
790
816
|
|
|
791
817
|
|
|
818
|
+
def DeletePrometheusAlertGroups(self, request):
|
|
819
|
+
"""删除Prometheus告警规则分组
|
|
820
|
+
|
|
821
|
+
:param request: Request instance for DeletePrometheusAlertGroups.
|
|
822
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsRequest`
|
|
823
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsResponse`
|
|
824
|
+
|
|
825
|
+
"""
|
|
826
|
+
try:
|
|
827
|
+
params = request._serialize()
|
|
828
|
+
headers = request.headers
|
|
829
|
+
body = self.call("DeletePrometheusAlertGroups", params, headers=headers)
|
|
830
|
+
response = json.loads(body)
|
|
831
|
+
model = models.DeletePrometheusAlertGroupsResponse()
|
|
832
|
+
model._deserialize(response["Response"])
|
|
833
|
+
return model
|
|
834
|
+
except Exception as e:
|
|
835
|
+
if isinstance(e, TencentCloudSDKException):
|
|
836
|
+
raise
|
|
837
|
+
else:
|
|
838
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
839
|
+
|
|
840
|
+
|
|
792
841
|
def DeletePrometheusAlertPolicy(self, request):
|
|
793
842
|
"""删除2.0实例告警策略
|
|
794
843
|
|
|
@@ -1828,6 +1877,29 @@ class MonitorClient(AbstractClient):
|
|
|
1828
1877
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1829
1878
|
|
|
1830
1879
|
|
|
1880
|
+
def DescribePrometheusAlertGroups(self, request):
|
|
1881
|
+
"""查询给定prometheus下的告警分组
|
|
1882
|
+
|
|
1883
|
+
:param request: Request instance for DescribePrometheusAlertGroups.
|
|
1884
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsRequest`
|
|
1885
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsResponse`
|
|
1886
|
+
|
|
1887
|
+
"""
|
|
1888
|
+
try:
|
|
1889
|
+
params = request._serialize()
|
|
1890
|
+
headers = request.headers
|
|
1891
|
+
body = self.call("DescribePrometheusAlertGroups", params, headers=headers)
|
|
1892
|
+
response = json.loads(body)
|
|
1893
|
+
model = models.DescribePrometheusAlertGroupsResponse()
|
|
1894
|
+
model._deserialize(response["Response"])
|
|
1895
|
+
return model
|
|
1896
|
+
except Exception as e:
|
|
1897
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1898
|
+
raise
|
|
1899
|
+
else:
|
|
1900
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1901
|
+
|
|
1902
|
+
|
|
1831
1903
|
def DescribePrometheusAlertPolicy(self, request):
|
|
1832
1904
|
"""获取2.0实例告警策略列表
|
|
1833
1905
|
|
|
@@ -3361,6 +3433,52 @@ class MonitorClient(AbstractClient):
|
|
|
3361
3433
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3362
3434
|
|
|
3363
3435
|
|
|
3436
|
+
def UpdatePrometheusAlertGroup(self, request):
|
|
3437
|
+
"""更新Prometheus告警规则分组
|
|
3438
|
+
|
|
3439
|
+
:param request: Request instance for UpdatePrometheusAlertGroup.
|
|
3440
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupRequest`
|
|
3441
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupResponse`
|
|
3442
|
+
|
|
3443
|
+
"""
|
|
3444
|
+
try:
|
|
3445
|
+
params = request._serialize()
|
|
3446
|
+
headers = request.headers
|
|
3447
|
+
body = self.call("UpdatePrometheusAlertGroup", params, headers=headers)
|
|
3448
|
+
response = json.loads(body)
|
|
3449
|
+
model = models.UpdatePrometheusAlertGroupResponse()
|
|
3450
|
+
model._deserialize(response["Response"])
|
|
3451
|
+
return model
|
|
3452
|
+
except Exception as e:
|
|
3453
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3454
|
+
raise
|
|
3455
|
+
else:
|
|
3456
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
def UpdatePrometheusAlertGroupState(self, request):
|
|
3460
|
+
"""批量更新告警分组状态,将分组中全部告警规则更新为目标状态
|
|
3461
|
+
|
|
3462
|
+
:param request: Request instance for UpdatePrometheusAlertGroupState.
|
|
3463
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateRequest`
|
|
3464
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateResponse`
|
|
3465
|
+
|
|
3466
|
+
"""
|
|
3467
|
+
try:
|
|
3468
|
+
params = request._serialize()
|
|
3469
|
+
headers = request.headers
|
|
3470
|
+
body = self.call("UpdatePrometheusAlertGroupState", params, headers=headers)
|
|
3471
|
+
response = json.loads(body)
|
|
3472
|
+
model = models.UpdatePrometheusAlertGroupStateResponse()
|
|
3473
|
+
model._deserialize(response["Response"])
|
|
3474
|
+
return model
|
|
3475
|
+
except Exception as e:
|
|
3476
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3477
|
+
raise
|
|
3478
|
+
else:
|
|
3479
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3480
|
+
|
|
3481
|
+
|
|
3364
3482
|
def UpdatePrometheusScrapeJob(self, request):
|
|
3365
3483
|
"""更新 Prometheus Agent 抓取任务
|
|
3366
3484
|
|
|
@@ -3226,6 +3226,9 @@ class AiRecognitionTaskAsrFullTextResult(AbstractModel):
|
|
|
3226
3226
|
:param _Output: 语音全文识别任务输出信息。
|
|
3227
3227
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3228
3228
|
:type Output: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskAsrFullTextResultOutput`
|
|
3229
|
+
:param _Progress: 任务进度。
|
|
3230
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3231
|
+
:type Progress: int
|
|
3229
3232
|
"""
|
|
3230
3233
|
self._Status = None
|
|
3231
3234
|
self._ErrCodeExt = None
|
|
@@ -3233,6 +3236,7 @@ class AiRecognitionTaskAsrFullTextResult(AbstractModel):
|
|
|
3233
3236
|
self._Message = None
|
|
3234
3237
|
self._Input = None
|
|
3235
3238
|
self._Output = None
|
|
3239
|
+
self._Progress = None
|
|
3236
3240
|
|
|
3237
3241
|
@property
|
|
3238
3242
|
def Status(self):
|
|
@@ -3282,6 +3286,14 @@ class AiRecognitionTaskAsrFullTextResult(AbstractModel):
|
|
|
3282
3286
|
def Output(self, Output):
|
|
3283
3287
|
self._Output = Output
|
|
3284
3288
|
|
|
3289
|
+
@property
|
|
3290
|
+
def Progress(self):
|
|
3291
|
+
return self._Progress
|
|
3292
|
+
|
|
3293
|
+
@Progress.setter
|
|
3294
|
+
def Progress(self, Progress):
|
|
3295
|
+
self._Progress = Progress
|
|
3296
|
+
|
|
3285
3297
|
|
|
3286
3298
|
def _deserialize(self, params):
|
|
3287
3299
|
self._Status = params.get("Status")
|
|
@@ -3294,6 +3306,7 @@ class AiRecognitionTaskAsrFullTextResult(AbstractModel):
|
|
|
3294
3306
|
if params.get("Output") is not None:
|
|
3295
3307
|
self._Output = AiRecognitionTaskAsrFullTextResultOutput()
|
|
3296
3308
|
self._Output._deserialize(params.get("Output"))
|
|
3309
|
+
self._Progress = params.get("Progress")
|
|
3297
3310
|
memeber_set = set(params.keys())
|
|
3298
3311
|
for name, value in vars(self).items():
|
|
3299
3312
|
property_name = name[1:]
|
|
@@ -5092,6 +5105,9 @@ class AiRecognitionTaskTransTextResult(AbstractModel):
|
|
|
5092
5105
|
:param _Output: 翻译任务输出信息。
|
|
5093
5106
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5094
5107
|
:type Output: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskTransTextResultOutput`
|
|
5108
|
+
:param _Progress: 任务进度。
|
|
5109
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5110
|
+
:type Progress: int
|
|
5095
5111
|
"""
|
|
5096
5112
|
self._Status = None
|
|
5097
5113
|
self._ErrCodeExt = None
|
|
@@ -5099,6 +5115,7 @@ class AiRecognitionTaskTransTextResult(AbstractModel):
|
|
|
5099
5115
|
self._Message = None
|
|
5100
5116
|
self._Input = None
|
|
5101
5117
|
self._Output = None
|
|
5118
|
+
self._Progress = None
|
|
5102
5119
|
|
|
5103
5120
|
@property
|
|
5104
5121
|
def Status(self):
|
|
@@ -5148,6 +5165,14 @@ class AiRecognitionTaskTransTextResult(AbstractModel):
|
|
|
5148
5165
|
def Output(self, Output):
|
|
5149
5166
|
self._Output = Output
|
|
5150
5167
|
|
|
5168
|
+
@property
|
|
5169
|
+
def Progress(self):
|
|
5170
|
+
return self._Progress
|
|
5171
|
+
|
|
5172
|
+
@Progress.setter
|
|
5173
|
+
def Progress(self, Progress):
|
|
5174
|
+
self._Progress = Progress
|
|
5175
|
+
|
|
5151
5176
|
|
|
5152
5177
|
def _deserialize(self, params):
|
|
5153
5178
|
self._Status = params.get("Status")
|
|
@@ -5160,6 +5185,7 @@ class AiRecognitionTaskTransTextResult(AbstractModel):
|
|
|
5160
5185
|
if params.get("Output") is not None:
|
|
5161
5186
|
self._Output = AiRecognitionTaskTransTextResultOutput()
|
|
5162
5187
|
self._Output._deserialize(params.get("Output"))
|
|
5188
|
+
self._Progress = params.get("Progress")
|
|
5163
5189
|
memeber_set = set(params.keys())
|
|
5164
5190
|
for name, value in vars(self).items():
|
|
5165
5191
|
property_name = name[1:]
|
|
@@ -8584,6 +8610,8 @@ class AudioTemplateInfo(AbstractModel):
|
|
|
8584
8610
|
def __init__(self):
|
|
8585
8611
|
r"""
|
|
8586
8612
|
:param _Codec: 音频流的编码格式。
|
|
8613
|
+
当不需要对音频进行转码时,可选值为:
|
|
8614
|
+
<li>copy。</li>
|
|
8587
8615
|
当外层参数 Container 为 mp3 时,可选值为:
|
|
8588
8616
|
<li>libmp3lame。</li>
|
|
8589
8617
|
当外层参数 Container 为 ogg 或 flac 时,可选值为:
|
|
@@ -8594,7 +8622,8 @@ class AudioTemplateInfo(AbstractModel):
|
|
|
8594
8622
|
<li>ac3。</li>
|
|
8595
8623
|
当外层参数 Container 为 mp4 或 flv 时,可选值为:
|
|
8596
8624
|
<li>libfdk_aac:更适合 mp4;</li>
|
|
8597
|
-
<li>libmp3lame:更适合 flv
|
|
8625
|
+
<li>libmp3lame:更适合 flv;</li>
|
|
8626
|
+
<li>mp2。</li>
|
|
8598
8627
|
当外层参数 Container 为 hls 时,可选值为:
|
|
8599
8628
|
<li>libfdk_aac;</li>
|
|
8600
8629
|
<li>libmp3lame。</li>
|
|
@@ -8677,6 +8706,8 @@ class AudioTemplateInfoForUpdate(AbstractModel):
|
|
|
8677
8706
|
def __init__(self):
|
|
8678
8707
|
r"""
|
|
8679
8708
|
:param _Codec: 音频流的编码格式。
|
|
8709
|
+
当不需要对音频进行转码时,可选值为:
|
|
8710
|
+
<li>copy。</li>
|
|
8680
8711
|
当外层参数 Container 为 mp3 时,可选值为:
|
|
8681
8712
|
<li>libmp3lame。</li>
|
|
8682
8713
|
当外层参数 Container 为 ogg 或 flac 时,可选值为:
|
|
@@ -9434,10 +9465,15 @@ class ComposeAudioStream(AbstractModel):
|
|
|
9434
9465
|
<li>1:单声道 。</li>
|
|
9435
9466
|
<li>2:双声道(默认)。</li>
|
|
9436
9467
|
:type AudioChannel: int
|
|
9468
|
+
:param _Bitrate: 参考码率,单位 kbps,范围:26~10000。
|
|
9469
|
+
如果设置,编码时会尽量按该码率进行编码。
|
|
9470
|
+
如果不设置,服务将根据音频参数自动采用合适的码率。
|
|
9471
|
+
:type Bitrate: int
|
|
9437
9472
|
"""
|
|
9438
9473
|
self._Codec = None
|
|
9439
9474
|
self._SampleRate = None
|
|
9440
9475
|
self._AudioChannel = None
|
|
9476
|
+
self._Bitrate = None
|
|
9441
9477
|
|
|
9442
9478
|
@property
|
|
9443
9479
|
def Codec(self):
|
|
@@ -9463,11 +9499,20 @@ class ComposeAudioStream(AbstractModel):
|
|
|
9463
9499
|
def AudioChannel(self, AudioChannel):
|
|
9464
9500
|
self._AudioChannel = AudioChannel
|
|
9465
9501
|
|
|
9502
|
+
@property
|
|
9503
|
+
def Bitrate(self):
|
|
9504
|
+
return self._Bitrate
|
|
9505
|
+
|
|
9506
|
+
@Bitrate.setter
|
|
9507
|
+
def Bitrate(self, Bitrate):
|
|
9508
|
+
self._Bitrate = Bitrate
|
|
9509
|
+
|
|
9466
9510
|
|
|
9467
9511
|
def _deserialize(self, params):
|
|
9468
9512
|
self._Codec = params.get("Codec")
|
|
9469
9513
|
self._SampleRate = params.get("SampleRate")
|
|
9470
9514
|
self._AudioChannel = params.get("AudioChannel")
|
|
9515
|
+
self._Bitrate = params.get("Bitrate")
|
|
9471
9516
|
memeber_set = set(params.keys())
|
|
9472
9517
|
for name, value in vars(self).items():
|
|
9473
9518
|
property_name = name[1:]
|
|
@@ -10838,9 +10883,14 @@ class ComposeVideoStream(AbstractModel):
|
|
|
10838
10883
|
:param _Fps: 视频帧率,取值范围:[0, 60],单位:Hz。
|
|
10839
10884
|
默认值:0,表示和第一个视频帧率一致。
|
|
10840
10885
|
:type Fps: int
|
|
10886
|
+
:param _Bitrate: 参考码率,单位 kbps,范围:50~35000。
|
|
10887
|
+
如果设置,编码时会尽量按该码率进行编码。
|
|
10888
|
+
如果不设置,服务将通过画面复杂度自动采用合适的码率。
|
|
10889
|
+
:type Bitrate: int
|
|
10841
10890
|
"""
|
|
10842
10891
|
self._Codec = None
|
|
10843
10892
|
self._Fps = None
|
|
10893
|
+
self._Bitrate = None
|
|
10844
10894
|
|
|
10845
10895
|
@property
|
|
10846
10896
|
def Codec(self):
|
|
@@ -10858,10 +10908,19 @@ class ComposeVideoStream(AbstractModel):
|
|
|
10858
10908
|
def Fps(self, Fps):
|
|
10859
10909
|
self._Fps = Fps
|
|
10860
10910
|
|
|
10911
|
+
@property
|
|
10912
|
+
def Bitrate(self):
|
|
10913
|
+
return self._Bitrate
|
|
10914
|
+
|
|
10915
|
+
@Bitrate.setter
|
|
10916
|
+
def Bitrate(self, Bitrate):
|
|
10917
|
+
self._Bitrate = Bitrate
|
|
10918
|
+
|
|
10861
10919
|
|
|
10862
10920
|
def _deserialize(self, params):
|
|
10863
10921
|
self._Codec = params.get("Codec")
|
|
10864
10922
|
self._Fps = params.get("Fps")
|
|
10923
|
+
self._Bitrate = params.get("Bitrate")
|
|
10865
10924
|
memeber_set = set(params.keys())
|
|
10866
10925
|
for name, value in vars(self).items():
|
|
10867
10926
|
property_name = name[1:]
|
|
@@ -16077,7 +16077,7 @@ class PatientInfo(AbstractModel):
|
|
|
16077
16077
|
:param _AgeNorm: 标准化年龄
|
|
16078
16078
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16079
16079
|
:type AgeNorm: str
|
|
16080
|
-
:param _Nation:
|
|
16080
|
+
:param _Nation: 民族。该字段已不再使用,请从Ethnicity取值
|
|
16081
16081
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16082
16082
|
:type Nation: str
|
|
16083
16083
|
:param _MarriedCode: 婚姻代码
|
|
@@ -16254,10 +16254,14 @@ class PatientInfo(AbstractModel):
|
|
|
16254
16254
|
|
|
16255
16255
|
@property
|
|
16256
16256
|
def Nation(self):
|
|
16257
|
+
warnings.warn("parameter `Nation` is deprecated", DeprecationWarning)
|
|
16258
|
+
|
|
16257
16259
|
return self._Nation
|
|
16258
16260
|
|
|
16259
16261
|
@Nation.setter
|
|
16260
16262
|
def Nation(self, Nation):
|
|
16263
|
+
warnings.warn("parameter `Nation` is deprecated", DeprecationWarning)
|
|
16264
|
+
|
|
16261
16265
|
self._Nation = Nation
|
|
16262
16266
|
|
|
16263
16267
|
@property
|
|
@@ -17215,7 +17215,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
|
17215
17215
|
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定
|
|
17216
17216
|
性可能受一定影响。
|
|
17217
17217
|
:type ImageUrl: str
|
|
17218
|
-
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF
|
|
17218
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
|
|
17219
17219
|
:type PdfPageNumber: int
|
|
17220
17220
|
"""
|
|
17221
17221
|
self._ImageBase64 = None
|
|
@@ -18718,9 +18718,15 @@ class SealOCRRequest(AbstractModel):
|
|
|
18718
18718
|
:param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
18719
18719
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
18720
18720
|
:type ImageUrl: str
|
|
18721
|
+
:param _EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
18722
|
+
:type EnablePdf: bool
|
|
18723
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
|
18724
|
+
:type PdfPageNumber: int
|
|
18721
18725
|
"""
|
|
18722
18726
|
self._ImageBase64 = None
|
|
18723
18727
|
self._ImageUrl = None
|
|
18728
|
+
self._EnablePdf = None
|
|
18729
|
+
self._PdfPageNumber = None
|
|
18724
18730
|
|
|
18725
18731
|
@property
|
|
18726
18732
|
def ImageBase64(self):
|
|
@@ -18738,10 +18744,28 @@ class SealOCRRequest(AbstractModel):
|
|
|
18738
18744
|
def ImageUrl(self, ImageUrl):
|
|
18739
18745
|
self._ImageUrl = ImageUrl
|
|
18740
18746
|
|
|
18747
|
+
@property
|
|
18748
|
+
def EnablePdf(self):
|
|
18749
|
+
return self._EnablePdf
|
|
18750
|
+
|
|
18751
|
+
@EnablePdf.setter
|
|
18752
|
+
def EnablePdf(self, EnablePdf):
|
|
18753
|
+
self._EnablePdf = EnablePdf
|
|
18754
|
+
|
|
18755
|
+
@property
|
|
18756
|
+
def PdfPageNumber(self):
|
|
18757
|
+
return self._PdfPageNumber
|
|
18758
|
+
|
|
18759
|
+
@PdfPageNumber.setter
|
|
18760
|
+
def PdfPageNumber(self, PdfPageNumber):
|
|
18761
|
+
self._PdfPageNumber = PdfPageNumber
|
|
18762
|
+
|
|
18741
18763
|
|
|
18742
18764
|
def _deserialize(self, params):
|
|
18743
18765
|
self._ImageBase64 = params.get("ImageBase64")
|
|
18744
18766
|
self._ImageUrl = params.get("ImageUrl")
|
|
18767
|
+
self._EnablePdf = params.get("EnablePdf")
|
|
18768
|
+
self._PdfPageNumber = params.get("PdfPageNumber")
|
|
18745
18769
|
memeber_set = set(params.keys())
|
|
18746
18770
|
for name, value in vars(self).items():
|
|
18747
18771
|
property_name = name[1:]
|
|
@@ -28257,6 +28281,8 @@ class VerifyOfdVatInvoiceOCRResponse(AbstractModel):
|
|
|
28257
28281
|
028:增值税电子专用发票
|
|
28258
28282
|
010:电子发票(普通发票)
|
|
28259
28283
|
020:电子发票(增值税专用发票)
|
|
28284
|
+
030:电子发票(铁路电子客票)
|
|
28285
|
+
040:电子发票(航空运输电子客票行程单)
|
|
28260
28286
|
:type Type: str
|
|
28261
28287
|
:param _InvoiceCode: 发票代码
|
|
28262
28288
|
:type InvoiceCode: str
|