Gen v1.22.0 (#677)

* generator to support bool?

* gen v1.22.0

* trim version convertor

* bump ver
This commit is contained in:
Boshi Lian
2021-08-15 09:01:46 -07:00
committed by GitHub
parent 3b8d3beab4
commit d66c914c86
655 changed files with 317147 additions and 446523 deletions

View File

@@ -1,25 +1,25 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
/// <summary>
/// PodDisruptionBudgetStatus represents information about the status of a
/// PodDisruptionBudget. Status may trail the actual state of a system.
/// PodDisruptionBudget. Status may trail the actual state of a system.
/// </summary>
public partial class V1PodDisruptionBudgetStatus
{
/// <summary>
/// Initializes a new instance of the V1PodDisruptionBudgetStatus
/// class.
/// Initializes a new instance of the V1PodDisruptionBudgetStatus class.
/// </summary>
public V1PodDisruptionBudgetStatus()
{
@@ -27,51 +27,53 @@ namespace k8s.Models
}
/// <summary>
/// Initializes a new instance of the V1PodDisruptionBudgetStatus
/// class.
/// Initializes a new instance of the V1PodDisruptionBudgetStatus class.
/// </summary>
/// <param name="currentHealthy">current number of healthy pods</param>
/// <param name="desiredHealthy">minimum desired number of healthy
/// pods</param>
/// <param name="disruptionsAllowed">Number of pod disruptions that are
/// currently allowed.</param>
/// <param name="expectedPods">total number of pods counted by this
/// disruption budget</param>
/// <param name="conditions">Conditions contain conditions for PDB. The
/// disruption controller sets the DisruptionAllowed condition. The
/// following are known values for the reason field (additional reasons
/// could be added in the future): - SyncFailed: The controller
/// encountered an error and wasn't able to compute
/// <param name="currentHealthy">
/// current number of healthy pods
/// </param>
/// <param name="desiredHealthy">
/// minimum desired number of healthy pods
/// </param>
/// <param name="disruptionsAllowed">
/// Number of pod disruptions that are currently allowed.
/// </param>
/// <param name="expectedPods">
/// total number of pods counted by this disruption budget
/// </param>
/// <param name="conditions">
/// Conditions contain conditions for PDB. The disruption controller sets the
/// DisruptionAllowed condition. The following are known values for the reason field
/// (additional reasons could be added in the future): - SyncFailed: The controller
/// encountered an error and wasn&apos;t able to compute
/// the number of allowed disruptions. Therefore no disruptions are
/// allowed and the status of the condition will be False.
/// - InsufficientPods: The number of pods are either at or below the
/// number
/// - InsufficientPods: The number of pods are either at or below the number
/// required by the PodDisruptionBudget. No disruptions are
/// allowed and the status of the condition will be False.
/// - SufficientPods: There are more pods than required by the
/// PodDisruptionBudget.
/// - SufficientPods: There are more pods than required by the PodDisruptionBudget.
/// The condition will be True, and the number of allowed
/// disruptions are provided by the disruptionsAllowed
/// property.</param>
/// <param name="disruptedPods">DisruptedPods contains information
/// about pods whose eviction was processed by the API server eviction
/// subresource handler but has not yet been observed by the
/// PodDisruptionBudget controller. A pod will be in this map from the
/// time when the API server processed the eviction request to the time
/// when the pod is seen by PDB controller as having been marked for
/// deletion (or after a timeout). The key in the map is the name of
/// the pod and the value is the time when the API server processed the
/// eviction request. If the deletion didn't occur and a pod is still
/// there it will be removed from the list automatically by
/// PodDisruptionBudget controller after some time. If everything goes
/// smooth this map should be empty for the most of the time. Large
/// number of entries in the map may indicate problems with pod
/// deletions.</param>
/// <param name="observedGeneration">Most recent generation observed
/// when updating this PDB status. DisruptionsAllowed and other status
/// information is valid only if observedGeneration equals to PDB's
/// object generation.</param>
public V1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList<V1Condition> conditions = default(IList<V1Condition>), IDictionary<string, System.DateTime?> disruptedPods = default(IDictionary<string, System.DateTime?>), long? observedGeneration = default(long?))
/// disruptions are provided by the disruptionsAllowed property.
/// </param>
/// <param name="disruptedPods">
/// DisruptedPods contains information about pods whose eviction was processed by
/// the API server eviction subresource handler but has not yet been observed by the
/// PodDisruptionBudget controller. A pod will be in this map from the time when the
/// API server processed the eviction request to the time when the pod is seen by
/// PDB controller as having been marked for deletion (or after a timeout). The key
/// in the map is the name of the pod and the value is the time when the API server
/// processed the eviction request. If the deletion didn&apos;t occur and a pod is still
/// there it will be removed from the list automatically by PodDisruptionBudget
/// controller after some time. If everything goes smooth this map should be empty
/// for the most of the time. Large number of entries in the map may indicate
/// problems with pod deletions.
/// </param>
/// <param name="observedGeneration">
/// Most recent generation observed when updating this PDB status.
/// DisruptionsAllowed and other status information is valid only if
/// observedGeneration equals to PDB&apos;s object generation.
/// </param>
public V1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList<V1Condition> conditions = null, IDictionary<string, System.DateTime?> disruptedPods = null, long? observedGeneration = null)
{
Conditions = conditions;
CurrentHealthy = currentHealthy;
@@ -89,19 +91,16 @@ namespace k8s.Models
partial void CustomInit();
/// <summary>
/// Gets or sets conditions contain conditions for PDB. The disruption
/// controller sets the DisruptionAllowed condition. The following are
/// known values for the reason field (additional reasons could be
/// added in the future): - SyncFailed: The controller encountered an
/// error and wasn't able to compute
/// Conditions contain conditions for PDB. The disruption controller sets the
/// DisruptionAllowed condition. The following are known values for the reason field
/// (additional reasons could be added in the future): - SyncFailed: The controller
/// encountered an error and wasn&apos;t able to compute
/// the number of allowed disruptions. Therefore no disruptions are
/// allowed and the status of the condition will be False.
/// - InsufficientPods: The number of pods are either at or below the
/// number
/// - InsufficientPods: The number of pods are either at or below the number
/// required by the PodDisruptionBudget. No disruptions are
/// allowed and the status of the condition will be False.
/// - SufficientPods: There are more pods than required by the
/// PodDisruptionBudget.
/// - SufficientPods: There are more pods than required by the PodDisruptionBudget.
/// The condition will be True, and the number of allowed
/// disruptions are provided by the disruptionsAllowed property.
/// </summary>
@@ -109,51 +108,49 @@ namespace k8s.Models
public IList<V1Condition> Conditions { get; set; }
/// <summary>
/// Gets or sets current number of healthy pods
/// current number of healthy pods
/// </summary>
[JsonProperty(PropertyName = "currentHealthy")]
public int CurrentHealthy { get; set; }
/// <summary>
/// Gets or sets minimum desired number of healthy pods
/// minimum desired number of healthy pods
/// </summary>
[JsonProperty(PropertyName = "desiredHealthy")]
public int DesiredHealthy { get; set; }
/// <summary>
/// Gets or sets disruptedPods contains information about pods whose
/// eviction was processed by the API server eviction subresource
/// handler but has not yet been observed by the PodDisruptionBudget
/// controller. A pod will be in this map from the time when the API
/// server processed the eviction request to the time when the pod is
/// seen by PDB controller as having been marked for deletion (or after
/// a timeout). The key in the map is the name of the pod and the value
/// is the time when the API server processed the eviction request. If
/// the deletion didn't occur and a pod is still there it will be
/// removed from the list automatically by PodDisruptionBudget
/// controller after some time. If everything goes smooth this map
/// should be empty for the most of the time. Large number of entries
/// in the map may indicate problems with pod deletions.
/// DisruptedPods contains information about pods whose eviction was processed by
/// the API server eviction subresource handler but has not yet been observed by the
/// PodDisruptionBudget controller. A pod will be in this map from the time when the
/// API server processed the eviction request to the time when the pod is seen by
/// PDB controller as having been marked for deletion (or after a timeout). The key
/// in the map is the name of the pod and the value is the time when the API server
/// processed the eviction request. If the deletion didn&apos;t occur and a pod is still
/// there it will be removed from the list automatically by PodDisruptionBudget
/// controller after some time. If everything goes smooth this map should be empty
/// for the most of the time. Large number of entries in the map may indicate
/// problems with pod deletions.
/// </summary>
[JsonProperty(PropertyName = "disruptedPods")]
public IDictionary<string, System.DateTime?> DisruptedPods { get; set; }
/// <summary>
/// Gets or sets number of pod disruptions that are currently allowed.
/// Number of pod disruptions that are currently allowed.
/// </summary>
[JsonProperty(PropertyName = "disruptionsAllowed")]
public int DisruptionsAllowed { get; set; }
/// <summary>
/// Gets or sets total number of pods counted by this disruption budget
/// total number of pods counted by this disruption budget
/// </summary>
[JsonProperty(PropertyName = "expectedPods")]
public int ExpectedPods { get; set; }
/// <summary>
/// Gets or sets most recent generation observed when updating this PDB
/// status. DisruptionsAllowed and other status information is valid
/// only if observedGeneration equals to PDB's object generation.
/// Most recent generation observed when updating this PDB status.
/// DisruptionsAllowed and other status information is valid only if
/// observedGeneration equals to PDB&apos;s object generation.
/// </summary>
[JsonProperty(PropertyName = "observedGeneration")]
public long? ObservedGeneration { get; set; }
@@ -161,20 +158,14 @@ namespace k8s.Models
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Conditions != null)
foreach(var obj in Conditions)
{
foreach (var element in Conditions)
{
if (element != null)
{
element.Validate();
}
}
obj.Validate();
}
}
}