Share via


GitRepoVolume Class

Definition

Represents a volume that is populated with the contents of a git repository

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolumeTypeConverter))]
public class GitRepoVolume : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolumeTypeConverter))>]
type GitRepoVolume = class
    interface IGitRepoVolume
    interface IJsonSerializable
Public Class GitRepoVolume
Implements IGitRepoVolume
Inheritance
GitRepoVolume
Attributes
Implements

Constructors

GitRepoVolume()

Creates an new GitRepoVolume instance.

Properties

Directory

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

Repository URL

Revision

Commit hash for the specified revision.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GitRepoVolume.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GitRepoVolume.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume.

FromJsonString(String)

Creates a new instance of GitRepoVolume, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of GitRepoVolume into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to