3 f÷ÔY÷ã@s8dZddlmZddlmZddlZGdd„deƒZdS)zç Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git é)Úpformat)Ú iteritemsNc@s�eZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ dd„Z dd„Z dd„Z dd„Z dd„ZdS)ÚV1PodAffinityTermzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2ddddœ|_ddddœ|_||_||_||_dS) aG V1PodAffinityTerm - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. ÚV1LabelSelectorz list[str]Ústr)Úlabel_selectorÚ namespacesÚ topology_keyZ labelSelectorrZ topologyKeyN)Ú swagger_typesÚ attribute_mapÚ_label_selectorÚ _namespacesÚ _topology_key)Úselfrrr ©rú^/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_pod_affinity_term.pyÚ__init__s   zV1PodAffinityTerm.__init__cCs|jS)zæ Gets the label_selector of this V1PodAffinityTerm. A label query over a set of resources, in this case pods. :return: The label_selector of this V1PodAffinityTerm. :rtype: V1LabelSelector )r )rrrrr1s z V1PodAffinityTerm.label_selectorcCs ||_dS)zó Sets the label_selector of this V1PodAffinityTerm. A label query over a set of resources, in this case pods. :param label_selector: The label_selector of this V1PodAffinityTerm. :type: V1LabelSelector N)r )rrrrrr<s cCs|jS)a$ Gets the namespaces of this V1PodAffinityTerm. namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" :return: The namespaces of this V1PodAffinityTerm. :rtype: list[str] )r )rrrrrHs zV1PodAffinityTerm.namespacescCs ||_dS)a- Sets the namespaces of this V1PodAffinityTerm. namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" :param namespaces: The namespaces of this V1PodAffinityTerm. :type: list[str] N)r )rrrrrrSs cCs|jS)a Gets 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. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies" ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. :return: The topology_key of this V1PodAffinityTerm. :rtype: str )r)rrrrr _s zV1PodAffinityTerm.topology_keycCs ||_dS)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. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies" ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. :param topology_key: The topology_key of this V1PodAffinityTerm. :type: str N)r)rr rrrr js cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)ÚxrrrÚ€sz+V1PodAffinityTerm.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr‡s) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrrvs     zV1PodAffinityTerm.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str�szV1PodAffinityTerm.to_strcCs|jƒS)z* For `print` and `pprint` )r#)rrrrÚ__repr__–szV1PodAffinityTerm.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__œs zV1PodAffinityTerm.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr&rrrÚ__ne__¥szV1PodAffinityTerm.__ne__)NNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr rr#r$r'r(rrrrrs      r)r,ÚpprintrÚsixrÚreÚobjectrrrrrÚ s