GitRepoVolume Class
- java.
lang. Object - com.
microsoft. azure. management. containerinstance. GitRepoVolume
- com.
public class GitRepoVolume
Represents a volume that is populated with the contents of a git repository.
Constructor Summary
Constructor | Description | |
---|---|---|
GitRepoVolume() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
directory()
Get target directory name. |
java.lang.String |
repository()
Get repository URL. |
java.lang.String |
revision()
Get commit hash for the specified revision. |
Git |
withDirectory(String directory)
Set target directory name. |
Git |
withRepository(String repository)
Set repository URL. |
Git |
withRevision(String revision)
Set commit hash for the specified revision. |
Methods inherited from java.lang.Object
Constructor Details
GitRepoVolume
public GitRepoVolume()
Method Details
directory
public String 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:
repository
public String repository()
Get repository URL.
Returns:
revision
public String revision()
Get commit hash for the specified revision.
Returns:
withDirectory
public GitRepoVolume withDirectory(String directory)
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:
Returns:
withRepository
public GitRepoVolume withRepository(String repository)
Set repository URL.
Parameters:
Returns:
withRevision
public GitRepoVolume withRevision(String revision)
Set commit hash for the specified revision.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for