@@ -132,7 +132,11 @@ def __init__(
132132 self .network_session = network_session
133133
134134 def get_file_metadata (
135- self , file_id : str , * , extra_headers : Optional [Dict [str , Optional [str ]]] = None
135+ self ,
136+ file_id : str ,
137+ * ,
138+ view : Optional [str ] = None ,
139+ extra_headers : Optional [Dict [str , Optional [str ]]] = None
136140 ) -> Metadatas :
137141 """
138142 Retrieves all metadata for a given file.
@@ -145,11 +149,18 @@ def get_file_metadata(
145149 the `file_id` is `123`.
146150 Example: "12345"
147151 :type file_id: str
152+ :param view: Taxonomy field values are returned in `API view` by default, meaning
153+ the value is represented with a taxonomy node identifier.
154+ To retrieve the `Hydrated view`, where taxonomy values are represented
155+ with the full taxonomy node information, set this parameter to `hydrated`.
156+ This is the only supported value for this parameter., defaults to None
157+ :type view: Optional[str], optional
148158 :param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
149159 :type extra_headers: Optional[Dict[str, Optional[str]]], optional
150160 """
151161 if extra_headers is None :
152162 extra_headers = {}
163+ query_params_map : Dict [str , str ] = prepare_params ({'view' : to_string (view )})
153164 headers_map : Dict [str , str ] = prepare_params ({** extra_headers })
154165 response : FetchResponse = self .network_session .network_client .fetch (
155166 FetchOptions (
@@ -162,6 +173,7 @@ def get_file_metadata(
162173 ]
163174 ),
164175 method = 'GET' ,
176+ params = query_params_map ,
165177 headers = headers_map ,
166178 response_format = ResponseFormat .JSON ,
167179 auth = self .auth ,
@@ -176,6 +188,7 @@ def get_file_metadata_by_id(
176188 scope : GetFileMetadataByIdScope ,
177189 template_key : str ,
178190 * ,
191+ view : Optional [str ] = None ,
179192 extra_headers : Optional [Dict [str , Optional [str ]]] = None
180193 ) -> MetadataFull :
181194 """
@@ -198,11 +211,18 @@ def get_file_metadata_by_id(
198211 :param template_key: The name of the metadata template.
199212 Example: "properties"
200213 :type template_key: str
214+ :param view: Taxonomy field values are returned in `API view` by default, meaning
215+ the value is represented with a taxonomy node identifier.
216+ To retrieve the `Hydrated view`, where taxonomy values are represented
217+ with the full taxonomy node information, set this parameter to `hydrated`.
218+ This is the only supported value for this parameter., defaults to None
219+ :type view: Optional[str], optional
201220 :param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
202221 :type extra_headers: Optional[Dict[str, Optional[str]]], optional
203222 """
204223 if extra_headers is None :
205224 extra_headers = {}
225+ query_params_map : Dict [str , str ] = prepare_params ({'view' : to_string (view )})
206226 headers_map : Dict [str , str ] = prepare_params ({** extra_headers })
207227 response : FetchResponse = self .network_session .network_client .fetch (
208228 FetchOptions (
@@ -218,6 +238,7 @@ def get_file_metadata_by_id(
218238 ]
219239 ),
220240 method = 'GET' ,
241+ params = query_params_map ,
221242 headers = headers_map ,
222243 response_format = ResponseFormat .JSON ,
223244 auth = self .auth ,
0 commit comments