Files
csharp/src/generated/Models/V1HostPathVolumeSource.cs

63 lines
1.9 KiB
C#
Raw Normal View History

2017-06-16 10:47:10 -07:00
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// 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;
/// <summary>
/// Represents a host path mapped into a pod. Host path volumes do not
/// support ownership management or SELinux relabeling.
/// </summary>
public partial class V1HostPathVolumeSource
{
/// <summary>
/// Initializes a new instance of the V1HostPathVolumeSource class.
/// </summary>
public V1HostPathVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1HostPathVolumeSource class.
/// </summary>
/// <param name="path">Path of the directory on the host. More info:
/// http://kubernetes.io/docs/user-guide/volumes#hostpath</param>
public V1HostPathVolumeSource(string path)
{
Path = path;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets path of the directory on the host. More info:
/// http://kubernetes.io/docs/user-guide/volumes#hostpath
/// </summary>
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Path == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Path");
}
}
}
}