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 edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Zdd„Zdd„ZdS)Ú V1Tolerationzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsFddddddœ|_ddddddœ|_||_||_||_||_||_d S) aB V1Toleration - 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. ÚstrÚint)ÚeffectÚkeyÚoperatorÚtoleration_secondsÚvaluerrr ZtolerationSecondsr N)Ú swagger_typesÚ attribute_mapÚ_effectÚ_keyÚ _operatorÚ_toleration_secondsÚ_value)Úselfrrr r r ©rúW/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_toleration.pyÚ__init__s   zV1Toleration.__init__cCs|jS)a& Gets the effect of this V1Toleration. Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. :return: The effect of this V1Toleration. :rtype: str )r)rrrrr7s zV1Toleration.effectcCs ||_dS)a+ Sets the effect of this V1Toleration. Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. :param effect: The effect of this V1Toleration. :type: str N)r)rrrrrrBs cCs|jS)a> Gets the key of this V1Toleration. Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. :return: The key of this V1Toleration. :rtype: str )r)rrrrrNs zV1Toleration.keycCs ||_dS)a@ Sets the key of this V1Toleration. Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. :param key: The key of this V1Toleration. :type: str N)r)rrrrrrYs cCs|jS)af Gets the operator of this V1Toleration. Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. :return: The operator of this V1Toleration. :rtype: str )r)rrrrr es zV1Toleration.operatorcCs ||_dS)am Sets the operator of this V1Toleration. Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. :param operator: The operator of this V1Toleration. :type: str N)r)rr rrrr ps cCs|jS)aÚ Gets the toleration_seconds of this V1Toleration. TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. :return: The toleration_seconds of this V1Toleration. :rtype: int )r)rrrrr |s zV1Toleration.toleration_secondscCs ||_dS)aë Sets the toleration_seconds of this V1Toleration. TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. :param toleration_seconds: The toleration_seconds of this V1Toleration. :type: int N)r)rr rrrr ‡s cCs|jS)a Gets the value of this V1Toleration. Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. :return: The value of this V1Toleration. :rtype: str )r)rrrrr “s zV1Toleration.valuecCs ||_dS)a Sets the value of this V1Toleration. Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. :param value: The value of this V1Toleration. :type: str N)r)rr rrrr žs 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&V1Toleration.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Ú_r rrrrªs     zV1Toleration.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÄszV1Toleration.to_strcCs|jƒS)z* For `print` and `pprint` )r&)rrrrÚ__repr__ÊszV1Toleration.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__Ðs zV1Toleration.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrrÚ__ne__ÙszV1Toleration.__ne__)NNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr r r rr&r'r*r+rrrrrs"        r)r/ÚpprintrÚsixrÚreÚobjectrrrrrÚ s