
    Bvh-                     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.33
    Generated by: https://openapi-generator.tech
    N)Configurationc                      e Zd ZdZ	 dddddddZ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d Zd Zd Zd Zd Zy) V1PodAffinityTermzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1LabelSelectorz	list[str]str)label_selectormatch_label_keysmismatch_label_keysnamespace_selector
namespacestopology_keylabelSelectormatchLabelKeysmismatchLabelKeysnamespaceSelectorr   topologyKeyNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        || _        y)z.V1PodAffinityTerm - a model defined in OpenAPIN)r   local_vars_configuration_label_selector_match_label_keys_mismatch_label_keys_namespace_selector_namespaces_topology_keydiscriminatorr   r	   r
   r   r   r   )selfr   r	   r
   r   r   r   r   s           W/RAG/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_pod_affinity_term.py__init__zV1PodAffinityTerm.__init__5   s    #+'4$(@%#!%$(!#' !!%"0D'$4D!*':D$)&8D#!(DO(    c                     | j                   S )zGets the label_selector of this V1PodAffinityTerm.  # noqa: E501


        :return: The label_selector of this V1PodAffinityTerm.  # noqa: E501
        :rtype: V1LabelSelector
        r   r   s    r   r   z V1PodAffinityTerm.label_selectorO   s     ###r   c                     || _         y)zSets the label_selector of this V1PodAffinityTerm.


        :param label_selector: The label_selector of this V1PodAffinityTerm.  # noqa: E501
        :type: V1LabelSelector
        Nr!   )r   r   s     r   r   z V1PodAffinityTerm.label_selectorY   s      .r   c                     | j                   S )a"  Gets the match_label_keys of this V1PodAffinityTerm.  # noqa: E501

        MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.  # noqa: E501

        :return: The match_label_keys of this V1PodAffinityTerm.  # noqa: E501
        :rtype: list[str]
        r   r"   s    r   r	   z"V1PodAffinityTerm.match_label_keysd   s     %%%r   c                     || _         y)a#  Sets the match_label_keys of this V1PodAffinityTerm.

        MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.  # noqa: E501

        :param match_label_keys: The match_label_keys of this V1PodAffinityTerm.  # noqa: E501
        :type: list[str]
        Nr%   )r   r	   s     r   r	   z"V1PodAffinityTerm.match_label_keyso   s     "2r   c                     | j                   S )a4  Gets the mismatch_label_keys of this V1PodAffinityTerm.  # noqa: E501

        MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.  # noqa: E501

        :return: The mismatch_label_keys of this V1PodAffinityTerm.  # noqa: E501
        :rtype: list[str]
        r   r"   s    r   r
   z%V1PodAffinityTerm.mismatch_label_keys{   s     (((r   c                     || _         y)a8  Sets the mismatch_label_keys of this V1PodAffinityTerm.

        MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.  # noqa: E501

        :param mismatch_label_keys: The mismatch_label_keys of this V1PodAffinityTerm.  # noqa: E501
        :type: list[str]
        Nr(   )r   r
   s     r   r
   z%V1PodAffinityTerm.mismatch_label_keys   s     %8!r   c                     | j                   S )zGets the namespace_selector of this V1PodAffinityTerm.  # noqa: E501


        :return: The namespace_selector of this V1PodAffinityTerm.  # noqa: E501
        :rtype: V1LabelSelector
        r   r"   s    r   r   z$V1PodAffinityTerm.namespace_selector   s     '''r   c                     || _         y)zSets the namespace_selector of this V1PodAffinityTerm.


        :param namespace_selector: The namespace_selector of this V1PodAffinityTerm.  # noqa: E501
        :type: V1LabelSelector
        Nr+   )r   r   s     r   r   z$V1PodAffinityTerm.namespace_selector   s     $6 r   c                     | j                   S )a  Gets the namespaces of this V1PodAffinityTerm.  # noqa: E501

        namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".  # noqa: E501

        :return: The namespaces of this V1PodAffinityTerm.  # noqa: E501
        :rtype: list[str]
        r   r"   s    r   r   zV1PodAffinityTerm.namespaces   s     r   c                     || _         y)a  Sets the namespaces of this V1PodAffinityTerm.

        namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".  # noqa: E501

        :param namespaces: The namespaces of this V1PodAffinityTerm.  # noqa: E501
        :type: list[str]
        Nr.   )r   r   s     r   r   zV1PodAffinityTerm.namespaces   s     &r   c                     | j                   S )a  Gets the topology_key of this V1PodAffinityTerm.  # noqa: E501

        This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.  # noqa: E501

        :return: The topology_key of this V1PodAffinityTerm.  # noqa: E501
        :rtype: str
        )r   r"   s    r   r   zV1PodAffinityTerm.topology_key   s     !!!r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the topology_key of this V1PodAffinityTerm.

        This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.  # noqa: E501

        :param topology_key: The topology_key of this V1PodAffinityTerm.  # noqa: E501
        :type: str
        Nz4Invalid value for `topology_key`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1PodAffinityTerm.topology_key   s,     ((??LDXSTT)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hasattrr6   )xs    r   <lambda>z+V1PodAffinityTerm.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r6   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r6   r   r7   )items    r   r:   z+V1PodAffinityTerm.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr8   r6   dictitems)r   resultattr_values        r   r6   zV1PodAffinityTerm.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pformatr6   r"   s    r   to_strzV1PodAffinityTerm.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rN   r"   s    r   __repr__zV1PodAffinityTerm.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrB   r   r6   r   others     r   __eq__zV1PodAffinityTerm.__eq__   s'    %!23||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrR   rS   s     r   __ne__zV1PodAffinityTerm.__ne__   s'    %!23||~00r   )NNNNNNN)__name__
__module____qualname____doc__r@   attribute_mapr   propertyr   setterr	   r
   r   r   r   r6   rN   rP   rU   rW    r   r   r   r      st    ,'*/!M *,21"%M)4 $ $ . . & & 	2 	2 ) ) 	8  	8 ( ( 6 6     	& 	& " " * *0.11r   r   )r[   rL   rer>   kubernetes.client.configurationr   objectr   r_   r   r   <module>rc      s&     	 
 9n1 n1r   