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 dd„Z dd„Z dd„Z dd„Zdd„ZdS)ÚV1EndpointAddresszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<dddddœ|_dddddœ|_||_||_||_||_dS) aG V1EndpointAddress - 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ÚV1ObjectReference)ÚhostnameÚipÚ node_nameÚ target_refrrZnodeNameZ targetRefN)Ú swagger_typesÚ attribute_mapÚ _hostnameÚ_ipÚ _node_nameÚ _target_ref)Úselfrrr r ©rú]/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_endpoint_address.pyÚ__init__s   zV1EndpointAddress.__init__cCs|jS)z² Gets the hostname of this V1EndpointAddress. The Hostname of this endpoint :return: The hostname of this V1EndpointAddress. :rtype: str )r )rrrrr4s zV1EndpointAddress.hostnamecCs ||_dS)z¹ Sets the hostname of this V1EndpointAddress. The Hostname of this endpoint :param hostname: The hostname of this V1EndpointAddress. :type: str N)r )rrrrrr?s cCs|jS)a” Gets the ip of this V1EndpointAddress. The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. :return: The ip of this V1EndpointAddress. :rtype: str )r)rrrrrKs zV1EndpointAddress.ipcCs|dkrtdƒ‚||_dS)a• Sets the ip of this V1EndpointAddress. The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. :param ip: The ip of this V1EndpointAddress. :type: str Nz*Invalid value for `ip`, must not be `None`)Ú ValueErrorr)rrrrrrVs cCs|jS)zõ Gets the node_name of this V1EndpointAddress. Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. :return: The node_name of this V1EndpointAddress. :rtype: str )r)rrrrr ds zV1EndpointAddress.node_namecCs ||_dS)zý Sets the node_name of this V1EndpointAddress. Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. :param node_name: The node_name of this V1EndpointAddress. :type: str N)r)rr rrrr os cCs|jS)zÒ Gets the target_ref of this V1EndpointAddress. Reference to object providing the endpoint. :return: The target_ref of this V1EndpointAddress. :rtype: V1ObjectReference )r)rrrrr {s zV1EndpointAddress.target_refcCs ||_dS)zÛ Sets the target_ref of this V1EndpointAddress. Reference to object providing the endpoint. :param target_ref: The target_ref of this V1EndpointAddress. :type: V1ObjectReference 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+V1EndpointAddress.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Ú_Úvaluerrrr’s     zV1EndpointAddress.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str¬szV1EndpointAddress.to_strcCs|jƒS)z* For `print` and `pprint` )r&)rrrrÚ__repr__²szV1EndpointAddress.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__¸s zV1EndpointAddress.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrrÚ__ne__ÁszV1EndpointAddress.__ne__)NNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr r rr&r'r*r+rrrrrs       r)r/ÚpprintrÚsixrÚreÚobjectrrrrrÚ s