alibabacloud-iqs20241111 1.2.1__py3-none-any.whl → 1.3.0__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.
@@ -1 +1 @@
1
- __version__ = '1.2.1'
1
+ __version__ = '1.3.0'
@@ -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,7 +1243,7 @@ class UnifiedSearchInformation(TeaModel):
1243
1243
  return self
1244
1244
 
1245
1245
 
1246
- class UnifiedSearchRequest(TeaModel):
1246
+ class UnifiedSearchInput(TeaModel):
1247
1247
  def __init__(
1248
1248
  self,
1249
1249
  category: str = None,
@@ -1296,7 +1296,7 @@ class UnifiedSearchRequest(TeaModel):
1296
1296
  return self
1297
1297
 
1298
1298
 
1299
- class UnifiedSearchResponse(TeaModel):
1299
+ class UnifiedSearchOutput(TeaModel):
1300
1300
  def __init__(
1301
1301
  self,
1302
1302
  cost_credits: UnifiedCostCredits = None,
@@ -1968,3 +1968,73 @@ class GlobalSearchResponse(TeaModel):
1968
1968
  return self
1969
1969
 
1970
1970
 
1971
+ class UnifiedSearchRequest(TeaModel):
1972
+ def __init__(
1973
+ self,
1974
+ body: UnifiedSearchInput = None,
1975
+ ):
1976
+ self.body = body
1977
+
1978
+ def validate(self):
1979
+ if self.body:
1980
+ self.body.validate()
1981
+
1982
+ def to_map(self):
1983
+ _map = super().to_map()
1984
+ if _map is not None:
1985
+ return _map
1986
+
1987
+ result = dict()
1988
+ if self.body is not None:
1989
+ result['body'] = self.body.to_map()
1990
+ return result
1991
+
1992
+ def from_map(self, m: dict = None):
1993
+ m = m or dict()
1994
+ if m.get('body') is not None:
1995
+ temp_model = UnifiedSearchInput()
1996
+ self.body = temp_model.from_map(m['body'])
1997
+ return self
1998
+
1999
+
2000
+ class UnifiedSearchResponse(TeaModel):
2001
+ def __init__(
2002
+ self,
2003
+ headers: Dict[str, str] = None,
2004
+ status_code: int = None,
2005
+ body: UnifiedSearchOutput = None,
2006
+ ):
2007
+ self.headers = headers
2008
+ self.status_code = status_code
2009
+ self.body = body
2010
+
2011
+ def validate(self):
2012
+ if self.body:
2013
+ self.body.validate()
2014
+
2015
+ def to_map(self):
2016
+ _map = super().to_map()
2017
+ if _map is not None:
2018
+ return _map
2019
+
2020
+ result = dict()
2021
+ if self.headers is not None:
2022
+ result['headers'] = self.headers
2023
+ if self.status_code is not None:
2024
+ result['statusCode'] = self.status_code
2025
+ if self.body is not None:
2026
+ result['body'] = self.body.to_map()
2027
+ return result
2028
+
2029
+ def from_map(self, m: dict = None):
2030
+ m = m or dict()
2031
+ if m.get('headers') is not None:
2032
+ self.headers = m.get('headers')
2033
+ if m.get('statusCode') is not None:
2034
+ self.status_code = m.get('statusCode')
2035
+ if m.get('body') is not None:
2036
+ temp_model = UnifiedSearchOutput()
2037
+ self.body = temp_model.from_map(m['body'])
2038
+ return self
2039
+
2040
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-iqs20241111
3
- Version: 1.2.1
3
+ Version: 1.3.0
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
@@ -0,0 +1,8 @@
1
+ alibabacloud_iqs20241111/__init__.py,sha256=tP8c5-8yPCRUk61qFQy1AQFkbfy99N-tga3OUiJT1MA,21
2
+ alibabacloud_iqs20241111/client.py,sha256=H_QP0Y6yMlbXr36yT3G4JlkV2fuXepHqe9VPCYxwD-U,23296
3
+ alibabacloud_iqs20241111/models.py,sha256=iGHiK2R6_WiQTB7uzwiWkxwpIGS6rFgF-begCLCvY-o,62512
4
+ alibabacloud_iqs20241111-1.3.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_iqs20241111-1.3.0.dist-info/METADATA,sha256=knL_B_CEcbLSD1SnYLjx7LvQ0j-OGT0VHMiZMfyVfko,2312
6
+ alibabacloud_iqs20241111-1.3.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_iqs20241111-1.3.0.dist-info/top_level.txt,sha256=DCTUMSkrMH7RuTTLUEqGJeM2_EXN79YXzwpAtYbk-bU,25
8
+ alibabacloud_iqs20241111-1.3.0.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,,