ActorVersionCollectionClient
Hierarchy
- ResourceClient
- ActorVersionCollectionClient
Index
Methods
Properties
Methods
__init__
Initialize the resource client.
Parameters
keyword-onlybase_url: str
API base URL.
keyword-onlypublic_base_url: str
Public CDN base URL.
keyword-onlyhttp_client: HttpClient
HTTP client for making requests.
keyword-onlyresource_path: str
Resource endpoint path (e.g., 'actors', 'datasets').
keyword-onlyclient_registry: ClientRegistry
Bundle of client classes for dependency injection.
optionalkeyword-onlyresource_id: str | None = None
Optional resource ID for single-resource clients.
optionalkeyword-onlyparams: dict | None = None
Optional default parameters for all requests.
Returns None
create
Create a new Actor version.
https://docs.apify.com/api/v2#/reference/actors/version-collection/create-version
Parameters
keyword-onlyversion_number: str
Major and minor version of the Actor (e.g.
1.0).optionalkeyword-onlybuild_tag: str | None = None
Tag that is automatically set to the latest successful build of the current version.
optionalkeyword-onlyenv_vars: list[dict[str, Any]] | None = None
Environment variables that will be available to the Actor run process, and optionally also to the build process. See the API docs for their exact structure.
optionalkeyword-onlyapply_env_vars_to_build: bool | None = None
Whether the environment variables specified for the Actor run will also be set to the Actor build process.
keyword-onlysource_type: VersionSourceType
What source type is the Actor version using.
optionalkeyword-onlysource_files: list[dict[str, Any]] | None = None
Source code comprised of multiple files, each an item of the array. Required when
source_typeis'SOURCE_FILES'. See the API docs for the exact structure.optionalkeyword-onlygit_repo_url: str | None = None
The URL of a Git repository from which the source code will be cloned. Required when
source_typeis'GIT_REPO'.optionalkeyword-onlytarball_url: str | None = None
The URL of a tarball or a zip archive from which the source code will be downloaded. Required when
source_typeis'TARBALL'.optionalkeyword-onlygithub_gist_url: str | None = None
The URL of a GitHub Gist from which the source will be downloaded. Required when
source_typeis'GITHUB_GIST'.optionalkeyword-onlytimeout: Timeout = 'short'
Timeout for the API HTTP request.
Returns Version
The created Actor version.
iterate
Iterate over the available Actor versions.
The underlying API endpoint does not support pagination, so this method performs a single API call and yields the items from its response. If the endpoint returns more items than fit in one response (the API caps the page size), the rest are not returned. In practice this is rarely a concern — Actors are not expected to have more versions than the cap.
https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
Parameters
optionalkeyword-onlytimeout: Timeout = 'short'
Timeout for the API HTTP request.
Returns Iterator[Version]
list
List the available Actor versions.
https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
Parameters
optionalkeyword-onlytimeout: Timeout = 'short'
Timeout for the API HTTP request.
Returns ListOfVersions
The list of available Actor versions.
Properties
resource_id
Get the resource ID.
Sub-client for the Actor version collection.
Provides methods to manage Actor versions, e.g. list or create them. Obtain an instance via an appropriate method on the
ActorClientclass.