Ë
    <ªgW   ã                   ó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)ÚV1PodAntiAffinityzŠNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    zlist[V1WeightedPodAffinityTerm]zlist[V1PodAffinityTerm])Ú4preferred_during_scheduling_ignored_during_executionÚ3required_during_scheduling_ignored_during_executionÚ/preferredDuringSchedulingIgnoredDuringExecutionÚ.requiredDuringSchedulingIgnoredDuringExecutionNc                 óz   — |€
t        «       }|| _        d| _        d| _        d| _        ||| _        ||| _        yy)z.V1PodAntiAffinity - a model defined in OpenAPIN)r   Úlocal_vars_configurationÚ5_preferred_during_scheduling_ignored_during_executionÚ4_required_during_scheduling_ignored_during_executionÚdiscriminatorr   r   )Úselfr   r   r   s       úb/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_pod_anti_affinity.pyÚ__init__zV1PodAntiAffinity.__init__-   sR   € à#Ð+Ü'4£Ð$Ø(@ˆÔ%àEIˆÔBØDHˆÔAØ!ˆÔà?ÐKØH|ˆDÔEØ>ÐJØGzˆDÕDð Kó    c                 ó   — | j                   S )a¡  Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501

        The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.  # noqa: E501

        :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501
        :rtype: list[V1WeightedPodAffinityTerm]
        ©r   ©r   s    r   r   zFV1PodAntiAffinity.preferred_during_scheduling_ignored_during_execution<   s   € ð ×IÑIÐIr   c                 ó   — || _         y)aÆ  Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.

        The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.  # noqa: E501

        :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501
        :type: list[V1WeightedPodAffinityTerm]
        Nr   )r   r   s     r   r   zFV1PodAntiAffinity.preferred_during_scheduling_ignored_during_executionG   s   € ð FzˆÕBr   c                 ó   — | j                   S )a  Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501

        If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.  # noqa: E501

        :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501
        :rtype: list[V1PodAffinityTerm]
        ©r   r   s    r   r   zEV1PodAntiAffinity.required_during_scheduling_ignored_during_executionS   s   € ð ×HÑHÐHr   c                 ó   — || _         y)a1  Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.

        If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.  # noqa: E501

        :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.  # noqa: E501
        :type: list[V1PodAffinityTerm]
        Nr   )r   r   s     r   r   zEV1PodAntiAffinity.required_during_scheduling_ignored_during_execution^   s   € ð ExˆÕAr   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>z+V1PodAntiAffinity.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    z+V1PodAntiAffinity.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V1PodAntiAffinity.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V1PodAntiAffinity.to_str‚   s   € ä~‰~˜dŸl™l›nÓ-Ð-r   c                 ó"   — | j                  «       S )zFor `print` and `pprint`)r4   r   s    r   Ú__repr__zV1PodAntiAffinity.__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V1PodAntiAffinity.__eq__Š   s'   € ä˜%Ô!2Ô3Øà|‰|‹~ §¡£Ñ0Ð0r   c                 óf   — t        |t        «      sy| j                  «       |j                  «       k7  S )z*Returns true if both objects are not equalTr8   r9   s     r   Ú__ne__zV1PodAntiAffinity.__ne__‘   s'   € ä˜%Ô!2Ô3Øà|‰|‹~ §¡£Ñ0Ð0r   )NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r&   Úattribute_mapr   Úpropertyr   Úsetterr   r   r4   r6   r;   r=   © r   r   r   r      s³   „ ñðð AbØ?Xñ€Mð ArØ?oñ€Mó
{ð ñJó ðJð :×@Ñ@ñ	zó Að	zð ñIó ðIð 9×?Ñ?ñ	xó @ð	xòò0.òò1ó1r   r   )rA   r2   Úrer$   Úkubernetes.client.configurationr   Úobjectr   rE   r   r   Ú<module>rI      s&   ðñó Û 	ã 
å 9ôA1˜õ A1r   