// // 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; /// /// ReplicaSetCondition describes the state of a replica set at a certain /// point. /// public partial class V1ReplicaSetCondition { /// /// Initializes a new instance of the V1ReplicaSetCondition class. /// public V1ReplicaSetCondition() { CustomInit(); } /// /// Initializes a new instance of the V1ReplicaSetCondition class. /// /// Status of the condition, one of True, False, /// Unknown. /// Type of replica set condition. /// The last time the condition /// transitioned from one status to another. /// A human readable message indicating details /// about the transition. /// The reason for the condition's last /// transition. public V1ReplicaSetCondition(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 the last time the condition transitioned from one /// status to another. /// [JsonProperty(PropertyName = "lastTransitionTime")] public System.DateTime? LastTransitionTime { get; set; } /// /// Gets or sets a human readable message indicating details about the /// transition. /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// Gets or sets the reason for the condition's last transition. /// [JsonProperty(PropertyName = "reason")] public string Reason { get; set; } /// /// Gets or sets status of the condition, one of True, False, Unknown. /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// Gets or sets type of replica set 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"); } } } }