ActorVersionClientAsync
Hierarchy
- ResourceClientAsync
- ActorVersionClientAsync
Index
Methods
__init__
Initialize a new instance.
Parameters
keyword-onlybase_url: str
Base URL of the API server.
keyword-onlyroot_client: ApifyClientAsync
The ApifyClientAsync instance under which this resource client exists.
keyword-onlyhttp_client: HTTPClientAsync
The HTTPClientAsync instance to be used in this client.
optionalkeyword-onlyresource_id: str | None = None
ID of the manipulated resource, in case of a single-resource client.
keyword-onlyresource_path: str
Path to the resource's endpoint on the API server.
optionalkeyword-onlyparams: dict | None = None
Parameters to include in all requests from this client.
Returns None
delete
Delete the Actor version.
https://docs.apify.com/api/v2#/reference/actors/version-object/delete-version
Returns None
env_var
Retrieve the client for the specified environment variable of this Actor version.
Parameters
env_var_name: str
The name of the environment variable for which to retrieve the resource client.
Returns ActorEnvVarClientAsync
env_vars
Retrieve a client for the environment variables of this Actor version.
Returns ActorEnvVarCollectionClientAsync
get
Return information about the Actor version.
https://docs.apify.com/api/v2#/reference/actors/version-object/get-version
Returns dict | None
update
Update the Actor version with specified fields.
https://docs.apify.com/api/v2#/reference/actors/version-object/update-version
Parameters
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] | 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.
optionalkeyword-onlysource_type: ActorSourceType | None = None
What source type is the Actor version using.
optionalkeyword-onlysource_files: list[dict] | None = None
Source code comprised of multiple files, each an item of the array. Required when
source_type
isActorSourceType.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_type
isActorSourceType.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_type
isActorSourceType.TARBALL
.optionalkeyword-onlygithub_gist_url: str | None = None
The URL of a GitHub Gist from which the source will be downloaded. Required when
source_type
isActorSourceType.GITHUB_GIST
.
Returns dict
Async sub-client for manipulating a single Actor version.