//
// 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 Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// DaemonSetStatus represents the current status of a daemon set.
///
public partial class V1beta1DaemonSetStatus
{
///
/// Initializes a new instance of the V1beta1DaemonSetStatus class.
///
public V1beta1DaemonSetStatus()
{
CustomInit();
}
///
/// Initializes a new instance of the V1beta1DaemonSetStatus class.
///
/// The number of nodes that are
/// running at least 1 daemon pod and are supposed to run the daemon
/// pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// The total number of nodes that
/// should be running the daemon pod (including nodes correctly running
/// the daemon pod). More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// The number of nodes that are
/// running the daemon pod, but are not supposed to run the daemon pod.
/// More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// The number of nodes that should be
/// running the daemon pod and have one or more of the daemon pod
/// running and ready.
/// Count of hash collisions for the
/// DaemonSet. The DaemonSet controller uses this field as a collision
/// avoidance mechanism when it needs to create the name for the newest
/// ControllerRevision.
/// Represents the latest available
/// observations of a DaemonSet's current state.
/// The number of nodes that should be
/// running the daemon pod and have one or more of the daemon pod
/// running and available (ready for at least
/// spec.minReadySeconds)
/// The number of nodes that should be
/// running the daemon pod and have none of the daemon pod running and
/// available (ready for at least spec.minReadySeconds)
/// The most recent generation
/// observed by the daemon set controller.
/// The total number of nodes that
/// are running updated daemon pod
public V1beta1DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = default(int?), IList conditions = default(IList), int? numberAvailable = default(int?), int? numberUnavailable = default(int?), long? observedGeneration = default(long?), int? updatedNumberScheduled = default(int?))
{
CollisionCount = collisionCount;
Conditions = conditions;
CurrentNumberScheduled = currentNumberScheduled;
DesiredNumberScheduled = desiredNumberScheduled;
NumberAvailable = numberAvailable;
NumberMisscheduled = numberMisscheduled;
NumberReady = numberReady;
NumberUnavailable = numberUnavailable;
ObservedGeneration = observedGeneration;
UpdatedNumberScheduled = updatedNumberScheduled;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets count of hash collisions for the DaemonSet. The
/// DaemonSet controller uses this field as a collision avoidance
/// mechanism when it needs to create the name for the newest
/// ControllerRevision.
///
[JsonProperty(PropertyName = "collisionCount")]
public int? CollisionCount { get; set; }
///
/// Gets or sets represents the latest available observations of a
/// DaemonSet's current state.
///
[JsonProperty(PropertyName = "conditions")]
public IList Conditions { get; set; }
///
/// Gets or sets the number of nodes that are running at least 1 daemon
/// pod and are supposed to run the daemon pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
///
[JsonProperty(PropertyName = "currentNumberScheduled")]
public int CurrentNumberScheduled { get; set; }
///
/// Gets or sets the total number of nodes that should be running the
/// daemon pod (including nodes correctly running the daemon pod). More
/// info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
///
[JsonProperty(PropertyName = "desiredNumberScheduled")]
public int DesiredNumberScheduled { get; set; }
///
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have one or more of the daemon pod running and available
/// (ready for at least spec.minReadySeconds)
///
[JsonProperty(PropertyName = "numberAvailable")]
public int? NumberAvailable { get; set; }
///
/// Gets or sets the number of nodes that are running the daemon pod,
/// but are not supposed to run the daemon pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
///
[JsonProperty(PropertyName = "numberMisscheduled")]
public int NumberMisscheduled { get; set; }
///
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have one or more of the daemon pod running and ready.
///
[JsonProperty(PropertyName = "numberReady")]
public int NumberReady { get; set; }
///
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have none of the daemon pod running and available (ready
/// for at least spec.minReadySeconds)
///
[JsonProperty(PropertyName = "numberUnavailable")]
public int? NumberUnavailable { get; set; }
///
/// Gets or sets the most recent generation observed by the daemon set
/// controller.
///
[JsonProperty(PropertyName = "observedGeneration")]
public long? ObservedGeneration { get; set; }
///
/// Gets or sets the total number of nodes that are running updated
/// daemon pod
///
[JsonProperty(PropertyName = "updatedNumberScheduled")]
public int? UpdatedNumberScheduled { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Conditions != null)
{
foreach (var element in Conditions)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}