2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DaemonSetStatus represents the current status of a daemon set.
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1beta1DaemonSetStatus
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1beta1DaemonSetStatus class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1beta1DaemonSetStatus()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1beta1DaemonSetStatus class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="currentNumberScheduled">The number of nodes that are
|
|
|
|
|
/// running at least 1 daemon pod and are supposed to run the daemon
|
|
|
|
|
/// pod. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="desiredNumberScheduled">The total number of nodes that
|
|
|
|
|
/// should be running the daemon pod (including nodes correctly running
|
|
|
|
|
/// the daemon pod). More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="numberMisscheduled">The number of nodes that are
|
|
|
|
|
/// running the daemon pod, but are not supposed to run the daemon pod.
|
|
|
|
|
/// More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="numberReady">The number of nodes that should be
|
|
|
|
|
/// running the daemon pod and have one or more of the daemon pod
|
|
|
|
|
/// running and ready.</param>
|
2017-10-19 19:53:02 +00:00
|
|
|
/// <param name="collisionCount">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.</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="numberAvailable">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)</param>
|
|
|
|
|
/// <param name="numberUnavailable">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)</param>
|
|
|
|
|
/// <param name="observedGeneration">The most recent generation
|
|
|
|
|
/// observed by the daemon set controller.</param>
|
|
|
|
|
/// <param name="updatedNumberScheduled">The total number of nodes that
|
|
|
|
|
/// are running updated daemon pod</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1beta1DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = default(int?), int? numberAvailable = default(int?), int? numberUnavailable = default(int?), long? observedGeneration = default(long?), int? updatedNumberScheduled = default(int?))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CollisionCount = collisionCount;
|
2017-06-06 23:02:14 -07:00
|
|
|
CurrentNumberScheduled = currentNumberScheduled;
|
|
|
|
|
DesiredNumberScheduled = desiredNumberScheduled;
|
|
|
|
|
NumberAvailable = numberAvailable;
|
|
|
|
|
NumberMisscheduled = numberMisscheduled;
|
|
|
|
|
NumberReady = numberReady;
|
|
|
|
|
NumberUnavailable = numberUnavailable;
|
|
|
|
|
ObservedGeneration = observedGeneration;
|
|
|
|
|
UpdatedNumberScheduled = updatedNumberScheduled;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
2017-10-19 19:53:02 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// 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.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "collisionCount")]
|
|
|
|
|
public int? CollisionCount { get; set; }
|
|
|
|
|
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// 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:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "currentNumberScheduled")]
|
|
|
|
|
public int CurrentNumberScheduled { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the total number of nodes that should be running the
|
|
|
|
|
/// daemon pod (including nodes correctly running the daemon pod). More
|
2017-10-19 19:53:02 +00:00
|
|
|
/// info:
|
|
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "desiredNumberScheduled")]
|
|
|
|
|
public int DesiredNumberScheduled { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "numberAvailable")]
|
|
|
|
|
public int? NumberAvailable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the number of nodes that are running the daemon pod,
|
|
|
|
|
/// but are not supposed to run the daemon pod. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "numberMisscheduled")]
|
|
|
|
|
public int NumberMisscheduled { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "numberReady")]
|
|
|
|
|
public int NumberReady { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "numberUnavailable")]
|
|
|
|
|
public int? NumberUnavailable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the most recent generation observed by the daemon set
|
|
|
|
|
/// controller.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "observedGeneration")]
|
|
|
|
|
public long? ObservedGeneration { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the total number of nodes that are running updated
|
|
|
|
|
/// daemon pod
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "updatedNumberScheduled")]
|
|
|
|
|
public int? UpdatedNumberScheduled { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validate the object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <exception cref="Microsoft.Rest.ValidationException">
|
|
|
|
|
/// Thrown if validation fails
|
|
|
|
|
/// </exception>
|
|
|
|
|
public virtual void Validate()
|
|
|
|
|
{
|
|
|
|
|
//Nothing to validate
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|