Share via


GitRepoVolume Class

Represents a volume that is populated with the contents of a git repository.

All required parameters must be populated in order to send to Azure.

Constructor

GitRepoVolume(*, repository: str, directory: str | None = None, revision: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
directory
str

Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.

Default value: None
repository
str

Repository URL. Required.

revision
str

Commit hash for the specified revision.

Default value: None

Variables

Name Description
directory
str

Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.

repository
str

Repository URL. Required.

revision
str

Commit hash for the specified revision.