// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// /// 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. /// public partial class Extensionsv1beta1HostPortRange { /// /// Initializes a new instance of the Extensionsv1beta1HostPortRange /// class. /// public Extensionsv1beta1HostPortRange() { CustomInit(); } /// /// Initializes a new instance of the Extensionsv1beta1HostPortRange /// class. /// /// max is the end of the range, inclusive. /// min is the start of the range, inclusive. public Extensionsv1beta1HostPortRange(int max, int min) { Max = max; Min = min; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets max is the end of the range, inclusive. /// [JsonProperty(PropertyName = "max")] public int Max { get; set; } /// /// Gets or sets min is the start of the range, inclusive. /// [JsonProperty(PropertyName = "min")] public int Min { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { //Nothing to validate } } }