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)ÚV1WeightedPodAffinityTermzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aO V1WeightedPodAffinityTerm - 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. ÚV1PodAffinityTermÚint)Úpod_affinity_termÚweightZpodAffinityTermrN)Ú swagger_typesÚ attribute_mapÚ_pod_affinity_termÚ_weight)Úselfrr©rúg/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_weighted_pod_affinity_term.pyÚ__init__s   z"V1WeightedPodAffinityTerm.__init__cCs|jS)a  Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. Required. A pod affinity term, associated with the corresponding weight. :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. :rtype: V1PodAffinityTerm )r )r rrrr.s z+V1WeightedPodAffinityTerm.pod_affinity_termcCs|dkrtdƒ‚||_dS)a Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. Required. A pod affinity term, associated with the corresponding weight. :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. :type: V1PodAffinityTerm Nz9Invalid value for `pod_affinity_term`, must not be `None`)Ú ValueErrorr )r rrrrr9s cCs|jS)z÷ Gets the weight of this V1WeightedPodAffinityTerm. weight associated with matching the corresponding podAffinityTerm, in the range 1-100. :return: The weight of this V1WeightedPodAffinityTerm. :rtype: int )r )r rrrrGs z V1WeightedPodAffinityTerm.weightcCs|dkrtdƒ‚||_dS)zü Sets the weight of this V1WeightedPodAffinityTerm. weight associated with matching the corresponding podAffinityTerm, in the range 1-100. :param weight: The weight of this V1WeightedPodAffinityTerm. :type: int Nz.Invalid value for `weight`, must not be `None`)rr )r rrrrrRs 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Újsz3V1WeightedPodAffinityTerm.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrrqs) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)r ÚresultÚattrÚ_Úvaluerrrr`s     z!V1WeightedPodAffinityTerm.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r rrrÚto_strzsz V1WeightedPodAffinityTerm.to_strcCs|jƒS)z* For `print` and `pprint` )r")r rrrÚ__repr__€sz"V1WeightedPodAffinityTerm.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r ÚotherrrrÚ__eq__†s z V1WeightedPodAffinityTerm.__eq__cCs ||k S)z< Returns true if both objects are not equal r)r r%rrrÚ__ne__sz V1WeightedPodAffinityTerm.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr"r#r&r'rrrrrs    r)r+ÚpprintrÚsixrÚreÚobjectrrrrrÚ s