tencentcloud-sdk-python 3.0.1383__py2.py3-none-any.whl → 3.0.1385__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/batch/v20170312/models.py +12 -4
- tencentcloud/cbs/v20170312/cbs_client.py +1 -3
- tencentcloud/cbs/v20170312/models.py +104 -66
- tencentcloud/cdb/v20170320/models.py +24 -4
- tencentcloud/cdwdoris/v20211228/models.py +62 -2
- tencentcloud/clb/v20180317/models.py +10 -2
- tencentcloud/cls/v20201016/cls_client.py +2 -1
- tencentcloud/cls/v20201016/models.py +21 -2
- tencentcloud/cvm/v20170312/errorcodes.py +12 -3
- tencentcloud/cvm/v20170312/models.py +36 -34
- tencentcloud/cynosdb/v20190107/models.py +34 -8
- tencentcloud/dnspod/v20210323/dnspod_client.py +1 -1
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dnspod/v20210323/models.py +104 -104
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +10 -12
- tencentcloud/dsgc/v20190723/dsgc_client.py +45 -15
- tencentcloud/dsgc/v20190723/models.py +24 -4
- tencentcloud/dts/v20180330/models.py +8 -0
- tencentcloud/es/v20180416/models.py +87 -0
- tencentcloud/ess/v20201111/ess_client.py +25 -0
- tencentcloud/ess/v20201111/models.py +185 -2
- tencentcloud/essbasic/v20210526/models.py +8 -0
- tencentcloud/goosefs/v20220519/goosefs_client.py +138 -0
- tencentcloud/goosefs/v20220519/models.py +861 -1
- tencentcloud/hai/v20230812/hai_client.py +1 -1
- tencentcloud/hai/v20230812/models.py +6 -6
- tencentcloud/iotexplorer/v20190423/models.py +19 -4
- tencentcloud/keewidb/v20220308/models.py +26 -2
- tencentcloud/lighthouse/v20200324/models.py +4 -0
- tencentcloud/lke/v20231130/lke_client.py +3 -3
- tencentcloud/lke/v20231130/models.py +29 -107
- tencentcloud/lkeap/v20240522/lkeap_client.py +23 -19
- tencentcloud/lkeap/v20240522/models.py +167 -144
- tencentcloud/mps/v20190612/models.py +324 -0
- tencentcloud/mrs/v20200910/models.py +52 -0
- tencentcloud/postgres/v20170312/errorcodes.py +0 -3
- tencentcloud/postgres/v20170312/models.py +0 -338
- tencentcloud/postgres/v20170312/postgres_client.py +0 -50
- tencentcloud/privatedns/v20201028/models.py +4 -4
- tencentcloud/scf/v20180416/models.py +4 -4
- tencentcloud/sqlserver/v20180328/models.py +2 -2
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +30 -0
- tencentcloud/tcbr/v20220217/models.py +0 -16
- tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
- tencentcloud/teo/v20220901/models.py +81 -13
- tencentcloud/tke/v20180525/errorcodes.py +18 -0
- tencentcloud/tke/v20220501/models.py +115 -2
- tencentcloud/trtc/v20190722/models.py +50 -2
- tencentcloud/tse/v20201207/errorcodes.py +3 -0
- tencentcloud/tse/v20201207/models.py +126 -0
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/vpc/v20170312/vpc_client.py +1 -1
- tencentcloud/waf/v20180125/models.py +120 -32
- {tencentcloud_sdk_python-3.0.1383.dist-info → tencentcloud_sdk_python-3.0.1385.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1383.dist-info → tencentcloud_sdk_python-3.0.1385.dist-info}/RECORD +61 -61
- {tencentcloud_sdk_python-3.0.1383.dist-info → tencentcloud_sdk_python-3.0.1385.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1383.dist-info → tencentcloud_sdk_python-3.0.1385.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1383.dist-info → tencentcloud_sdk_python-3.0.1385.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,7 @@ class HaiClient(AbstractClient):
|
|
27
27
|
|
28
28
|
|
29
29
|
def CreateApplication(self, request):
|
30
|
-
"""本接口(
|
30
|
+
"""本接口(CreateApplication)用于对HAI实例制作自定义应用。
|
31
31
|
|
32
32
|
:param request: Request instance for CreateApplication.
|
33
33
|
:type request: :class:`tencentcloud.hai.v20230812.models.CreateApplicationRequest`
|
@@ -1895,7 +1895,7 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:表示明确不自动续费(用户设置)
|
|
1895
1895
|
默认值:NOTIFY_AND_MANUAL_RENEW
|
1896
1896
|
|
1897
1897
|
:type RenewFlag: str
|
1898
|
-
:param _TimeUnit:
|
1898
|
+
:param _TimeUnit: 时长单位,枚举: MONTH, DAY, HOUR;释义:月,日,小时
|
1899
1899
|
:type TimeUnit: str
|
1900
1900
|
"""
|
1901
1901
|
self._Period = None
|
@@ -1931,7 +1931,7 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:表示明确不自动续费(用户设置)
|
|
1931
1931
|
|
1932
1932
|
@property
|
1933
1933
|
def TimeUnit(self):
|
1934
|
-
"""
|
1934
|
+
"""时长单位,枚举: MONTH, DAY, HOUR;释义:月,日,小时
|
1935
1935
|
:rtype: str
|
1936
1936
|
"""
|
1937
1937
|
return self._TimeUnit
|
@@ -1962,9 +1962,9 @@ class ItemPrice(AbstractModel):
|
|
1962
1962
|
|
1963
1963
|
def __init__(self):
|
1964
1964
|
r"""
|
1965
|
-
:param _UnitPrice:
|
1965
|
+
:param _UnitPrice: 原单价,元
|
1966
1966
|
:type UnitPrice: float
|
1967
|
-
:param _DiscountUnitPrice:
|
1967
|
+
:param _DiscountUnitPrice: 折扣后单价,元
|
1968
1968
|
:type DiscountUnitPrice: float
|
1969
1969
|
:param _Discount: 折扣
|
1970
1970
|
:type Discount: float
|
@@ -1982,7 +1982,7 @@ class ItemPrice(AbstractModel):
|
|
1982
1982
|
|
1983
1983
|
@property
|
1984
1984
|
def UnitPrice(self):
|
1985
|
-
"""
|
1985
|
+
"""原单价,元
|
1986
1986
|
:rtype: float
|
1987
1987
|
"""
|
1988
1988
|
return self._UnitPrice
|
@@ -1993,7 +1993,7 @@ class ItemPrice(AbstractModel):
|
|
1993
1993
|
|
1994
1994
|
@property
|
1995
1995
|
def DiscountUnitPrice(self):
|
1996
|
-
"""
|
1996
|
+
"""折扣后单价,元
|
1997
1997
|
:rtype: float
|
1998
1998
|
"""
|
1999
1999
|
return self._DiscountUnitPrice
|
@@ -29755,7 +29755,7 @@ class VisionRecognitionResult(AbstractModel):
|
|
29755
29755
|
|
29756
29756
|
def __init__(self):
|
29757
29757
|
r"""
|
29758
|
-
:param _Status: 任务状态(1
|
29758
|
+
:param _Status: 任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功)
|
29759
29759
|
:type Status: int
|
29760
29760
|
:param _DetectedClassifications: 识别到的目标类型。可能取值:
|
29761
29761
|
|
@@ -29769,16 +29769,19 @@ class VisionRecognitionResult(AbstractModel):
|
|
29769
29769
|
- `license_plate`:车牌
|
29770
29770
|
|
29771
29771
|
:type DetectedClassifications: list of str
|
29772
|
-
:param _Summary:
|
29772
|
+
:param _Summary: 摘要文本
|
29773
29773
|
:type Summary: str
|
29774
|
+
:param _AlternativeSummary: 摘要文本(次选语言)
|
29775
|
+
:type AlternativeSummary: str
|
29774
29776
|
"""
|
29775
29777
|
self._Status = None
|
29776
29778
|
self._DetectedClassifications = None
|
29777
29779
|
self._Summary = None
|
29780
|
+
self._AlternativeSummary = None
|
29778
29781
|
|
29779
29782
|
@property
|
29780
29783
|
def Status(self):
|
29781
|
-
"""任务状态(1
|
29784
|
+
"""任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功)
|
29782
29785
|
:rtype: int
|
29783
29786
|
"""
|
29784
29787
|
return self._Status
|
@@ -29810,7 +29813,7 @@ class VisionRecognitionResult(AbstractModel):
|
|
29810
29813
|
|
29811
29814
|
@property
|
29812
29815
|
def Summary(self):
|
29813
|
-
"""
|
29816
|
+
"""摘要文本
|
29814
29817
|
:rtype: str
|
29815
29818
|
"""
|
29816
29819
|
return self._Summary
|
@@ -29819,11 +29822,23 @@ class VisionRecognitionResult(AbstractModel):
|
|
29819
29822
|
def Summary(self, Summary):
|
29820
29823
|
self._Summary = Summary
|
29821
29824
|
|
29825
|
+
@property
|
29826
|
+
def AlternativeSummary(self):
|
29827
|
+
"""摘要文本(次选语言)
|
29828
|
+
:rtype: str
|
29829
|
+
"""
|
29830
|
+
return self._AlternativeSummary
|
29831
|
+
|
29832
|
+
@AlternativeSummary.setter
|
29833
|
+
def AlternativeSummary(self, AlternativeSummary):
|
29834
|
+
self._AlternativeSummary = AlternativeSummary
|
29835
|
+
|
29822
29836
|
|
29823
29837
|
def _deserialize(self, params):
|
29824
29838
|
self._Status = params.get("Status")
|
29825
29839
|
self._DetectedClassifications = params.get("DetectedClassifications")
|
29826
29840
|
self._Summary = params.get("Summary")
|
29841
|
+
self._AlternativeSummary = params.get("AlternativeSummary")
|
29827
29842
|
memeber_set = set(params.keys())
|
29828
29843
|
for name, value in vars(self).items():
|
29829
29844
|
property_name = name[1:]
|
@@ -2644,10 +2644,12 @@ class DescribeInstancesRequest(AbstractModel):
|
|
2644
2644
|
:type TypeList: list of int
|
2645
2645
|
:param _MonitorVersion: 内部参数,用户可忽略。
|
2646
2646
|
:type MonitorVersion: str
|
2647
|
-
:param _InstanceTags:
|
2647
|
+
:param _InstanceTags: 废弃字段。请使用TagList传参。
|
2648
2648
|
:type InstanceTags: :class:`tencentcloud.keewidb.v20220308.models.InstanceTagInfo`
|
2649
2649
|
:param _TagKeys: 根据标签的 Key 筛选资源,该参数不配置或者数组设置为空值,则不根据标签Key进行过滤。
|
2650
2650
|
:type TagKeys: list of str
|
2651
|
+
:param _TagList: 根据标签的 Key 和 Value 筛选资源。该参数不配置或者数组设置为空值,则不根据标签进行过滤。
|
2652
|
+
:type TagList: list of InstanceTagInfo
|
2651
2653
|
"""
|
2652
2654
|
self._Limit = None
|
2653
2655
|
self._Offset = None
|
@@ -2670,6 +2672,7 @@ class DescribeInstancesRequest(AbstractModel):
|
|
2670
2672
|
self._MonitorVersion = None
|
2671
2673
|
self._InstanceTags = None
|
2672
2674
|
self._TagKeys = None
|
2675
|
+
self._TagList = None
|
2673
2676
|
|
2674
2677
|
@property
|
2675
2678
|
def Limit(self):
|
@@ -2883,13 +2886,17 @@ class DescribeInstancesRequest(AbstractModel):
|
|
2883
2886
|
|
2884
2887
|
@property
|
2885
2888
|
def InstanceTags(self):
|
2886
|
-
"
|
2889
|
+
warnings.warn("parameter `InstanceTags` is deprecated", DeprecationWarning)
|
2890
|
+
|
2891
|
+
"""废弃字段。请使用TagList传参。
|
2887
2892
|
:rtype: :class:`tencentcloud.keewidb.v20220308.models.InstanceTagInfo`
|
2888
2893
|
"""
|
2889
2894
|
return self._InstanceTags
|
2890
2895
|
|
2891
2896
|
@InstanceTags.setter
|
2892
2897
|
def InstanceTags(self, InstanceTags):
|
2898
|
+
warnings.warn("parameter `InstanceTags` is deprecated", DeprecationWarning)
|
2899
|
+
|
2893
2900
|
self._InstanceTags = InstanceTags
|
2894
2901
|
|
2895
2902
|
@property
|
@@ -2903,6 +2910,17 @@ class DescribeInstancesRequest(AbstractModel):
|
|
2903
2910
|
def TagKeys(self, TagKeys):
|
2904
2911
|
self._TagKeys = TagKeys
|
2905
2912
|
|
2913
|
+
@property
|
2914
|
+
def TagList(self):
|
2915
|
+
"""根据标签的 Key 和 Value 筛选资源。该参数不配置或者数组设置为空值,则不根据标签进行过滤。
|
2916
|
+
:rtype: list of InstanceTagInfo
|
2917
|
+
"""
|
2918
|
+
return self._TagList
|
2919
|
+
|
2920
|
+
@TagList.setter
|
2921
|
+
def TagList(self, TagList):
|
2922
|
+
self._TagList = TagList
|
2923
|
+
|
2906
2924
|
|
2907
2925
|
def _deserialize(self, params):
|
2908
2926
|
self._Limit = params.get("Limit")
|
@@ -2928,6 +2946,12 @@ class DescribeInstancesRequest(AbstractModel):
|
|
2928
2946
|
self._InstanceTags = InstanceTagInfo()
|
2929
2947
|
self._InstanceTags._deserialize(params.get("InstanceTags"))
|
2930
2948
|
self._TagKeys = params.get("TagKeys")
|
2949
|
+
if params.get("TagList") is not None:
|
2950
|
+
self._TagList = []
|
2951
|
+
for item in params.get("TagList"):
|
2952
|
+
obj = InstanceTagInfo()
|
2953
|
+
obj._deserialize(item)
|
2954
|
+
self._TagList.append(obj)
|
2931
2955
|
memeber_set = set(params.keys())
|
2932
2956
|
for name, value in vars(self).items():
|
2933
2957
|
property_name = name[1:]
|
@@ -15794,6 +15794,8 @@ class RenewDiskChargePrepaid(AbstractModel):
|
|
15794
15794
|
def __init__(self):
|
15795
15795
|
r"""
|
15796
15796
|
:param _Period: 续费周期。
|
15797
|
+
单位:月。
|
15798
|
+
取值范围: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]
|
15797
15799
|
:type Period: int
|
15798
15800
|
:param _RenewFlag: 自动续费标识。
|
15799
15801
|
取值范围:
|
@@ -15817,6 +15819,8 @@ class RenewDiskChargePrepaid(AbstractModel):
|
|
15817
15819
|
@property
|
15818
15820
|
def Period(self):
|
15819
15821
|
"""续费周期。
|
15822
|
+
单位:月。
|
15823
|
+
取值范围: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]
|
15820
15824
|
:rtype: int
|
15821
15825
|
"""
|
15822
15826
|
return self._Period
|
@@ -2202,9 +2202,9 @@ class LkeClient(AbstractClient):
|
|
2202
2202
|
def SaveDoc(self, request):
|
2203
2203
|
"""知识库文档问答保存。
|
2204
2204
|
将文件存储到应用的知识库内需要三步:
|
2205
|
-
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [
|
2206
|
-
2.调用腾讯云提供的 cos
|
2207
|
-
3
|
2205
|
+
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [智能体开发平台操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)
|
2206
|
+
2.调用腾讯云提供的 cos 存储接口,将文件存储到智能体开发平台 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS
|
2207
|
+
3.调用本接口,将文件的基础信息存储到智能体开发平台中。
|
2208
2208
|
以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
|
2209
2209
|
|
2210
2210
|
:param request: Request instance for SaveDoc.
|
@@ -6823,10 +6823,6 @@ class DescribeDocResponse(AbstractModel):
|
|
6823
6823
|
:type AttrLabels: list of AttrLabel
|
6824
6824
|
:param _CateBizId: 分类ID
|
6825
6825
|
:type CateBizId: str
|
6826
|
-
:param _CustomerKnowledgeId: 文档的用户自定义ID
|
6827
|
-
:type CustomerKnowledgeId: str
|
6828
|
-
:param _AttributeFlags: 文档的属性标记,0: 不做用户外部权限校验
|
6829
|
-
:type AttributeFlags: list of int non-negative
|
6830
6826
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6831
6827
|
:type RequestId: str
|
6832
6828
|
"""
|
@@ -6854,8 +6850,6 @@ class DescribeDocResponse(AbstractModel):
|
|
6854
6850
|
self._AttrRange = None
|
6855
6851
|
self._AttrLabels = None
|
6856
6852
|
self._CateBizId = None
|
6857
|
-
self._CustomerKnowledgeId = None
|
6858
|
-
self._AttributeFlags = None
|
6859
6853
|
self._RequestId = None
|
6860
6854
|
|
6861
6855
|
@property
|
@@ -7122,28 +7116,6 @@ class DescribeDocResponse(AbstractModel):
|
|
7122
7116
|
def CateBizId(self, CateBizId):
|
7123
7117
|
self._CateBizId = CateBizId
|
7124
7118
|
|
7125
|
-
@property
|
7126
|
-
def CustomerKnowledgeId(self):
|
7127
|
-
"""文档的用户自定义ID
|
7128
|
-
:rtype: str
|
7129
|
-
"""
|
7130
|
-
return self._CustomerKnowledgeId
|
7131
|
-
|
7132
|
-
@CustomerKnowledgeId.setter
|
7133
|
-
def CustomerKnowledgeId(self, CustomerKnowledgeId):
|
7134
|
-
self._CustomerKnowledgeId = CustomerKnowledgeId
|
7135
|
-
|
7136
|
-
@property
|
7137
|
-
def AttributeFlags(self):
|
7138
|
-
"""文档的属性标记,0: 不做用户外部权限校验
|
7139
|
-
:rtype: list of int non-negative
|
7140
|
-
"""
|
7141
|
-
return self._AttributeFlags
|
7142
|
-
|
7143
|
-
@AttributeFlags.setter
|
7144
|
-
def AttributeFlags(self, AttributeFlags):
|
7145
|
-
self._AttributeFlags = AttributeFlags
|
7146
|
-
|
7147
7119
|
@property
|
7148
7120
|
def RequestId(self):
|
7149
7121
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -7186,8 +7158,6 @@ class DescribeDocResponse(AbstractModel):
|
|
7186
7158
|
obj._deserialize(item)
|
7187
7159
|
self._AttrLabels.append(obj)
|
7188
7160
|
self._CateBizId = params.get("CateBizId")
|
7189
|
-
self._CustomerKnowledgeId = params.get("CustomerKnowledgeId")
|
7190
|
-
self._AttributeFlags = params.get("AttributeFlags")
|
7191
7161
|
self._RequestId = params.get("RequestId")
|
7192
7162
|
|
7193
7163
|
|
@@ -12054,25 +12024,31 @@ class GetMsgRecordRequest(AbstractModel):
|
|
12054
12024
|
r"""
|
12055
12025
|
:param _Type: 类型
|
12056
12026
|
:type Type: int
|
12057
|
-
:param _Count: 数量, 数量需大于2
|
12027
|
+
:param _Count: 数量, 数量需大于2, 最大1000
|
12058
12028
|
:type Count: int
|
12059
12029
|
:param _SessionId: 会话sessionid
|
12060
12030
|
:type SessionId: str
|
12061
|
-
:param _LastRecordId: 最后一条记录ID
|
12062
|
-
:type LastRecordId: str
|
12063
12031
|
:param _BotAppKey: 应用AppKey, 当Type=5[API访客]时, 该字段必填 :</br> 获取方式:</br> 1、应用发布后在应用页面[发布管理]-[调用信息]-[API管理]处获取</br> 2、参考 https://cloud.tencent.com/document/product/1759/109469 第二项
|
12064
12032
|
:type BotAppKey: str
|
12065
12033
|
:param _Scene: 场景, 体验: 1; 正式: 2
|
12066
12034
|
:type Scene: int
|
12035
|
+
:param _LastRecordId: 最后一条记录ID, 消息从后往前获取
|
12036
|
+
|
12037
|
+
MidRecordId与LastRecordId只能选择一个
|
12038
|
+
|
12039
|
+
:type LastRecordId: str
|
12067
12040
|
:param _MidRecordId: 传该值,代表拉取该记录id的前后总共count条消息记录
|
12041
|
+
|
12042
|
+
MidRecordId与LastRecordId只能选择一个
|
12043
|
+
|
12068
12044
|
:type MidRecordId: str
|
12069
12045
|
"""
|
12070
12046
|
self._Type = None
|
12071
12047
|
self._Count = None
|
12072
12048
|
self._SessionId = None
|
12073
|
-
self._LastRecordId = None
|
12074
12049
|
self._BotAppKey = None
|
12075
12050
|
self._Scene = None
|
12051
|
+
self._LastRecordId = None
|
12076
12052
|
self._MidRecordId = None
|
12077
12053
|
|
12078
12054
|
@property
|
@@ -12088,7 +12064,7 @@ class GetMsgRecordRequest(AbstractModel):
|
|
12088
12064
|
|
12089
12065
|
@property
|
12090
12066
|
def Count(self):
|
12091
|
-
"""数量, 数量需大于2
|
12067
|
+
"""数量, 数量需大于2, 最大1000
|
12092
12068
|
:rtype: int
|
12093
12069
|
"""
|
12094
12070
|
return self._Count
|
@@ -12108,17 +12084,6 @@ class GetMsgRecordRequest(AbstractModel):
|
|
12108
12084
|
def SessionId(self, SessionId):
|
12109
12085
|
self._SessionId = SessionId
|
12110
12086
|
|
12111
|
-
@property
|
12112
|
-
def LastRecordId(self):
|
12113
|
-
"""最后一条记录ID
|
12114
|
-
:rtype: str
|
12115
|
-
"""
|
12116
|
-
return self._LastRecordId
|
12117
|
-
|
12118
|
-
@LastRecordId.setter
|
12119
|
-
def LastRecordId(self, LastRecordId):
|
12120
|
-
self._LastRecordId = LastRecordId
|
12121
|
-
|
12122
12087
|
@property
|
12123
12088
|
def BotAppKey(self):
|
12124
12089
|
"""应用AppKey, 当Type=5[API访客]时, 该字段必填 :</br> 获取方式:</br> 1、应用发布后在应用页面[发布管理]-[调用信息]-[API管理]处获取</br> 2、参考 https://cloud.tencent.com/document/product/1759/109469 第二项
|
@@ -12141,9 +12106,26 @@ class GetMsgRecordRequest(AbstractModel):
|
|
12141
12106
|
def Scene(self, Scene):
|
12142
12107
|
self._Scene = Scene
|
12143
12108
|
|
12109
|
+
@property
|
12110
|
+
def LastRecordId(self):
|
12111
|
+
"""最后一条记录ID, 消息从后往前获取
|
12112
|
+
|
12113
|
+
MidRecordId与LastRecordId只能选择一个
|
12114
|
+
|
12115
|
+
:rtype: str
|
12116
|
+
"""
|
12117
|
+
return self._LastRecordId
|
12118
|
+
|
12119
|
+
@LastRecordId.setter
|
12120
|
+
def LastRecordId(self, LastRecordId):
|
12121
|
+
self._LastRecordId = LastRecordId
|
12122
|
+
|
12144
12123
|
@property
|
12145
12124
|
def MidRecordId(self):
|
12146
12125
|
"""传该值,代表拉取该记录id的前后总共count条消息记录
|
12126
|
+
|
12127
|
+
MidRecordId与LastRecordId只能选择一个
|
12128
|
+
|
12147
12129
|
:rtype: str
|
12148
12130
|
"""
|
12149
12131
|
return self._MidRecordId
|
@@ -12157,9 +12139,9 @@ class GetMsgRecordRequest(AbstractModel):
|
|
12157
12139
|
self._Type = params.get("Type")
|
12158
12140
|
self._Count = params.get("Count")
|
12159
12141
|
self._SessionId = params.get("SessionId")
|
12160
|
-
self._LastRecordId = params.get("LastRecordId")
|
12161
12142
|
self._BotAppKey = params.get("BotAppKey")
|
12162
12143
|
self._Scene = params.get("Scene")
|
12144
|
+
self._LastRecordId = params.get("LastRecordId")
|
12163
12145
|
self._MidRecordId = params.get("MidRecordId")
|
12164
12146
|
memeber_set = set(params.keys())
|
12165
12147
|
for name, value in vars(self).items():
|
@@ -20189,10 +20171,6 @@ class ModifyDocRequest(AbstractModel):
|
|
20189
20171
|
:type ExpireEnd: str
|
20190
20172
|
:param _CateBizId: 分类ID
|
20191
20173
|
:type CateBizId: str
|
20192
|
-
:param _CustomerKnowledgeId: 文档的用户自定义ID
|
20193
|
-
:type CustomerKnowledgeId: str
|
20194
|
-
:param _AttributeFlags: 文档的属性标记,0: 不做用户外部权限校验
|
20195
|
-
:type AttributeFlags: list of int non-negative
|
20196
20174
|
"""
|
20197
20175
|
self._BotBizId = None
|
20198
20176
|
self._DocBizId = None
|
@@ -20206,8 +20184,6 @@ class ModifyDocRequest(AbstractModel):
|
|
20206
20184
|
self._ExpireStart = None
|
20207
20185
|
self._ExpireEnd = None
|
20208
20186
|
self._CateBizId = None
|
20209
|
-
self._CustomerKnowledgeId = None
|
20210
|
-
self._AttributeFlags = None
|
20211
20187
|
|
20212
20188
|
@property
|
20213
20189
|
def BotBizId(self):
|
@@ -20342,28 +20318,6 @@ class ModifyDocRequest(AbstractModel):
|
|
20342
20318
|
def CateBizId(self, CateBizId):
|
20343
20319
|
self._CateBizId = CateBizId
|
20344
20320
|
|
20345
|
-
@property
|
20346
|
-
def CustomerKnowledgeId(self):
|
20347
|
-
"""文档的用户自定义ID
|
20348
|
-
:rtype: str
|
20349
|
-
"""
|
20350
|
-
return self._CustomerKnowledgeId
|
20351
|
-
|
20352
|
-
@CustomerKnowledgeId.setter
|
20353
|
-
def CustomerKnowledgeId(self, CustomerKnowledgeId):
|
20354
|
-
self._CustomerKnowledgeId = CustomerKnowledgeId
|
20355
|
-
|
20356
|
-
@property
|
20357
|
-
def AttributeFlags(self):
|
20358
|
-
"""文档的属性标记,0: 不做用户外部权限校验
|
20359
|
-
:rtype: list of int non-negative
|
20360
|
-
"""
|
20361
|
-
return self._AttributeFlags
|
20362
|
-
|
20363
|
-
@AttributeFlags.setter
|
20364
|
-
def AttributeFlags(self, AttributeFlags):
|
20365
|
-
self._AttributeFlags = AttributeFlags
|
20366
|
-
|
20367
20321
|
|
20368
20322
|
def _deserialize(self, params):
|
20369
20323
|
self._BotBizId = params.get("BotBizId")
|
@@ -20383,8 +20337,6 @@ class ModifyDocRequest(AbstractModel):
|
|
20383
20337
|
self._ExpireStart = params.get("ExpireStart")
|
20384
20338
|
self._ExpireEnd = params.get("ExpireEnd")
|
20385
20339
|
self._CateBizId = params.get("CateBizId")
|
20386
|
-
self._CustomerKnowledgeId = params.get("CustomerKnowledgeId")
|
20387
|
-
self._AttributeFlags = params.get("AttributeFlags")
|
20388
20340
|
memeber_set = set(params.keys())
|
20389
20341
|
for name, value in vars(self).items():
|
20390
20342
|
property_name = name[1:]
|
@@ -25066,10 +25018,6 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
25066
25018
|
:type Opt: int
|
25067
25019
|
:param _CateBizId: 分类ID
|
25068
25020
|
:type CateBizId: str
|
25069
|
-
:param _CustomerKnowledgeId: 文档的用户自定义ID
|
25070
|
-
:type CustomerKnowledgeId: str
|
25071
|
-
:param _AttributeFlags: 文档的属性标记,0: 不做用户外部权限校验
|
25072
|
-
:type AttributeFlags: list of int non-negative
|
25073
25021
|
"""
|
25074
25022
|
self._BotBizId = None
|
25075
25023
|
self._FileName = None
|
@@ -25088,8 +25036,6 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
25088
25036
|
self._IsRefer = None
|
25089
25037
|
self._Opt = None
|
25090
25038
|
self._CateBizId = None
|
25091
|
-
self._CustomerKnowledgeId = None
|
25092
|
-
self._AttributeFlags = None
|
25093
25039
|
|
25094
25040
|
@property
|
25095
25041
|
def BotBizId(self):
|
@@ -25288,28 +25234,6 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
25288
25234
|
def CateBizId(self, CateBizId):
|
25289
25235
|
self._CateBizId = CateBizId
|
25290
25236
|
|
25291
|
-
@property
|
25292
|
-
def CustomerKnowledgeId(self):
|
25293
|
-
"""文档的用户自定义ID
|
25294
|
-
:rtype: str
|
25295
|
-
"""
|
25296
|
-
return self._CustomerKnowledgeId
|
25297
|
-
|
25298
|
-
@CustomerKnowledgeId.setter
|
25299
|
-
def CustomerKnowledgeId(self, CustomerKnowledgeId):
|
25300
|
-
self._CustomerKnowledgeId = CustomerKnowledgeId
|
25301
|
-
|
25302
|
-
@property
|
25303
|
-
def AttributeFlags(self):
|
25304
|
-
"""文档的属性标记,0: 不做用户外部权限校验
|
25305
|
-
:rtype: list of int non-negative
|
25306
|
-
"""
|
25307
|
-
return self._AttributeFlags
|
25308
|
-
|
25309
|
-
@AttributeFlags.setter
|
25310
|
-
def AttributeFlags(self, AttributeFlags):
|
25311
|
-
self._AttributeFlags = AttributeFlags
|
25312
|
-
|
25313
25237
|
|
25314
25238
|
def _deserialize(self, params):
|
25315
25239
|
self._BotBizId = params.get("BotBizId")
|
@@ -25334,8 +25258,6 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
25334
25258
|
self._IsRefer = params.get("IsRefer")
|
25335
25259
|
self._Opt = params.get("Opt")
|
25336
25260
|
self._CateBizId = params.get("CateBizId")
|
25337
|
-
self._CustomerKnowledgeId = params.get("CustomerKnowledgeId")
|
25338
|
-
self._AttributeFlags = params.get("AttributeFlags")
|
25339
25261
|
memeber_set = set(params.keys())
|
25340
25262
|
for name, value in vars(self).items():
|
25341
25263
|
property_name = name[1:]
|
@@ -684,6 +684,29 @@ class LkeapClient(AbstractClient):
|
|
684
684
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
685
685
|
|
686
686
|
|
687
|
+
def RetrieveKnowledgeRealtime(self, request):
|
688
|
+
"""用于实时检索在UploadDocRealtime接口上传的实时文档内容。 使用场景:适用于在会话中对文档进行问答的场景
|
689
|
+
|
690
|
+
:param request: Request instance for RetrieveKnowledgeRealtime.
|
691
|
+
:type request: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeRequest`
|
692
|
+
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeResponse`
|
693
|
+
|
694
|
+
"""
|
695
|
+
try:
|
696
|
+
params = request._serialize()
|
697
|
+
headers = request.headers
|
698
|
+
body = self.call("RetrieveKnowledgeRealtime", params, headers=headers)
|
699
|
+
response = json.loads(body)
|
700
|
+
model = models.RetrieveKnowledgeRealtimeResponse()
|
701
|
+
model._deserialize(response["Response"])
|
702
|
+
return model
|
703
|
+
except Exception as e:
|
704
|
+
if isinstance(e, TencentCloudSDKException):
|
705
|
+
raise
|
706
|
+
else:
|
707
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
708
|
+
|
709
|
+
|
687
710
|
def RunRerank(self, request):
|
688
711
|
"""基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。
|
689
712
|
|
@@ -724,25 +747,6 @@ class LkeapClient(AbstractClient):
|
|
724
747
|
model = models.UploadDocResponse()
|
725
748
|
model._deserialize(response["Response"])
|
726
749
|
return model
|
727
|
-
except Exception as e:
|
728
|
-
if isinstance(e, TencentCloudSDKException):
|
729
|
-
raise
|
730
|
-
else:
|
731
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
732
|
-
|
733
|
-
|
734
|
-
def UploadDocRealtime(self, request):
|
735
|
-
"""用于上传实时文档内容。
|
736
|
-
实时文档在上传后可以立即通过SearchRealtime进行实时检索,适用于在会话中对文档进行问答的场景。
|
737
|
-
|
738
|
-
:param request: Request instance for UploadDocRealtime.
|
739
|
-
:type request: :class:`tencentcloud.lkeap.v20240522.models.UploadDocRealtimeRequest`
|
740
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.UploadDocRealtimeResponse`
|
741
|
-
|
742
|
-
"""
|
743
|
-
try:
|
744
|
-
params = request._serialize()
|
745
|
-
return self._call_and_deserialize("UploadDocRealtime", params, models.UploadDocRealtimeResponse, headers=request.headers)
|
746
750
|
except Exception as e:
|
747
751
|
if isinstance(e, TencentCloudSDKException):
|
748
752
|
raise
|