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

66 lines
2.0 KiB
C#
Raw Normal View History

2018-01-27 04:25:58 +08:00
// <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.
2018-01-27 04:25:58 +08:00
/// </summary>
2018-03-28 10:30:09 +08:00
public partial class Extensionsv1beta1AllowedFlexVolume
2018-01-27 04:25:58 +08:00
{
/// <summary>
2018-03-28 10:30:09 +08:00
/// Initializes a new instance of the
/// Extensionsv1beta1AllowedFlexVolume class.
2018-01-27 04:25:58 +08:00
/// </summary>
2018-03-28 10:30:09 +08:00
public Extensionsv1beta1AllowedFlexVolume()
2018-01-27 04:25:58 +08:00
{
CustomInit();
}
/// <summary>
2018-03-28 10:30:09 +08:00
/// Initializes a new instance of the
/// Extensionsv1beta1AllowedFlexVolume class.
2018-01-27 04:25:58 +08:00
/// </summary>
/// <param name="driver">driver is the name of the Flexvolume
2018-01-27 04:25:58 +08:00
/// driver.</param>
2018-03-28 10:30:09 +08:00
public Extensionsv1beta1AllowedFlexVolume(string driver)
2018-01-27 04:25:58 +08:00
{
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");
}
}
}
}