tencentcloud-sdk-python 3.0.1361__py2.py3-none-any.whl → 3.0.1362__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/cdwpg/v20201230/models.py +0 -136
- tencentcloud/cwp/v20180228/models.py +138 -12
- tencentcloud/dlc/v20210125/models.py +0 -2
- tencentcloud/es/v20250101/es_client.py +23 -0
- tencentcloud/es/v20250101/models.py +356 -1
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +2 -20
- tencentcloud/gs/v20191118/gs_client.py +46 -0
- tencentcloud/gs/v20191118/models.py +385 -8
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +69 -0
- tencentcloud/iotexplorer/v20190423/models.py +578 -0
- tencentcloud/lcic/v20220817/models.py +30 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +0 -6
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +0 -56
- tencentcloud/lighthouse/v20200324/models.py +0 -158
- tencentcloud/mps/v20190612/models.py +166 -15
- tencentcloud/oceanus/v20190422/models.py +2 -2
- tencentcloud/tcbr/v20220217/models.py +15 -0
- tencentcloud/tione/v20211111/models.py +91 -0
- tencentcloud/trocket/v20230308/models.py +141 -88
- tencentcloud/trocket/v20230308/trocket_client.py +2 -1
- tencentcloud/vcube/v20220410/models.py +15 -0
- tencentcloud/vdb/v20230616/models.py +15 -0
- tencentcloud/vpc/v20170312/models.py +307 -78
- tencentcloud/vpc/v20170312/vpc_client.py +31 -3
- {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1362.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1362.dist-info}/RECORD +31 -31
- {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1362.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1362.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1362.dist-info}/top_level.txt +0 -0
@@ -45117,7 +45117,6 @@ Other 混合云专区
|
|
45117
45117
|
<li>Ips - String - 是否必填:否 - 通过ip查询 </li>
|
45118
45118
|
<li>Names - String - 是否必填:否 - 通过实例名查询 </li>
|
45119
45119
|
<li>InstanceIds - String - 是否必填:否 - 通过实例id查询 </li>
|
45120
|
-
<li>Status - String - 是否必填:否 - 客户端在线状态(OFFLINE: 离线/关机 | ONLINE: 在线 | UNINSTALLED:未安装 | AGENT_OFFLINE 离线| AGENT_SHUTDOWN 已关机)</li>
|
45121
45120
|
<li>Version - String 是否必填:否 - 当前防护版本( PRO_VERSION:专业版 | BASIC_VERSION:基础版 | Flagship : 旗舰版 | ProtectedMachines: 专业版+旗舰版)</li>
|
45122
45121
|
<li>Risk - String 是否必填: 否 - 风险主机( yes ) </li>
|
45123
45122
|
<li>Os -String 是否必填: 否 - 操作系统( DescribeMachineOsList 接口 值 )
|
@@ -45125,6 +45124,8 @@ Other 混合云专区
|
|
45125
45124
|
<li>Quuid - String - 是否必填: 否 - 云服务器uuid 最大100条.</li>
|
45126
45125
|
<li>AddedOnTheFifteen- String 是否必填: 否 - 是否只查询15天内新增的主机( 1:是) </li>
|
45127
45126
|
<li> TagId- String 是否必填: 否 - 查询指定标签关联的主机列表 </li>
|
45127
|
+
<li> AgentStatus- String 是否必填: 否 - ALL 全部; ONLINE 防护中; OFFLINE 已离线;UNINSTALLED 未安装</li>
|
45128
|
+
<li> MachineStatus- String 是否必填: 否 - ALL 全部; RUNNING 运行中; STOPPED 已关机; EXPIRED 待回收</li>
|
45128
45129
|
:type Filters: list of Filter
|
45129
45130
|
:param _ProjectIds: 机器所属业务ID列表
|
45130
45131
|
:type ProjectIds: list of int non-negative
|
@@ -45191,7 +45192,6 @@ Other 混合云专区
|
|
45191
45192
|
<li>Ips - String - 是否必填:否 - 通过ip查询 </li>
|
45192
45193
|
<li>Names - String - 是否必填:否 - 通过实例名查询 </li>
|
45193
45194
|
<li>InstanceIds - String - 是否必填:否 - 通过实例id查询 </li>
|
45194
|
-
<li>Status - String - 是否必填:否 - 客户端在线状态(OFFLINE: 离线/关机 | ONLINE: 在线 | UNINSTALLED:未安装 | AGENT_OFFLINE 离线| AGENT_SHUTDOWN 已关机)</li>
|
45195
45195
|
<li>Version - String 是否必填:否 - 当前防护版本( PRO_VERSION:专业版 | BASIC_VERSION:基础版 | Flagship : 旗舰版 | ProtectedMachines: 专业版+旗舰版)</li>
|
45196
45196
|
<li>Risk - String 是否必填: 否 - 风险主机( yes ) </li>
|
45197
45197
|
<li>Os -String 是否必填: 否 - 操作系统( DescribeMachineOsList 接口 值 )
|
@@ -45199,6 +45199,8 @@ Other 混合云专区
|
|
45199
45199
|
<li>Quuid - String - 是否必填: 否 - 云服务器uuid 最大100条.</li>
|
45200
45200
|
<li>AddedOnTheFifteen- String 是否必填: 否 - 是否只查询15天内新增的主机( 1:是) </li>
|
45201
45201
|
<li> TagId- String 是否必填: 否 - 查询指定标签关联的主机列表 </li>
|
45202
|
+
<li> AgentStatus- String 是否必填: 否 - ALL 全部; ONLINE 防护中; OFFLINE 已离线;UNINSTALLED 未安装</li>
|
45203
|
+
<li> MachineStatus- String 是否必填: 否 - ALL 全部; RUNNING 运行中; STOPPED 已关机; EXPIRED 待回收</li>
|
45202
45204
|
:rtype: list of Filter
|
45203
45205
|
"""
|
45204
45206
|
return self._Filters
|
@@ -67213,10 +67215,13 @@ class ExportFileTamperEventsRequest(AbstractModel):
|
|
67213
67215
|
:type Fileds: list of str
|
67214
67216
|
:param _Fields: 需要导出的字段
|
67215
67217
|
:type Fields: str
|
67218
|
+
:param _Where: 需要导出的字段
|
67219
|
+
:type Where: list of str
|
67216
67220
|
"""
|
67217
67221
|
self._Filters = None
|
67218
67222
|
self._Fileds = None
|
67219
67223
|
self._Fields = None
|
67224
|
+
self._Where = None
|
67220
67225
|
|
67221
67226
|
@property
|
67222
67227
|
def Filters(self):
|
@@ -67250,6 +67255,8 @@ class ExportFileTamperEventsRequest(AbstractModel):
|
|
67250
67255
|
|
67251
67256
|
@property
|
67252
67257
|
def Fields(self):
|
67258
|
+
warnings.warn("parameter `Fields` is deprecated", DeprecationWarning)
|
67259
|
+
|
67253
67260
|
"""需要导出的字段
|
67254
67261
|
:rtype: str
|
67255
67262
|
"""
|
@@ -67257,8 +67264,21 @@ class ExportFileTamperEventsRequest(AbstractModel):
|
|
67257
67264
|
|
67258
67265
|
@Fields.setter
|
67259
67266
|
def Fields(self, Fields):
|
67267
|
+
warnings.warn("parameter `Fields` is deprecated", DeprecationWarning)
|
67268
|
+
|
67260
67269
|
self._Fields = Fields
|
67261
67270
|
|
67271
|
+
@property
|
67272
|
+
def Where(self):
|
67273
|
+
"""需要导出的字段
|
67274
|
+
:rtype: list of str
|
67275
|
+
"""
|
67276
|
+
return self._Where
|
67277
|
+
|
67278
|
+
@Where.setter
|
67279
|
+
def Where(self, Where):
|
67280
|
+
self._Where = Where
|
67281
|
+
|
67262
67282
|
|
67263
67283
|
def _deserialize(self, params):
|
67264
67284
|
if params.get("Filters") is not None:
|
@@ -67269,6 +67289,7 @@ class ExportFileTamperEventsRequest(AbstractModel):
|
|
67269
67289
|
self._Filters.append(obj)
|
67270
67290
|
self._Fileds = params.get("Fileds")
|
67271
67291
|
self._Fields = params.get("Fields")
|
67292
|
+
self._Where = params.get("Where")
|
67272
67293
|
memeber_set = set(params.keys())
|
67273
67294
|
for name, value in vars(self).items():
|
67274
67295
|
property_name = name[1:]
|
@@ -75509,6 +75530,14 @@ class LicenseBindDetail(AbstractModel):
|
|
75509
75530
|
:type IsSwitchBind: bool
|
75510
75531
|
:param _MachineExtraInfo: 主机额外信息
|
75511
75532
|
:type MachineExtraInfo: :class:`tencentcloud.cwp.v20180228.models.MachineExtraInfo`
|
75533
|
+
:param _InstanceState: <li> RUNNING 运行中</li>
|
75534
|
+
<li> STOPPED 已关机</li>
|
75535
|
+
<li> EXPIRED 待回收</li>
|
75536
|
+
:type InstanceState: str
|
75537
|
+
:param _AgentState: <li>ONLINE 已离线 </li>
|
75538
|
+
<li>OFFLINE 防护中</li>
|
75539
|
+
<li>UNINSTALLED 未安装客户端</li>
|
75540
|
+
:type AgentState: str
|
75512
75541
|
"""
|
75513
75542
|
self._MachineName = None
|
75514
75543
|
self._MachineWanIp = None
|
@@ -75520,6 +75549,8 @@ class LicenseBindDetail(AbstractModel):
|
|
75520
75549
|
self._IsUnBind = None
|
75521
75550
|
self._IsSwitchBind = None
|
75522
75551
|
self._MachineExtraInfo = None
|
75552
|
+
self._InstanceState = None
|
75553
|
+
self._AgentState = None
|
75523
75554
|
|
75524
75555
|
@property
|
75525
75556
|
def MachineName(self):
|
@@ -75631,6 +75662,32 @@ class LicenseBindDetail(AbstractModel):
|
|
75631
75662
|
def MachineExtraInfo(self, MachineExtraInfo):
|
75632
75663
|
self._MachineExtraInfo = MachineExtraInfo
|
75633
75664
|
|
75665
|
+
@property
|
75666
|
+
def InstanceState(self):
|
75667
|
+
"""<li> RUNNING 运行中</li>
|
75668
|
+
<li> STOPPED 已关机</li>
|
75669
|
+
<li> EXPIRED 待回收</li>
|
75670
|
+
:rtype: str
|
75671
|
+
"""
|
75672
|
+
return self._InstanceState
|
75673
|
+
|
75674
|
+
@InstanceState.setter
|
75675
|
+
def InstanceState(self, InstanceState):
|
75676
|
+
self._InstanceState = InstanceState
|
75677
|
+
|
75678
|
+
@property
|
75679
|
+
def AgentState(self):
|
75680
|
+
"""<li>ONLINE 已离线 </li>
|
75681
|
+
<li>OFFLINE 防护中</li>
|
75682
|
+
<li>UNINSTALLED 未安装客户端</li>
|
75683
|
+
:rtype: str
|
75684
|
+
"""
|
75685
|
+
return self._AgentState
|
75686
|
+
|
75687
|
+
@AgentState.setter
|
75688
|
+
def AgentState(self, AgentState):
|
75689
|
+
self._AgentState = AgentState
|
75690
|
+
|
75634
75691
|
|
75635
75692
|
def _deserialize(self, params):
|
75636
75693
|
self._MachineName = params.get("MachineName")
|
@@ -75645,6 +75702,8 @@ class LicenseBindDetail(AbstractModel):
|
|
75645
75702
|
if params.get("MachineExtraInfo") is not None:
|
75646
75703
|
self._MachineExtraInfo = MachineExtraInfo()
|
75647
75704
|
self._MachineExtraInfo._deserialize(params.get("MachineExtraInfo"))
|
75705
|
+
self._InstanceState = params.get("InstanceState")
|
75706
|
+
self._AgentState = params.get("AgentState")
|
75648
75707
|
memeber_set = set(params.keys())
|
75649
75708
|
for name, value in vars(self).items():
|
75650
75709
|
property_name = name[1:]
|
@@ -76832,12 +76891,12 @@ class Machine(AbstractModel):
|
|
76832
76891
|
:type MachineName: str
|
76833
76892
|
:param _MachineOs: 主机系统。
|
76834
76893
|
:type MachineOs: str
|
76835
|
-
:param _MachineStatus: 主机状态。
|
76836
|
-
<li>OFFLINE: 离线 </li>
|
76837
|
-
<li>ONLINE: 在线</li>
|
76838
|
-
<li>SHUTDOWN: 已关机</li>
|
76839
|
-
<li>UNINSTALLED: 未防护</li>
|
76894
|
+
:param _MachineStatus: 主机状态。 <li>OFFLINE: 离线 </li> <li>ONLINE: 在线</li> <li>SHUTDOWN: 已关机</li> <li>UNINSTALLED: 未防护</li>
|
76840
76895
|
:type MachineStatus: str
|
76896
|
+
:param _AgentStatus: ONLINE 防护中; OFFLINE 已离线;UNINStALLED 未安装
|
76897
|
+
:type AgentStatus: str
|
76898
|
+
:param _InstanceStatus: RUNNING 运行中; STOPED 已关机; EXPIRED 待回收
|
76899
|
+
:type InstanceStatus: str
|
76841
76900
|
:param _Uuid: 主机安全Uuid,若客户端长时间不在线将返回空字符。
|
76842
76901
|
:type Uuid: str
|
76843
76902
|
:param _Quuid: CVM或BM机器唯一Uuid。
|
@@ -76905,6 +76964,8 @@ class Machine(AbstractModel):
|
|
76905
76964
|
self._MachineName = None
|
76906
76965
|
self._MachineOs = None
|
76907
76966
|
self._MachineStatus = None
|
76967
|
+
self._AgentStatus = None
|
76968
|
+
self._InstanceStatus = None
|
76908
76969
|
self._Uuid = None
|
76909
76970
|
self._Quuid = None
|
76910
76971
|
self._VulNum = None
|
@@ -76958,11 +77019,7 @@ class Machine(AbstractModel):
|
|
76958
77019
|
|
76959
77020
|
@property
|
76960
77021
|
def MachineStatus(self):
|
76961
|
-
"""主机状态。
|
76962
|
-
<li>OFFLINE: 离线 </li>
|
76963
|
-
<li>ONLINE: 在线</li>
|
76964
|
-
<li>SHUTDOWN: 已关机</li>
|
76965
|
-
<li>UNINSTALLED: 未防护</li>
|
77022
|
+
"""主机状态。 <li>OFFLINE: 离线 </li> <li>ONLINE: 在线</li> <li>SHUTDOWN: 已关机</li> <li>UNINSTALLED: 未防护</li>
|
76966
77023
|
:rtype: str
|
76967
77024
|
"""
|
76968
77025
|
return self._MachineStatus
|
@@ -76971,6 +77028,28 @@ class Machine(AbstractModel):
|
|
76971
77028
|
def MachineStatus(self, MachineStatus):
|
76972
77029
|
self._MachineStatus = MachineStatus
|
76973
77030
|
|
77031
|
+
@property
|
77032
|
+
def AgentStatus(self):
|
77033
|
+
"""ONLINE 防护中; OFFLINE 已离线;UNINStALLED 未安装
|
77034
|
+
:rtype: str
|
77035
|
+
"""
|
77036
|
+
return self._AgentStatus
|
77037
|
+
|
77038
|
+
@AgentStatus.setter
|
77039
|
+
def AgentStatus(self, AgentStatus):
|
77040
|
+
self._AgentStatus = AgentStatus
|
77041
|
+
|
77042
|
+
@property
|
77043
|
+
def InstanceStatus(self):
|
77044
|
+
"""RUNNING 运行中; STOPED 已关机; EXPIRED 待回收
|
77045
|
+
:rtype: str
|
77046
|
+
"""
|
77047
|
+
return self._InstanceStatus
|
77048
|
+
|
77049
|
+
@InstanceStatus.setter
|
77050
|
+
def InstanceStatus(self, InstanceStatus):
|
77051
|
+
self._InstanceStatus = InstanceStatus
|
77052
|
+
|
76974
77053
|
@property
|
76975
77054
|
def Uuid(self):
|
76976
77055
|
"""主机安全Uuid,若客户端长时间不在线将返回空字符。
|
@@ -77291,6 +77370,8 @@ class Machine(AbstractModel):
|
|
77291
77370
|
self._MachineName = params.get("MachineName")
|
77292
77371
|
self._MachineOs = params.get("MachineOs")
|
77293
77372
|
self._MachineStatus = params.get("MachineStatus")
|
77373
|
+
self._AgentStatus = params.get("AgentStatus")
|
77374
|
+
self._InstanceStatus = params.get("InstanceStatus")
|
77294
77375
|
self._Uuid = params.get("Uuid")
|
77295
77376
|
self._Quuid = params.get("Quuid")
|
77296
77377
|
self._VulNum = params.get("VulNum")
|
@@ -78847,6 +78928,10 @@ class MalwareInfo(AbstractModel):
|
|
78847
78928
|
:type MachineExtraInfo: :class:`tencentcloud.cwp.v20180228.models.MachineExtraInfo`
|
78848
78929
|
:param _References: 参考链接
|
78849
78930
|
:type References: list of str
|
78931
|
+
:param _FileExists: 木马文件是否存在
|
78932
|
+
:type FileExists: bool
|
78933
|
+
:param _ProcessExists: 木马进程是否存在
|
78934
|
+
:type ProcessExists: bool
|
78850
78935
|
"""
|
78851
78936
|
self._VirusName = None
|
78852
78937
|
self._FileSize = None
|
@@ -78879,6 +78964,8 @@ class MalwareInfo(AbstractModel):
|
|
78879
78964
|
self._StrFileAccessTime = None
|
78880
78965
|
self._MachineExtraInfo = None
|
78881
78966
|
self._References = None
|
78967
|
+
self._FileExists = None
|
78968
|
+
self._ProcessExists = None
|
78882
78969
|
|
78883
78970
|
@property
|
78884
78971
|
def VirusName(self):
|
@@ -79221,6 +79308,28 @@ class MalwareInfo(AbstractModel):
|
|
79221
79308
|
def References(self, References):
|
79222
79309
|
self._References = References
|
79223
79310
|
|
79311
|
+
@property
|
79312
|
+
def FileExists(self):
|
79313
|
+
"""木马文件是否存在
|
79314
|
+
:rtype: bool
|
79315
|
+
"""
|
79316
|
+
return self._FileExists
|
79317
|
+
|
79318
|
+
@FileExists.setter
|
79319
|
+
def FileExists(self, FileExists):
|
79320
|
+
self._FileExists = FileExists
|
79321
|
+
|
79322
|
+
@property
|
79323
|
+
def ProcessExists(self):
|
79324
|
+
"""木马进程是否存在
|
79325
|
+
:rtype: bool
|
79326
|
+
"""
|
79327
|
+
return self._ProcessExists
|
79328
|
+
|
79329
|
+
@ProcessExists.setter
|
79330
|
+
def ProcessExists(self, ProcessExists):
|
79331
|
+
self._ProcessExists = ProcessExists
|
79332
|
+
|
79224
79333
|
|
79225
79334
|
def _deserialize(self, params):
|
79226
79335
|
self._VirusName = params.get("VirusName")
|
@@ -79256,6 +79365,8 @@ class MalwareInfo(AbstractModel):
|
|
79256
79365
|
self._MachineExtraInfo = MachineExtraInfo()
|
79257
79366
|
self._MachineExtraInfo._deserialize(params.get("MachineExtraInfo"))
|
79258
79367
|
self._References = params.get("References")
|
79368
|
+
self._FileExists = params.get("FileExists")
|
79369
|
+
self._ProcessExists = params.get("ProcessExists")
|
79259
79370
|
memeber_set = set(params.keys())
|
79260
79371
|
for name, value in vars(self).items():
|
79261
79372
|
property_name = name[1:]
|
@@ -93396,6 +93507,8 @@ class ReverseShellEventInfo(AbstractModel):
|
|
93396
93507
|
:type ModifyTime: str
|
93397
93508
|
:param _CmdLineQuote: 命令详情的转义后内容,供正则加白全字符串匹配使用
|
93398
93509
|
:type CmdLineQuote: str
|
93510
|
+
:param _RiskLevel: 风险等级
|
93511
|
+
:type RiskLevel: int
|
93399
93512
|
"""
|
93400
93513
|
self._Id = None
|
93401
93514
|
self._Uuid = None
|
@@ -93425,6 +93538,7 @@ class ReverseShellEventInfo(AbstractModel):
|
|
93425
93538
|
self._MachineStatus = None
|
93426
93539
|
self._ModifyTime = None
|
93427
93540
|
self._CmdLineQuote = None
|
93541
|
+
self._RiskLevel = None
|
93428
93542
|
|
93429
93543
|
@property
|
93430
93544
|
def Id(self):
|
@@ -93734,6 +93848,17 @@ class ReverseShellEventInfo(AbstractModel):
|
|
93734
93848
|
def CmdLineQuote(self, CmdLineQuote):
|
93735
93849
|
self._CmdLineQuote = CmdLineQuote
|
93736
93850
|
|
93851
|
+
@property
|
93852
|
+
def RiskLevel(self):
|
93853
|
+
"""风险等级
|
93854
|
+
:rtype: int
|
93855
|
+
"""
|
93856
|
+
return self._RiskLevel
|
93857
|
+
|
93858
|
+
@RiskLevel.setter
|
93859
|
+
def RiskLevel(self, RiskLevel):
|
93860
|
+
self._RiskLevel = RiskLevel
|
93861
|
+
|
93737
93862
|
|
93738
93863
|
def _deserialize(self, params):
|
93739
93864
|
self._Id = params.get("Id")
|
@@ -93764,6 +93889,7 @@ class ReverseShellEventInfo(AbstractModel):
|
|
93764
93889
|
self._MachineStatus = params.get("MachineStatus")
|
93765
93890
|
self._ModifyTime = params.get("ModifyTime")
|
93766
93891
|
self._CmdLineQuote = params.get("CmdLineQuote")
|
93892
|
+
self._RiskLevel = params.get("RiskLevel")
|
93767
93893
|
memeber_set = set(params.keys())
|
93768
93894
|
for name, value in vars(self).items():
|
93769
93895
|
property_name = name[1:]
|
@@ -2698,7 +2698,6 @@ class CheckDataEngineConfigPairsValidityResponse(AbstractModel):
|
|
2698
2698
|
:param _IsAvailable: 参数有效性:ture:有效,false:至少存在一个无效参数;
|
2699
2699
|
:type IsAvailable: bool
|
2700
2700
|
:param _UnavailableConfig: 无效参数集合
|
2701
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2702
2701
|
:type UnavailableConfig: list of str
|
2703
2702
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2704
2703
|
:type RequestId: str
|
@@ -2721,7 +2720,6 @@ class CheckDataEngineConfigPairsValidityResponse(AbstractModel):
|
|
2721
2720
|
@property
|
2722
2721
|
def UnavailableConfig(self):
|
2723
2722
|
"""无效参数集合
|
2724
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2725
2723
|
:rtype: list of str
|
2726
2724
|
"""
|
2727
2725
|
return self._UnavailableConfig
|
@@ -221,6 +221,29 @@ class EsClient(AbstractClient):
|
|
221
221
|
model = models.RunRerankResponse()
|
222
222
|
model._deserialize(response["Response"])
|
223
223
|
return model
|
224
|
+
except Exception as e:
|
225
|
+
if isinstance(e, TencentCloudSDKException):
|
226
|
+
raise
|
227
|
+
else:
|
228
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
229
|
+
|
230
|
+
|
231
|
+
def WebSearch(self, request):
|
232
|
+
"""WebSearch API 是一个网页搜索服务,支持多种搜索引擎,可以获取网页的标题、URL、摘要和正文内容。
|
233
|
+
|
234
|
+
:param request: Request instance for WebSearch.
|
235
|
+
:type request: :class:`tencentcloud.es.v20250101.models.WebSearchRequest`
|
236
|
+
:rtype: :class:`tencentcloud.es.v20250101.models.WebSearchResponse`
|
237
|
+
|
238
|
+
"""
|
239
|
+
try:
|
240
|
+
params = request._serialize()
|
241
|
+
headers = request.headers
|
242
|
+
body = self.call("WebSearch", params, headers=headers)
|
243
|
+
response = json.loads(body)
|
244
|
+
model = models.WebSearchResponse()
|
245
|
+
model._deserialize(response["Response"])
|
246
|
+
return model
|
224
247
|
except Exception as e:
|
225
248
|
if isinstance(e, TencentCloudSDKException):
|
226
249
|
raise
|