/// <summary>
 /// Initializes a new instance of the <see cref="V1beta1HTTPIngressPath" /> class.
 /// </summary>
 /// <param name="Backend">Backend defines the referenced service endpoint to which the traffic will be forwarded to. (required).</param>
 /// <param name="Path">Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \&quot;path\&quot; part of a URL as defined by RFC 3986. Paths must begin with a &#39;/&#39;. If unspecified, the path defaults to a catch all sending traffic to the backend..</param>
 public V1beta1HTTPIngressPath(V1beta1IngressBackend Backend = default(V1beta1IngressBackend), string Path = default(string))
 {
     // to ensure "Backend" is required (not null)
     if (Backend == null)
     {
         throw new InvalidDataException("Backend is a required property for V1beta1HTTPIngressPath and cannot be null");
     }
     else
     {
         this.Backend = Backend;
     }
     this.Path = Path;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1IngressSpec" /> class.
 /// </summary>
 /// <param name="Backend">A default backend capable of servicing requests that don&#39;t match any rule. At least one of &#39;backend&#39; or &#39;rules&#39; must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default..</param>
 /// <param name="Rules">A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend..</param>
 /// <param name="Tls">TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI..</param>
 public V1beta1IngressSpec(V1beta1IngressBackend Backend = default(V1beta1IngressBackend), List <V1beta1IngressRule> Rules = default(List <V1beta1IngressRule>), List <V1beta1IngressTLS> Tls = default(List <V1beta1IngressTLS>))
 {
     this.Backend = Backend;
     this.Rules   = Rules;
     this.Tls     = Tls;
 }