Share via


VolumeDefinition Class

Definition

Describes the volume configuration for the container

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.VolumeDefinitionTypeConverter))]
public class VolumeDefinition : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IVolumeDefinition
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.VolumeDefinitionTypeConverter))>]
type VolumeDefinition = class
    interface IVolumeDefinition
    interface IJsonSerializable
Public Class VolumeDefinition
Implements IVolumeDefinition
Inheritance
VolumeDefinition
Attributes
Implements

Constructors

VolumeDefinition()

Creates an new VolumeDefinition instance.

Properties

BindCreateHostPath

Indicate whether to create host path.

BindPropagation

Type of Bind Option

BindSelinux

Mention the selinux options.

Consistency

Consistency of the volume

ReadOnly

Indicate whether to mount volume as readOnly. Default value for this is false.

Source

Source of the mount. For bind mounts this is the host path.

Target

Target of the mount. For bind mounts this is the path in the container.

TmpfSize

Mention the Tmpfs size

Type

Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe

VolumeNocopy

Indicate whether volume is nocopy

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of VolumeDefinition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of VolumeDefinition.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IVolumeDefinition.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of VolumeDefinition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to