Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1Handler 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 Iok8sapicorev1Handler(Iok8sapicorev1ExecAction exec = default(Iok8sapicorev1ExecAction), Iok8sapicorev1HTTPGetAction httpGet = default(Iok8sapicorev1HTTPGetAction), Iok8sapicorev1TCPSocketAction tcpSocket = default(Iok8sapicorev1TCPSocketAction))
 {
     Exec      = exec;
     HttpGet   = httpGet;
     TcpSocket = tcpSocket;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1Probe 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. 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 Iok8sapicorev1Probe(Iok8sapicorev1ExecAction exec = default(Iok8sapicorev1ExecAction), int?failureThreshold = default(int?), Iok8sapicorev1HTTPGetAction httpGet = default(Iok8sapicorev1HTTPGetAction), int?initialDelaySeconds = default(int?), int?periodSeconds = default(int?), int?successThreshold = default(int?), Iok8sapicorev1TCPSocketAction tcpSocket = default(Iok8sapicorev1TCPSocketAction), int?timeoutSeconds = default(int?))
 {
     Exec                = exec;
     FailureThreshold    = failureThreshold;
     HttpGet             = httpGet;
     InitialDelaySeconds = initialDelaySeconds;
     PeriodSeconds       = periodSeconds;
     SuccessThreshold    = successThreshold;
     TcpSocket           = tcpSocket;
     TimeoutSeconds      = timeoutSeconds;
     CustomInit();
 }