@@ -41,6 +41,12 @@ def get_actor_representation(
4141 default_run_timeout_secs : int | None = None ,
4242 example_run_input_body : Any = None ,
4343 example_run_input_content_type : str | None = None ,
44+ actor_standby_is_enabled : bool | None = None ,
45+ actor_standby_desired_requests_per_actor_run : int | None = None ,
46+ actor_standby_max_requests_per_actor_run : int | None = None ,
47+ actor_standby_idle_timeout_secs : int | None = None ,
48+ actor_standby_build : str | None = None ,
49+ actor_standby_memory_mbytes : int | None = None ,
4450) -> dict :
4551 """Get dictionary representation of the Actor."""
4652 return {
@@ -65,6 +71,14 @@ def get_actor_representation(
6571 'body' : example_run_input_body ,
6672 'contentType' : example_run_input_content_type ,
6773 },
74+ 'actorStandby' : {
75+ 'isEnabled' : actor_standby_is_enabled ,
76+ 'desiredRequestsPerActorRun' : actor_standby_desired_requests_per_actor_run ,
77+ 'maxRequestsPerActorRun' : actor_standby_max_requests_per_actor_run ,
78+ 'idleTimeoutSecs' : actor_standby_idle_timeout_secs ,
79+ 'build' : actor_standby_build ,
80+ 'memoryMbytes' : actor_standby_memory_mbytes ,
81+ },
6882 }
6983
7084
@@ -107,6 +121,12 @@ def update(
107121 default_run_timeout_secs : int | None = None ,
108122 example_run_input_body : Any = None ,
109123 example_run_input_content_type : str | None = None ,
124+ actor_standby_is_enabled : bool | None = None ,
125+ actor_standby_desired_requests_per_actor_run : int | None = None ,
126+ actor_standby_max_requests_per_actor_run : int | None = None ,
127+ actor_standby_idle_timeout_secs : int | None = None ,
128+ actor_standby_build : str | None = None ,
129+ actor_standby_memory_mbytes : int | None = None ,
110130 ) -> dict :
111131 """Update the actor with the specified fields.
112132
@@ -131,6 +151,13 @@ def update(
131151 default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
132152 example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
133153 example_run_input_content_type (str, optional): The content type of the example run input.
154+ actor_standby_is_enabled (bool, optional): Whether the Actor Standby is enabled.
155+ actor_standby_desired_requests_per_actor_run (int, optional): The desired number of concurrent HTTP requests for
156+ a single Actor Standby run.
157+ actor_standby_max_requests_per_actor_run (int, optional): The maximum number of concurrent HTTP requests for a single Actor Standby run.
158+ actor_standby_idle_timeout_secs (int, optional): If the Actor run does not receive any requests for this time, it will be shut down.
159+ actor_standby_build (str, optional): The build tag or number to run when the Actor is in Standby mode.
160+ actor_standby_memory_mbytes (int, optional): The memory in megabytes to use when the Actor is in Standby mode.
134161
135162 Returns:
136163 dict: The updated actor
@@ -153,6 +180,12 @@ def update(
153180 default_run_timeout_secs = default_run_timeout_secs ,
154181 example_run_input_body = example_run_input_body ,
155182 example_run_input_content_type = example_run_input_content_type ,
183+ actor_standby_is_enabled = actor_standby_is_enabled ,
184+ actor_standby_desired_requests_per_actor_run = actor_standby_desired_requests_per_actor_run ,
185+ actor_standby_max_requests_per_actor_run = actor_standby_max_requests_per_actor_run ,
186+ actor_standby_idle_timeout_secs = actor_standby_idle_timeout_secs ,
187+ actor_standby_build = actor_standby_build ,
188+ actor_standby_memory_mbytes = actor_standby_memory_mbytes ,
156189 )
157190
158191 return self ._update (filter_out_none_values_recursively (actor_representation ))
@@ -414,6 +447,12 @@ async def update(
414447 default_run_timeout_secs : int | None = None ,
415448 example_run_input_body : Any = None ,
416449 example_run_input_content_type : str | None = None ,
450+ actor_standby_is_enabled : bool | None = None ,
451+ actor_standby_desired_requests_per_actor_run : int | None = None ,
452+ actor_standby_max_requests_per_actor_run : int | None = None ,
453+ actor_standby_idle_timeout_secs : int | None = None ,
454+ actor_standby_build : str | None = None ,
455+ actor_standby_memory_mbytes : int | None = None ,
417456 ) -> dict :
418457 """Update the actor with the specified fields.
419458
@@ -438,6 +477,13 @@ async def update(
438477 default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
439478 example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
440479 example_run_input_content_type (str, optional): The content type of the example run input.
480+ actor_standby_is_enabled (bool, optional): Whether the Actor Standby is enabled.
481+ actor_standby_desired_requests_per_actor_run (int, optional): The desired number of concurrent HTTP requests for
482+ a single Actor Standby run.
483+ actor_standby_max_requests_per_actor_run (int, optional): The maximum number of concurrent HTTP requests for a single Actor Standby run.
484+ actor_standby_idle_timeout_secs (int, optional): If the Actor run does not receive any requests for this time, it will be shut down.
485+ actor_standby_build (str, optional): The build tag or number to run when the Actor is in Standby mode.
486+ actor_standby_memory_mbytes (int, optional): The memory in megabytes to use when the Actor is in Standby mode.
441487
442488 Returns:
443489 dict: The updated actor
@@ -460,6 +506,12 @@ async def update(
460506 default_run_timeout_secs = default_run_timeout_secs ,
461507 example_run_input_body = example_run_input_body ,
462508 example_run_input_content_type = example_run_input_content_type ,
509+ actor_standby_is_enabled = actor_standby_is_enabled ,
510+ actor_standby_desired_requests_per_actor_run = actor_standby_desired_requests_per_actor_run ,
511+ actor_standby_max_requests_per_actor_run = actor_standby_max_requests_per_actor_run ,
512+ actor_standby_idle_timeout_secs = actor_standby_idle_timeout_secs ,
513+ actor_standby_build = actor_standby_build ,
514+ actor_standby_memory_mbytes = actor_standby_memory_mbytes ,
463515 )
464516
465517 return await self ._update (filter_out_none_values_recursively (actor_representation ))
0 commit comments