1010from ..core .pagination import AsyncPager , BaseHttpResponse , SyncPager
1111from ..core .pydantic_utilities import parse_obj_as
1212from ..core .request_options import RequestOptions
13+ from ..core .serialization import convert_and_respect_annotation_metadata
1314from ..types .component import Component
1415from ..types .configure_prop_response import ConfigurePropResponse
1516from ..types .get_component_response import GetComponentResponse
1617from ..types .get_components_response import GetComponentsResponse
1718from ..types .reload_props_response import ReloadPropsResponse
1819from ..types .run_action_response import RunActionResponse
20+ from .types .run_action_opts_stash_id import RunActionOptsStashId
1921
2022# this is used as the default value for optional parameters
2123OMIT = typing .cast (typing .Any , ...)
@@ -322,6 +324,7 @@ def run(
322324 async_handle : typing .Optional [str ] = None ,
323325 configured_props : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
324326 dynamic_props_id : typing .Optional [str ] = OMIT ,
327+ stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
325328 request_options : typing .Optional [RequestOptions ] = None ,
326329 ) -> HttpResponse [RunActionResponse ]:
327330 """
@@ -341,6 +344,9 @@ def run(
341344 dynamic_props_id : typing.Optional[str]
342345 The ID for dynamic props
343346
347+ stash_id : typing.Optional[RunActionOptsStashId]
348+ The ID of the File Stash to use for syncing the action's /tmp directory
349+
344350 request_options : typing.Optional[RequestOptions]
345351 Request-specific configuration.
346352
@@ -357,6 +363,9 @@ def run(
357363 "external_user_id" : external_user_id ,
358364 "configured_props" : configured_props ,
359365 "dynamic_props_id" : dynamic_props_id ,
366+ "stash_id" : convert_and_respect_annotation_metadata (
367+ object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
368+ ),
360369 },
361370 headers = {
362371 "content-type" : "application/json" ,
@@ -685,6 +694,7 @@ async def run(
685694 async_handle : typing .Optional [str ] = None ,
686695 configured_props : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
687696 dynamic_props_id : typing .Optional [str ] = OMIT ,
697+ stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
688698 request_options : typing .Optional [RequestOptions ] = None ,
689699 ) -> AsyncHttpResponse [RunActionResponse ]:
690700 """
@@ -704,6 +714,9 @@ async def run(
704714 dynamic_props_id : typing.Optional[str]
705715 The ID for dynamic props
706716
717+ stash_id : typing.Optional[RunActionOptsStashId]
718+ The ID of the File Stash to use for syncing the action's /tmp directory
719+
707720 request_options : typing.Optional[RequestOptions]
708721 Request-specific configuration.
709722
@@ -720,6 +733,9 @@ async def run(
720733 "external_user_id" : external_user_id ,
721734 "configured_props" : configured_props ,
722735 "dynamic_props_id" : dynamic_props_id ,
736+ "stash_id" : convert_and_respect_annotation_metadata (
737+ object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
738+ ),
723739 },
724740 headers = {
725741 "content-type" : "application/json" ,
0 commit comments