Files
csharp/src/KubernetesClient/generated/Models/Extensionsv1beta1HostPortRange.cs

70 lines
2.2 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 Newtonsoft.Json;
using System.Linq;
/// <summary>
/// HostPortRange defines a range of host ports that will be enabled by a
/// policy for pods to use. It requires both the start and end to be
/// defined. Deprecated: use HostPortRange from policy API Group instead.
/// </summary>
2018-03-28 10:30:09 +08:00
public partial class Extensionsv1beta1HostPortRange
{
/// <summary>
2018-03-28 10:30:09 +08:00
/// Initializes a new instance of the Extensionsv1beta1HostPortRange
/// class.
/// </summary>
2018-03-28 10:30:09 +08:00
public Extensionsv1beta1HostPortRange()
{
2017-10-19 19:53:02 +00:00
CustomInit();
}
/// <summary>
2018-03-28 10:30:09 +08:00
/// Initializes a new instance of the Extensionsv1beta1HostPortRange
/// class.
/// </summary>
/// <param name="max">max is the end of the range, inclusive.</param>
/// <param name="min">min is the start of the range, inclusive.</param>
2018-03-28 10:30:09 +08:00
public Extensionsv1beta1HostPortRange(int max, int min)
{
Max = max;
Min = min;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets max is the end of the range, inclusive.
/// </summary>
[JsonProperty(PropertyName = "max")]
public int Max { get; set; }
/// <summary>
/// Gets or sets min is the start of the range, inclusive.
/// </summary>
[JsonProperty(PropertyName = "min")]
public int Min { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}