tencentcloud-sdk-python 3.0.1137__py2.py3-none-any.whl → 3.0.1138__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 +1 -1
- tencentcloud/aiart/v20221229/models.py +4 -3
- tencentcloud/cls/v20201016/models.py +125 -3
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +16 -3
- tencentcloud/domain/v20180808/domain_client.py +23 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +100 -0
- tencentcloud/dts/v20211206/models.py +1 -1
- tencentcloud/ess/v20201111/ess_client.py +27 -0
- tencentcloud/ess/v20201111/models.py +157 -0
- tencentcloud/essbasic/v20210526/models.py +1 -1
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +6 -2
- tencentcloud/hunyuan/v20230901/models.py +12 -10
- tencentcloud/iotvideo/v20211125/models.py +13 -0
- tencentcloud/lke/v20231130/errorcodes.py +12 -0
- tencentcloud/lke/v20231130/lke_client.py +46 -0
- tencentcloud/lke/v20231130/models.py +673 -0
- tencentcloud/ocr/v20181119/models.py +251 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/rce/v20201103/models.py +6 -1
- tencentcloud/rum/v20210622/models.py +15 -15
- tencentcloud/tione/v20211111/errorcodes.py +12 -0
- tencentcloud/tms/v20201229/errorcodes.py +6 -0
- tencentcloud/tms/v20201229/models.py +70 -0
- tencentcloud/tms/v20201229/tms_client.py +23 -0
- tencentcloud/tse/v20201207/models.py +77 -1
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/RECORD +32 -32
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/top_level.txt +0 -0
@@ -7850,6 +7850,70 @@ class GeneralMachineItem(AbstractModel):
|
|
7850
7850
|
|
7851
7851
|
|
7852
7852
|
|
7853
|
+
class GeneralWarnInfo(AbstractModel):
|
7854
|
+
"""通用告警详情
|
7855
|
+
|
7856
|
+
"""
|
7857
|
+
|
7858
|
+
def __init__(self):
|
7859
|
+
r"""
|
7860
|
+
:param _IsWarn: 是否存在该告警
|
7861
|
+
:type IsWarn: bool
|
7862
|
+
:param _Polygon: 告警位置四点坐标
|
7863
|
+
:type Polygon: list of Polygon
|
7864
|
+
:param _SpecificMatter: 特殊判定,支持包括
|
7865
|
+
|
7866
|
+
Finger:由手指导致的不完整,仅在不完整告警中返回
|
7867
|
+
:type SpecificMatter: str
|
7868
|
+
"""
|
7869
|
+
self._IsWarn = None
|
7870
|
+
self._Polygon = None
|
7871
|
+
self._SpecificMatter = None
|
7872
|
+
|
7873
|
+
@property
|
7874
|
+
def IsWarn(self):
|
7875
|
+
return self._IsWarn
|
7876
|
+
|
7877
|
+
@IsWarn.setter
|
7878
|
+
def IsWarn(self, IsWarn):
|
7879
|
+
self._IsWarn = IsWarn
|
7880
|
+
|
7881
|
+
@property
|
7882
|
+
def Polygon(self):
|
7883
|
+
return self._Polygon
|
7884
|
+
|
7885
|
+
@Polygon.setter
|
7886
|
+
def Polygon(self, Polygon):
|
7887
|
+
self._Polygon = Polygon
|
7888
|
+
|
7889
|
+
@property
|
7890
|
+
def SpecificMatter(self):
|
7891
|
+
return self._SpecificMatter
|
7892
|
+
|
7893
|
+
@SpecificMatter.setter
|
7894
|
+
def SpecificMatter(self, SpecificMatter):
|
7895
|
+
self._SpecificMatter = SpecificMatter
|
7896
|
+
|
7897
|
+
|
7898
|
+
def _deserialize(self, params):
|
7899
|
+
self._IsWarn = params.get("IsWarn")
|
7900
|
+
if params.get("Polygon") is not None:
|
7901
|
+
self._Polygon = []
|
7902
|
+
for item in params.get("Polygon"):
|
7903
|
+
obj = Polygon()
|
7904
|
+
obj._deserialize(item)
|
7905
|
+
self._Polygon.append(obj)
|
7906
|
+
self._SpecificMatter = params.get("SpecificMatter")
|
7907
|
+
memeber_set = set(params.keys())
|
7908
|
+
for name, value in vars(self).items():
|
7909
|
+
property_name = name[1:]
|
7910
|
+
if property_name in memeber_set:
|
7911
|
+
memeber_set.remove(property_name)
|
7912
|
+
if len(memeber_set) > 0:
|
7913
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7914
|
+
|
7915
|
+
|
7916
|
+
|
7853
7917
|
class GetTaskStateRequest(AbstractModel):
|
7854
7918
|
"""GetTaskState请求参数结构体
|
7855
7919
|
|
@@ -16355,6 +16419,193 @@ class RecognizeGeneralInvoiceResponse(AbstractModel):
|
|
16355
16419
|
self._RequestId = params.get("RequestId")
|
16356
16420
|
|
16357
16421
|
|
16422
|
+
class RecognizeGeneralTextImageWarnRequest(AbstractModel):
|
16423
|
+
"""RecognizeGeneralTextImageWarn请求参数结构体
|
16424
|
+
|
16425
|
+
"""
|
16426
|
+
|
16427
|
+
def __init__(self):
|
16428
|
+
r"""
|
16429
|
+
:param _ImageUrl: 图片的 Url 地址。
|
16430
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
16431
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
16432
|
+
支持的图片像素:需介于20-10000px之间。
|
16433
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
16434
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
16435
|
+
:type ImageUrl: str
|
16436
|
+
:param _ImageBase64: 图片的 Base64 值。
|
16437
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
16438
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
16439
|
+
支持的图片像素:需介于20-10000px之间。
|
16440
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
16441
|
+
:type ImageBase64: str
|
16442
|
+
:param _EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false
|
16443
|
+
:type EnablePdf: bool
|
16444
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1
|
16445
|
+
:type PdfPageNumber: int
|
16446
|
+
:param _Type: 支持的模板类型
|
16447
|
+
- General 通用告警
|
16448
|
+
- LicensePlate 车牌告警
|
16449
|
+
:type Type: str
|
16450
|
+
"""
|
16451
|
+
self._ImageUrl = None
|
16452
|
+
self._ImageBase64 = None
|
16453
|
+
self._EnablePdf = None
|
16454
|
+
self._PdfPageNumber = None
|
16455
|
+
self._Type = None
|
16456
|
+
|
16457
|
+
@property
|
16458
|
+
def ImageUrl(self):
|
16459
|
+
return self._ImageUrl
|
16460
|
+
|
16461
|
+
@ImageUrl.setter
|
16462
|
+
def ImageUrl(self, ImageUrl):
|
16463
|
+
self._ImageUrl = ImageUrl
|
16464
|
+
|
16465
|
+
@property
|
16466
|
+
def ImageBase64(self):
|
16467
|
+
return self._ImageBase64
|
16468
|
+
|
16469
|
+
@ImageBase64.setter
|
16470
|
+
def ImageBase64(self, ImageBase64):
|
16471
|
+
self._ImageBase64 = ImageBase64
|
16472
|
+
|
16473
|
+
@property
|
16474
|
+
def EnablePdf(self):
|
16475
|
+
return self._EnablePdf
|
16476
|
+
|
16477
|
+
@EnablePdf.setter
|
16478
|
+
def EnablePdf(self, EnablePdf):
|
16479
|
+
self._EnablePdf = EnablePdf
|
16480
|
+
|
16481
|
+
@property
|
16482
|
+
def PdfPageNumber(self):
|
16483
|
+
return self._PdfPageNumber
|
16484
|
+
|
16485
|
+
@PdfPageNumber.setter
|
16486
|
+
def PdfPageNumber(self, PdfPageNumber):
|
16487
|
+
self._PdfPageNumber = PdfPageNumber
|
16488
|
+
|
16489
|
+
@property
|
16490
|
+
def Type(self):
|
16491
|
+
return self._Type
|
16492
|
+
|
16493
|
+
@Type.setter
|
16494
|
+
def Type(self, Type):
|
16495
|
+
self._Type = Type
|
16496
|
+
|
16497
|
+
|
16498
|
+
def _deserialize(self, params):
|
16499
|
+
self._ImageUrl = params.get("ImageUrl")
|
16500
|
+
self._ImageBase64 = params.get("ImageBase64")
|
16501
|
+
self._EnablePdf = params.get("EnablePdf")
|
16502
|
+
self._PdfPageNumber = params.get("PdfPageNumber")
|
16503
|
+
self._Type = params.get("Type")
|
16504
|
+
memeber_set = set(params.keys())
|
16505
|
+
for name, value in vars(self).items():
|
16506
|
+
property_name = name[1:]
|
16507
|
+
if property_name in memeber_set:
|
16508
|
+
memeber_set.remove(property_name)
|
16509
|
+
if len(memeber_set) > 0:
|
16510
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16511
|
+
|
16512
|
+
|
16513
|
+
|
16514
|
+
class RecognizeGeneralTextImageWarnResponse(AbstractModel):
|
16515
|
+
"""RecognizeGeneralTextImageWarn返回参数结构体
|
16516
|
+
|
16517
|
+
"""
|
16518
|
+
|
16519
|
+
def __init__(self):
|
16520
|
+
r"""
|
16521
|
+
:param _Copy: 复印告警信息
|
16522
|
+
:type Copy: :class:`tencentcloud.ocr.v20181119.models.GeneralWarnInfo`
|
16523
|
+
:param _Reprint: 翻拍告警信息
|
16524
|
+
:type Reprint: :class:`tencentcloud.ocr.v20181119.models.GeneralWarnInfo`
|
16525
|
+
:param _Blur: 模糊告警信息
|
16526
|
+
:type Blur: :class:`tencentcloud.ocr.v20181119.models.GeneralWarnInfo`
|
16527
|
+
:param _Reflection: 反光告警信息
|
16528
|
+
:type Reflection: :class:`tencentcloud.ocr.v20181119.models.GeneralWarnInfo`
|
16529
|
+
:param _BorderIncomplete: 边框不完整告警信息
|
16530
|
+
:type BorderIncomplete: :class:`tencentcloud.ocr.v20181119.models.GeneralWarnInfo`
|
16531
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
16532
|
+
:type RequestId: str
|
16533
|
+
"""
|
16534
|
+
self._Copy = None
|
16535
|
+
self._Reprint = None
|
16536
|
+
self._Blur = None
|
16537
|
+
self._Reflection = None
|
16538
|
+
self._BorderIncomplete = None
|
16539
|
+
self._RequestId = None
|
16540
|
+
|
16541
|
+
@property
|
16542
|
+
def Copy(self):
|
16543
|
+
return self._Copy
|
16544
|
+
|
16545
|
+
@Copy.setter
|
16546
|
+
def Copy(self, Copy):
|
16547
|
+
self._Copy = Copy
|
16548
|
+
|
16549
|
+
@property
|
16550
|
+
def Reprint(self):
|
16551
|
+
return self._Reprint
|
16552
|
+
|
16553
|
+
@Reprint.setter
|
16554
|
+
def Reprint(self, Reprint):
|
16555
|
+
self._Reprint = Reprint
|
16556
|
+
|
16557
|
+
@property
|
16558
|
+
def Blur(self):
|
16559
|
+
return self._Blur
|
16560
|
+
|
16561
|
+
@Blur.setter
|
16562
|
+
def Blur(self, Blur):
|
16563
|
+
self._Blur = Blur
|
16564
|
+
|
16565
|
+
@property
|
16566
|
+
def Reflection(self):
|
16567
|
+
return self._Reflection
|
16568
|
+
|
16569
|
+
@Reflection.setter
|
16570
|
+
def Reflection(self, Reflection):
|
16571
|
+
self._Reflection = Reflection
|
16572
|
+
|
16573
|
+
@property
|
16574
|
+
def BorderIncomplete(self):
|
16575
|
+
return self._BorderIncomplete
|
16576
|
+
|
16577
|
+
@BorderIncomplete.setter
|
16578
|
+
def BorderIncomplete(self, BorderIncomplete):
|
16579
|
+
self._BorderIncomplete = BorderIncomplete
|
16580
|
+
|
16581
|
+
@property
|
16582
|
+
def RequestId(self):
|
16583
|
+
return self._RequestId
|
16584
|
+
|
16585
|
+
@RequestId.setter
|
16586
|
+
def RequestId(self, RequestId):
|
16587
|
+
self._RequestId = RequestId
|
16588
|
+
|
16589
|
+
|
16590
|
+
def _deserialize(self, params):
|
16591
|
+
if params.get("Copy") is not None:
|
16592
|
+
self._Copy = GeneralWarnInfo()
|
16593
|
+
self._Copy._deserialize(params.get("Copy"))
|
16594
|
+
if params.get("Reprint") is not None:
|
16595
|
+
self._Reprint = GeneralWarnInfo()
|
16596
|
+
self._Reprint._deserialize(params.get("Reprint"))
|
16597
|
+
if params.get("Blur") is not None:
|
16598
|
+
self._Blur = GeneralWarnInfo()
|
16599
|
+
self._Blur._deserialize(params.get("Blur"))
|
16600
|
+
if params.get("Reflection") is not None:
|
16601
|
+
self._Reflection = GeneralWarnInfo()
|
16602
|
+
self._Reflection._deserialize(params.get("Reflection"))
|
16603
|
+
if params.get("BorderIncomplete") is not None:
|
16604
|
+
self._BorderIncomplete = GeneralWarnInfo()
|
16605
|
+
self._BorderIncomplete._deserialize(params.get("BorderIncomplete"))
|
16606
|
+
self._RequestId = params.get("RequestId")
|
16607
|
+
|
16608
|
+
|
16358
16609
|
class RecognizeHealthCodeOCRRequest(AbstractModel):
|
16359
16610
|
"""RecognizeHealthCodeOCR请求参数结构体
|
16360
16611
|
|
@@ -1679,6 +1679,31 @@ class OcrClient(AbstractClient):
|
|
1679
1679
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1680
1680
|
|
1681
1681
|
|
1682
|
+
def RecognizeGeneralTextImageWarn(self, request):
|
1683
|
+
"""本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
|
1684
|
+
|
1685
|
+
默认接口请求频率限制:10次/秒。
|
1686
|
+
|
1687
|
+
:param request: Request instance for RecognizeGeneralTextImageWarn.
|
1688
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralTextImageWarnRequest`
|
1689
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralTextImageWarnResponse`
|
1690
|
+
|
1691
|
+
"""
|
1692
|
+
try:
|
1693
|
+
params = request._serialize()
|
1694
|
+
headers = request.headers
|
1695
|
+
body = self.call("RecognizeGeneralTextImageWarn", params, headers=headers)
|
1696
|
+
response = json.loads(body)
|
1697
|
+
model = models.RecognizeGeneralTextImageWarnResponse()
|
1698
|
+
model._deserialize(response["Response"])
|
1699
|
+
return model
|
1700
|
+
except Exception as e:
|
1701
|
+
if isinstance(e, TencentCloudSDKException):
|
1702
|
+
raise
|
1703
|
+
else:
|
1704
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1705
|
+
|
1706
|
+
|
1682
1707
|
def RecognizeHealthCodeOCR(self, request):
|
1683
1708
|
"""本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
1684
1709
|
|
@@ -1123,7 +1123,12 @@ class OutputManageMarketingRisk(AbstractModel):
|
|
1123
1123
|
|
1124
1124
|
def __init__(self):
|
1125
1125
|
r"""
|
1126
|
-
:param _Code:
|
1126
|
+
:param _Code: 错误码,0 表示成功,非0表示失败错误码。
|
1127
|
+
0:成功
|
1128
|
+
1:错误
|
1129
|
+
1002:参数错误
|
1130
|
+
4300:未开通服务
|
1131
|
+
4301:后端未创建对应产品
|
1127
1132
|
注意:此字段可能返回 null,表示取不到有效值。
|
1128
1133
|
:type Code: int
|
1129
1134
|
:param _Message: UTF-8编码,出错消息。
|
@@ -372,7 +372,7 @@ class CreateTawInstanceRequest(AbstractModel):
|
|
372
372
|
:type Tags: list of Tag
|
373
373
|
:param _InstanceDesc: 实例描述,(最大长度不超过1024字节)
|
374
374
|
:type InstanceDesc: str
|
375
|
-
:param _CountNum:
|
375
|
+
:param _CountNum: 每天数据上报量,(不作量级限制)
|
376
376
|
:type CountNum: str
|
377
377
|
:param _PeriodRetain: 数据存储时长计费
|
378
378
|
:type PeriodRetain: str
|
@@ -582,7 +582,7 @@ class CreateWhitelistRequest(AbstractModel):
|
|
582
582
|
r"""
|
583
583
|
:param _InstanceID: 实例ID:taw-123
|
584
584
|
:type InstanceID: str
|
585
|
-
:param _Remark:
|
585
|
+
:param _Remark: 备注(暂未作字节数限制)
|
586
586
|
:type Remark: str
|
587
587
|
:param _WhitelistUin: uin:业务方标识
|
588
588
|
:type WhitelistUin: str
|
@@ -1783,7 +1783,7 @@ class DescribeDataCustomUrlRequest(AbstractModel):
|
|
1783
1783
|
:type NetType: str
|
1784
1784
|
:param _Device: 机型
|
1785
1785
|
:type Device: str
|
1786
|
-
:param _IsAbroad:
|
1786
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
1787
1787
|
:type IsAbroad: str
|
1788
1788
|
:param _Os: 操作系统
|
1789
1789
|
:type Os: str
|
@@ -2439,7 +2439,7 @@ class DescribeDataFetchProjectRequest(AbstractModel):
|
|
2439
2439
|
:type NetType: str
|
2440
2440
|
:param _Device: 机型
|
2441
2441
|
:type Device: str
|
2442
|
-
:param _IsAbroad:
|
2442
|
+
:param _IsAbroad: 是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
2443
2443
|
:type IsAbroad: str
|
2444
2444
|
:param _Os: 操作系统
|
2445
2445
|
:type Os: str
|
@@ -2797,7 +2797,7 @@ class DescribeDataFetchUrlInfoRequest(AbstractModel):
|
|
2797
2797
|
:type NetType: str
|
2798
2798
|
:param _Device: 机型
|
2799
2799
|
:type Device: str
|
2800
|
-
:param _IsAbroad:
|
2800
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
2801
2801
|
:type IsAbroad: str
|
2802
2802
|
:param _Os: 操作系统
|
2803
2803
|
:type Os: str
|
@@ -3131,7 +3131,7 @@ class DescribeDataFetchUrlRequest(AbstractModel):
|
|
3131
3131
|
:type NetType: str
|
3132
3132
|
:param _Device: 机型
|
3133
3133
|
:type Device: str
|
3134
|
-
:param _IsAbroad:
|
3134
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
3135
3135
|
:type IsAbroad: str
|
3136
3136
|
:param _Os: 操作系统
|
3137
3137
|
:type Os: str
|
@@ -3595,7 +3595,7 @@ class DescribeDataLogUrlStatisticsRequest(AbstractModel):
|
|
3595
3595
|
:type NetType: str
|
3596
3596
|
:param _Device: 机型
|
3597
3597
|
:type Device: str
|
3598
|
-
:param _IsAbroad:
|
3598
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
3599
3599
|
:type IsAbroad: str
|
3600
3600
|
:param _Os: 操作系统
|
3601
3601
|
:type Os: str
|
@@ -3899,7 +3899,7 @@ class DescribeDataPerformancePageRequest(AbstractModel):
|
|
3899
3899
|
:type ExtSecond: str
|
3900
3900
|
:param _ExtThird: 自定义3
|
3901
3901
|
:type ExtThird: str
|
3902
|
-
:param _IsAbroad:
|
3902
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
3903
3903
|
:type IsAbroad: str
|
3904
3904
|
:param _Browser: 浏览器
|
3905
3905
|
:type Browser: str
|
@@ -4239,7 +4239,7 @@ class DescribeDataPvUrlInfoRequest(AbstractModel):
|
|
4239
4239
|
:type NetType: str
|
4240
4240
|
:param _Device: 机型
|
4241
4241
|
:type Device: str
|
4242
|
-
:param _IsAbroad:
|
4242
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
4243
4243
|
:type IsAbroad: str
|
4244
4244
|
:param _Os: 操作系统
|
4245
4245
|
:type Os: str
|
@@ -4549,7 +4549,7 @@ class DescribeDataPvUrlStatisticsRequest(AbstractModel):
|
|
4549
4549
|
:type NetType: str
|
4550
4550
|
:param _Device: 机型
|
4551
4551
|
:type Device: str
|
4552
|
-
:param _IsAbroad:
|
4552
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
4553
4553
|
:type IsAbroad: str
|
4554
4554
|
:param _Os: 操作系统
|
4555
4555
|
:type Os: str
|
@@ -5085,7 +5085,7 @@ class DescribeDataSetUrlStatisticsRequest(AbstractModel):
|
|
5085
5085
|
:type NetType: str
|
5086
5086
|
:param _Device: 机型
|
5087
5087
|
:type Device: str
|
5088
|
-
:param _IsAbroad:
|
5088
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
5089
5089
|
:type IsAbroad: str
|
5090
5090
|
:param _Os: 操作系统
|
5091
5091
|
:type Os: str
|
@@ -5419,7 +5419,7 @@ class DescribeDataStaticProjectRequest(AbstractModel):
|
|
5419
5419
|
:type NetType: str
|
5420
5420
|
:param _Device: 机型
|
5421
5421
|
:type Device: str
|
5422
|
-
:param _IsAbroad:
|
5422
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
5423
5423
|
:type IsAbroad: str
|
5424
5424
|
:param _Os: 操作系统
|
5425
5425
|
:type Os: str
|
@@ -5753,7 +5753,7 @@ class DescribeDataStaticResourceRequest(AbstractModel):
|
|
5753
5753
|
:type NetType: str
|
5754
5754
|
:param _Device: 机型
|
5755
5755
|
:type Device: str
|
5756
|
-
:param _IsAbroad:
|
5756
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
5757
5757
|
:type IsAbroad: str
|
5758
5758
|
:param _Os: 操作系统
|
5759
5759
|
:type Os: str
|
@@ -6087,7 +6087,7 @@ class DescribeDataStaticUrlRequest(AbstractModel):
|
|
6087
6087
|
:type NetType: str
|
6088
6088
|
:param _Device: 机型
|
6089
6089
|
:type Device: str
|
6090
|
-
:param _IsAbroad:
|
6090
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
6091
6091
|
:type IsAbroad: str
|
6092
6092
|
:param _Os: 操作系统
|
6093
6093
|
:type Os: str
|
@@ -6421,7 +6421,7 @@ class DescribeDataWebVitalsPageRequest(AbstractModel):
|
|
6421
6421
|
:type NetType: str
|
6422
6422
|
:param _Device: 机型
|
6423
6423
|
:type Device: str
|
6424
|
-
:param _IsAbroad:
|
6424
|
+
:param _IsAbroad: 显示是否海外,1表示海外,0表示非海外;默认值为空,查询所有。
|
6425
6425
|
:type IsAbroad: str
|
6426
6426
|
:param _Os: 操作系统
|
6427
6427
|
:type Os: str
|
@@ -263,6 +263,9 @@ INTERNALERROR_QUERYSUBNETINFOFAILED = 'InternalError.QuerySubnetInfoFailed'
|
|
263
263
|
# 查询用户临时秘钥失败
|
264
264
|
INTERNALERROR_QUERYUSERTMPCREDENTIALFAILED = 'InternalError.QueryUserTMPCredentialFailed'
|
265
265
|
|
266
|
+
# 查询vpc信息失败
|
267
|
+
INTERNALERROR_QUERYVPCINFOFAILED = 'InternalError.QueryVPCInfoFailed'
|
268
|
+
|
266
269
|
# 停止任务失败。
|
267
270
|
INTERNALERROR_STOPJOBINSTANCEFAILED = 'InternalError.StopJobInstanceFailed'
|
268
271
|
|
@@ -350,6 +353,9 @@ INVALIDPARAMETERVALUE_DATASETNUMLIMITEXCEEDED = 'InvalidParameterValue.DatasetNu
|
|
350
353
|
# 实例名称冲突,请更换名称后重试。
|
351
354
|
INVALIDPARAMETERVALUE_DUPLICATENAME = 'InvalidParameterValue.DuplicateName'
|
352
355
|
|
356
|
+
# 文件系统路径访问权限受限
|
357
|
+
INVALIDPARAMETERVALUE_FSPATHINACCESSIBLE = 'InvalidParameterValue.FSPathInaccessible'
|
358
|
+
|
353
359
|
# 训练框架对应的版本不支持,请阅读文档查看TIONE目前支持的框架和版本。
|
354
360
|
INVALIDPARAMETERVALUE_FRAMEWORKVERSIONNOTSUPPORT = 'InvalidParameterValue.FrameworkVersionNotSupport'
|
355
361
|
|
@@ -479,9 +485,15 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
479
485
|
# 资源不存在。
|
480
486
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
481
487
|
|
488
|
+
# 文件系统不存在
|
489
|
+
RESOURCENOTFOUND_CFSNOTFOUND = 'ResourceNotFound.CfsNotFound'
|
490
|
+
|
482
491
|
# 没有该模型。
|
483
492
|
RESOURCENOTFOUND_NOMODEL = 'ResourceNotFound.NoModel'
|
484
493
|
|
494
|
+
# vpc不存在
|
495
|
+
RESOURCENOTFOUND_VPCNOTFOUND = 'ResourceNotFound.VPCNotFound'
|
496
|
+
|
485
497
|
# 资源不可用。
|
486
498
|
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
487
499
|
|
@@ -14,6 +14,9 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
|
17
|
+
# 内部错误。
|
18
|
+
INTERNALERROR = 'InternalError'
|
19
|
+
|
17
20
|
# 请求超时。
|
18
21
|
INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
|
19
22
|
|
@@ -26,6 +29,9 @@ INVALIDPARAMETER_ERRTEXTCONTENTLEN = 'InvalidParameter.ErrTextContentLen'
|
|
26
29
|
# 文本类型错误,需要base64的文本。
|
27
30
|
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = 'InvalidParameter.ErrTextContentType'
|
28
31
|
|
32
|
+
# Question参数错误
|
33
|
+
INVALIDPARAMETER_INVALIDQUESTION = 'InvalidParameter.InvalidQuestion'
|
34
|
+
|
29
35
|
# InvalidParameter.ParameterError
|
30
36
|
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
|
31
37
|
|
@@ -18,6 +18,76 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class AnswerQuestionRequest(AbstractModel):
|
22
|
+
"""AnswerQuestion请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Question: 用户问题
|
29
|
+
:type Question: str
|
30
|
+
"""
|
31
|
+
self._Question = None
|
32
|
+
|
33
|
+
@property
|
34
|
+
def Question(self):
|
35
|
+
return self._Question
|
36
|
+
|
37
|
+
@Question.setter
|
38
|
+
def Question(self, Question):
|
39
|
+
self._Question = Question
|
40
|
+
|
41
|
+
|
42
|
+
def _deserialize(self, params):
|
43
|
+
self._Question = params.get("Question")
|
44
|
+
memeber_set = set(params.keys())
|
45
|
+
for name, value in vars(self).items():
|
46
|
+
property_name = name[1:]
|
47
|
+
if property_name in memeber_set:
|
48
|
+
memeber_set.remove(property_name)
|
49
|
+
if len(memeber_set) > 0:
|
50
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
class AnswerQuestionResponse(AbstractModel):
|
55
|
+
"""AnswerQuestion返回参数结构体
|
56
|
+
|
57
|
+
"""
|
58
|
+
|
59
|
+
def __init__(self):
|
60
|
+
r"""
|
61
|
+
:param _Answer: 匹配到的答案
|
62
|
+
:type Answer: str
|
63
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
64
|
+
:type RequestId: str
|
65
|
+
"""
|
66
|
+
self._Answer = None
|
67
|
+
self._RequestId = None
|
68
|
+
|
69
|
+
@property
|
70
|
+
def Answer(self):
|
71
|
+
return self._Answer
|
72
|
+
|
73
|
+
@Answer.setter
|
74
|
+
def Answer(self, Answer):
|
75
|
+
self._Answer = Answer
|
76
|
+
|
77
|
+
@property
|
78
|
+
def RequestId(self):
|
79
|
+
return self._RequestId
|
80
|
+
|
81
|
+
@RequestId.setter
|
82
|
+
def RequestId(self, RequestId):
|
83
|
+
self._RequestId = RequestId
|
84
|
+
|
85
|
+
|
86
|
+
def _deserialize(self, params):
|
87
|
+
self._Answer = params.get("Answer")
|
88
|
+
self._RequestId = params.get("RequestId")
|
89
|
+
|
90
|
+
|
21
91
|
class DetailResults(AbstractModel):
|
22
92
|
"""文本审核返回的详细结果
|
23
93
|
|
@@ -26,6 +26,29 @@ class TmsClient(AbstractClient):
|
|
26
26
|
_service = 'tms'
|
27
27
|
|
28
28
|
|
29
|
+
def AnswerQuestion(self, request):
|
30
|
+
""""AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
|
31
|
+
|
32
|
+
:param request: Request instance for AnswerQuestion.
|
33
|
+
:type request: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionRequest`
|
34
|
+
:rtype: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("AnswerQuestion", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.AnswerQuestionResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def ModerateText(self, request):
|
30
53
|
"""天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
|
31
54
|
|