
    &                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc            	          e Zd ZdZ	 dddddddddZ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d! Zd" Zd# Zd$ Zd% Zy)'V1Probezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    V1ExecActionintV1HTTPGetActionV1TCPSocketAction)_execfailure_thresholdhttp_getinitial_delay_secondsperiod_secondssuccess_threshold
tcp_sockettimeout_secondsexecfailureThresholdhttpGetinitialDelaySecondsperiodSecondssuccessThreshold	tcpSockettimeoutSecondsNc	                    d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        yy)z6
        V1Probe - a model defined in Swagger
        N)_V1Probe__exec_failure_threshold	_http_get_initial_delay_seconds_period_seconds_success_threshold_tcp_socket_timeout_secondsdiscriminatorr   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            4lib/third_party/kubernetes/client/models/v1_probe.py__init__zV1Probe.__init__4   s     DK"DDN"&DD"DD DDdj$0ddm(#8d !*d$0d"do",d #    c                     | j                   S )z
        Gets the _exec of this V1Probe.
        One and only one of the following should be specified. Exec specifies
        the action to take.

        :return: The _exec of this V1Probe.
        :rtype: V1ExecAction
        r   r%   s    r&   r   zV1Probe._exec\   s     ;;r(   c                     || _         y)z
        Sets the _exec of this V1Probe.
        One and only one of the following should be specified. Exec specifies
        the action to take.

        :param _exec: The _exec of this V1Probe.
        :type: V1ExecAction
        Nr*   )r%   r   s     r&   r   zV1Probe._exech   s     DKr(   c                     | j                   S )a  
        Gets 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.

        :return: The failure_threshold of this V1Probe.
        :rtype: int
        r   r+   s    r&   r   zV1Probe.failure_thresholdu   s     """r(   c                     || _         y)a(  
        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.

        :param failure_threshold: The failure_threshold of this V1Probe.
        :type: int
        Nr.   )r%   r   s     r&   r   zV1Probe.failure_threshold   s     0Dr(   c                     | j                   S )z
        Gets the http_get of this V1Probe.
        HTTPGet specifies the http request to perform.

        :return: The http_get of this V1Probe.
        :rtype: V1HTTPGetAction
        r   r+   s    r&   r   zV1Probe.http_get   s     >>r(   c                     || _         y)z
        Sets the http_get of this V1Probe.
        HTTPGet specifies the http request to perform.

        :param http_get: The http_get of this V1Probe.
        :type: V1HTTPGetAction
        Nr1   )r%   r   s     r&   r   zV1Probe.http_get   s     DNr(   c                     | j                   S )a_  
        Gets 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

        :return: The initial_delay_seconds of this V1Probe.
        :rtype: int
        r   r+   s    r&   r   zV1Probe.initial_delay_seconds   s     &&&r(   c                     || _         y)as  
        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

        :param initial_delay_seconds: The initial_delay_seconds of this V1Probe.
        :type: int
        Nr4   )r%   r   s     r&   r   zV1Probe.initial_delay_seconds   s     #8Dr(   c                     | j                   S )z
        Gets the period_seconds of this V1Probe.
        How often (in seconds) to perform the probe. Default to 10 seconds.
        Minimum value is 1.

        :return: The period_seconds of this V1Probe.
        :rtype: int
        r    r+   s    r&   r   zV1Probe.period_seconds   s     r(   c                     || _         y)z
        Sets the period_seconds of this V1Probe.
        How often (in seconds) to perform the probe. Default to 10 seconds.
        Minimum value is 1.

        :param period_seconds: The period_seconds of this V1Probe.
        :type: int
        Nr7   )r%   r   s     r&   r   zV1Probe.period_seconds   s     *Dr(   c                     | j                   S )a:  
        Gets 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. Minimum
        value is 1.

        :return: The success_threshold of this V1Probe.
        :rtype: int
        r!   r+   s    r&   r   zV1Probe.success_threshold   s     """r(   c                     || _         y)aJ  
        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. Minimum
        value is 1.

        :param success_threshold: The success_threshold of this V1Probe.
        :type: int
        Nr:   )r%   r   s     r&   r   zV1Probe.success_threshold   s     0Dr(   c                     | j                   S )z
        Gets the tcp_socket of this V1Probe.
        TCPSocket specifies an action involving a TCP port. TCP hooks not yet
        supported

        :return: The tcp_socket of this V1Probe.
        :rtype: V1TCPSocketAction
        r"   r+   s    r&   r   zV1Probe.tcp_socket   s     r(   c                     || _         y)z
        Sets the tcp_socket of this V1Probe.
        TCPSocket specifies an action involving a TCP port. TCP hooks not yet
        supported

        :param tcp_socket: The tcp_socket of this V1Probe.
        :type: V1TCPSocketAction
        Nr=   )r%   r   s     r&   r   zV1Probe.tcp_socket   s     "Dr(   c                     | j                   S )aX  
        Gets 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

        :return: The timeout_seconds of this V1Probe.
        :rtype: int
        r#   r+   s    r&   r   zV1Probe.timeout_seconds  s        r(   c                     || _         y)af  
        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

        :param timeout_seconds: The timeout_seconds of this V1Probe.
        :type: int
        Nr@   )r%   r   s     r&   r   zV1Probe.timeout_seconds  s     ,Dr(   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrrD   )xs    r&   <lambda>z!V1Probe.to_dict.<locals>.<lambda>2  s    I)>!))+EAEr(   rD   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rD   r   rE   )items    r&   rH   z!V1Probe.to_dict.<locals>.<lambda>8  s6    47I. #1gtAw'89 9489r(   )
r   swagger_typesgetattr
isinstancelistmaprF   rD   dictitems)r%   resultattr_values        r&   rD   zV1Probe.to_dict(  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr(   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   rD   r+   s    r&   to_strzV1Probe.to_str?  s     4<<>""r(   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rX   r+   s    r&   __repr__zV1Probe.__repr__E  s     ;;=r(   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rN   r   __dict__r%   others     r&   __eq__zV1Probe.__eq__K  s$     eW%==ENN**r(   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r]   s     r&   __ne__zV1Probe.__ne__T  s     u}r(   )NNNNNNNN)__name__
__module____qualname____doc__rL   attribute_mapr'   propertyr   setterr   r   r   r   r   r   r   rD   rX   rZ   r_   rb   ra   r(   r&   r   r      s     #$ '	- -4'-)	- !%%)"!%#&-P 	 	 	<<
 
 	# 	# 
0 
0   ??	 	 
' 
' 8  8 	  	  
* 
* 
# 
# 0 0 	 	 
" 
" 
! 
! , ,.#+r(   r   )rf   pprintr   sixr   reobjectr   ra   r(   r&   <module>rn      s#   	   	Ff Fr(   