Files
csharp/src/KubernetesClient/generated/Models/Extensionsv1beta1AllowedFlexVolume.cs
Boshi Lian 49bb82b15d generate v1.11.0 (#182)
* generate v1.11 -rc3

* add generated watcher

* regenrate with 1.11.0
2018-07-02 07:22:11 -07:00

66 lines
2.0 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>
/// AllowedFlexVolume represents a single Flexvolume that is allowed to be
/// used. Deprecated: use AllowedFlexVolume from policy API Group instead.
/// </summary>
public partial class Extensionsv1beta1AllowedFlexVolume
{
/// <summary>
/// Initializes a new instance of the
/// Extensionsv1beta1AllowedFlexVolume class.
/// </summary>
public Extensionsv1beta1AllowedFlexVolume()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Extensionsv1beta1AllowedFlexVolume class.
/// </summary>
/// <param name="driver">driver is the name of the Flexvolume
/// driver.</param>
public Extensionsv1beta1AllowedFlexVolume(string driver)
{
Driver = driver;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets driver is the name of the Flexvolume driver.
/// </summary>
[JsonProperty(PropertyName = "driver")]
public string Driver { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Driver == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Driver");
}
}
}
}