alibabacloud-iqs20241111 1.2.1__py3-none-any.whl → 1.3.1__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.
- alibabacloud_iqs20241111/__init__.py +1 -1
- alibabacloud_iqs20241111/client.py +98 -0
- alibabacloud_iqs20241111/models.py +78 -2
- {alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/METADATA +2 -2
- alibabacloud_iqs20241111-1.3.1.dist-info/RECORD +8 -0
- alibabacloud_iqs20241111-1.2.1.dist-info/RECORD +0 -8
- {alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/LICENSE +0 -0
- {alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/WHEEL +0 -0
- {alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.3.1'
|
|
@@ -528,3 +528,101 @@ class Client(OpenApiClient):
|
|
|
528
528
|
runtime = util_models.RuntimeOptions()
|
|
529
529
|
headers = {}
|
|
530
530
|
return await self.global_search_with_options_async(request, headers, runtime)
|
|
531
|
+
|
|
532
|
+
def unified_search_with_options(
|
|
533
|
+
self,
|
|
534
|
+
request: iqs20241111_models.UnifiedSearchRequest,
|
|
535
|
+
headers: Dict[str, str],
|
|
536
|
+
runtime: util_models.RuntimeOptions,
|
|
537
|
+
) -> iqs20241111_models.UnifiedSearchResponse:
|
|
538
|
+
"""
|
|
539
|
+
@summary 通晓统一搜索API
|
|
540
|
+
|
|
541
|
+
@param request: UnifiedSearchRequest
|
|
542
|
+
@param headers: map
|
|
543
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
544
|
+
@return: UnifiedSearchResponse
|
|
545
|
+
"""
|
|
546
|
+
UtilClient.validate_model(request)
|
|
547
|
+
req = open_api_models.OpenApiRequest(
|
|
548
|
+
headers=headers,
|
|
549
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
550
|
+
)
|
|
551
|
+
params = open_api_models.Params(
|
|
552
|
+
action='UnifiedSearch',
|
|
553
|
+
version='2024-11-11',
|
|
554
|
+
protocol='HTTPS',
|
|
555
|
+
pathname=f'/linked-retrieval/linked-retrieval-entry/v1/iqs/search/unified',
|
|
556
|
+
method='POST',
|
|
557
|
+
auth_type='AK',
|
|
558
|
+
style='ROA',
|
|
559
|
+
req_body_type='json',
|
|
560
|
+
body_type='json'
|
|
561
|
+
)
|
|
562
|
+
return TeaCore.from_map(
|
|
563
|
+
iqs20241111_models.UnifiedSearchResponse(),
|
|
564
|
+
self.call_api(params, req, runtime)
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
async def unified_search_with_options_async(
|
|
568
|
+
self,
|
|
569
|
+
request: iqs20241111_models.UnifiedSearchRequest,
|
|
570
|
+
headers: Dict[str, str],
|
|
571
|
+
runtime: util_models.RuntimeOptions,
|
|
572
|
+
) -> iqs20241111_models.UnifiedSearchResponse:
|
|
573
|
+
"""
|
|
574
|
+
@summary 通晓统一搜索API
|
|
575
|
+
|
|
576
|
+
@param request: UnifiedSearchRequest
|
|
577
|
+
@param headers: map
|
|
578
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
579
|
+
@return: UnifiedSearchResponse
|
|
580
|
+
"""
|
|
581
|
+
UtilClient.validate_model(request)
|
|
582
|
+
req = open_api_models.OpenApiRequest(
|
|
583
|
+
headers=headers,
|
|
584
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
585
|
+
)
|
|
586
|
+
params = open_api_models.Params(
|
|
587
|
+
action='UnifiedSearch',
|
|
588
|
+
version='2024-11-11',
|
|
589
|
+
protocol='HTTPS',
|
|
590
|
+
pathname=f'/linked-retrieval/linked-retrieval-entry/v1/iqs/search/unified',
|
|
591
|
+
method='POST',
|
|
592
|
+
auth_type='AK',
|
|
593
|
+
style='ROA',
|
|
594
|
+
req_body_type='json',
|
|
595
|
+
body_type='json'
|
|
596
|
+
)
|
|
597
|
+
return TeaCore.from_map(
|
|
598
|
+
iqs20241111_models.UnifiedSearchResponse(),
|
|
599
|
+
await self.call_api_async(params, req, runtime)
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
def unified_search(
|
|
603
|
+
self,
|
|
604
|
+
request: iqs20241111_models.UnifiedSearchRequest,
|
|
605
|
+
) -> iqs20241111_models.UnifiedSearchResponse:
|
|
606
|
+
"""
|
|
607
|
+
@summary 通晓统一搜索API
|
|
608
|
+
|
|
609
|
+
@param request: UnifiedSearchRequest
|
|
610
|
+
@return: UnifiedSearchResponse
|
|
611
|
+
"""
|
|
612
|
+
runtime = util_models.RuntimeOptions()
|
|
613
|
+
headers = {}
|
|
614
|
+
return self.unified_search_with_options(request, headers, runtime)
|
|
615
|
+
|
|
616
|
+
async def unified_search_async(
|
|
617
|
+
self,
|
|
618
|
+
request: iqs20241111_models.UnifiedSearchRequest,
|
|
619
|
+
) -> iqs20241111_models.UnifiedSearchResponse:
|
|
620
|
+
"""
|
|
621
|
+
@summary 通晓统一搜索API
|
|
622
|
+
|
|
623
|
+
@param request: UnifiedSearchRequest
|
|
624
|
+
@return: UnifiedSearchResponse
|
|
625
|
+
"""
|
|
626
|
+
runtime = util_models.RuntimeOptions()
|
|
627
|
+
headers = {}
|
|
628
|
+
return await self.unified_search_with_options_async(request, headers, runtime)
|
|
@@ -1243,18 +1243,20 @@ class UnifiedSearchInformation(TeaModel):
|
|
|
1243
1243
|
return self
|
|
1244
1244
|
|
|
1245
1245
|
|
|
1246
|
-
class
|
|
1246
|
+
class UnifiedSearchInput(TeaModel):
|
|
1247
1247
|
def __init__(
|
|
1248
1248
|
self,
|
|
1249
1249
|
category: str = None,
|
|
1250
1250
|
contents: RequestContents = None,
|
|
1251
1251
|
engine_type: str = None,
|
|
1252
|
+
location: str = None,
|
|
1252
1253
|
query: str = None,
|
|
1253
1254
|
time_range: str = None,
|
|
1254
1255
|
):
|
|
1255
1256
|
self.category = category
|
|
1256
1257
|
self.contents = contents
|
|
1257
1258
|
self.engine_type = engine_type
|
|
1259
|
+
self.location = location
|
|
1258
1260
|
self.query = query
|
|
1259
1261
|
self.time_range = time_range
|
|
1260
1262
|
|
|
@@ -1274,6 +1276,8 @@ class UnifiedSearchRequest(TeaModel):
|
|
|
1274
1276
|
result['contents'] = self.contents.to_map()
|
|
1275
1277
|
if self.engine_type is not None:
|
|
1276
1278
|
result['engineType'] = self.engine_type
|
|
1279
|
+
if self.location is not None:
|
|
1280
|
+
result['location'] = self.location
|
|
1277
1281
|
if self.query is not None:
|
|
1278
1282
|
result['query'] = self.query
|
|
1279
1283
|
if self.time_range is not None:
|
|
@@ -1289,6 +1293,8 @@ class UnifiedSearchRequest(TeaModel):
|
|
|
1289
1293
|
self.contents = temp_model.from_map(m['contents'])
|
|
1290
1294
|
if m.get('engineType') is not None:
|
|
1291
1295
|
self.engine_type = m.get('engineType')
|
|
1296
|
+
if m.get('location') is not None:
|
|
1297
|
+
self.location = m.get('location')
|
|
1292
1298
|
if m.get('query') is not None:
|
|
1293
1299
|
self.query = m.get('query')
|
|
1294
1300
|
if m.get('timeRange') is not None:
|
|
@@ -1296,7 +1302,7 @@ class UnifiedSearchRequest(TeaModel):
|
|
|
1296
1302
|
return self
|
|
1297
1303
|
|
|
1298
1304
|
|
|
1299
|
-
class
|
|
1305
|
+
class UnifiedSearchOutput(TeaModel):
|
|
1300
1306
|
def __init__(
|
|
1301
1307
|
self,
|
|
1302
1308
|
cost_credits: UnifiedCostCredits = None,
|
|
@@ -1968,3 +1974,73 @@ class GlobalSearchResponse(TeaModel):
|
|
|
1968
1974
|
return self
|
|
1969
1975
|
|
|
1970
1976
|
|
|
1977
|
+
class UnifiedSearchRequest(TeaModel):
|
|
1978
|
+
def __init__(
|
|
1979
|
+
self,
|
|
1980
|
+
body: UnifiedSearchInput = None,
|
|
1981
|
+
):
|
|
1982
|
+
self.body = body
|
|
1983
|
+
|
|
1984
|
+
def validate(self):
|
|
1985
|
+
if self.body:
|
|
1986
|
+
self.body.validate()
|
|
1987
|
+
|
|
1988
|
+
def to_map(self):
|
|
1989
|
+
_map = super().to_map()
|
|
1990
|
+
if _map is not None:
|
|
1991
|
+
return _map
|
|
1992
|
+
|
|
1993
|
+
result = dict()
|
|
1994
|
+
if self.body is not None:
|
|
1995
|
+
result['body'] = self.body.to_map()
|
|
1996
|
+
return result
|
|
1997
|
+
|
|
1998
|
+
def from_map(self, m: dict = None):
|
|
1999
|
+
m = m or dict()
|
|
2000
|
+
if m.get('body') is not None:
|
|
2001
|
+
temp_model = UnifiedSearchInput()
|
|
2002
|
+
self.body = temp_model.from_map(m['body'])
|
|
2003
|
+
return self
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
class UnifiedSearchResponse(TeaModel):
|
|
2007
|
+
def __init__(
|
|
2008
|
+
self,
|
|
2009
|
+
headers: Dict[str, str] = None,
|
|
2010
|
+
status_code: int = None,
|
|
2011
|
+
body: UnifiedSearchOutput = None,
|
|
2012
|
+
):
|
|
2013
|
+
self.headers = headers
|
|
2014
|
+
self.status_code = status_code
|
|
2015
|
+
self.body = body
|
|
2016
|
+
|
|
2017
|
+
def validate(self):
|
|
2018
|
+
if self.body:
|
|
2019
|
+
self.body.validate()
|
|
2020
|
+
|
|
2021
|
+
def to_map(self):
|
|
2022
|
+
_map = super().to_map()
|
|
2023
|
+
if _map is not None:
|
|
2024
|
+
return _map
|
|
2025
|
+
|
|
2026
|
+
result = dict()
|
|
2027
|
+
if self.headers is not None:
|
|
2028
|
+
result['headers'] = self.headers
|
|
2029
|
+
if self.status_code is not None:
|
|
2030
|
+
result['statusCode'] = self.status_code
|
|
2031
|
+
if self.body is not None:
|
|
2032
|
+
result['body'] = self.body.to_map()
|
|
2033
|
+
return result
|
|
2034
|
+
|
|
2035
|
+
def from_map(self, m: dict = None):
|
|
2036
|
+
m = m or dict()
|
|
2037
|
+
if m.get('headers') is not None:
|
|
2038
|
+
self.headers = m.get('headers')
|
|
2039
|
+
if m.get('statusCode') is not None:
|
|
2040
|
+
self.status_code = m.get('statusCode')
|
|
2041
|
+
if m.get('body') is not None:
|
|
2042
|
+
temp_model = UnifiedSearchOutput()
|
|
2043
|
+
self.body = temp_model.from_map(m['body'])
|
|
2044
|
+
return self
|
|
2045
|
+
|
|
2046
|
+
|
{alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-iqs20241111
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Alibaba Cloud IQS (20241111) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -21,7 +21,7 @@ Classifier: Topic :: Software Development
|
|
|
21
21
|
Requires-Python: >=3.6
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.
|
|
24
|
+
Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.4)
|
|
25
25
|
Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.2)
|
|
26
26
|
Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.15)
|
|
27
27
|
Requires-Dist: alibabacloud-tea-util (<1.0.0,>=0.3.13)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
alibabacloud_iqs20241111/__init__.py,sha256=U9SSjW6vREFTPVkV-L7VR9upz56SvAyLuYgaMCMvw0E,21
|
|
2
|
+
alibabacloud_iqs20241111/client.py,sha256=H_QP0Y6yMlbXr36yT3G4JlkV2fuXepHqe9VPCYxwD-U,23296
|
|
3
|
+
alibabacloud_iqs20241111/models.py,sha256=Lj0T45KvrHhbBk9lKObT5xaFytMnHcaxYm3k8youc8Q,62748
|
|
4
|
+
alibabacloud_iqs20241111-1.3.1.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
alibabacloud_iqs20241111-1.3.1.dist-info/METADATA,sha256=cufRsEo6Dm6cexl3T0SnLZZia8GiF-03REKRdVSV1Uc,2312
|
|
6
|
+
alibabacloud_iqs20241111-1.3.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
alibabacloud_iqs20241111-1.3.1.dist-info/top_level.txt,sha256=DCTUMSkrMH7RuTTLUEqGJeM2_EXN79YXzwpAtYbk-bU,25
|
|
8
|
+
alibabacloud_iqs20241111-1.3.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
alibabacloud_iqs20241111/__init__.py,sha256=VvDq5py76uDFeq6tv3EFMgTHX4rtDyt6nw0tPm3Wrkk,21
|
|
2
|
-
alibabacloud_iqs20241111/client.py,sha256=KXP5S-GhFby3Bu6l0nOYwlY7PvBWZNPGE6jhR5dUuh8,19926
|
|
3
|
-
alibabacloud_iqs20241111/models.py,sha256=Xv4dY8o9nWybFof3MYRPZ9xIGHXAq4-hVKJ1fzvIKOU,60643
|
|
4
|
-
alibabacloud_iqs20241111-1.2.1.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
alibabacloud_iqs20241111-1.2.1.dist-info/METADATA,sha256=2D2D3I8Ne6JHj7RSlRUaxqNLDhbMUqm8MtbvR7iiLH8,2312
|
|
6
|
-
alibabacloud_iqs20241111-1.2.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
-
alibabacloud_iqs20241111-1.2.1.dist-info/top_level.txt,sha256=DCTUMSkrMH7RuTTLUEqGJeM2_EXN79YXzwpAtYbk-bU,25
|
|
8
|
-
alibabacloud_iqs20241111-1.2.1.dist-info/RECORD,,
|
{alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{alibabacloud_iqs20241111-1.2.1.dist-info → alibabacloud_iqs20241111-1.3.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|