Class GitRepoVolume
java.lang.Object
com.microsoft.azure.management.containerinstance.GitRepoVolume
Represents a volume that is populated with the contents of a git repository.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet target directory name.Get repository URL.revision()
Get commit hash for the specified revision.withDirectory
(String directory) Set target directory name.withRepository
(String repository) Set repository URL.withRevision
(String revision) Set commit hash for the specified revision.
-
Constructor Details
-
GitRepoVolume
public GitRepoVolume()
-
-
Method Details
-
directory
Get 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.- Returns:
- the directory value
-
withDirectory
Set 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.- Parameters:
directory
- the directory value to set- Returns:
- the GitRepoVolume object itself.
-
repository
Get repository URL.- Returns:
- the repository value
-
withRepository
Set repository URL.- Parameters:
repository
- the repository value to set- Returns:
- the GitRepoVolume object itself.
-
revision
Get commit hash for the specified revision.- Returns:
- the revision value
-
withRevision
Set commit hash for the specified revision.- Parameters:
revision
- the revision value to set- Returns:
- the GitRepoVolume object itself.
-