diff --git a/src/apify_client/clients/resource_clients/actor.py b/src/apify_client/clients/resource_clients/actor.py index 28dd62db..675783c4 100644 --- a/src/apify_client/clients/resource_clients/actor.py +++ b/src/apify_client/clients/resource_clients/actor.py @@ -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 { @@ -93,6 +94,7 @@ def get_actor_representation( 'memoryMbytes': actor_standby_memory_mbytes, }, 'pricingInfos': pricing_infos, + 'actorPermissionLevel': actor_permission_level, } @@ -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. @@ -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. @@ -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)) @@ -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. @@ -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. @@ -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))