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
@@ -4526,6 +4526,173 @@ class RetrievalSetting(AbstractModel):
|
|
4526
4526
|
|
4527
4527
|
|
4528
4528
|
|
4529
|
+
class RetrieveKnowledgeRealtimeRequest(AbstractModel):
|
4530
|
+
"""RetrieveKnowledgeRealtime请求参数结构体
|
4531
|
+
|
4532
|
+
"""
|
4533
|
+
|
4534
|
+
def __init__(self):
|
4535
|
+
r"""
|
4536
|
+
:param _KnowledgeBaseId: 知识库ID。
|
4537
|
+
:type KnowledgeBaseId: str
|
4538
|
+
:param _Query: 用于检索的文本。
|
4539
|
+
:type Query: str
|
4540
|
+
:param _DocIds: 实时文件ID列表。
|
4541
|
+
:type DocIds: list of str
|
4542
|
+
:param _RetrievalMethod: 检索方法,默认使用`HYBRID`混合检索。
|
4543
|
+
- `SEMANTIC`:语义检索
|
4544
|
+
- `FULL_TEXT`:全文检索
|
4545
|
+
- `HYBRID`:混合检索
|
4546
|
+
:type RetrievalMethod: str
|
4547
|
+
:param _RetrievalSetting: 检索设置。
|
4548
|
+
:type RetrievalSetting: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
4549
|
+
"""
|
4550
|
+
self._KnowledgeBaseId = None
|
4551
|
+
self._Query = None
|
4552
|
+
self._DocIds = None
|
4553
|
+
self._RetrievalMethod = None
|
4554
|
+
self._RetrievalSetting = None
|
4555
|
+
|
4556
|
+
@property
|
4557
|
+
def KnowledgeBaseId(self):
|
4558
|
+
"""知识库ID。
|
4559
|
+
:rtype: str
|
4560
|
+
"""
|
4561
|
+
return self._KnowledgeBaseId
|
4562
|
+
|
4563
|
+
@KnowledgeBaseId.setter
|
4564
|
+
def KnowledgeBaseId(self, KnowledgeBaseId):
|
4565
|
+
self._KnowledgeBaseId = KnowledgeBaseId
|
4566
|
+
|
4567
|
+
@property
|
4568
|
+
def Query(self):
|
4569
|
+
"""用于检索的文本。
|
4570
|
+
:rtype: str
|
4571
|
+
"""
|
4572
|
+
return self._Query
|
4573
|
+
|
4574
|
+
@Query.setter
|
4575
|
+
def Query(self, Query):
|
4576
|
+
self._Query = Query
|
4577
|
+
|
4578
|
+
@property
|
4579
|
+
def DocIds(self):
|
4580
|
+
"""实时文件ID列表。
|
4581
|
+
:rtype: list of str
|
4582
|
+
"""
|
4583
|
+
return self._DocIds
|
4584
|
+
|
4585
|
+
@DocIds.setter
|
4586
|
+
def DocIds(self, DocIds):
|
4587
|
+
self._DocIds = DocIds
|
4588
|
+
|
4589
|
+
@property
|
4590
|
+
def RetrievalMethod(self):
|
4591
|
+
"""检索方法,默认使用`HYBRID`混合检索。
|
4592
|
+
- `SEMANTIC`:语义检索
|
4593
|
+
- `FULL_TEXT`:全文检索
|
4594
|
+
- `HYBRID`:混合检索
|
4595
|
+
:rtype: str
|
4596
|
+
"""
|
4597
|
+
return self._RetrievalMethod
|
4598
|
+
|
4599
|
+
@RetrievalMethod.setter
|
4600
|
+
def RetrievalMethod(self, RetrievalMethod):
|
4601
|
+
self._RetrievalMethod = RetrievalMethod
|
4602
|
+
|
4603
|
+
@property
|
4604
|
+
def RetrievalSetting(self):
|
4605
|
+
"""检索设置。
|
4606
|
+
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
4607
|
+
"""
|
4608
|
+
return self._RetrievalSetting
|
4609
|
+
|
4610
|
+
@RetrievalSetting.setter
|
4611
|
+
def RetrievalSetting(self, RetrievalSetting):
|
4612
|
+
self._RetrievalSetting = RetrievalSetting
|
4613
|
+
|
4614
|
+
|
4615
|
+
def _deserialize(self, params):
|
4616
|
+
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
4617
|
+
self._Query = params.get("Query")
|
4618
|
+
self._DocIds = params.get("DocIds")
|
4619
|
+
self._RetrievalMethod = params.get("RetrievalMethod")
|
4620
|
+
if params.get("RetrievalSetting") is not None:
|
4621
|
+
self._RetrievalSetting = RetrievalSetting()
|
4622
|
+
self._RetrievalSetting._deserialize(params.get("RetrievalSetting"))
|
4623
|
+
memeber_set = set(params.keys())
|
4624
|
+
for name, value in vars(self).items():
|
4625
|
+
property_name = name[1:]
|
4626
|
+
if property_name in memeber_set:
|
4627
|
+
memeber_set.remove(property_name)
|
4628
|
+
if len(memeber_set) > 0:
|
4629
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4630
|
+
|
4631
|
+
|
4632
|
+
|
4633
|
+
class RetrieveKnowledgeRealtimeResponse(AbstractModel):
|
4634
|
+
"""RetrieveKnowledgeRealtime返回参数结构体
|
4635
|
+
|
4636
|
+
"""
|
4637
|
+
|
4638
|
+
def __init__(self):
|
4639
|
+
r"""
|
4640
|
+
:param _Records: 检索结果
|
4641
|
+
:type Records: list of RetrievalRecord
|
4642
|
+
:param _TotalCount: 检索结果数量
|
4643
|
+
:type TotalCount: int
|
4644
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4645
|
+
:type RequestId: str
|
4646
|
+
"""
|
4647
|
+
self._Records = None
|
4648
|
+
self._TotalCount = None
|
4649
|
+
self._RequestId = None
|
4650
|
+
|
4651
|
+
@property
|
4652
|
+
def Records(self):
|
4653
|
+
"""检索结果
|
4654
|
+
:rtype: list of RetrievalRecord
|
4655
|
+
"""
|
4656
|
+
return self._Records
|
4657
|
+
|
4658
|
+
@Records.setter
|
4659
|
+
def Records(self, Records):
|
4660
|
+
self._Records = Records
|
4661
|
+
|
4662
|
+
@property
|
4663
|
+
def TotalCount(self):
|
4664
|
+
"""检索结果数量
|
4665
|
+
:rtype: int
|
4666
|
+
"""
|
4667
|
+
return self._TotalCount
|
4668
|
+
|
4669
|
+
@TotalCount.setter
|
4670
|
+
def TotalCount(self, TotalCount):
|
4671
|
+
self._TotalCount = TotalCount
|
4672
|
+
|
4673
|
+
@property
|
4674
|
+
def RequestId(self):
|
4675
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4676
|
+
:rtype: str
|
4677
|
+
"""
|
4678
|
+
return self._RequestId
|
4679
|
+
|
4680
|
+
@RequestId.setter
|
4681
|
+
def RequestId(self, RequestId):
|
4682
|
+
self._RequestId = RequestId
|
4683
|
+
|
4684
|
+
|
4685
|
+
def _deserialize(self, params):
|
4686
|
+
if params.get("Records") is not None:
|
4687
|
+
self._Records = []
|
4688
|
+
for item in params.get("Records"):
|
4689
|
+
obj = RetrievalRecord()
|
4690
|
+
obj._deserialize(item)
|
4691
|
+
self._Records.append(obj)
|
4692
|
+
self._TotalCount = params.get("TotalCount")
|
4693
|
+
self._RequestId = params.get("RequestId")
|
4694
|
+
|
4695
|
+
|
4529
4696
|
class RetrieveKnowledgeRequest(AbstractModel):
|
4530
4697
|
"""RetrieveKnowledge请求参数结构体
|
4531
4698
|
|
@@ -5024,150 +5191,6 @@ class SplitDocumentFailedPage(AbstractModel):
|
|
5024
5191
|
|
5025
5192
|
|
5026
5193
|
|
5027
|
-
class UploadDocRealtimeRequest(AbstractModel):
|
5028
|
-
"""UploadDocRealtime请求参数结构体
|
5029
|
-
|
5030
|
-
"""
|
5031
|
-
|
5032
|
-
def __init__(self):
|
5033
|
-
r"""
|
5034
|
-
:param _KnowledgeBaseId: 知识库ID
|
5035
|
-
:type KnowledgeBaseId: str
|
5036
|
-
:param _FileName: 文件名,可选。
|
5037
|
-
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
5038
|
-
:type FileName: str
|
5039
|
-
:param _FileType: 文件类型。
|
5040
|
-
**支持的文件类型:**
|
5041
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
5042
|
-
|
5043
|
-
**支持的文件大小:**
|
5044
|
-
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
5045
|
-
- `TXT`、`MD` 最大10M
|
5046
|
-
- 其他 最大20M
|
5047
|
-
:type FileType: str
|
5048
|
-
:param _FileUrl: 文件的 URL 地址。
|
5049
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
5050
|
-
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
5051
|
-
:type FileUrl: str
|
5052
|
-
:param _ExpireTime: 过期时间的秒数,最长24小时,默认24小时
|
5053
|
-
:type ExpireTime: int
|
5054
|
-
"""
|
5055
|
-
self._KnowledgeBaseId = None
|
5056
|
-
self._FileName = None
|
5057
|
-
self._FileType = None
|
5058
|
-
self._FileUrl = None
|
5059
|
-
self._ExpireTime = None
|
5060
|
-
|
5061
|
-
@property
|
5062
|
-
def KnowledgeBaseId(self):
|
5063
|
-
"""知识库ID
|
5064
|
-
:rtype: str
|
5065
|
-
"""
|
5066
|
-
return self._KnowledgeBaseId
|
5067
|
-
|
5068
|
-
@KnowledgeBaseId.setter
|
5069
|
-
def KnowledgeBaseId(self, KnowledgeBaseId):
|
5070
|
-
self._KnowledgeBaseId = KnowledgeBaseId
|
5071
|
-
|
5072
|
-
@property
|
5073
|
-
def FileName(self):
|
5074
|
-
"""文件名,可选。
|
5075
|
-
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
5076
|
-
:rtype: str
|
5077
|
-
"""
|
5078
|
-
return self._FileName
|
5079
|
-
|
5080
|
-
@FileName.setter
|
5081
|
-
def FileName(self, FileName):
|
5082
|
-
self._FileName = FileName
|
5083
|
-
|
5084
|
-
@property
|
5085
|
-
def FileType(self):
|
5086
|
-
"""文件类型。
|
5087
|
-
**支持的文件类型:**
|
5088
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
5089
|
-
|
5090
|
-
**支持的文件大小:**
|
5091
|
-
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
5092
|
-
- `TXT`、`MD` 最大10M
|
5093
|
-
- 其他 最大20M
|
5094
|
-
:rtype: str
|
5095
|
-
"""
|
5096
|
-
return self._FileType
|
5097
|
-
|
5098
|
-
@FileType.setter
|
5099
|
-
def FileType(self, FileType):
|
5100
|
-
self._FileType = FileType
|
5101
|
-
|
5102
|
-
@property
|
5103
|
-
def FileUrl(self):
|
5104
|
-
"""文件的 URL 地址。
|
5105
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
5106
|
-
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
5107
|
-
:rtype: str
|
5108
|
-
"""
|
5109
|
-
return self._FileUrl
|
5110
|
-
|
5111
|
-
@FileUrl.setter
|
5112
|
-
def FileUrl(self, FileUrl):
|
5113
|
-
self._FileUrl = FileUrl
|
5114
|
-
|
5115
|
-
@property
|
5116
|
-
def ExpireTime(self):
|
5117
|
-
"""过期时间的秒数,最长24小时,默认24小时
|
5118
|
-
:rtype: int
|
5119
|
-
"""
|
5120
|
-
return self._ExpireTime
|
5121
|
-
|
5122
|
-
@ExpireTime.setter
|
5123
|
-
def ExpireTime(self, ExpireTime):
|
5124
|
-
self._ExpireTime = ExpireTime
|
5125
|
-
|
5126
|
-
|
5127
|
-
def _deserialize(self, params):
|
5128
|
-
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
5129
|
-
self._FileName = params.get("FileName")
|
5130
|
-
self._FileType = params.get("FileType")
|
5131
|
-
self._FileUrl = params.get("FileUrl")
|
5132
|
-
self._ExpireTime = params.get("ExpireTime")
|
5133
|
-
memeber_set = set(params.keys())
|
5134
|
-
for name, value in vars(self).items():
|
5135
|
-
property_name = name[1:]
|
5136
|
-
if property_name in memeber_set:
|
5137
|
-
memeber_set.remove(property_name)
|
5138
|
-
if len(memeber_set) > 0:
|
5139
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5140
|
-
|
5141
|
-
|
5142
|
-
|
5143
|
-
class UploadDocRealtimeResponse(AbstractModel):
|
5144
|
-
"""UploadDocRealtime返回参数结构体
|
5145
|
-
|
5146
|
-
"""
|
5147
|
-
|
5148
|
-
def __init__(self):
|
5149
|
-
r"""
|
5150
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
5151
|
-
:type RequestId: str
|
5152
|
-
"""
|
5153
|
-
self._RequestId = None
|
5154
|
-
|
5155
|
-
@property
|
5156
|
-
def RequestId(self):
|
5157
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
5158
|
-
:rtype: str
|
5159
|
-
"""
|
5160
|
-
return self._RequestId
|
5161
|
-
|
5162
|
-
@RequestId.setter
|
5163
|
-
def RequestId(self, RequestId):
|
5164
|
-
self._RequestId = RequestId
|
5165
|
-
|
5166
|
-
|
5167
|
-
def _deserialize(self, params):
|
5168
|
-
self._RequestId = params.get("RequestId")
|
5169
|
-
|
5170
|
-
|
5171
5194
|
class UploadDocRequest(AbstractModel):
|
5172
5195
|
"""UploadDoc请求参数结构体
|
5173
5196
|
|