Files
csharp/src/generated/Models/Apiextensionsv1beta1DaemonSetSpec.cs

139 lines
6.3 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>
/// DaemonSetSpec is the specification of a daemon set.
/// </summary>
2017-10-19 19:53:02 +00:00
public partial class Apiextensionsv1beta1DaemonSetSpec
{
/// <summary>
2017-10-19 19:53:02 +00:00
/// Initializes a new instance of the Apiextensionsv1beta1DaemonSetSpec
/// class.
/// </summary>
2017-10-19 19:53:02 +00:00
public Apiextensionsv1beta1DaemonSetSpec()
{
2017-10-19 19:53:02 +00:00
CustomInit();
}
/// <summary>
2017-10-19 19:53:02 +00:00
/// Initializes a new instance of the Apiextensionsv1beta1DaemonSetSpec
/// class.
/// </summary>
/// <param name="template">An object that describes the pod that will
/// be created. The DaemonSet will create exactly one copy of this pod
/// on every node that matches the template's node selector (or on
/// every node if no node selector is specified). More info:
2017-10-19 19:53:02 +00:00
/// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template</param>
/// <param name="minReadySeconds">The minimum number of seconds for
/// which a newly created DaemonSet pod should be ready without any of
/// its container crashing, for it to be considered available. Defaults
/// to 0 (pod will be considered available as soon as it is
/// ready).</param>
2017-10-19 19:53:02 +00:00
/// <param name="revisionHistoryLimit">The number of old history to
/// retain to allow rollback. This is a pointer to distinguish between
/// explicit zero and not specified. Defaults to 10.</param>
/// <param name="selector">A label query over pods that are managed by
/// the daemon set. Must match in order to be controlled. If empty,
/// defaulted to labels on Pod template. More info:
2017-10-19 19:53:02 +00:00
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
/// <param name="templateGeneration">DEPRECATED. A sequence number
/// representing a specific generation of the template. Populated by
/// the system. It can be set only during the creation.</param>
/// <param name="updateStrategy">An update strategy to replace existing
/// DaemonSet pods with new pods.</param>
2017-10-19 19:53:02 +00:00
public Apiextensionsv1beta1DaemonSetSpec(Corev1PodTemplateSpec template, int? minReadySeconds = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), long? templateGeneration = default(long?), Apiextensionsv1beta1DaemonSetUpdateStrategy updateStrategy = default(Apiextensionsv1beta1DaemonSetUpdateStrategy))
{
MinReadySeconds = minReadySeconds;
2017-10-19 19:53:02 +00:00
RevisionHistoryLimit = revisionHistoryLimit;
Selector = selector;
Template = template;
TemplateGeneration = templateGeneration;
UpdateStrategy = updateStrategy;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the minimum number of seconds for which a newly
/// created DaemonSet pod should be ready without any of its container
/// crashing, for it to be considered available. Defaults to 0 (pod
/// will be considered available as soon as it is ready).
/// </summary>
[JsonProperty(PropertyName = "minReadySeconds")]
public int? MinReadySeconds { get; set; }
2017-10-19 19:53:02 +00:00
/// <summary>
/// Gets or sets the number of old history to retain to allow rollback.
/// This is a pointer to distinguish between explicit zero and not
/// specified. Defaults to 10.
/// </summary>
[JsonProperty(PropertyName = "revisionHistoryLimit")]
public int? RevisionHistoryLimit { get; set; }
/// <summary>
/// Gets or sets a label query over pods that are managed by the daemon
/// set. Must match in order to be controlled. If empty, defaulted to
/// labels on Pod template. More info:
2017-10-19 19:53:02 +00:00
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
/// </summary>
[JsonProperty(PropertyName = "selector")]
public V1LabelSelector Selector { get; set; }
/// <summary>
/// Gets or sets an object that describes the pod that will be created.
/// The DaemonSet will create exactly one copy of this pod on every
/// node that matches the template's node selector (or on every node if
/// no node selector is specified). More info:
2017-10-19 19:53:02 +00:00
/// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
/// </summary>
[JsonProperty(PropertyName = "template")]
2017-10-19 19:53:02 +00:00
public Corev1PodTemplateSpec Template { get; set; }
/// <summary>
2017-10-19 19:53:02 +00:00
/// Gets or sets DEPRECATED. A sequence number representing a specific
/// generation of the template. Populated by the system. It can be set
/// only during the creation.
/// </summary>
[JsonProperty(PropertyName = "templateGeneration")]
public long? TemplateGeneration { get; set; }
/// <summary>
/// Gets or sets an update strategy to replace existing DaemonSet pods
/// with new pods.
/// </summary>
[JsonProperty(PropertyName = "updateStrategy")]
2017-10-19 19:53:02 +00:00
public Apiextensionsv1beta1DaemonSetUpdateStrategy UpdateStrategy { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Template == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Template");
}
if (Template != null)
{
Template.Validate();
}
}
}
}