Files
csharp/src/KubernetesClient/generated/Models/V1VolumeNodeAffinity.cs

64 lines
1.9 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 Newtonsoft.Json;
using System.Linq;
/// <summary>
/// VolumeNodeAffinity defines constraints that limit what nodes this
/// volume can be accessed from.
/// </summary>
public partial class V1VolumeNodeAffinity
{
/// <summary>
/// Initializes a new instance of the V1VolumeNodeAffinity class.
/// </summary>
public V1VolumeNodeAffinity()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1VolumeNodeAffinity class.
/// </summary>
/// <param name="required">Required specifies hard node constraints
/// that must be met.</param>
public V1VolumeNodeAffinity(V1NodeSelector required = default(V1NodeSelector))
{
Required = required;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets required specifies hard node constraints that must be
/// met.
/// </summary>
[JsonProperty(PropertyName = "required")]
public V1NodeSelector Required { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Required != null)
{
Required.Validate();
}
}
}
}