### YamlMime:JavaType
uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume"
name: "GitRepoVolume"
nameWithType: "GitRepoVolume"
summary: "Represents a volume that is populated with the contents of a git repository."
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **GitRepoVolume**"
constructors:
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.GitRepoVolume()"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.GitRepoVolume()"
name: "GitRepoVolume()"
nameWithType: "GitRepoVolume.GitRepoVolume()"
syntax: "public GitRepoVolume()"
methods:
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.directory()"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.directory()"
name: "directory()"
nameWithType: "GitRepoVolume.directory()"
summary: "Get target directory name."
syntax: "public String directory()"
desc: "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:
description: "the directory value"
type: ""
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.repository()"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.repository()"
name: "repository()"
nameWithType: "GitRepoVolume.repository()"
summary: "Get repository URL."
syntax: "public String repository()"
desc: "Get repository URL."
returns:
description: "the repository value"
type: ""
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.revision()"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.revision()"
name: "revision()"
nameWithType: "GitRepoVolume.revision()"
summary: "Get commit hash for the specified revision."
syntax: "public String revision()"
desc: "Get commit hash for the specified revision."
returns:
description: "the revision value"
type: ""
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withDirectory(java.lang.String)"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withDirectory(String directory)"
name: "withDirectory(String directory)"
nameWithType: "GitRepoVolume.withDirectory(String directory)"
summary: "Set target directory name."
parameters:
- description: "the directory value to set"
name: "directory"
type: ""
syntax: "public GitRepoVolume withDirectory(String directory)"
desc: "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."
returns:
description: "the GitRepoVolume object itself."
type: ""
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withRepository(java.lang.String)"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withRepository(String repository)"
name: "withRepository(String repository)"
nameWithType: "GitRepoVolume.withRepository(String repository)"
summary: "Set repository URL."
parameters:
- description: "the repository value to set"
name: "repository"
type: ""
syntax: "public GitRepoVolume withRepository(String repository)"
desc: "Set repository URL."
returns:
description: "the GitRepoVolume object itself."
type: ""
- uid: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withRevision(java.lang.String)"
fullName: "com.microsoft.azure.management.containerinstance.GitRepoVolume.withRevision(String revision)"
name: "withRevision(String revision)"
nameWithType: "GitRepoVolume.withRevision(String revision)"
summary: "Set commit hash for the specified revision."
parameters:
- description: "the revision value to set"
name: "revision"
type: ""
syntax: "public GitRepoVolume withRevision(String revision)"
desc: "Set commit hash for the specified revision."
returns:
description: "the GitRepoVolume object itself."
type: ""
type: "class"
desc: "Represents a volume that is populated with the contents of a git repository."
metadata: {}
package: "com.microsoft.azure.management.containerinstance"
artifact: com.microsoft.azure:azure-mgmt-containerinstance:1.41.4