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

81 lines
2.6 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 Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// HTTPIngressRuleValue is a list of http selectors pointing to backends.
/// In the example: http://&lt;host&gt;/&lt;path&gt;?&lt;searchpart&gt;
/// -&gt; 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 '#'.
/// </summary>
public partial class Networkingv1beta1HTTPIngressRuleValue
{
/// <summary>
/// Initializes a new instance of the
/// Networkingv1beta1HTTPIngressRuleValue class.
/// </summary>
public Networkingv1beta1HTTPIngressRuleValue()
{
2017-10-19 19:53:02 +00:00
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Networkingv1beta1HTTPIngressRuleValue class.
/// </summary>
/// <param name="paths">A collection of paths that map requests to
/// backends.</param>
public Networkingv1beta1HTTPIngressRuleValue(IList<Networkingv1beta1HTTPIngressPath> paths)
{
Paths = paths;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets a collection of paths that map requests to backends.
/// </summary>
[JsonProperty(PropertyName = "paths")]
public IList<Networkingv1beta1HTTPIngressPath> Paths { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
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();
}
}
}
}
}
}