3 fY@s8dZddlmZddlmZddlZGdddeZdS)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@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS)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. strint)nameportprotocolrrr N) swagger_types attribute_map_name_port _protocol)selfrrr rZ/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 cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz(V1EndpointPort.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrxs     zV1EndpointPort.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1EndpointPort.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__szV1EndpointPort.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__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__rpropertyrsetterrr rr$r%r(r)rrrrrs      r)r-pprintrsixrreobjectrrrrr s