109 lines
4.8 KiB
C#
109 lines
4.8 KiB
C#
|
|
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
||
|
|
// regenerated.
|
||
|
|
|
||
|
|
namespace k8s.Models
|
||
|
|
{
|
||
|
|
using Newtonsoft.Json;
|
||
|
|
using System.Linq;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// ReplicaSetSpec is the specification of a ReplicaSet.
|
||
|
|
/// </summary>
|
||
|
|
public partial class V1beta1ReplicaSetSpec
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Initializes a new instance of the V1beta1ReplicaSetSpec class.
|
||
|
|
/// </summary>
|
||
|
|
public V1beta1ReplicaSetSpec()
|
||
|
|
{
|
||
|
|
CustomInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Initializes a new instance of the V1beta1ReplicaSetSpec class.
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="minReadySeconds">Minimum number of seconds for which a
|
||
|
|
/// newly created 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>
|
||
|
|
/// <param name="replicas">Replicas is the number of desired replicas.
|
||
|
|
/// This is a pointer to distinguish between explicit zero and
|
||
|
|
/// unspecified. Defaults to 1. More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller</param>
|
||
|
|
/// <param name="selector">Selector is a label query over pods that
|
||
|
|
/// should match the replica count. If the selector is empty, it is
|
||
|
|
/// defaulted to the labels present on the pod template. Label keys and
|
||
|
|
/// values that must match in order to be controlled by this replica
|
||
|
|
/// set. More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/labels#label-selectors</param>
|
||
|
|
/// <param name="template">Template is the object that describes the
|
||
|
|
/// pod that will be created if insufficient replicas are detected.
|
||
|
|
/// More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/replication-controller#pod-template</param>
|
||
|
|
public V1beta1ReplicaSetSpec(int? minReadySeconds = default(int?), int? replicas = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1PodTemplateSpec template = default(V1PodTemplateSpec))
|
||
|
|
{
|
||
|
|
MinReadySeconds = minReadySeconds;
|
||
|
|
Replicas = replicas;
|
||
|
|
Selector = selector;
|
||
|
|
Template = template;
|
||
|
|
CustomInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// An initialization method that performs custom operations like setting defaults
|
||
|
|
/// </summary>
|
||
|
|
partial void CustomInit();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets minimum number of seconds for which a newly created
|
||
|
|
/// 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; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets replicas is the number of desired replicas. This is a
|
||
|
|
/// pointer to distinguish between explicit zero and unspecified.
|
||
|
|
/// Defaults to 1. More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "replicas")]
|
||
|
|
public int? Replicas { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets selector is a label query over pods that should match
|
||
|
|
/// the replica count. If the selector is empty, it is defaulted to the
|
||
|
|
/// labels present on the pod template. Label keys and values that must
|
||
|
|
/// match in order to be controlled by this replica set. More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/labels#label-selectors
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "selector")]
|
||
|
|
public V1LabelSelector Selector { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets template is the object that describes the pod that
|
||
|
|
/// will be created if insufficient replicas are detected. More info:
|
||
|
|
/// http://kubernetes.io/docs/user-guide/replication-controller#pod-template
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "template")]
|
||
|
|
public V1PodTemplateSpec Template { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Validate the object.
|
||
|
|
/// </summary>
|
||
|
|
/// <exception cref="Microsoft.Rest.ValidationException">
|
||
|
|
/// Thrown if validation fails
|
||
|
|
/// </exception>
|
||
|
|
public virtual void Validate()
|
||
|
|
{
|
||
|
|
if (Template != null)
|
||
|
|
{
|
||
|
|
Template.Validate();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|