# CreateVersionRequest<!-- -->

## Index[**](#Index)

### Properties

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

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

### [**](#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.

### [**](#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)\[[EnvVarRequest](https://docs.apify.com/api/client/python/reference/class/EnvVarRequest.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`.

### [**](#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: [WritableVersionSourceType](https://docs.apify.com/api/client/python/reference.md#WritableVersionSourceType)

Where the source code of the version lives.

### [**](#tarball_url)tarball_url

**tarball_url: str | None

URL of the tarball to download the source code from. 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.
