
    <g5                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   t   e Zd ZdZ	 ddddddddddd
Zdd	d
dddddddd
Zd-dZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed         Zej                  d!        Zed"        Zej                  d#        Zed$        Zej                  d%        Zed&        Zej                  d'        Zd( Zd) Zd* Zd+ Zd, Zy).V1ProbezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1ExecActionintV1GRPCActionV1HTTPGetActionV1TCPSocketAction)
_execfailure_thresholdgrpchttp_getinitial_delay_secondsperiod_secondssuccess_threshold
tcp_socket termination_grace_period_secondstimeout_secondsexecfailureThresholdr   httpGetinitialDelaySecondsperiodSecondssuccessThreshold	tcpSocketterminationGracePeriodSecondstimeoutSecondsNc                 z   |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        yy)z$V1Probe - a model defined in OpenAPIN)r   local_vars_configuration_V1Probe__exec_failure_threshold_grpc	_http_get_initial_delay_seconds_period_seconds_success_threshold_tcp_socket!_termination_grace_period_seconds_timeout_secondsdiscriminatorr   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   s               V/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_probe.py__init__zV1Probe.__init__=   s    #+'4$(@%"&
&*##"&15. $!DJ(%6D"DI$DM ,)>D&%"0D(%6D"!(DO+74TD1&#2D  '    c                     | j                   S )zGets the _exec of this V1Probe.  # noqa: E501


        :return: The _exec of this V1Probe.  # noqa: E501
        :rtype: V1ExecAction
        r    r+   s    r,   r   zV1Probe._execd   s     {{r.   c                     || _         y)zSets the _exec of this V1Probe.


        :param _exec: The _exec of this V1Probe.  # noqa: E501
        :type: V1ExecAction
        Nr0   )r+   r   s     r,   r   zV1Probe._execn   s     r.   c                     | j                   S )a2  Gets the failure_threshold of this V1Probe.  # noqa: E501

        Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.  # noqa: E501

        :return: The failure_threshold of this V1Probe.  # noqa: E501
        :rtype: int
        r!   r1   s    r,   r   zV1Probe.failure_thresholdy        &&&r.   c                     || _         y)a4  Sets the failure_threshold of this V1Probe.

        Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.  # noqa: E501

        :param failure_threshold: The failure_threshold of this V1Probe.  # noqa: E501
        :type: int
        Nr4   )r+   r   s     r,   r   zV1Probe.failure_threshold        #4r.   c                     | j                   S )zGets the grpc of this V1Probe.  # noqa: E501


        :return: The grpc of this V1Probe.  # noqa: E501
        :rtype: V1GRPCAction
        r"   r1   s    r,   r   zV1Probe.grpc   s     zzr.   c                     || _         y)zSets the grpc of this V1Probe.


        :param grpc: The grpc of this V1Probe.  # noqa: E501
        :type: V1GRPCAction
        Nr9   )r+   r   s     r,   r   zV1Probe.grpc   s     
