/// <summary> /// Initializes a new instance of the <see cref="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. 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?)) { this.Exec = Exec; this.FailureThreshold = FailureThreshold; this.HttpGet = HttpGet; this.InitialDelaySeconds = InitialDelaySeconds; this.PeriodSeconds = PeriodSeconds; this.SuccessThreshold = SuccessThreshold; this.TcpSocket = TcpSocket; this.TimeoutSeconds = TimeoutSeconds; }
/// <summary> /// Initializes a new instance of the <see cref="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)) { this.Exec = Exec; this.HttpGet = HttpGet; this.TcpSocket = TcpSocket; }