//
// 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 Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// HTTPIngressRuleValue is a list of http selectors pointing to backends.
/// In the example: http://<host>/<path>?<searchpart>
/// -> backend where where parts of the url correspond to RFC 3986, this
/// resource will be used to match against everything after the last '/'
/// and before the first '?' or '#'.
///
public partial class Networkingv1beta1HTTPIngressRuleValue
{
///
/// Initializes a new instance of the
/// Networkingv1beta1HTTPIngressRuleValue class.
///
public Networkingv1beta1HTTPIngressRuleValue()
{
CustomInit();
}
///
/// Initializes a new instance of the
/// Networkingv1beta1HTTPIngressRuleValue class.
///
/// A collection of paths that map requests to
/// backends.
public Networkingv1beta1HTTPIngressRuleValue(IList paths)
{
Paths = paths;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets a collection of paths that map requests to backends.
///
[JsonProperty(PropertyName = "paths")]
public IList Paths { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Paths == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Paths");
}
if (Paths != null)
{
foreach (var element in Paths)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}