Files
csharp/src/generated/Models/V1beta1HostPortRange.cs

66 lines
2.0 KiB
C#
Raw Normal View History

// 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>
/// Host Port Range 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.
/// </summary>
public partial class V1beta1HostPortRange
{
/// <summary>
/// Initializes a new instance of the V1beta1HostPortRange class.
/// </summary>
public V1beta1HostPortRange()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1beta1HostPortRange 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>
public V1beta1HostPortRange(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
}
}
}