//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
/// Initializer is information about an initializer that has not yet
/// completed.
///
public partial class V1Initializer
{
///
/// Initializes a new instance of the V1Initializer class.
///
public V1Initializer()
{
CustomInit();
}
///
/// Initializes a new instance of the V1Initializer class.
///
/// name of the process that is responsible for
/// initializing this object.
public V1Initializer(string name)
{
Name = name;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets name of the process that is responsible for
/// initializing this object.
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Name == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
}
}
}