
    <g                     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                   \   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)V1DaemonSetSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intV1LabelSelectorV1PodTemplateSpecV1DaemonSetUpdateStrategy)min_ready_secondsrevision_history_limitselectortemplateupdate_strategyminReadySecondsrevisionHistoryLimitr   r   updateStrategyNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        || _
        || _        ||| _        yy)z,V1DaemonSetSpec - a model defined in OpenAPIN)r   local_vars_configuration_min_ready_seconds_revision_history_limit	_selector	_template_update_strategydiscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   r   s          `/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_daemon_set_spec.py__init__zV1DaemonSetSpec.__init__3   s    #+'4$(@%"&'+$ $!(%6D"!-*@D'  &#2D  '    c                     | j                   S )a  Gets the min_ready_seconds of this V1DaemonSetSpec.  # noqa: E501

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

        :return: The min_ready_seconds of this V1DaemonSetSpec.  # noqa: E501
        :rtype: int
        r   r   s    r   r
   z!V1DaemonSetSpec.min_ready_secondsI   s     &&&r   c                     || _         y)a  Sets the min_ready_seconds of this V1DaemonSetSpec.

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

        :param min_ready_seconds: The min_ready_seconds of this V1DaemonSetSpec.  # noqa: E501
        :type: int
        Nr   )r   r
   s     r   r
   z!V1DaemonSetSpec.min_ready_secondsT   s     #4r   c                     | j                   S )a_  Gets the revision_history_limit of this V1DaemonSetSpec.  # noqa: E501

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

        :return: The revision_history_limit of this V1DaemonSetSpec.  # noqa: E501
        :rtype: int
        r   r    s    r   r   z&V1DaemonSetSpec.revision_history_limit`   s     +++r   c                     || _         y)af  Sets the revision_history_limit of this V1DaemonSetSpec.

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

        :param revision_history_limit: The revision_history_limit of this V1DaemonSetSpec.  # noqa: E501
        :type: int
        Nr#   )r   r   s     r   r   z&V1DaemonSetSpec.revision_history_limitk   s     (>$r   c                     | j                   S )zGets the selector of this V1DaemonSetSpec.  # noqa: E501


        :return: The selector of this V1DaemonSetSpec.  # noqa: E501
        :rtype: V1LabelSelector
        )r   r    s    r   r   zV1DaemonSetSpec.selectorw        ~~r   c                 X    | j                   j                  r|t        d      || _        y)zSets the selector of this V1DaemonSetSpec.


        :param selector: The selector of this V1DaemonSetSpec.  # noqa: E501
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1DaemonSetSpec.selector   +     ((??HDTOPP!r   c                     | j                   S )zGets the template of this V1DaemonSetSpec.  # noqa: E501


        :return: The template of this V1DaemonSetSpec.  # noqa: E501
        :rtype: V1PodTemplateSpec
        )r   r    s    r   r   zV1DaemonSetSpec.template   r&   r   c                 X    | j                   j                  r|t        d      || _        y)zSets the template of this V1DaemonSetSpec.


        :param template: The template of this V1DaemonSetSpec.  # noqa: E501
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r   r(   r)   r   )r   r   s     r   r   zV1DaemonSetSpec.template   r*   r   c                     | j                   S )zGets the update_strategy of this V1DaemonSetSpec.  # noqa: E501


        :return: The update_strategy of this V1DaemonSetSpec.  # noqa: E501
        :rtype: V1DaemonSetUpdateStrategy
        r   r    s    r   r   zV1DaemonSetSpec.update_strategy   s     $$$r   c                     || _         y)zSets the update_strategy of this V1DaemonSetSpec.


        :param update_strategy: The update_strategy of this V1DaemonSetSpec.  # noqa: E501
        :type: V1DaemonSetUpdateStrategy
        Nr.   )r   r   s     r   r   zV1DaemonSetSpec.update_strategy   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hasattrr2   )xs    r   <lambda>z)V1DaemonSetSpec.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r2   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r2   r   r3   )items    r   r6   z)V1DaemonSetSpec.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr4   r2   dictitems)r   resultattr_values        r   r2   zV1DaemonSetSpec.to_dict   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pformatr2   r    s    r   to_strzV1DaemonSetSpec.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rJ   r    s    r   __repr__zV1DaemonSetSpec.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr>   r   r2   r   others     r   __eq__zV1DaemonSetSpec.__eq__   s&    %1||~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V1DaemonSetSpec.__ne__   s&    %1||~00r   )NNNNNN)__name__
__module____qualname____doc__r<   attribute_mapr   propertyr
   setterr   r   r   r   r2   rJ   rL   rQ   rS    r   r   r   r      s<    #"'%'6M /"8+M3, ' ' 	4 	4 , , ""	> #	>   __
" 
"   __
" 
" % % 0 00.11r   r   )rW   rH   rer:   kubernetes.client.configurationr   objectr   r[   r   r   <module>r_      s&     	 
 9Q1f Q1r   