GitRepoVolume Class

  • java.lang.Object
    • com.microsoft.azure.management.containerinstance.GitRepoVolume

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.

GitRepoVolume withDirectory(String directory)

Set target directory name.

GitRepoVolume withRepository(String repository)

Set repository URL.

GitRepoVolume withRevision(String revision)

Set commit hash for the specified revision.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

the directory value

repository

public String repository()

Get repository URL.

Returns:

the repository value

revision

public String revision()

Get commit hash for the specified revision.

Returns:

the revision value

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:

directory - the directory value to set

Returns:

the GitRepoVolume object itself.

withRepository

public GitRepoVolume withRepository(String repository)

Set repository URL.

Parameters:

repository - the repository value to set

Returns:

the GitRepoVolume object itself.

withRevision

public GitRepoVolume withRevision(String revision)

Set commit hash for the specified revision.

Parameters:

revision - the revision value to set

Returns:

the GitRepoVolume object itself.

Applies to