@@ -1968,6 +1968,17 @@ def validate_sort(cls, sort, values):
19681968 return sort
19691969
19701970
1971+ class IndexSearchRequestMetadata (AtlanObject ):
1972+ save_search_log : bool = Field (
1973+ default = False ,
1974+ description = "Whether to log this search (True) or not (False)" ,
1975+ )
1976+ utm_tags : List [str ] = Field (
1977+ default_factory = list ,
1978+ description = "Tags to associate with the search request" ,
1979+ )
1980+
1981+
19711982class IndexSearchRequest (SearchRequest ):
19721983 dsl : DSL
19731984 relation_attributes : Optional [List [str ]] = Field (
@@ -2013,26 +2024,13 @@ class IndexSearchRequest(SearchRequest):
20132024 default = None ,
20142025 description = "Qualified name of the purpose eg: default/zL6uqsrZGuf1hz9XFYnw9x" ,
20152026 )
2016-
2017- class Metadata (AtlanObject ):
2018- # Set this to `False` to prevent the frequent
2019- # Out of memory (OOM) issue in Metastore pods.
2020- save_search_log : bool = Field (
2021- default = False ,
2022- description = "Whether to log this search (True) or not (False)" ,
2023- )
2024- utm_tags : List [str ] = Field (
2025- default_factory = list ,
2026- description = "Tags to associate with the search request" ,
2027- )
2028-
2029- request_metadata : Optional [Metadata ] = Field (
2030- default_factory = lambda : IndexSearchRequest .Metadata (
2027+ request_metadata : Optional [IndexSearchRequestMetadata ] = Field (
2028+ default_factory = lambda : IndexSearchRequestMetadata (
20312029 # Set this to `False` to prevent the frequent
20322030 # Out of memory (OOM) issue in Metastore pods.
20332031 save_search_log = False ,
20342032 utm_tags = [UTMTags .PROJECT_SDK_PYTHON ],
2035- ),
2033+ )
20362034 )
20372035
20382036 class Config :
0 commit comments