Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/apify_client/_resource_clients/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def update(
actor_standby_memory_mbytes: int | None = None,
actor_standby_disable_standby_fields_override: bool | None = None,
actor_standby_should_pass_actor_input: bool | None = None,
actor_standby_tenancy: str | None = None,
pricing_infos: list[dict[str, Any]] | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
tagged_builds: dict[str, dict[str, str] | None] | None = None,
Expand Down Expand Up @@ -175,6 +176,8 @@ def update(
overridden elsewhere.
actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
the Standby runs start with no input.
actor_standby_tenancy: Whether each user gets their own Standby runs (`SINGLE_TENANT`) or the runs are
shared across users (`MULTI_TENANT`).
pricing_infos: A list of objects that describes the pricing of the Actor.
actor_permission_level: The permission level of the Actor on Apify platform.
tagged_builds: A dictionary mapping build tag names to their settings. Use it to create, update,
Expand Down Expand Up @@ -214,6 +217,7 @@ def update(
memory_mbytes=actor_standby_memory_mbytes,
disable_standby_fields_override=actor_standby_disable_standby_fields_override,
should_pass_actor_input=actor_standby_should_pass_actor_input,
tenancy=actor_standby_tenancy,
),
example_run_input=ExampleRunInput(
body=example_run_input_body,
Expand Down Expand Up @@ -691,6 +695,7 @@ async def update(
actor_standby_memory_mbytes: int | None = None,
actor_standby_disable_standby_fields_override: bool | None = None,
actor_standby_should_pass_actor_input: bool | None = None,
actor_standby_tenancy: str | None = None,
pricing_infos: list[dict[str, Any]] | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
tagged_builds: dict[str, dict[str, str] | None] | None = None,
Expand Down Expand Up @@ -735,6 +740,8 @@ async def update(
overridden elsewhere.
actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
the Standby runs start with no input.
actor_standby_tenancy: Whether each user gets their own Standby runs (`SINGLE_TENANT`) or the runs are
shared across users (`MULTI_TENANT`).
pricing_infos: A list of objects that describes the pricing of the Actor.
actor_permission_level: The permission level of the Actor on Apify platform.
tagged_builds: A dictionary mapping build tag names to their settings. Use it to create, update,
Expand Down Expand Up @@ -774,6 +781,7 @@ async def update(
memory_mbytes=actor_standby_memory_mbytes,
disable_standby_fields_override=actor_standby_disable_standby_fields_override,
should_pass_actor_input=actor_standby_should_pass_actor_input,
tenancy=actor_standby_tenancy,
),
example_run_input=ExampleRunInput(
body=example_run_input_body,
Expand Down
8 changes: 8 additions & 0 deletions src/apify_client/_resource_clients/actor_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def create(
actor_standby_memory_mbytes: int | None = None,
actor_standby_disable_standby_fields_override: bool | None = None,
actor_standby_should_pass_actor_input: bool | None = None,
actor_standby_tenancy: str | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
timeout: Timeout = 'medium',
) -> ActorResource:
Expand Down Expand Up @@ -179,6 +180,8 @@ def create(
overridden elsewhere.
actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
the Standby runs start with no input.
actor_standby_tenancy: Whether each user gets their own Standby runs (`SINGLE_TENANT`) or the runs are
shared across users (`MULTI_TENANT`).
actor_permission_level: The permission level of the Actor on Apify platform.
timeout: Timeout for the API HTTP request.

Expand Down Expand Up @@ -213,6 +216,7 @@ def create(
memory_mbytes=actor_standby_memory_mbytes,
disable_standby_fields_override=actor_standby_disable_standby_fields_override,
should_pass_actor_input=actor_standby_should_pass_actor_input,
tenancy=actor_standby_tenancy,
),
example_run_input=ExampleRunInput(
body=example_run_input_body,
Expand Down Expand Up @@ -334,6 +338,7 @@ async def create(
actor_standby_memory_mbytes: int | None = None,
actor_standby_disable_standby_fields_override: bool | None = None,
actor_standby_should_pass_actor_input: bool | None = None,
actor_standby_tenancy: str | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
timeout: Timeout = 'medium',
) -> ActorResource:
Expand Down Expand Up @@ -376,6 +381,8 @@ async def create(
overridden elsewhere.
actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
the Standby runs start with no input.
actor_standby_tenancy: Whether each user gets their own Standby runs (`SINGLE_TENANT`) or the runs are
shared across users (`MULTI_TENANT`).
actor_permission_level: The permission level of the Actor on Apify platform.
timeout: Timeout for the API HTTP request.

Expand Down Expand Up @@ -410,6 +417,7 @@ async def create(
memory_mbytes=actor_standby_memory_mbytes,
disable_standby_fields_override=actor_standby_disable_standby_fields_override,
should_pass_actor_input=actor_standby_should_pass_actor_input,
tenancy=actor_standby_tenancy,
),
example_run_input=ExampleRunInput(
body=example_run_input_body,
Expand Down
7 changes: 6 additions & 1 deletion tests/unit/test_actor_update_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@
_FIELDS: dict[str, Any] = {
'actor_standby_disable_standby_fields_override': True,
'actor_standby_should_pass_actor_input': False,
'actor_standby_tenancy': 'MULTI_TENANT',
}

_EXPECTED_BODY = {
'actorStandby': {'disableStandbyFieldsOverride': True, 'shouldPassActorInput': False},
'actorStandby': {
'disableStandbyFieldsOverride': True,
'shouldPassActorInput': False,
'tenancy': 'MULTI_TENANT',
},
}


Expand Down
Loading