Skip to content
Merged
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/clients/resource_clients/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def get_actor_representation(
actor_standby_build: str | None = None,
actor_standby_memory_mbytes: int | None = None,
pricing_infos: list[dict] | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
) -> dict:
"""Get dictionary representation of the Actor."""
return {
Expand Down Expand Up @@ -93,6 +94,7 @@ def get_actor_representation(
'memoryMbytes': actor_standby_memory_mbytes,
},
'pricingInfos': pricing_infos,
'actorPermissionLevel': actor_permission_level,
}


Expand Down Expand Up @@ -140,6 +142,7 @@ def update(
actor_standby_build: str | None = None,
actor_standby_memory_mbytes: int | None = None,
pricing_infos: list[dict] | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
) -> dict:
"""Update the Actor with the specified fields.

Expand Down Expand Up @@ -175,6 +178,7 @@ def update(
actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
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.

Returns:
The updated Actor.
Expand Down Expand Up @@ -204,6 +208,7 @@ def update(
actor_standby_build=actor_standby_build,
actor_standby_memory_mbytes=actor_standby_memory_mbytes,
pricing_infos=pricing_infos,
actor_permission_level=actor_permission_level,
)

return self._update(filter_out_none_values_recursively(actor_representation))
Expand Down Expand Up @@ -560,6 +565,7 @@ async def update(
actor_standby_build: str | None = None,
actor_standby_memory_mbytes: int | None = None,
pricing_infos: list[dict] | None = None,
actor_permission_level: ActorPermissionLevel | None = None,
) -> dict:
"""Update the Actor with the specified fields.

Expand Down Expand Up @@ -595,6 +601,7 @@ async def update(
actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
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.

Returns:
The updated Actor.
Expand Down Expand Up @@ -624,6 +631,7 @@ async def update(
actor_standby_build=actor_standby_build,
actor_standby_memory_mbytes=actor_standby_memory_mbytes,
pricing_infos=pricing_infos,
actor_permission_level=actor_permission_level,
)

return await self._update(filter_out_none_values_recursively(actor_representation))
Expand Down