Skip to main content

ActorCollectionClientAsync

Async sub-client for manipulating Actors.

Index

Methods

Methods

create

  • async create(*, name, title, description, seo_title, seo_description, versions, restart_on_error, is_public, is_deprecated, is_anonymously_runnable, categories, default_run_build, default_run_max_items, default_run_memory_mbytes, default_run_timeout_secs, example_run_input_body, example_run_input_content_type, actor_standby_is_enabled, actor_standby_desired_requests_per_actor_run, actor_standby_max_requests_per_actor_run, actor_standby_idle_timeout_secs, actor_standby_build, actor_standby_memory_mbytes): dict

  • Parameters

    • keyword-onlyname: str

      The name of the Actor

    • keyword-onlytitle: str | None = None

      The title of the Actor (human-readable)

    • keyword-onlydescription: str | None = None

      The description for the Actor

    • keyword-onlyseo_title: str | None = None

      The title of the Actor optimized for search engines

    • keyword-onlyseo_description: str | None = None

      The description of the Actor optimized for search engines

    • keyword-onlyversions: list[dict] | None = None

      The list of Actor versions

    • keyword-onlyrestart_on_error: bool | None = None

      If true, the main Actor run process will be restarted whenever it exits with a non-zero status code.

    • keyword-onlyis_public: bool | None = None

      Whether the Actor is public.

    • keyword-onlyis_deprecated: bool | None = None

      Whether the Actor is deprecated.

    • keyword-onlyis_anonymously_runnable: bool | None = None

      Whether the Actor is anonymously runnable.

    • keyword-onlycategories: list[str] | None = None

      The categories to which the Actor belongs to.

    • keyword-onlydefault_run_build: str | None = None

      Tag or number of the build that you want to run by default.

    • keyword-onlydefault_run_max_items: int | None = None

      Default limit of the number of results that will be returned by runs of this Actor, if the Actor is charged per result.

    • keyword-onlydefault_run_memory_mbytes: int | None = None

      Default amount of memory allocated for the runs of this Actor, in megabytes.

    • keyword-onlydefault_run_timeout_secs: int | None = None

      Default timeout for the runs of this Actor in seconds.

    • keyword-onlyexample_run_input_body: Any = None

      Input to be prefilled as default input to new users of this Actor.

    • keyword-onlyexample_run_input_content_type: str | None = None

      The content type of the example run input.

    • keyword-onlyactor_standby_is_enabled: bool | None = None

      Whether the Actor Standby is enabled.

    • keyword-onlyactor_standby_desired_requests_per_actor_run: int | None = None

      The desired number of concurrent HTTP requests for a single Actor Standby run.

    • keyword-onlyactor_standby_max_requests_per_actor_run: int | None = None

      The maximum number of concurrent HTTP requests for a single Actor Standby run.

    • keyword-onlyactor_standby_idle_timeout_secs: int | None = None

      If the Actor run does not receive any requests for this time, it will be shut down.

    • keyword-onlyactor_standby_build: str | None = None

      The build tag or number to run when the Actor is in Standby mode.

    • keyword-onlyactor_standby_memory_mbytes: int | None = None

      The memory in megabytes to use when the Actor is in Standby mode.

    Returns dict

    The created Actor.

list

  • async list(*, my, limit, offset, desc): ListPage[dict]

  • Parameters

    • keyword-onlymy: bool | None = None

      If True, will return only Actors which the user has created themselves.

    • keyword-onlylimit: int | None = None

      How many Actors to list

    • keyword-onlyoffset: int | None = None

      What Actor to include as first when retrieving the list

    • keyword-onlydesc: bool | None = None

      Whether to sort the Actors in descending order based on their creation date

    Returns ListPage[dict]

    The list of available Actors matching the specified filters.

Page Options