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 dd„Z dd„Z dd„Z dd„Z dd„ZdS)ÚV1EndpointPortzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2ddddœ|_ddddœ|_||_||_||_dS)aD V1EndpointPort - 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)ÚnameÚportÚprotocolrrr N)Ú swagger_typesÚ attribute_mapÚ_nameÚ_portÚ _protocol)Úselfrrr ©rúZ/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_endpoint_port.pyÚ__init__s   zV1EndpointPort.__init__cCs|jS)zú Gets the name of this V1EndpointPort. The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :return: The name of this V1EndpointPort. :rtype: str )r )rrrrr1s zV1EndpointPort.namecCs ||_dS)zý Sets the name of this V1EndpointPort. The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :param name: The name of this V1EndpointPort. :type: str N)r )rrrrrr<s cCs|jS)z§ Gets the port of this V1EndpointPort. The port number of the endpoint. :return: The port of this V1EndpointPort. :rtype: int )r )rrrrrHs zV1EndpointPort.portcCs|dkrtdƒ‚||_dS)zª Sets the port of this V1EndpointPort. The port number of the endpoint. :param port: The port of this V1EndpointPort. :type: int Nz,Invalid value for `port`, must not be `None`)Ú ValueErrorr )rrrrrrSs cCs|jS)zÑ Gets the protocol of this V1EndpointPort. The IP protocol for this port. Must be UDP or TCP. Default is TCP. :return: The protocol of this V1EndpointPort. :rtype: str )r)rrrrr as zV1EndpointPort.protocolcCs ||_dS)zØ Sets the protocol of this V1EndpointPort. The IP protocol for this port. Must be UDP or TCP. Default is TCP. :param protocol: The protocol of this V1EndpointPort. :type: str N)r)rr rrrr ls 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(V1EndpointPort.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Ú_Úvaluerrrrxs     zV1EndpointPort.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str’szV1EndpointPort.to_strcCs|jƒS)z* For `print` and `pprint` )r$)rrrrÚ__repr__˜szV1EndpointPort.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__žs zV1EndpointPort.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrrÚ__ne__§szV1EndpointPort.__ne__)NNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr rr$r%r(r)rrrrrs      r)r-ÚpprintrÚsixrÚreÚobjectrrrrrÚ s