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)ÚV1PreferredSchedulingTermzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aO V1PreferredSchedulingTerm - 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. ÚV1NodeSelectorTermÚint)Ú preferenceÚweightrrN)Ú swagger_typesÚ attribute_mapÚ _preferenceÚ_weight)Úselfrr©rúf/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_preferred_scheduling_term.pyÚ__init__s   z"V1PreferredSchedulingTerm.__init__cCs|jS)z÷ Gets the preference of this V1PreferredSchedulingTerm. A node selector term, associated with the corresponding weight. :return: The preference of this V1PreferredSchedulingTerm. :rtype: V1NodeSelectorTerm )r )r rrrr.s z$V1PreferredSchedulingTerm.preferencecCs|dkrtdƒ‚||_dS)a Sets the preference of this V1PreferredSchedulingTerm. A node selector term, associated with the corresponding weight. :param preference: The preference of this V1PreferredSchedulingTerm. :type: V1NodeSelectorTerm Nz2Invalid value for `preference`, must not be `None`)Ú ValueErrorr )r rrrrr9s cCs|jS)zø Gets the weight of this V1PreferredSchedulingTerm. Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. :return: The weight of this V1PreferredSchedulingTerm. :rtype: int )r )r rrrrGs z V1PreferredSchedulingTerm.weightcCs|dkrtdƒ‚||_dS)zý Sets the weight of this V1PreferredSchedulingTerm. Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. :param weight: The weight of this V1PreferredSchedulingTerm. :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Újsz3V1PreferredSchedulingTerm.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!V1PreferredSchedulingTerm.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r rrrÚto_strzsz V1PreferredSchedulingTerm.to_strcCs|jƒS)z* For `print` and `pprint` )r")r rrrÚ__repr__€sz"V1PreferredSchedulingTerm.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r ÚotherrrrÚ__eq__†s z V1PreferredSchedulingTerm.__eq__cCs ||k S)z< Returns true if both objects are not equal r)r r%rrrÚ__ne__sz V1PreferredSchedulingTerm.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr"r#r&r'rrrrrs    r)r+ÚpprintrÚsixrÚreÚobjectrrrrrÚ s