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@sveZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dS)ÚV1NodeAffinityzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aD V1NodeAffinity - 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. zlist[V1PreferredSchedulingTerm]ÚV1NodeSelector)Ú4preferred_during_scheduling_ignored_during_executionÚ3required_during_scheduling_ignored_during_executionZ/preferredDuringSchedulingIgnoredDuringExecutionZ.requiredDuringSchedulingIgnoredDuringExecutionN)Ú swagger_typesÚ attribute_mapÚ5_preferred_during_scheduling_ignored_during_executionÚ4_required_during_scheduling_ignored_during_execution)Úselfrr©r úZ/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_node_affinity.pyÚ__init__s   zV1NodeAffinity.__init__cCs|jS)aa Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the 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 affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. :rtype: list[V1PreferredSchedulingTerm] )r )r r r rr.s zCV1NodeAffinity.preferred_during_scheduling_ignored_during_executioncCs ||_dS)a” Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the 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 affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. :type: list[V1PreferredSchedulingTerm] N)r )r rr r rr9s cCs|jS)a; Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. :rtype: V1NodeSelector )r )r r r rrEs zBV1NodeAffinity.required_during_scheduling_ignored_during_executioncCs ||_dS)am Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. :type: V1NodeSelector N)r )r rr r rrPs 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)Úxr r rÚfsz(V1NodeAffinity.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemr r rrms) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)r ÚresultÚattrÚ_Úvaluer r rr\s     zV1NodeAffinity.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r r r rÚto_strvszV1NodeAffinity.to_strcCs|jƒS)z* For `print` and `pprint` )r )r r r rÚ__repr__|szV1NodeAffinity.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r Úotherr r rÚ__eq__‚s zV1NodeAffinity.__eq__cCs ||k S)z< Returns true if both objects are not equal r )r r#r r rÚ__ne__‹szV1NodeAffinity.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr r!r$r%r r r rrs     r)r)ÚpprintrÚsixrÚreÚobjectrr r r rÚ s