tencentcloud-sdk-python 3.0.1406__py2.py3-none-any.whl → 3.0.1408__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/apm/v20210622/models.py +15 -0
- tencentcloud/asr/v20190614/models.py +2 -2
- tencentcloud/ccc/v20200210/models.py +168 -4
- tencentcloud/cdb/v20170320/cdb_client.py +5 -5
- tencentcloud/cdb/v20170320/models.py +42 -38
- tencentcloud/cdn/v20180606/errorcodes.py +9 -0
- tencentcloud/cdn/v20180606/models.py +2 -2
- tencentcloud/cfs/v20190719/models.py +25 -6
- tencentcloud/ckafka/v20190819/models.py +30 -0
- tencentcloud/csip/v20221121/csip_client.py +299 -0
- tencentcloud/csip/v20221121/models.py +11315 -6743
- tencentcloud/dts/v20211206/models.py +15 -0
- tencentcloud/es/v20180416/models.py +77 -0
- tencentcloud/es/v20250101/models.py +32 -0
- tencentcloud/ess/v20201111/errorcodes.py +33 -0
- tencentcloud/ess/v20201111/ess_client.py +80 -0
- tencentcloud/ess/v20201111/models.py +596 -8
- tencentcloud/essbasic/v20210526/errorcodes.py +9 -3
- tencentcloud/essbasic/v20210526/essbasic_client.py +84 -1
- tencentcloud/essbasic/v20210526/models.py +599 -2
- tencentcloud/gwlb/v20240906/models.py +2 -2
- tencentcloud/hunyuan/v20230901/models.py +9 -5
- tencentcloud/ioa/v20220601/models.py +75 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +34 -11
- tencentcloud/iotexplorer/v20190423/models.py +258 -0
- tencentcloud/live/v20180801/live_client.py +90 -21
- tencentcloud/live/v20180801/models.py +903 -177
- tencentcloud/lkeap/v20240522/lkeap_client.py +0 -23
- tencentcloud/lkeap/v20240522/models.py +0 -167
- tencentcloud/ocr/v20181119/models.py +38 -0
- tencentcloud/ocr/v20181119/ocr_client.py +10 -0
- tencentcloud/ssl/v20191205/models.py +1081 -29
- tencentcloud/ssl/v20191205/ssl_client.py +92 -0
- tencentcloud/tcbr/v20220217/models.py +17 -0
- tencentcloud/tdmq/v20200217/models.py +107 -68
- tencentcloud/tdmq/v20200217/tdmq_client.py +2 -2
- tencentcloud/trocket/v20230308/errorcodes.py +3 -0
- tencentcloud/trocket/v20230308/models.py +512 -107
- tencentcloud/trocket/v20230308/trocket_client.py +34 -2
- tencentcloud/trtc/v20190722/models.py +6 -6
- tencentcloud/tse/v20201207/models.py +30 -0
- tencentcloud/wedata/v20210820/models.py +1280 -2
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1406.dist-info → tencentcloud_sdk_python-3.0.1408.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1406.dist-info → tencentcloud_sdk_python-3.0.1408.dist-info}/RECORD +49 -49
- {tencentcloud_sdk_python-3.0.1406.dist-info → tencentcloud_sdk_python-3.0.1408.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1406.dist-info → tencentcloud_sdk_python-3.0.1408.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1406.dist-info → tencentcloud_sdk_python-3.0.1408.dist-info}/top_level.txt +0 -0
@@ -685,29 +685,6 @@ class LkeapClient(AbstractClient):
|
|
685
685
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
686
686
|
|
687
687
|
|
688
|
-
def RetrieveKnowledgeRealtime(self, request):
|
689
|
-
"""用于实时检索在UploadDocRealtime接口上传的实时文档内容。 使用场景:适用于在会话中对文档进行问答的场景
|
690
|
-
|
691
|
-
:param request: Request instance for RetrieveKnowledgeRealtime.
|
692
|
-
:type request: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeRequest`
|
693
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeResponse`
|
694
|
-
|
695
|
-
"""
|
696
|
-
try:
|
697
|
-
params = request._serialize()
|
698
|
-
headers = request.headers
|
699
|
-
body = self.call("RetrieveKnowledgeRealtime", params, headers=headers)
|
700
|
-
response = json.loads(body)
|
701
|
-
model = models.RetrieveKnowledgeRealtimeResponse()
|
702
|
-
model._deserialize(response["Response"])
|
703
|
-
return model
|
704
|
-
except Exception as e:
|
705
|
-
if isinstance(e, TencentCloudSDKException):
|
706
|
-
raise
|
707
|
-
else:
|
708
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
709
|
-
|
710
|
-
|
711
688
|
def RunRerank(self, request):
|
712
689
|
"""基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。
|
713
690
|
|
@@ -4530,173 +4530,6 @@ class RetrievalSetting(AbstractModel):
|
|
4530
4530
|
|
4531
4531
|
|
4532
4532
|
|
4533
|
-
class RetrieveKnowledgeRealtimeRequest(AbstractModel):
|
4534
|
-
"""RetrieveKnowledgeRealtime请求参数结构体
|
4535
|
-
|
4536
|
-
"""
|
4537
|
-
|
4538
|
-
def __init__(self):
|
4539
|
-
r"""
|
4540
|
-
:param _KnowledgeBaseId: 知识库ID。
|
4541
|
-
:type KnowledgeBaseId: str
|
4542
|
-
:param _Query: 用于检索的文本。
|
4543
|
-
:type Query: str
|
4544
|
-
:param _DocIds: 实时文件ID列表。
|
4545
|
-
:type DocIds: list of str
|
4546
|
-
:param _RetrievalMethod: 检索方法,默认使用`HYBRID`混合检索。
|
4547
|
-
- `SEMANTIC`:语义检索
|
4548
|
-
- `FULL_TEXT`:全文检索
|
4549
|
-
- `HYBRID`:混合检索
|
4550
|
-
:type RetrievalMethod: str
|
4551
|
-
:param _RetrievalSetting: 检索设置。
|
4552
|
-
:type RetrievalSetting: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
4553
|
-
"""
|
4554
|
-
self._KnowledgeBaseId = None
|
4555
|
-
self._Query = None
|
4556
|
-
self._DocIds = None
|
4557
|
-
self._RetrievalMethod = None
|
4558
|
-
self._RetrievalSetting = None
|
4559
|
-
|
4560
|
-
@property
|
4561
|
-
def KnowledgeBaseId(self):
|
4562
|
-
"""知识库ID。
|
4563
|
-
:rtype: str
|
4564
|
-
"""
|
4565
|
-
return self._KnowledgeBaseId
|
4566
|
-
|
4567
|
-
@KnowledgeBaseId.setter
|
4568
|
-
def KnowledgeBaseId(self, KnowledgeBaseId):
|
4569
|
-
self._KnowledgeBaseId = KnowledgeBaseId
|
4570
|
-
|
4571
|
-
@property
|
4572
|
-
def Query(self):
|
4573
|
-
"""用于检索的文本。
|
4574
|
-
:rtype: str
|
4575
|
-
"""
|
4576
|
-
return self._Query
|
4577
|
-
|
4578
|
-
@Query.setter
|
4579
|
-
def Query(self, Query):
|
4580
|
-
self._Query = Query
|
4581
|
-
|
4582
|
-
@property
|
4583
|
-
def DocIds(self):
|
4584
|
-
"""实时文件ID列表。
|
4585
|
-
:rtype: list of str
|
4586
|
-
"""
|
4587
|
-
return self._DocIds
|
4588
|
-
|
4589
|
-
@DocIds.setter
|
4590
|
-
def DocIds(self, DocIds):
|
4591
|
-
self._DocIds = DocIds
|
4592
|
-
|
4593
|
-
@property
|
4594
|
-
def RetrievalMethod(self):
|
4595
|
-
"""检索方法,默认使用`HYBRID`混合检索。
|
4596
|
-
- `SEMANTIC`:语义检索
|
4597
|
-
- `FULL_TEXT`:全文检索
|
4598
|
-
- `HYBRID`:混合检索
|
4599
|
-
:rtype: str
|
4600
|
-
"""
|
4601
|
-
return self._RetrievalMethod
|
4602
|
-
|
4603
|
-
@RetrievalMethod.setter
|
4604
|
-
def RetrievalMethod(self, RetrievalMethod):
|
4605
|
-
self._RetrievalMethod = RetrievalMethod
|
4606
|
-
|
4607
|
-
@property
|
4608
|
-
def RetrievalSetting(self):
|
4609
|
-
"""检索设置。
|
4610
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
4611
|
-
"""
|
4612
|
-
return self._RetrievalSetting
|
4613
|
-
|
4614
|
-
@RetrievalSetting.setter
|
4615
|
-
def RetrievalSetting(self, RetrievalSetting):
|
4616
|
-
self._RetrievalSetting = RetrievalSetting
|
4617
|
-
|
4618
|
-
|
4619
|
-
def _deserialize(self, params):
|
4620
|
-
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
4621
|
-
self._Query = params.get("Query")
|
4622
|
-
self._DocIds = params.get("DocIds")
|
4623
|
-
self._RetrievalMethod = params.get("RetrievalMethod")
|
4624
|
-
if params.get("RetrievalSetting") is not None:
|
4625
|
-
self._RetrievalSetting = RetrievalSetting()
|
4626
|
-
self._RetrievalSetting._deserialize(params.get("RetrievalSetting"))
|
4627
|
-
memeber_set = set(params.keys())
|
4628
|
-
for name, value in vars(self).items():
|
4629
|
-
property_name = name[1:]
|
4630
|
-
if property_name in memeber_set:
|
4631
|
-
memeber_set.remove(property_name)
|
4632
|
-
if len(memeber_set) > 0:
|
4633
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4634
|
-
|
4635
|
-
|
4636
|
-
|
4637
|
-
class RetrieveKnowledgeRealtimeResponse(AbstractModel):
|
4638
|
-
"""RetrieveKnowledgeRealtime返回参数结构体
|
4639
|
-
|
4640
|
-
"""
|
4641
|
-
|
4642
|
-
def __init__(self):
|
4643
|
-
r"""
|
4644
|
-
:param _Records: 检索结果
|
4645
|
-
:type Records: list of RetrievalRecord
|
4646
|
-
:param _TotalCount: 检索结果数量
|
4647
|
-
:type TotalCount: int
|
4648
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4649
|
-
:type RequestId: str
|
4650
|
-
"""
|
4651
|
-
self._Records = None
|
4652
|
-
self._TotalCount = None
|
4653
|
-
self._RequestId = None
|
4654
|
-
|
4655
|
-
@property
|
4656
|
-
def Records(self):
|
4657
|
-
"""检索结果
|
4658
|
-
:rtype: list of RetrievalRecord
|
4659
|
-
"""
|
4660
|
-
return self._Records
|
4661
|
-
|
4662
|
-
@Records.setter
|
4663
|
-
def Records(self, Records):
|
4664
|
-
self._Records = Records
|
4665
|
-
|
4666
|
-
@property
|
4667
|
-
def TotalCount(self):
|
4668
|
-
"""检索结果数量
|
4669
|
-
:rtype: int
|
4670
|
-
"""
|
4671
|
-
return self._TotalCount
|
4672
|
-
|
4673
|
-
@TotalCount.setter
|
4674
|
-
def TotalCount(self, TotalCount):
|
4675
|
-
self._TotalCount = TotalCount
|
4676
|
-
|
4677
|
-
@property
|
4678
|
-
def RequestId(self):
|
4679
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4680
|
-
:rtype: str
|
4681
|
-
"""
|
4682
|
-
return self._RequestId
|
4683
|
-
|
4684
|
-
@RequestId.setter
|
4685
|
-
def RequestId(self, RequestId):
|
4686
|
-
self._RequestId = RequestId
|
4687
|
-
|
4688
|
-
|
4689
|
-
def _deserialize(self, params):
|
4690
|
-
if params.get("Records") is not None:
|
4691
|
-
self._Records = []
|
4692
|
-
for item in params.get("Records"):
|
4693
|
-
obj = RetrievalRecord()
|
4694
|
-
obj._deserialize(item)
|
4695
|
-
self._Records.append(obj)
|
4696
|
-
self._TotalCount = params.get("TotalCount")
|
4697
|
-
self._RequestId = params.get("RequestId")
|
4698
|
-
|
4699
|
-
|
4700
4533
|
class RetrieveKnowledgeRequest(AbstractModel):
|
4701
4534
|
"""RetrieveKnowledge请求参数结构体
|
4702
4535
|
|
@@ -30003,6 +30003,12 @@ class SingleInvoiceItem(AbstractModel):
|
|
30003
30003
|
:param _SaleInventory: 销货清单
|
30004
30004
|
注意:此字段可能返回 null,表示取不到有效值。
|
30005
30005
|
:type SaleInventory: :class:`tencentcloud.ocr.v20181119.models.SaleInventory`
|
30006
|
+
:param _MotorVehicleSaleInvoiceElectronic: 机动车销售统一发票(电子)
|
30007
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30008
|
+
:type MotorVehicleSaleInvoiceElectronic: :class:`tencentcloud.ocr.v20181119.models.MotorVehicleSaleInvoice`
|
30009
|
+
:param _UsedCarPurchaseInvoiceElectronic: 二手车销售统一发票(电子)
|
30010
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30011
|
+
:type UsedCarPurchaseInvoiceElectronic: :class:`tencentcloud.ocr.v20181119.models.UsedCarPurchaseInvoice`
|
30006
30012
|
"""
|
30007
30013
|
self._VatSpecialInvoice = None
|
30008
30014
|
self._VatCommonInvoice = None
|
@@ -30039,6 +30045,8 @@ class SingleInvoiceItem(AbstractModel):
|
|
30039
30045
|
self._OverseasInvoice = None
|
30040
30046
|
self._ShoppingReceipt = None
|
30041
30047
|
self._SaleInventory = None
|
30048
|
+
self._MotorVehicleSaleInvoiceElectronic = None
|
30049
|
+
self._UsedCarPurchaseInvoiceElectronic = None
|
30042
30050
|
|
30043
30051
|
@property
|
30044
30052
|
def VatSpecialInvoice(self):
|
@@ -30460,6 +30468,30 @@ class SingleInvoiceItem(AbstractModel):
|
|
30460
30468
|
def SaleInventory(self, SaleInventory):
|
30461
30469
|
self._SaleInventory = SaleInventory
|
30462
30470
|
|
30471
|
+
@property
|
30472
|
+
def MotorVehicleSaleInvoiceElectronic(self):
|
30473
|
+
"""机动车销售统一发票(电子)
|
30474
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30475
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.MotorVehicleSaleInvoice`
|
30476
|
+
"""
|
30477
|
+
return self._MotorVehicleSaleInvoiceElectronic
|
30478
|
+
|
30479
|
+
@MotorVehicleSaleInvoiceElectronic.setter
|
30480
|
+
def MotorVehicleSaleInvoiceElectronic(self, MotorVehicleSaleInvoiceElectronic):
|
30481
|
+
self._MotorVehicleSaleInvoiceElectronic = MotorVehicleSaleInvoiceElectronic
|
30482
|
+
|
30483
|
+
@property
|
30484
|
+
def UsedCarPurchaseInvoiceElectronic(self):
|
30485
|
+
"""二手车销售统一发票(电子)
|
30486
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30487
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.UsedCarPurchaseInvoice`
|
30488
|
+
"""
|
30489
|
+
return self._UsedCarPurchaseInvoiceElectronic
|
30490
|
+
|
30491
|
+
@UsedCarPurchaseInvoiceElectronic.setter
|
30492
|
+
def UsedCarPurchaseInvoiceElectronic(self, UsedCarPurchaseInvoiceElectronic):
|
30493
|
+
self._UsedCarPurchaseInvoiceElectronic = UsedCarPurchaseInvoiceElectronic
|
30494
|
+
|
30463
30495
|
|
30464
30496
|
def _deserialize(self, params):
|
30465
30497
|
if params.get("VatSpecialInvoice") is not None:
|
@@ -30567,6 +30599,12 @@ class SingleInvoiceItem(AbstractModel):
|
|
30567
30599
|
if params.get("SaleInventory") is not None:
|
30568
30600
|
self._SaleInventory = SaleInventory()
|
30569
30601
|
self._SaleInventory._deserialize(params.get("SaleInventory"))
|
30602
|
+
if params.get("MotorVehicleSaleInvoiceElectronic") is not None:
|
30603
|
+
self._MotorVehicleSaleInvoiceElectronic = MotorVehicleSaleInvoice()
|
30604
|
+
self._MotorVehicleSaleInvoiceElectronic._deserialize(params.get("MotorVehicleSaleInvoiceElectronic"))
|
30605
|
+
if params.get("UsedCarPurchaseInvoiceElectronic") is not None:
|
30606
|
+
self._UsedCarPurchaseInvoiceElectronic = UsedCarPurchaseInvoice()
|
30607
|
+
self._UsedCarPurchaseInvoiceElectronic._deserialize(params.get("UsedCarPurchaseInvoiceElectronic"))
|
30570
30608
|
memeber_set = set(params.keys())
|
30571
30609
|
for name, value in vars(self).items():
|
30572
30610
|
property_name = name[1:]
|
@@ -1811,6 +1811,16 @@ class OcrClient(AbstractClient):
|
|
1811
1811
|
<td> 二手车销售统一发票 </td>
|
1812
1812
|
<td> 12 </td>
|
1813
1813
|
</tr>
|
1814
|
+
<tr>
|
1815
|
+
<td> MotorVehicleSaleInvoiceElectronic </td>
|
1816
|
+
<td> 机动车销售统一发票(电子)</td>
|
1817
|
+
<td> 12 </td>
|
1818
|
+
</tr>
|
1819
|
+
<tr>
|
1820
|
+
<td> UsedCarPurchaseInvoiceElectronic </td>
|
1821
|
+
<td> 二手车销售统一发票(电子)</td>
|
1822
|
+
<td> 12 </td>
|
1823
|
+
</tr>
|
1814
1824
|
<tr>
|
1815
1825
|
<td> VatInvoiceRoll </td>
|
1816
1826
|
<td> 增值税普通发票(卷票) </td>
|