Files
csharp/src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs
Boshi Lian df3381607a run generate script for k8s 1.12 (#205)
* generate for 1.12

* run watch generator

* bump version
2018-10-03 13:38:37 -07:00

80 lines
2.8 KiB
C#

// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Local represents directly-attached storage with node affinity (Beta
/// feature)
/// </summary>
public partial class V1LocalVolumeSource
{
/// <summary>
/// Initializes a new instance of the V1LocalVolumeSource class.
/// </summary>
public V1LocalVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1LocalVolumeSource class.
/// </summary>
/// <param name="path">The full path to the volume on the node. It can
/// be either a directory or block device (disk, partition,
/// ...).</param>
/// <param name="fsType">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.</param>
public V1LocalVolumeSource(string path, string fsType = default(string))
{
FsType = fsType;
Path = path;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "fsType")]
public string FsType { get; set; }
/// <summary>
/// Gets or sets the full path to the volume on the node. It can be
/// either a directory or block device (disk, partition, ...).
/// </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");
}
}
}
}