Ë
    <ªgi  ã                   ó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œZdddœZd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)ÚV1RollingUpdateDeploymentzŠNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Úobject)Ú	max_surgeÚmax_unavailableÚmaxSurgeÚmaxUnavailableNc                 óz   — |€
t        «       }|| _        d| _        d| _        d| _        ||| _        ||| _        yy)z6V1RollingUpdateDeployment - a model defined in OpenAPIN)r   Úlocal_vars_configurationÚ
_max_surgeÚ_max_unavailableÚdiscriminatorr   r   )Úselfr   r   r   s       új/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_rolling_update_deployment.pyÚ__init__z"V1RollingUpdateDeployment.__init__-   sO   € à#Ð+Ü'4£Ð$Ø(@ˆÔ%àˆŒØ $ˆÔØ!ˆÔàÐ Ø&ˆDŒNØÐ&Ø#2ˆDÕ ð 'ó    c                 ó   — | j                   S )ab  Gets the max_surge of this V1RollingUpdateDeployment.  # noqa: E501

        The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.  # noqa: E501

        :return: The max_surge of this V1RollingUpdateDeployment.  # noqa: E501
        :rtype: object
        ©r   ©r   s    r   r   z#V1RollingUpdateDeployment.max_surge<   s   € ð ‰Ðr   c                 ó   — || _         y)a\  Sets the max_surge of this V1RollingUpdateDeployment.

        The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.  # noqa: E501

        :param max_surge: The max_surge of this V1RollingUpdateDeployment.  # noqa: E501
        :type: object
        Nr   )r   r   s     r   r   z#V1RollingUpdateDeployment.max_surgeG   s   € ð $ˆr   c                 ó   — | j                   S )aP  Gets the max_unavailable of this V1RollingUpdateDeployment.  # noqa: E501

        The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.  # noqa: E501

        :return: The max_unavailable of this V1RollingUpdateDeployment.  # noqa: E501
        :rtype: object
        ©r   r   s    r   r   z)V1RollingUpdateDeployment.max_unavailableS   s   € ð ×$Ñ$Ð$r   c                 ó   — || _         y)aP  Sets the max_unavailable of this V1RollingUpdateDeployment.

        The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.  # noqa: E501

        :param max_unavailable: The max_unavailable of this V1RollingUpdateDeployment.  # noqa: E501
        :type: object
        Nr   )r   r   s     r   r   z)V1RollingUpdateDeployment.max_unavailable^   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©Úhasattrr   )Úxs    r   Ú<lambda>z3V1RollingUpdateDeployment.to_dict.<locals>.<lambda>r   s   € ¬W°Q¸	Ô-B˜aŸi™i›kÐIÈÐIr   r   c                 óT   — t        | d   d«      r| d   | d   j                  «       fS | S )Né   r   r   r   )Úitems    r   r!   z3V1RollingUpdateDeployment.to_dict.<locals>.<lambda>y   s6   € Ü˜t A™w¨	Ô2ð #' q¡'¨4°©7¯?©?Ó+<Ð!=ð "=Ø8<ð"=r   )ÚsixÚ	iteritemsÚopenapi_typesÚgetattrÚ
isinstanceÚlistÚmapr   r   ÚdictÚitems)r   ÚresultÚattrÚ_Úvalues        r   r   z!V1RollingUpdateDeployment.to_dictj   s¯   € àˆä—}‘} T×%7Ñ%7Ö8‰GˆD!Ü˜D $Ó'ˆEÜ˜%¤Ô&Ü#¤CÙIØó%ó  t’ô ˜ 	Ô*Ø$Ÿ}™}›t’Ü˜E¤4Ô(Ü#¤Cñ=à—K‘K“Mó%ó  t’ð  %t’ð! 9ð$ ˆr   c                 óH   — t        j                  | j                  «       «      S )z.Returns the string representation of the model)ÚpprintÚpformatr   r   s    r   Úto_strz V1RollingUpdateDeployment.to_str‚   s   € ä~‰~˜dŸl™l›nÓ-Ð-r   c                 ó"   — | j                  «       S )zFor `print` and `pprint`)r5   r   s    r   Ú__repr__z"V1RollingUpdateDeployment.__repr__†   s   € à{‰{‹}Ðr   c                 óf   — t        |t        «      sy| j                  «       |j                  «       k(  S )z&Returns true if both objects are equalF©r)   r   r   ©r   Úothers     r   Ú__eq__z V1RollingUpdateDeployment.__eq__Š   s'   € ä˜%Ô!:Ô;Øà|‰|‹~ §¡£Ñ0Ð0r   c                 óf   — t        |t        «      sy| j                  «       |j                  «       k7  S )z*Returns true if both objects are not equalTr9   r:   s     r   Ú__ne__z V1RollingUpdateDeployment.__ne__‘   s'   € ä˜%Ô!:Ô;Øà|‰|‹~ §¡£Ñ0Ð0r   )NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   Úattribute_mapr   Úpropertyr   Úsetterr   r   r5   r7   r<   r>   © r   r   r   r      s¤   „ ñðð Ø#ñ€Mð  Ø+ñ€Mó
3ð ñó ðð ×Ññ	$ó ð	$ð ñ%ó ð%ð ×Ññ	0ó ð	0òò0.òò1ó1r   r   )rB   r3   Úrer%   Úkubernetes.client.configurationr   r   r   rF   r   r   Ú<module>rI      s&   ðñó Û 	ã 
å 9ôA1 õ A1r   