2222from monday_code .api_client import ApiClient , RequestSerialized
2323from monday_code .api_response import ApiResponse
2424from monday_code .rest import RESTResponseType
25+ from monday_code .sdk_logger import log_sdk_usage
2526
2627
2728class EnvironmentVariablesApi :
@@ -36,7 +37,6 @@ def __init__(self, api_client=None) -> None:
3637 api_client = ApiClient .get_default ()
3738 self .api_client = api_client
3839
39-
4040 @validate_call
4141 async def get_environment_variable (
4242 self ,
@@ -79,7 +79,10 @@ async def get_environment_variable(
7979 in the spec for a single request.
8080 :type _host_index: int, optional
8181 :return: Returns the result object.
82- """ # noqa: E501
82+ """ # noqa: E501
83+
84+ # Log environment variable usage
85+ log_sdk_usage (f"🌍 Getting environment variable: '{ name } '" )
8386
8487 _param = self ._get_environment_variable_serialize (
8588 name = name ,
@@ -103,7 +106,6 @@ async def get_environment_variable(
103106 response_types_map = _response_types_map ,
104107 ).data
105108
106-
107109 @validate_call
108110 async def get_environment_variable_with_http_info (
109111 self ,
@@ -146,7 +148,7 @@ async def get_environment_variable_with_http_info(
146148 in the spec for a single request.
147149 :type _host_index: int, optional
148150 :return: Returns the result object.
149- """ # noqa: E501
151+ """ # noqa: E501
150152
151153 _param = self ._get_environment_variable_serialize (
152154 name = name ,
@@ -170,7 +172,6 @@ async def get_environment_variable_with_http_info(
170172 response_types_map = _response_types_map ,
171173 )
172174
173-
174175 @validate_call
175176 async def get_environment_variable_without_preload_content (
176177 self ,
@@ -213,7 +214,7 @@ async def get_environment_variable_without_preload_content(
213214 in the spec for a single request.
214215 :type _host_index: int, optional
215216 :return: Returns the result object.
216- """ # noqa: E501
217+ """ # noqa: E501
217218
218219 _param = self ._get_environment_variable_serialize (
219220 name = name ,
@@ -233,7 +234,6 @@ async def get_environment_variable_without_preload_content(
233234 )
234235 return response_data .response
235236
236-
237237 def _get_environment_variable_serialize (
238238 self ,
239239 name ,
@@ -265,7 +265,6 @@ def _get_environment_variable_serialize(
265265 # process the form parameters
266266 # process the body parameter
267267
268-
269268 # set the HTTP header `Accept`
270269 if 'Accept' not in _header_params :
271270 _header_params ['Accept' ] = self .api_client .select_header_accept (
@@ -274,7 +273,6 @@ def _get_environment_variable_serialize(
274273 ]
275274 )
276275
277-
278276 # authentication setting
279277 _auth_settings : List [str ] = [
280278 ]
@@ -294,9 +292,6 @@ def _get_environment_variable_serialize(
294292 _request_auth = _request_auth
295293 )
296294
297-
298-
299-
300295 @validate_call
301296 async def get_environment_variable_keys (
302297 self ,
@@ -336,7 +331,10 @@ async def get_environment_variable_keys(
336331 in the spec for a single request.
337332 :type _host_index: int, optional
338333 :return: Returns the result object.
339- """ # noqa: E501
334+ """ # noqa: E501
335+
336+ # Log environment variable usage
337+ log_sdk_usage ("🌍 Getting all environment variable keys" )
340338
341339 _param = self ._get_environment_variable_keys_serialize (
342340 _request_auth = _request_auth ,
@@ -358,7 +356,6 @@ async def get_environment_variable_keys(
358356 response_types_map = _response_types_map ,
359357 ).data
360358
361-
362359 @validate_call
363360 async def get_environment_variable_keys_with_http_info (
364361 self ,
@@ -398,7 +395,7 @@ async def get_environment_variable_keys_with_http_info(
398395 in the spec for a single request.
399396 :type _host_index: int, optional
400397 :return: Returns the result object.
401- """ # noqa: E501
398+ """ # noqa: E501
402399
403400 _param = self ._get_environment_variable_keys_serialize (
404401 _request_auth = _request_auth ,
@@ -420,7 +417,6 @@ async def get_environment_variable_keys_with_http_info(
420417 response_types_map = _response_types_map ,
421418 )
422419
423-
424420 @validate_call
425421 async def get_environment_variable_keys_without_preload_content (
426422 self ,
@@ -460,7 +456,7 @@ async def get_environment_variable_keys_without_preload_content(
460456 in the spec for a single request.
461457 :type _host_index: int, optional
462458 :return: Returns the result object.
463- """ # noqa: E501
459+ """ # noqa: E501
464460
465461 _param = self ._get_environment_variable_keys_serialize (
466462 _request_auth = _request_auth ,
@@ -478,7 +474,6 @@ async def get_environment_variable_keys_without_preload_content(
478474 )
479475 return response_data .response
480476
481-
482477 def _get_environment_variable_keys_serialize (
483478 self ,
484479 _request_auth ,
@@ -507,7 +502,6 @@ def _get_environment_variable_keys_serialize(
507502 # process the form parameters
508503 # process the body parameter
509504
510-
511505 # set the HTTP header `Accept`
512506 if 'Accept' not in _header_params :
513507 _header_params ['Accept' ] = self .api_client .select_header_accept (
@@ -516,7 +510,6 @@ def _get_environment_variable_keys_serialize(
516510 ]
517511 )
518512
519-
520513 # authentication setting
521514 _auth_settings : List [str ] = [
522515 ]
@@ -535,5 +528,3 @@ def _get_environment_variable_keys_serialize(
535528 _host = _host ,
536529 _request_auth = _request_auth
537530 )
538-
539-
0 commit comments