
    D!                     >    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                   f   e Zd ZdZ	 ddddddZ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d Zd Zd Zd Zd Zy)V1beta2DaemonSetSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intV1LabelSelectorV1PodTemplateSpecV1beta2DaemonSetUpdateStrategy)min_ready_secondsrevision_history_limitselectortemplateupdate_strategyminReadySecondsrevisionHistoryLimitr   r   updateStrategyNc                     d| _         d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        || _        || _	        ||| _
        yy)zC
        V1beta2DaemonSetSpec - a model defined in Swagger
        N)_min_ready_seconds_revision_history_limit	_selector	_template_update_strategydiscriminatorr   r   r   r   r   )selfr   r   r   r   r   s         Clib/third_party/kubernetes/client/models/v1beta2_daemon_set_spec.py__init__zV1beta2DaemonSetSpec.__init__.   so     #D#'D DNDN DD$0d)$:d!DMDM",d #    c                     | j                   S )a  
        Gets the min_ready_seconds of this V1beta2DaemonSetSpec.
        The minimum number of seconds for which a newly created DaemonSet pod
        should be ready without any of its container crashing, for it to be
        considered available. Defaults to 0 (pod will be considered available as
        soon as it is ready).

        :return: The min_ready_seconds of this V1beta2DaemonSetSpec.
        :rtype: int
        r   r   s    r   r   z&V1beta2DaemonSetSpec.min_ready_secondsH   s     """r   c                     || _         y)a  
        Sets the min_ready_seconds of this V1beta2DaemonSetSpec.
        The minimum number of seconds for which a newly created DaemonSet pod
        should be ready without any of its container crashing, for it to be
        considered available. Defaults to 0 (pod will be considered available as
        soon as it is ready).

        :param min_ready_seconds: The min_ready_seconds of this
        V1beta2DaemonSetSpec.
        :type: int
        Nr   )r   r   s     r   r   z&V1beta2DaemonSetSpec.min_ready_secondsV   s     0Dr   c                     | j                   S )aO  
        Gets the revision_history_limit of this V1beta2DaemonSetSpec.
        The number of old history to retain to allow rollback. This is a pointer
        to distinguish between explicit zero and not specified. Defaults to 10.

        :return: The revision_history_limit of this V1beta2DaemonSetSpec.
        :rtype: int
        r   r    s    r   r   z+V1beta2DaemonSetSpec.revision_history_limitf   s     '''r   c                     || _         y)al  
        Sets the revision_history_limit of this V1beta2DaemonSetSpec.
        The number of old history to retain to allow rollback. This is a pointer
        to distinguish between explicit zero and not specified. Defaults to 10.

        :param revision_history_limit: The revision_history_limit of this
        V1beta2DaemonSetSpec.
        :type: int
        Nr#   )r   r   s     r   r   z+V1beta2DaemonSetSpec.revision_history_limitr   s     $:D r   c                     | j                   S )a  
        Gets the selector of this V1beta2DaemonSetSpec.
        A label query over pods that are managed by the daemon set. Must match
        in order to be controlled. It must match the pod template's labels. More
        info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :return: The selector of this V1beta2DaemonSetSpec.
        :rtype: V1LabelSelector
        )r   r    s    r   r   zV1beta2DaemonSetSpec.selector   s     >>r   c                 ,    |t        d      || _        y)a  
        Sets the selector of this V1beta2DaemonSetSpec.
        A label query over pods that are managed by the daemon set. Must match
        in order to be controlled. It must match the pod template's labels. More
        info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :param selector: The selector of this V1beta2DaemonSetSpec.
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)
ValueErrorr   )r   r   s     r   r   zV1beta2DaemonSetSpec.selector   s     IJJDNr   c                     | j                   S )a  
        Gets the template of this V1beta2DaemonSetSpec.
        An object that describes the pod that will be created. The DaemonSet
        will create exactly one copy of this pod on every node that matches the
        template's node selector (or on every node if no node selector is
        specified). More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :return: The template of this V1beta2DaemonSetSpec.
        :rtype: V1PodTemplateSpec
        )r   r    s    r   r   zV1beta2DaemonSetSpec.template   s     >>r   c                 ,    |t        d      || _        y)a  
        Sets the template of this V1beta2DaemonSetSpec.
        An object that describes the pod that will be created. The DaemonSet
        will create exactly one copy of this pod on every node that matches the
        template's node selector (or on every node if no node selector is
        specified). More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :param template: The template of this V1beta2DaemonSetSpec.
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r'   r   )r   r   s     r   r   zV1beta2DaemonSetSpec.template   s     IJJDNr   c                     | j                   S )a  
        Gets the update_strategy of this V1beta2DaemonSetSpec.
        An update strategy to replace existing DaemonSet pods with new pods.

        :return: The update_strategy of this V1beta2DaemonSetSpec.
        :rtype: V1beta2DaemonSetUpdateStrategy
        r   r    s    r   r   z$V1beta2DaemonSetSpec.update_strategy   s        r   c                     || _         y)a  
        Sets the update_strategy of this V1beta2DaemonSetSpec.
        An update strategy to replace existing DaemonSet pods with new pods.

        :param update_strategy: The update_strategy of this
        V1beta2DaemonSetSpec.
        :type: V1beta2DaemonSetUpdateStrategy
        Nr+   )r   r   s     r   r   z$V1beta2DaemonSetSpec.update_strategy   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hasattrr/   )xs    r   <lambda>z.V1beta2DaemonSetSpec.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r/   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r/   r   r0   )items    r   r3   z.V1beta2DaemonSetSpec.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr1   r/   dictitems)r   resultattr_values        r   r/   zV1beta2DaemonSetSpec.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   r/   r    s    r   to_strzV1beta2DaemonSetSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rC   r    s    r   __repr__zV1beta2DaemonSetSpec.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r9   r   __dict__r   others     r   __eq__zV1beta2DaemonSetSpec.__eq__   s%     e12==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rH   s     r   __ne__zV1beta2DaemonSetSpec.__ne__  s     u}r   )NNNNN)__name__
__module____qualname____doc__r7   attribute_mapr   propertyr   setterr   r   r   r   r/   rC   rE   rJ   rM   rL   r   r   r   r      sM    ! %#%9- - 6)- "&&*#-4 # # 0 0 	( 	(   : !:   ??     ?? " ! ! 
, 
,.#+r   r   )rQ   pprintr   sixr   reobjectr   rL   r   r   <module>rY      s#   	   	v6 vr   