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

109 lines
3.8 KiB
C#
Raw Normal View History

2017-10-19 19:53:02 +00: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.
2017-10-19 19:53:02 +00:00
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
2017-10-19 19:53:02 +00:00
/// CustomResourceDefinitionCondition contains details for the current
/// condition of this pod.
/// </summary>
2017-10-19 19:53:02 +00:00
public partial class V1beta1CustomResourceDefinitionCondition
{
/// <summary>
2017-10-19 19:53:02 +00:00
/// Initializes a new instance of the
/// V1beta1CustomResourceDefinitionCondition class.
/// </summary>
2017-10-19 19:53:02 +00:00
public V1beta1CustomResourceDefinitionCondition()
{
2017-10-19 19:53:02 +00:00
CustomInit();
}
/// <summary>
2017-10-19 19:53:02 +00:00
/// Initializes a new instance of the
/// V1beta1CustomResourceDefinitionCondition class.
/// </summary>
/// <param name="status">Status is the status of the condition. Can be
2017-10-19 19:53:02 +00:00
/// True, False, Unknown.</param>
/// <param name="type">Type is the type of the condition.</param>
/// <param name="lastTransitionTime">Last time the condition
/// transitioned from one status to another.</param>
/// <param name="message">Human-readable message indicating details
/// about last transition.</param>
/// <param name="reason">Unique, one-word, CamelCase reason for the
/// condition's last transition.</param>
2017-10-19 19:53:02 +00:00
public V1beta1CustomResourceDefinitionCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string))
{
LastTransitionTime = lastTransitionTime;
Message = message;
Reason = reason;
Status = status;
Type = type;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets last time the condition transitioned from one status
/// to another.
/// </summary>
[JsonProperty(PropertyName = "lastTransitionTime")]
public System.DateTime? LastTransitionTime { get; set; }
/// <summary>
/// Gets or sets human-readable message indicating details about last
/// transition.
/// </summary>
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
/// <summary>
/// Gets or sets unique, one-word, CamelCase reason for the condition's
/// last transition.
/// </summary>
[JsonProperty(PropertyName = "reason")]
public string Reason { get; set; }
/// <summary>
/// Gets or sets status is the status of the condition. Can be True,
2017-10-19 19:53:02 +00:00
/// False, Unknown.
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
/// <summary>
2017-10-19 19:53:02 +00:00
/// Gets or sets type is the type of the condition.
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Status == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Status");
}
if (Type == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
}
}
}
}