Partager via


Volume Class

Definition

Volume definitions for the Container App.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.VolumeTypeConverter))]
public class Volume : Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.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

MountOption

Mount options used while mounting the AzureFile. Must be a comma-separated string.

Name

Volume name.

Secret

List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.

StorageName

Name of storage resource. No need to provide for EmptyDir and Secret.

StorageType

Storage type for the volume. If not provided, use EmptyDir.

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.App.Models.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