ArmAppContainersModelFactory.ContainerAppVolume Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Volume definitions for the Container App.
public static Azure.ResourceManager.AppContainers.Models.ContainerAppVolume ContainerAppVolume(string name = default, Azure.ResourceManager.AppContainers.Models.ContainerAppStorageType? storageType = default, string storageName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.SecretVolumeItem> secrets = default, string mountOptions = default);
static member ContainerAppVolume : string * Nullable<Azure.ResourceManager.AppContainers.Models.ContainerAppStorageType> * string * seq<Azure.ResourceManager.AppContainers.Models.SecretVolumeItem> * string -> Azure.ResourceManager.AppContainers.Models.ContainerAppVolume
Public Shared Function ContainerAppVolume (Optional name As String = Nothing, Optional storageType As Nullable(Of ContainerAppStorageType) = Nothing, Optional storageName As String = Nothing, Optional secrets As IEnumerable(Of SecretVolumeItem) = Nothing, Optional mountOptions As String = Nothing) As ContainerAppVolume
Parameters
- name
- String
Volume name.
- storageType
- Nullable<ContainerAppStorageType>
Storage type for the volume. If not provided, use EmptyDir.
- storageName
- String
Name of storage resource. No need to provide for EmptyDir and Secret.
- secrets
- IEnumerable<SecretVolumeItem>
List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.
- mountOptions
- String
Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string.
Returns
A new ContainerAppVolume instance for mocking.