Files
csharp/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs
Boshi Lian c0e96f516b deprecate net452 + generate model based on v1.20.0 (#536)
* remove most net452 related code

* first net4 remove

* migrate test proj to net5 base

* fix format

* update sta xunit to fix platform not support

* Squashed commit of the following:

commit 16e1f819058ad281e1571b356c10d4d6ce77cf38
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 22:42:57 2020 -0800

    temp disable some version converter

commit 7d1a651f4e7d27d1e61c91f46f73ac8d04ea8ab9
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 20:55:44 2020 -0800

    add missing watcher generator files

commit 3f3199aad269bf89406ea71d0bc63f1a7ec23245
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 22:14:47 2020 +0000

    gen v1.20.0

* bump version to 4.0

* support empty spec

* fix version converter for generator

* add generated header

* fix warning

* rerun generator
2020-12-13 19:55:27 -08:00

96 lines
3.7 KiB
C#
Generated

// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// 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.Linq;
/// <summary>
/// PriorityLevelConfigurationSpec specifies the configuration of a
/// priority level.
/// </summary>
public partial class V1beta1PriorityLevelConfigurationSpec
{
/// <summary>
/// Initializes a new instance of the
/// V1beta1PriorityLevelConfigurationSpec class.
/// </summary>
public V1beta1PriorityLevelConfigurationSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// V1beta1PriorityLevelConfigurationSpec class.
/// </summary>
/// <param name="type">`type` indicates whether this priority level is
/// subject to limitation on request execution. A value of `"Exempt"`
/// means that requests of this priority level are not subject to a
/// limit (and thus are never queued) and do not detract from the
/// capacity made available to other priority levels. A value of
/// `"Limited"` means that (a) requests of this priority level _are_
/// subject to limits and (b) some of the server's limited capacity is
/// made available exclusively to this priority level.
/// Required.</param>
/// <param name="limited">`limited` specifies how requests are handled
/// for a Limited priority level. This field must be non-empty if and
/// only if `type` is `"Limited"`.</param>
public V1beta1PriorityLevelConfigurationSpec(string type, V1beta1LimitedPriorityLevelConfiguration limited = default(V1beta1LimitedPriorityLevelConfiguration))
{
Limited = limited;
Type = type;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets `limited` specifies how requests are handled for a
/// Limited priority level. This field must be non-empty if and only if
/// `type` is `"Limited"`.
/// </summary>
[JsonProperty(PropertyName = "limited")]
public V1beta1LimitedPriorityLevelConfiguration Limited { get; set; }
/// <summary>
/// Gets or sets `type` indicates whether this priority level is
/// subject to limitation on request execution. A value of `"Exempt"`
/// means that requests of this priority level are not subject to a
/// limit (and thus are never queued) and do not detract from the
/// capacity made available to other priority levels. A value of
/// `"Limited"` means that (a) requests of this priority level _are_
/// subject to limits and (b) some of the server's limited capacity is
/// made available exclusively to this priority level. Required.
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Type == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
}
if (Limited != null)
{
Limited.Validate();
}
}
}
}