Skip to main content
Version: 0.6

ActorCollectionClient

Sub-client for manipulating actors.

Hierarchy

Index

Methods

__init__

  • __init__(args, kwargs): None

create

  • 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_memory_mbytes, default_run_timeout_secs, example_run_input_body, example_run_input_content_type): Dict

  • Parameters

    • keyword-onlyname: str

      The name of the actor

    • optionalkeyword-onlytitle: Optional[str] = None

      The title of the actor (human-readable)

    • optionalkeyword-onlydescription: Optional[str] = None

      The description for the actor

    • optionalkeyword-onlyseo_title: Optional[str] = None

      The title of the actor optimized for search engines

    • optionalkeyword-onlyseo_description: Optional[str] = None

      The description of the actor optimized for search engines

    • optionalkeyword-onlyversions: Optional[List[Dict]] = None

      The list of actor versions

    • optionalkeyword-onlyrestart_on_error: Optional[bool] = None

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

    • optionalkeyword-onlyis_public: Optional[bool] = None

      Whether the actor is public.

    • optionalkeyword-onlyis_deprecated: Optional[bool] = None

      Whether the actor is deprecated.

    • optionalkeyword-onlyis_anonymously_runnable: Optional[bool] = None

      Whether the actor is anonymously runnable.

    • optionalkeyword-onlycategories: Optional[List[str]] = None

      The categories to which the actor belongs to.

    • optionalkeyword-onlydefault_run_build: Optional[str] = None

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

    • optionalkeyword-onlydefault_run_memory_mbytes: Optional[int] = None

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

    • optionalkeyword-onlydefault_run_timeout_secs: Optional[int] = None

      Default timeout for the runs of this actor in seconds.

    • optionalkeyword-onlyexample_run_input_body: Optional[Any] = None

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

    • optionalkeyword-onlyexample_run_input_content_type: Optional[str] = None

      The content type of the example run input.

    Returns Dict

    dict: The created actor.

list

  • list(*, my, limit, offset, desc): ListPage

  • Parameters

    • optionalkeyword-onlymy: Optional[bool] = None

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

    • optionalkeyword-onlylimit: Optional[int] = None

      How many actors to list

    • optionalkeyword-onlyoffset: Optional[int] = None

      What actor to include as first when retrieving the list

    • optionalkeyword-onlydesc: Optional[bool] = None

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

    Returns ListPage

    ListPage: The list of available actors matching the specified filters.

Page Options