2020from ...._wrappers import ResultWrapper
2121from ....pagination import SyncSinglePage , AsyncSinglePage
2222from ...._base_client import AsyncPaginator , make_request_options
23- from ....types .workers .scripts import secret_update_params
23+ from ....types .workers .scripts import secret_get_params , secret_delete_params , secret_update_params
2424from ....types .workers .scripts .secret_get_response import SecretGetResponse
2525from ....types .workers .scripts .secret_list_response import SecretListResponse
2626from ....types .workers .scripts .secret_update_response import SecretUpdateResponse
@@ -252,6 +252,7 @@ def delete(
252252 * ,
253253 account_id : str ,
254254 script_name : str ,
255+ url_encoded : bool | NotGiven = NOT_GIVEN ,
255256 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
256257 # The extra values given here take precedence over values defined on the client or passed to this method.
257258 extra_headers : Headers | None = None ,
@@ -269,6 +270,8 @@ def delete(
269270
270271 secret_name: A JavaScript variable name for the secret binding.
271272
273+ url_encoded: Flag that indicates whether the secret name is URL encoded.
274+
272275 extra_headers: Send extra headers
273276
274277 extra_query: Add additional query parameters to the request
@@ -290,6 +293,7 @@ def delete(
290293 extra_query = extra_query ,
291294 extra_body = extra_body ,
292295 timeout = timeout ,
296+ query = maybe_transform ({"url_encoded" : url_encoded }, secret_delete_params .SecretDeleteParams ),
293297 post_parser = ResultWrapper [Optional [object ]]._unwrapper ,
294298 ),
295299 cast_to = cast (Type [object ], ResultWrapper [object ]),
@@ -301,6 +305,7 @@ def get(
301305 * ,
302306 account_id : str ,
303307 script_name : str ,
308+ url_encoded : bool | NotGiven = NOT_GIVEN ,
304309 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
305310 # The extra values given here take precedence over values defined on the client or passed to this method.
306311 extra_headers : Headers | None = None ,
@@ -318,6 +323,8 @@ def get(
318323
319324 secret_name: A JavaScript variable name for the secret binding.
320325
326+ url_encoded: Flag that indicates whether the secret name is URL encoded.
327+
321328 extra_headers: Send extra headers
322329
323330 extra_query: Add additional query parameters to the request
@@ -341,6 +348,7 @@ def get(
341348 extra_query = extra_query ,
342349 extra_body = extra_body ,
343350 timeout = timeout ,
351+ query = maybe_transform ({"url_encoded" : url_encoded }, secret_get_params .SecretGetParams ),
344352 post_parser = ResultWrapper [Optional [SecretGetResponse ]]._unwrapper ,
345353 ),
346354 cast_to = cast (
@@ -574,6 +582,7 @@ async def delete(
574582 * ,
575583 account_id : str ,
576584 script_name : str ,
585+ url_encoded : bool | NotGiven = NOT_GIVEN ,
577586 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
578587 # The extra values given here take precedence over values defined on the client or passed to this method.
579588 extra_headers : Headers | None = None ,
@@ -591,6 +600,8 @@ async def delete(
591600
592601 secret_name: A JavaScript variable name for the secret binding.
593602
603+ url_encoded: Flag that indicates whether the secret name is URL encoded.
604+
594605 extra_headers: Send extra headers
595606
596607 extra_query: Add additional query parameters to the request
@@ -612,6 +623,9 @@ async def delete(
612623 extra_query = extra_query ,
613624 extra_body = extra_body ,
614625 timeout = timeout ,
626+ query = await async_maybe_transform (
627+ {"url_encoded" : url_encoded }, secret_delete_params .SecretDeleteParams
628+ ),
615629 post_parser = ResultWrapper [Optional [object ]]._unwrapper ,
616630 ),
617631 cast_to = cast (Type [object ], ResultWrapper [object ]),
@@ -623,6 +637,7 @@ async def get(
623637 * ,
624638 account_id : str ,
625639 script_name : str ,
640+ url_encoded : bool | NotGiven = NOT_GIVEN ,
626641 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
627642 # The extra values given here take precedence over values defined on the client or passed to this method.
628643 extra_headers : Headers | None = None ,
@@ -640,6 +655,8 @@ async def get(
640655
641656 secret_name: A JavaScript variable name for the secret binding.
642657
658+ url_encoded: Flag that indicates whether the secret name is URL encoded.
659+
643660 extra_headers: Send extra headers
644661
645662 extra_query: Add additional query parameters to the request
@@ -663,6 +680,7 @@ async def get(
663680 extra_query = extra_query ,
664681 extra_body = extra_body ,
665682 timeout = timeout ,
683+ query = await async_maybe_transform ({"url_encoded" : url_encoded }, secret_get_params .SecretGetParams ),
666684 post_parser = ResultWrapper [Optional [SecretGetResponse ]]._unwrapper ,
667685 ),
668686 cast_to = cast (
0 commit comments