Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1TCPSocketAction" /> class.
 /// </summary>
 /// <param name="Port">Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. (required).</param>
 public V1TCPSocketAction(IntstrIntOrString Port = default(IntstrIntOrString))
 {
     // to ensure "Port" is required (not null)
     if (Port == null)
     {
         throw new InvalidDataException("Port is a required property for V1TCPSocketAction and cannot be null");
     }
     else
     {
         this.Port = Port;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1IngressBackend" /> class.
 /// </summary>
 /// <param name="ServiceName">Specifies the name of the referenced service. (required).</param>
 /// <param name="ServicePort">Specifies the port of the referenced service. (required).</param>
 public V1beta1IngressBackend(string ServiceName = default(string), IntstrIntOrString ServicePort = default(IntstrIntOrString))
 {
     // to ensure "ServiceName" is required (not null)
     if (ServiceName == null)
     {
         throw new InvalidDataException("ServiceName is a required property for V1beta1IngressBackend and cannot be null");
     }
     else
     {
         this.ServiceName = ServiceName;
     }
     // to ensure "ServicePort" is required (not null)
     if (ServicePort == null)
     {
         throw new InvalidDataException("ServicePort is a required property for V1beta1IngressBackend and cannot be null");
     }
     else
     {
         this.ServicePort = ServicePort;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1PodDisruptionBudgetSpec" /> class.
 /// </summary>
 /// <param name="MinAvailable">An eviction is allowed if at least \&quot;minAvailable\&quot; pods selected by \&quot;selector\&quot; will still be available after the eviction, i.e. even in the absence of the evicted pod.  So for example you can prevent all voluntary evictions by specifying \&quot;100%\&quot;..</param>
 /// <param name="Selector">Label query over pods whose evictions are managed by the disruption budget..</param>
 public V1beta1PodDisruptionBudgetSpec(IntstrIntOrString MinAvailable = default(IntstrIntOrString), UnversionedLabelSelector Selector = default(UnversionedLabelSelector))
 {
     this.MinAvailable = MinAvailable;
     this.Selector     = Selector;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ServicePort" /> class.
 /// </summary>
 /// <param name="Name">The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the &#39;Name&#39; field in EndpointPort objects. Optional if only one ServicePort is defined on this service..</param>
 /// <param name="NodePort">The port on each node on which this service is exposed when type&#x3D;NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type- -nodeport.</param>
 /// <param name="Port">The port that will be exposed by this service. (required).</param>
 /// <param name="Protocol">The IP protocol for this port. Supports \&quot;TCP\&quot; and \&quot;UDP\&quot;. Default is TCP..</param>
 /// <param name="TargetPort">Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod&#39;s container ports. If this is not specified, the value of the &#39;port&#39; field is used (an identity map). This field is ignored for services with clusterIP&#x3D;None, and should be omitted or set equal to the &#39;port&#39; field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service.</param>
 public V1ServicePort(string Name = default(string), int?NodePort = default(int?), int?Port = default(int?), string Protocol = default(string), IntstrIntOrString TargetPort = default(IntstrIntOrString))
 {
     // to ensure "Port" is required (not null)
     if (Port == null)
     {
         throw new InvalidDataException("Port is a required property for V1ServicePort and cannot be null");
     }
     else
     {
         this.Port = Port;
     }
     this.Name       = Name;
     this.NodePort   = NodePort;
     this.Protocol   = Protocol;
     this.TargetPort = TargetPort;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1NetworkPolicyPort" /> class.
 /// </summary>
 /// <param name="Port">If specified, the port on the given protocol.  This can either be a numerical or named port on a pod.  If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched..</param>
 /// <param name="Protocol">Optional.  The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP..</param>
 public V1beta1NetworkPolicyPort(IntstrIntOrString Port = default(IntstrIntOrString), string Protocol = default(string))
 {
     this.Port     = Port;
     this.Protocol = Protocol;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1HTTPGetAction" /> class.
 /// </summary>
 /// <param name="Host">Host name to connect to, defaults to the pod IP. You probably want to set \&quot;Host\&quot; in httpHeaders instead..</param>
 /// <param name="HttpHeaders">Custom headers to set in the request. HTTP allows repeated headers..</param>
 /// <param name="Path">Path to access on the HTTP server..</param>
 /// <param name="Port">Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. (required).</param>
 /// <param name="Scheme">Scheme to use for connecting to the host. Defaults to HTTP..</param>
 public V1HTTPGetAction(string Host = default(string), List <V1HTTPHeader> HttpHeaders = default(List <V1HTTPHeader>), string Path = default(string), IntstrIntOrString Port = default(IntstrIntOrString), string Scheme = default(string))
 {
     // to ensure "Port" is required (not null)
     if (Port == null)
     {
         throw new InvalidDataException("Port is a required property for V1HTTPGetAction and cannot be null");
     }
     else
     {
         this.Port = Port;
     }
     this.Host        = Host;
     this.HttpHeaders = HttpHeaders;
     this.Path        = Path;
     this.Scheme      = Scheme;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1RollingUpdateDeployment" /> class.
 /// </summary>
 /// <param name="MaxSurge">The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods..</param>
 /// <param name="MaxUnavailable">The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods..</param>
 public V1beta1RollingUpdateDeployment(IntstrIntOrString MaxSurge = default(IntstrIntOrString), IntstrIntOrString MaxUnavailable = default(IntstrIntOrString))
 {
     this.MaxSurge       = MaxSurge;
     this.MaxUnavailable = MaxUnavailable;
 }