ActorVersionCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorVersionCollectionClient
Index
Methods
__init__
Initialize the ActorVersionCollectionClient with the passed arguments.
Parameters
args: Any
kwargs: Any
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: Optional[str] = None
Tag that is automatically set to the latest successful build of the current version.
optionalkeyword-onlyenv_vars: Optional[List[Dict]] = 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: Optional[bool] = None
Whether the environment variables specified for the actor run will also be set to the actor build process.
keyword-onlysource_type: ActorSourceType
What source type is the actor version using.
optionalkeyword-onlysource_files: Optional[List[Dict]] = None
Source code comprised of multiple files, each an item of the array. Required when
`source_type`is`ActorSourceType.SOURCE_FILES`. See the API docs for the exact structure.optionalkeyword-onlygit_repo_url: Optional[str] = None
The URL of a Git repository from which the source code will be cloned. Required when
`source_type`is`ActorSourceType.GIT_REPO`.optionalkeyword-onlytarball_url: Optional[str] = None
The URL of a tarball or a zip archive from which the source code will be downloaded. Required when
`source_type`is`ActorSourceType.TARBALL`.optionalkeyword-onlygithub_gist_url: Optional[str] = None
The URL of a GitHub Gist from which the source will be downloaded. Required when
`source_type`is`ActorSourceType.GITHUB_GIST`.
Returns Dict
dict: The created actor version
list
List the available actor versions.
https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
Returns ListPage
ListPage: The list of available actor versions.
Sub-client for manipulating actor versions.