3 fY @s8dZddlmZddlmZddlZGdddeZdS)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@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS) V1Affinityzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS) a@ V1Affinity - 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. V1NodeAffinity V1PodAffinityV1PodAntiAffinity) node_affinity pod_affinitypod_anti_affinityZ nodeAffinityZ podAffinityZpodAntiAffinityN) swagger_types attribute_map_node_affinity _pod_affinity_pod_anti_affinity)selfrr r rU/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_affinity.py__init__s   zV1Affinity.__init__cCs|jS)z Gets the node_affinity of this V1Affinity. Describes node affinity scheduling rules for the pod. :return: The node_affinity of this V1Affinity. :rtype: V1NodeAffinity )r )rrrrr1s zV1Affinity.node_affinitycCs ||_dS)z Sets the node_affinity of this V1Affinity. Describes node affinity scheduling rules for the pod. :param node_affinity: The node_affinity of this V1Affinity. :type: V1NodeAffinity N)r )rrrrrr<s cCs|jS)a  Gets the pod_affinity of this V1Affinity. Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). :return: The pod_affinity of this V1Affinity. :rtype: V1PodAffinity )r)rrrrr Hs zV1Affinity.pod_affinitycCs ||_dS)a Sets the pod_affinity of this V1Affinity. Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). :param pod_affinity: The pod_affinity of this V1Affinity. :type: V1PodAffinity N)r)rr rrrr Ss cCs|jS)a$ Gets the pod_anti_affinity of this V1Affinity. Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). :return: The pod_anti_affinity of this V1Affinity. :rtype: V1PodAntiAffinity )r)rrrrr _s zV1Affinity.pod_anti_affinitycCs ||_dS)a4 Sets the pod_anti_affinity of this V1Affinity. Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. :type: V1PodAntiAffinity N)r)rr rrrr js cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz$V1Affinity.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrvs     zV1Affinity.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1Affinity.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__szV1Affinity.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1Affinity.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrr__ne__szV1Affinity.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r rr$r%r(r)rrrrrs      r)r-pprintrsixrreobjectrrrrr s