2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-07-02 22:22:11 +08:00
|
|
|
/// HostPortRange defines a range of host ports that will be enabled by a
|
2017-06-06 23:02:14 -07:00
|
|
|
/// policy for pods to use. It requires both the start and end to be
|
2018-07-02 22:22:11 +08:00
|
|
|
/// defined. Deprecated: use HostPortRange from policy API Group instead.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2018-03-28 10:30:09 +08:00
|
|
|
public partial class Extensionsv1beta1HostPortRange
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-03-28 10:30:09 +08:00
|
|
|
/// Initializes a new instance of the Extensionsv1beta1HostPortRange
|
|
|
|
|
/// class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2018-03-28 10:30:09 +08:00
|
|
|
public Extensionsv1beta1HostPortRange()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-03-28 10:30:09 +08:00
|
|
|
/// Initializes a new instance of the Extensionsv1beta1HostPortRange
|
|
|
|
|
/// class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </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)
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|