Skip to content

Commit 9da9461

Browse files
committed
feat: expose actorPermissionLevel in Actor client
1 parent 56249ef commit 9da9461

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/apify_client/clients/resource_clients

src/apify_client/clients/resource_clients/actor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def get_actor_representation(
5959
actor_standby_build: str | None = None,
6060
actor_standby_memory_mbytes: int | None = None,
6161
pricing_infos: list[dict] | None = None,
62+
actor_permission_level: ActorPermissionLevel | None = None,
6263
) -> dict:
6364
"""Get dictionary representation of the Actor."""
6465
return {
@@ -93,6 +94,7 @@ def get_actor_representation(
9394
'memoryMbytes': actor_standby_memory_mbytes,
9495
},
9596
'pricingInfos': pricing_infos,
97+
'actorPermissionLevel': actor_permission_level,
9698
}
9799

98100

@@ -140,6 +142,7 @@ def update(
140142
actor_standby_build: str | None = None,
141143
actor_standby_memory_mbytes: int | None = None,
142144
pricing_infos: list[dict] | None = None,
145+
actor_permission_level: ActorPermissionLevel | None = None,
143146
) -> dict:
144147
"""Update the Actor with the specified fields.
145148
@@ -175,6 +178,7 @@ def update(
175178
actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
176179
actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
177180
pricing_infos: A list of objects that describes the pricing of the Actor.
181+
actor_permission_level: The permission level of the Actor on Apify platform.
178182
179183
Returns:
180184
The updated Actor.
@@ -204,6 +208,7 @@ def update(
204208
actor_standby_build=actor_standby_build,
205209
actor_standby_memory_mbytes=actor_standby_memory_mbytes,
206210
pricing_infos=pricing_infos,
211+
actor_permission_level=actor_permission_level,
207212
)
208213

209214
return self._update(filter_out_none_values_recursively(actor_representation))

0 commit comments

Comments
 (0)