@@ -41,6 +41,12 @@ def get_actor_representation(
41
41
default_run_timeout_secs : int | None = None ,
42
42
example_run_input_body : Any = None ,
43
43
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 ,
44
50
) -> dict :
45
51
"""Get dictionary representation of the Actor."""
46
52
return {
@@ -65,6 +71,14 @@ def get_actor_representation(
65
71
'body' : example_run_input_body ,
66
72
'contentType' : example_run_input_content_type ,
67
73
},
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
+ },
68
82
}
69
83
70
84
@@ -107,6 +121,12 @@ def update(
107
121
default_run_timeout_secs : int | None = None ,
108
122
example_run_input_body : Any = None ,
109
123
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 ,
110
130
) -> dict :
111
131
"""Update the actor with the specified fields.
112
132
@@ -131,6 +151,13 @@ def update(
131
151
default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
132
152
example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
133
153
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.
134
161
135
162
Returns:
136
163
dict: The updated actor
@@ -153,6 +180,12 @@ def update(
153
180
default_run_timeout_secs = default_run_timeout_secs ,
154
181
example_run_input_body = example_run_input_body ,
155
182
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 ,
156
189
)
157
190
158
191
return self ._update (filter_out_none_values_recursively (actor_representation ))
@@ -414,6 +447,12 @@ async def update(
414
447
default_run_timeout_secs : int | None = None ,
415
448
example_run_input_body : Any = None ,
416
449
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 ,
417
456
) -> dict :
418
457
"""Update the actor with the specified fields.
419
458
@@ -438,6 +477,13 @@ async def update(
438
477
default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
439
478
example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
440
479
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.
441
487
442
488
Returns:
443
489
dict: The updated actor
@@ -460,6 +506,12 @@ async def update(
460
506
default_run_timeout_secs = default_run_timeout_secs ,
461
507
example_run_input_body = example_run_input_body ,
462
508
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 ,
463
515
)
464
516
465
517
return await self ._update (filter_out_none_values_recursively (actor_representation ))
0 commit comments