// // 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 /// public partial class Corev1LocalVolumeSource { /// /// Initializes a new instance of the Corev1LocalVolumeSource class. /// public Corev1LocalVolumeSource() { CustomInit(); } /// /// Initializes a new instance of the Corev1LocalVolumeSource class. /// /// The full path to the volume on the node For /// alpha, this path must be a directory Once block as a source is /// supported, then this path can point to a block device public Corev1LocalVolumeSource(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 For alpha, /// this path must be a directory Once block as a source is supported, /// then this path can point to a block device /// [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"); } } } }