# Version<!-- -->

## Index[](#Index)

### Properties

* [actor_path](https://docs.apify.com/api/client/python/reference/class/Version.md#actor_path)
* [apply_env_vars_to_build](https://docs.apify.com/api/client/python/reference/class/Version.md#apply_env_vars_to_build)
* [bitbucket_webhook_id](https://docs.apify.com/api/client/python/reference/class/Version.md#bitbucket_webhook_id)
* [build_tag](https://docs.apify.com/api/client/python/reference/class/Version.md#build_tag)
* [env_vars](https://docs.apify.com/api/client/python/reference/class/Version.md#env_vars)
* [git_repo_url](https://docs.apify.com/api/client/python/reference/class/Version.md#git_repo_url)
* [github_gist_url](https://docs.apify.com/api/client/python/reference/class/Version.md#github_gist_url)
* [github_webhook_id](https://docs.apify.com/api/client/python/reference/class/Version.md#github_webhook_id)
* [gitlab_webhook_id](https://docs.apify.com/api/client/python/reference/class/Version.md#gitlab_webhook_id)
* [model_config](https://docs.apify.com/api/client/python/reference/class/Version.md#model_config)
* [source_files](https://docs.apify.com/api/client/python/reference/class/Version.md#source_files)
* [source_type](https://docs.apify.com/api/client/python/reference/class/Version.md#source_type)
* [tarball_url](https://docs.apify.com/api/client/python/reference/class/Version.md#tarball_url)
* [version_number](https://docs.apify.com/api/client/python/reference/class/Version.md#version_number)

## Properties<!-- -->[](#Properties)

### [](#actor_path)actor_path

actor_path: str | None

The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. When absent or `null`, the upload root is the Actor's directory. On a `TARBALL` version, only users with write access to the Actor get it. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments.

### [](#apply_env_vars_to_build)apply_env_vars_to_build

apply_env_vars_to_build: bool | None

Whether to inject the environment variables at build time.

### [](#bitbucket_webhook_id)bitbucket_webhook_id

bitbucket_webhook_id: str | None

ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository.

### [](#build_tag)build_tag

build_tag: str | None

The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag.

### [](#env_vars)env_vars

env_vars: [list](https://docs.apify.com/api/client/python/reference/class/ActorCollectionClient.md#list)\[[EnvVar](https://docs.apify.com/api/client/python/reference/class/EnvVar.md)] | None

Environment variables for the version.

### [](#git_repo_url)git_repo_url

git_repo_url: str | None

URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`.

### [](#github_gist_url)github_gist_url

github_gist_url: str | None

URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`.

### [](#github_webhook_id)github_webhook_id

github_webhook_id: int | None

ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository.

### [](#gitlab_webhook_id)gitlab_webhook_id

gitlab_webhook_id: int | None

ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository.

### [](#model_config)model_config

model_config: Undefined

### [](#source_files)source_files

source_files: [list](https://docs.apify.com/api/client/python/reference/class/ActorCollectionClient.md#list)\[[SourceCodeFile](https://docs.apify.com/api/client/python/reference/class/SourceCodeFile.md) | [SourceCodeFolder](https://docs.apify.com/api/client/python/reference/class/SourceCodeFolder.md)] | None

Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders.

### [](#source_type)source_type

source_type: [VersionSourceType](https://docs.apify.com/api/client/python/reference.md#VersionSourceType) | None

Where the source code of the version lives.

### [](#tarball_url)tarball_url

tarball_url: str | None

URL to download the source code from as a zip archive. Applies when the `sourceType` is `TARBALL`.

### [](#version_number)version_number

version_number: str

The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning.
