2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Microsoft.Rest;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-07-02 22:22:11 +08:00
|
|
|
/// Local represents directly-attached storage with node affinity (Beta
|
|
|
|
|
/// feature)
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1LocalVolumeSource
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1LocalVolumeSource class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1LocalVolumeSource()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1LocalVolumeSource class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2018-07-02 22:22:11 +08:00
|
|
|
/// <param name="path">The full path to the volume on the node. It can
|
2018-10-03 13:38:37 -07:00
|
|
|
/// 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))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2018-10-03 13:38:37 -07:00
|
|
|
FsType = fsType;
|
2017-06-06 23:02:14 -07:00
|
|
|
Path = path;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
2018-10-03 13:38:37 -07:00
|
|
|
/// <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; }
|
|
|
|
|
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <summary>
|
2018-07-02 22:22:11 +08:00
|
|
|
/// Gets or sets the full path to the volume on the node. It can be
|
|
|
|
|
/// either a directory or block device (disk, partition, ...).
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|