
    [j7                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                      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/d)Zd* Zd+ Zd, Zd- ZdS )0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                    |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
	|
| _        dS dS )z$V1Probe - a model defined in OpenAPIN)r   get_default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               f/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes_asyncio/client/models/v1_probe.py__init__zV1Probe.__init__@   s
   #+'4'@'B'B$(@%"&
&*##"&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._execg   s     {r1   c                     || _         dS )zSets the _exec of this V1Probe.


        :param _exec: The _exec of this V1Probe.  # noqa: E501
        :type _exec: V1ExecAction
        Nr3   )r.   r   s     r/   r   zV1Probe._execq   s     r1   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$   r4   s    r/   r   zV1Probe.failure_threshold|        &&r1   c                     || _         dS )aF  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 failure_threshold: int
        Nr7   )r.   r   s     r/   r   zV1Probe.failure_threshold        #4r1   c                     | j         S )zGets the grpc of this V1Probe.  # noqa: E501


        :return: The grpc of this V1Probe.  # noqa: E501
        :rtype: V1GRPCAction
        r%   r4   s    r/   r   zV1Probe.grpc   s     zr1   c                     || _         dS )zSets the grpc of this V1Probe.


        :param grpc: The grpc of this V1Probe.  # noqa: E501
        :type grpc: V1GRPCAction
        Nr<   )r.   r   s     r/   r   zV1Probe.grpc   s     


r1   c                     | j         S )zGets the http_get of this V1Probe.  # noqa: E501


        :return: The http_get of this V1Probe.  # noqa: E501
        :rtype: V1HTTPGetAction
        r&   r4   s    r/   r   zV1Probe.http_get   s     ~r1   c                     || _         dS )zSets the http_get of this V1Probe.


        :param http_get: The http_get of this V1Probe.  # noqa: E501
        :type http_get: V1HTTPGetAction
        Nr?   )r.   r   s     r/   r   zV1Probe.http_get   s     "r1   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'   r4   s    r/   r   zV1Probe.initial_delay_seconds   s     **r1   c                     || _         dS )a  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 initial_delay_seconds: int
        NrB   )r.   r   s     r/   r   zV1Probe.initial_delay_seconds   s     '<###r1   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(   r4   s    r/   r   zV1Probe.period_seconds   s     ##r1   c                     || _         dS )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 period_seconds: int
        NrE   )r.   r   s     r/   r   zV1Probe.period_seconds   s      .r1   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)   r4   s    r/   r   zV1Probe.success_threshold   r8   r1   c                     || _         dS )al  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 success_threshold: int
        NrH   )r.   r   s     r/   r   zV1Probe.success_threshold   r:   r1   c                     | j         S )zGets the tcp_socket of this V1Probe.  # noqa: E501


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


        :param tcp_socket: The tcp_socket of this V1Probe.  # noqa: E501
        :type tcp_socket: V1TCPSocketAction
        NrK   )r.   r   s     r/   r   zV1Probe.tcp_socket  s     &r1   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+   r4   s    r/   r   z(V1Probe.termination_grace_period_seconds  s     55r1   c                     || _         dS )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 termination_grace_period_seconds: int
        NrN   )r.   r   s     r/   r   z(V1Probe.termination_grace_period_seconds"  s     2R...r1   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,   r4   s    r/   r   zV1Probe.timeout_seconds.  s     $$r1   c                     || _         dS )az  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 timeout_seconds: int
        NrQ   )r.   r   s     r/   r   zV1Probe.timeout_seconds9  s     !0r1   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rU   argslen)xrX   	serializes     r/   convertz V1Probe.to_dict.<locals>.convertI  s[    q)$$ %ai005t99>>99;;&99Y///r1   c                      |           S )N )rZ   r\   s    r/   <lambda>z!V1Probe.to_dict.<locals>.<lambda>X  s    ggajj r1   c                 6    | d          | d                   fS )Nr   rV   r^   )itemr\   s    r/   r_   z!V1Probe.to_dict.<locals>.<lambda>]  s    $q'7747+;+;!< r1   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r.   r[   resultattr_valuer\   s    `    @r/   rU   zV1Probe.to_dictE  s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr1   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrU   r4   s    r/   to_strzV1Probe.to_stre  s    ~dllnn---r1   c                 *    |                                  S )zFor `print` and `pprint`)rt   r4   s    r/   __repr__zV1Probe.__repr__i  s    {{}}r1   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrh   r   rU   r.   others     r/   __eq__zV1Probe.__eq__m  s4    %)) 	5||~~00r1   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrx   ry   s     r/   __ne__zV1Probe.__ne__t  s4    %)) 	4||~~00r1   )NNNNNNNNNNN)F)__name__
__module____qualname____doc__rd   rf   r0   propertyr   setterr   r   r   r   r   r   r   r   r   rU   rt   rv   r{   r}   r^   r1   r/   r   r      s"          "%!&"),1  M /!6)/!,K+ M%3 %3 %3 %3N   X \  \ ' ' X' 	4 	4 	4   X 
[  [   X _" " _" + + X+ !	< 	< "!	< $ $ X$ 	. 	. 	. ' ' X' 	4 	4 	4     X  & & & 6 6 X6 &,	R 	R -,	R % % X% 	0 	0 	0   @. . .  1 1 11 1 1 1 1r1   r   )r   inspectr   ImportErrorr   rr   rerb   'kubernetes_asyncio.client.configurationr   objectr   r^   r1   r/   <module>r      s    5&&&&&&& 5 5 5444444445  				 



 A A A A A Aa1 a1 a1 a1 a1f a1 a1 a1 a1 a1s    