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.

Inheritance
GitRepoVolume

Constructor

GitRepoVolume(*, repository: str, directory: Optional[str] = None, revision: Optional[str] = None, **kwargs)

Variables

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

Required. Repository URL.

revision
str

Commit hash for the specified revision.