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