/// <summary>
 /// Initializes a new instance of the V1Handler class.
 /// </summary>
 /// <param name="exec">One and only one of the following should be
 /// specified. Exec specifies the action to take.</param>
 /// <param name="httpGet">HTTPGet specifies the http request to
 /// perform.</param>
 /// <param name="tcpSocket">TCPSocket specifies an action involving a
 /// TCP port. TCP hooks not yet supported</param>
 public V1Handler(V1ExecAction exec = default(V1ExecAction), V1HTTPGetAction httpGet = default(V1HTTPGetAction), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction))
 {
     Exec      = exec;
     HttpGet   = httpGet;
     TcpSocket = tcpSocket;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the V1Probe class.
 /// </summary>
 /// <param name="exec">One and only one of the following should be
 /// specified. Exec specifies the action to take.</param>
 /// <param name="failureThreshold">Minimum consecutive failures for the
 /// probe to be considered failed after having succeeded. Defaults to
 /// 3. Minimum value is 1.</param>
 /// <param name="httpGet">HTTPGet specifies the http request to
 /// perform.</param>
 /// <param name="initialDelaySeconds">Number of seconds after the
 /// container has started before liveness probes are initiated. More
 /// info:
 /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
 /// <param name="periodSeconds">How often (in seconds) to perform the
 /// probe. Default to 10 seconds. Minimum value is 1.</param>
 /// <param name="successThreshold">Minimum consecutive successes for
 /// the probe to be considered successful after having failed. Defaults
 /// to 1. Must be 1 for liveness and startup. Minimum value is
 /// 1.</param>
 /// <param name="tcpSocket">TCPSocket specifies an action involving a
 /// TCP port. TCP hooks not yet supported</param>
 /// <param name="timeoutSeconds">Number of seconds after which the
 /// probe times out. Defaults to 1 second. Minimum value is 1. More
 /// info:
 /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
 public V1Probe(V1ExecAction exec = default(V1ExecAction), int?failureThreshold = default(int?), V1HTTPGetAction httpGet = default(V1HTTPGetAction), int?initialDelaySeconds = default(int?), int?periodSeconds = default(int?), int?successThreshold = default(int?), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction), int?timeoutSeconds = default(int?))
 {
     Exec                = exec;
     FailureThreshold    = failureThreshold;
     HttpGet             = httpGet;
     InitialDelaySeconds = initialDelaySeconds;
     PeriodSeconds       = periodSeconds;
     SuccessThreshold    = successThreshold;
     TcpSocket           = tcpSocket;
     TimeoutSeconds      = timeoutSeconds;
     CustomInit();
 }