Move projects to subdirectories of /src and /tests (#134)
kubernetes-client/csharp#127
This commit is contained in:
committed by
Brendan Burns
parent
dc97164332
commit
ea62ca00e0
65
src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs
Normal file
65
src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <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
|
||||
/// </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 For
|
||||
/// alpha, this path must be a directory Once block as a source is
|
||||
/// supported, then this path can point to a block device</param>
|
||||
public V1LocalVolumeSource(string path)
|
||||
{
|
||||
Path = path;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// </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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user