r.   c                     | j                   S )zGets the http_get of this V1Probe.  # noqa: E501


        :return: The http_get of this V1Probe.  # noqa: E501
        :rtype: V1HTTPGetAction
        r#   r1   s    r,   r   zV1Probe.http_get   s     ~~r.   c                     || _         y)zSets the http_get of this V1Probe.


        :param http_get: The http_get of this V1Probe.  # noqa: E501
        :type: V1HTTPGetAction
        Nr<   )r+   r   s     r,   r   zV1Probe.http_get   s     "r.   c                     | j                   S )aq  Gets the initial_delay_seconds of this V1Probe.  # noqa: E501

        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  # noqa: E501

        :return: The initial_delay_seconds of this V1Probe.  # noqa: E501
        :rtype: int
        r$   r1   s    r,   r   zV1Probe.initial_delay_seconds   s     ***r.   c                     || _         y)aw  Sets the initial_delay_seconds of this V1Probe.

        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  # noqa: E501

        :param initial_delay_seconds: The initial_delay_seconds of this V1Probe.  # noqa: E501
        :type: int
        Nr?   )r+   r   s     r,   r   zV1Probe.initial_delay_seconds   s     '<#r.   c                     | j                   S )a  Gets the period_seconds of this V1Probe.  # noqa: E501

        How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.  # noqa: E501

        :return: The period_seconds of this V1Probe.  # noqa: E501
        :rtype: int
        r%   r1   s    r,   r   zV1Probe.period_seconds   s     ###r.   c                     || _         y)a  Sets the period_seconds of this V1Probe.

        How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.  # noqa: E501

        :param period_seconds: The period_seconds of this V1Probe.  # noqa: E501
        :type: int
        NrB   )r+   r   s     r,   r   zV1Probe.period_seconds   s      .r.   c                     | j                   S )aX  Gets the success_threshold of this V1Probe.  # noqa: E501

        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.  # noqa: E501

        :return: The success_threshold of this V1Probe.  # noqa: E501
        :rtype: int
        r&   r1   s    r,   r   zV1Probe.success_threshold   r5   r.   c                     || _         y)aZ  Sets the success_threshold of this V1Probe.

        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.  # noqa: E501

        :param success_threshold: The success_threshold of this V1Probe.  # noqa: E501
        :type: int
        NrE   )r+   r   s     r,   r   zV1Probe.success_threshold   r7   r.   c                     | j                   S )zGets the tcp_socket of this V1Probe.  # noqa: E501


        :return: The tcp_socket of this V1Probe.  # noqa: E501
        :rtype: V1TCPSocketAction
        r'   r1   s    r,   r   zV1Probe.tcp_socket   s     r.   c                     || _         y)zSets the tcp_socket of this V1Probe.


        :param tcp_socket: The tcp_socket of this V1Probe.  # noqa: E501
        :type: V1TCPSocketAction
        NrH   )r+   r   s     r,   r   zV1Probe.tcp_socket	  s     &r.   c                     | j                   S )a  Gets the termination_grace_period_seconds of this V1Probe.  # noqa: E501

        Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.  # noqa: E501

        :return: The termination_grace_period_seconds of this V1Probe.  # noqa: E501
        :rtype: int
        r(   r1   s    r,   r   z(V1Probe.termination_grace_period_seconds  s     555r.   c                     || _         y)a  Sets the termination_grace_period_seconds of this V1Probe.

        Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.  # noqa: E501

        :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1Probe.  # noqa: E501
        :type: int
        NrK   )r+   r   s     r,   r   z(V1Probe.termination_grace_period_seconds  s     2R.r.   c                     | j                   S )aj  Gets the timeout_seconds of this V1Probe.  # noqa: E501

        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  # noqa: E501

        :return: The timeout_seconds of this V1Probe.  # noqa: E501
        :rtype: int
        r)   r1   s    r,   r   zV1Probe.timeout_seconds+  s     $$$r.   c                     || _         y)aj  Sets the timeout_seconds of this V1Probe.

        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  # noqa: E501

        :param timeout_seconds: The timeout_seconds of this V1Probe.  # noqa: E501
        :type: int
        NrN   )r+   r   s     r,   r   zV1Probe.timeout_seconds6  s     !0r.   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrrR   )xs    r,   <lambda>z!V1Probe.to_dict.<locals>.<lambda>J  s    WQ	-BaiikIIr.   rR   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rR   r   rS   )items    r,   rV   z!V1Probe.to_dict.<locals>.<lambda>Q  s6    tAw	2 #'q'47??+<!= "=8<"=r.   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprT   rR   dictitems)r+   resultattr_values        r,   rR   zV1Probe.to_dictB  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r.   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrR   r1   s    r,   to_strzV1Probe.to_strZ  s    ~~dlln--r.   c                 "    | j                         S )zFor `print` and `pprint`)rj   r1   s    r,   __repr__zV1Probe.__repr__^  s    {{}r.   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr^   r   rR   r+   others     r,   __eq__zV1Probe.__eq__b  s&    %)||~00r.   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrn   ro   s     r,   __ne__zV1Probe.__ne__i  s&    %)||~00r.   )NNNNNNNNNNN)__name__
__module____qualname____doc__r\   attribute_mapr-   propertyr   setterr   r   r   r   r   r   r   r   r   rR   rj   rl   rq   rs    r.   r,   r   r      sA     "%!&"),1 M /!6)/!,K+M%3N   \\  ' ' 	4 	4   
[[    __" " + + !!	< "	< $ $ 	. 	. ' ' 	4 	4     & & 6 6 &,,	R -	R % % 	0 	00.11r.   r   )rw   rh   rerZ   kubernetes.client.configurationr   objectr   r{   r.   r,   <module>r      s&     	 
 9Y1f Y1r.   