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)ÚV1ContainerPortzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsFddddddœ|_ddddddœ|_||_||_||_||_||_d S) aE V1ContainerPort - 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. ÚintÚstr)Úcontainer_portÚhost_ipÚ host_portÚnameÚprotocolZ containerPortÚhostIPZhostPortr r N)Ú swagger_typesÚ attribute_mapÚ_container_portÚ_host_ipÚ _host_portÚ_nameÚ _protocol)Úselfrrr r r ©rú[/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_container_port.pyÚ__init__s   zV1ContainerPort.__init__cCs|jS)zÿ Gets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :return: The container_port of this V1ContainerPort. :rtype: int )r)rrrrr7s zV1ContainerPort.container_portcCs|dkrtdƒ‚||_dS)a  Sets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :param container_port: The container_port of this V1ContainerPort. :type: int Nz6Invalid value for `container_port`, must not be `None`)Ú ValueErrorr)rrrrrrBs cCs|jS)z¹ Gets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :return: The host_ip of this V1ContainerPort. :rtype: str )r)rrrrrPs zV1ContainerPort.host_ipcCs ||_dS)z¿ Sets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :param host_ip: The host_ip of this V1ContainerPort. :type: str N)r)rrrrrr[s cCs|jS)aU Gets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :return: The host_port of this V1ContainerPort. :rtype: int )r)rrrrr gs zV1ContainerPort.host_portcCs ||_dS)a] Sets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :param host_port: The host_port of this V1ContainerPort. :type: int N)r)rr rrrr rs cCs|jS)a8 Gets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1ContainerPort. :rtype: str )r)rrrrr ~s zV1ContainerPort.namecCs ||_dS)a; Sets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1ContainerPort. :type: str N)r)rr rrrr ‰s cCs|jS)zÊ Gets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to "TCP". :return: The protocol of this V1ContainerPort. :rtype: str )r)rrrrr •s zV1ContainerPort.protocolcCs ||_dS)zÑ Sets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to "TCP". :param protocol: The protocol of this V1ContainerPort. :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)V1ContainerPort.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     zV1ContainerPort.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÆszV1ContainerPort.to_strcCs|jƒS)z* For `print` and `pprint` )r))rrrrÚ__repr__ÌszV1ContainerPort.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r rÚ__dict__)rÚotherrrrÚ__eq__Òs zV1ContainerPort.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr,rrrÚ__ne__ÛszV1ContainerPort.__ne__)NNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr r r rr)r*r-r.rrrrrs"        r)r2ÚpprintrÚsixrÚreÚobjectrrrrrÚ s