Share via


Volume Class

Definition

The properties of the volume.

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

Constructors

Volume()

Creates an new Volume instance.

Properties

AzureFileReadOnly

The flag indicating whether the Azure File shared mounted as a volume is read-only.

AzureFileShareName

The name of the Azure File share to be mounted as a volume.

AzureFileStorageAccountKey

The storage account access key used to access the Azure File share.

AzureFileStorageAccountName

The name of the storage account that contains the Azure File share.

EmptyDir

The empty directory volume.

GitRepoDirectory

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.

GitRepoRepository

Repository URL

GitRepoRevision

Commit hash for the specified revision.

Name

The name of the volume.

Secret

The secret volume.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Volume.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Volume.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Volume into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to