//
// 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,
/// ...).
/// Filesystem type to mount. It applies only when
/// the Path is a block device. Must be a filesystem type supported by
/// the host operating system. Ex. "ext4", "xfs", "ntfs". The default
/// value is to auto-select a fileystem if unspecified.
public V1LocalVolumeSource(string path, string fsType = default(string))
{
FsType = fsType;
Path = path;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets filesystem type to mount. It applies only when the
/// Path is a block device. Must be a filesystem type supported by the
/// host operating system. Ex. "ext4", "xfs", "ntfs". The default value
/// is to auto-select a fileystem if unspecified.
///
[JsonProperty(PropertyName = "fsType")]
public string FsType { get; set; }
///
/// Gets or sets the full path to the volume on the node. It can be
/// either a directory or block device (disk, partition, ...).
///
[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");
}
}
}
}