//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
/// Local represents directly-attached storage with node affinity (Beta
/// feature)
///
public partial class V1LocalVolumeSource
{
///
/// Initializes a new instance of the V1LocalVolumeSource class.
///
public V1LocalVolumeSource()
{
CustomInit();
}
///
/// Initializes a new instance of the V1LocalVolumeSource class.
///
/// The full path to the volume on the node. It can
/// be either a directory or block device (disk, partition, ...).
/// Directories can be represented only by PersistentVolume with
/// VolumeMode=Filesystem. Block devices can be represented only by
/// VolumeMode=Block, which also requires the BlockVolume alpha feature
/// gate to be enabled.
public V1LocalVolumeSource(string path)
{
Path = path;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets the full path to the volume on the node. It can be
/// either a directory or block device (disk, partition, ...).
/// Directories can be represented only by PersistentVolume with
/// VolumeMode=Filesystem. Block devices can be represented only by
/// VolumeMode=Block, which also requires the BlockVolume alpha feature
/// gate to be enabled.
///
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Path == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Path");
}
}
}
}