22
22
from monday_code .api_client import ApiClient , RequestSerialized
23
23
from monday_code .api_response import ApiResponse
24
24
from monday_code .rest import RESTResponseType
25
- from monday_code .sdk_logger import log_sdk_usage
26
25
27
26
28
27
class EnvironmentVariablesApi :
@@ -37,6 +36,7 @@ def __init__(self, api_client=None) -> None:
37
36
api_client = ApiClient .get_default ()
38
37
self .api_client = api_client
39
38
39
+
40
40
@validate_call
41
41
async def get_environment_variable (
42
42
self ,
@@ -79,10 +79,7 @@ async def get_environment_variable(
79
79
in the spec for a single request.
80
80
:type _host_index: int, optional
81
81
:return: Returns the result object.
82
- """ # noqa: E501
83
-
84
- # Log environment variable usage
85
- log_sdk_usage (f"🌍 Getting environment variable: '{ name } '" )
82
+ """ # noqa: E501
86
83
87
84
_param = self ._get_environment_variable_serialize (
88
85
name = name ,
@@ -106,6 +103,7 @@ async def get_environment_variable(
106
103
response_types_map = _response_types_map ,
107
104
).data
108
105
106
+
109
107
@validate_call
110
108
async def get_environment_variable_with_http_info (
111
109
self ,
@@ -148,7 +146,7 @@ async def get_environment_variable_with_http_info(
148
146
in the spec for a single request.
149
147
:type _host_index: int, optional
150
148
:return: Returns the result object.
151
- """ # noqa: E501
149
+ """ # noqa: E501
152
150
153
151
_param = self ._get_environment_variable_serialize (
154
152
name = name ,
@@ -172,6 +170,7 @@ async def get_environment_variable_with_http_info(
172
170
response_types_map = _response_types_map ,
173
171
)
174
172
173
+
175
174
@validate_call
176
175
async def get_environment_variable_without_preload_content (
177
176
self ,
@@ -214,7 +213,7 @@ async def get_environment_variable_without_preload_content(
214
213
in the spec for a single request.
215
214
:type _host_index: int, optional
216
215
:return: Returns the result object.
217
- """ # noqa: E501
216
+ """ # noqa: E501
218
217
219
218
_param = self ._get_environment_variable_serialize (
220
219
name = name ,
@@ -234,6 +233,7 @@ async def get_environment_variable_without_preload_content(
234
233
)
235
234
return response_data .response
236
235
236
+
237
237
def _get_environment_variable_serialize (
238
238
self ,
239
239
name ,
@@ -265,6 +265,7 @@ def _get_environment_variable_serialize(
265
265
# process the form parameters
266
266
# process the body parameter
267
267
268
+
268
269
# set the HTTP header `Accept`
269
270
if 'Accept' not in _header_params :
270
271
_header_params ['Accept' ] = self .api_client .select_header_accept (
@@ -273,6 +274,7 @@ def _get_environment_variable_serialize(
273
274
]
274
275
)
275
276
277
+
276
278
# authentication setting
277
279
_auth_settings : List [str ] = [
278
280
]
@@ -292,6 +294,9 @@ def _get_environment_variable_serialize(
292
294
_request_auth = _request_auth
293
295
)
294
296
297
+
298
+
299
+
295
300
@validate_call
296
301
async def get_environment_variable_keys (
297
302
self ,
@@ -331,10 +336,7 @@ async def get_environment_variable_keys(
331
336
in the spec for a single request.
332
337
:type _host_index: int, optional
333
338
:return: Returns the result object.
334
- """ # noqa: E501
335
-
336
- # Log environment variable usage
337
- log_sdk_usage ("🌍 Getting all environment variable keys" )
339
+ """ # noqa: E501
338
340
339
341
_param = self ._get_environment_variable_keys_serialize (
340
342
_request_auth = _request_auth ,
@@ -356,6 +358,7 @@ async def get_environment_variable_keys(
356
358
response_types_map = _response_types_map ,
357
359
).data
358
360
361
+
359
362
@validate_call
360
363
async def get_environment_variable_keys_with_http_info (
361
364
self ,
@@ -395,7 +398,7 @@ async def get_environment_variable_keys_with_http_info(
395
398
in the spec for a single request.
396
399
:type _host_index: int, optional
397
400
:return: Returns the result object.
398
- """ # noqa: E501
401
+ """ # noqa: E501
399
402
400
403
_param = self ._get_environment_variable_keys_serialize (
401
404
_request_auth = _request_auth ,
@@ -417,6 +420,7 @@ async def get_environment_variable_keys_with_http_info(
417
420
response_types_map = _response_types_map ,
418
421
)
419
422
423
+
420
424
@validate_call
421
425
async def get_environment_variable_keys_without_preload_content (
422
426
self ,
@@ -456,7 +460,7 @@ async def get_environment_variable_keys_without_preload_content(
456
460
in the spec for a single request.
457
461
:type _host_index: int, optional
458
462
:return: Returns the result object.
459
- """ # noqa: E501
463
+ """ # noqa: E501
460
464
461
465
_param = self ._get_environment_variable_keys_serialize (
462
466
_request_auth = _request_auth ,
@@ -474,6 +478,7 @@ async def get_environment_variable_keys_without_preload_content(
474
478
)
475
479
return response_data .response
476
480
481
+
477
482
def _get_environment_variable_keys_serialize (
478
483
self ,
479
484
_request_auth ,
@@ -502,6 +507,7 @@ def _get_environment_variable_keys_serialize(
502
507
# process the form parameters
503
508
# process the body parameter
504
509
510
+
505
511
# set the HTTP header `Accept`
506
512
if 'Accept' not in _header_params :
507
513
_header_params ['Accept' ] = self .api_client .select_header_accept (
@@ -510,6 +516,7 @@ def _get_environment_variable_keys_serialize(
510
516
]
511
517
)
512
518
519
+
513
520
# authentication setting
514
521
_auth_settings : List [str ] = [
515
522
]
@@ -528,3 +535,5 @@ def _get_environment_variable_keys_serialize(
528
535
_host = _host ,
529
536
_request_auth = _request_auth
530
537
)
538
+
539
+
0 commit comments