
                         >    S r SSKJr  SSKJr  SSKr " S S\5      rg)z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                   p   \ rS rSrSr SSSSSS.rSSSS	S
S.r     SS jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS rS rS rS rS rSrg)V1ContainerPort   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
intstr)container_porthost_ip	host_portnameprotocolcontainerPorthostIPhostPortr   r   Nc                     SU l         SU l        SU l        SU l        SU l        SU l        Xl        Ub  X l        Ub  X0l        Ub  X@l	        Ub  XPl
        gg)z.
V1ContainerPort - a model defined in Swagger
N)_container_port_host_ip
_host_port_name	_protocoldiscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   s         =lib/third_party/kubernetes/client/models/v1_container_port.py__init__V1ContainerPort.__init__.   sg      DDMDODJDND(l nim     c                     U R                   $ )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   r   s    r   r
   V1ContainerPort.container_portI   s     r   c                 ,    Uc  [        S5      eXl        g)z
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   )r   r
   s     r   r
   r    U   s     OPP)r   c                     U R                   $ )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   r   s    r   r   V1ContainerPort.host_ipd   s     ==r   c                     Xl         g)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
Nr$   )r   r   s     r   r   r%   o   s	     Mr   c                     U R                   $ )a-  
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   r   s    r   r   V1ContainerPort.host_port{   s     ??r   c                     Xl         g)a5  
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
Nr(   )r   r   s     r   r   r)      s	      Or   c                     U R                   $ )a  
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   r   s    r   r   V1ContainerPort.name   s     ::r   c                     Xl         g)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
Nr,   )r   r   s     r   r   r-      s	     Jr   c                     U R                   $ )z
Gets the protocol of this V1ContainerPort.
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".

:return: The protocol of this V1ContainerPort.
:rtype: str
r   r   s    r   r   V1ContainerPort.protocol   s     >>r   c                     Xl         g)z
Sets the protocol of this V1ContainerPort.
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".

:param protocol: The protocol of this V1ContainerPort.
:type: str
Nr0   )r   r   s     r   r   r1      s	     Nr   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr5   )xs    r   <lambda>)V1ContainerPort.to_dict.<locals>.<lambda>   s    I)>)>!))+EAEr   r5   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r5   r   r6   )items    r   r9   r:      s9    47I.. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr7   r5   dictitems)r   resultattr_values        r   r5   V1ContainerPort.to_dict   s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   r5   r   s    r   to_strV1ContainerPort.to_str   s     4<<>""r   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rK   r   s    r   __repr__V1ContainerPort.__repr__   s     ;;=r   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)r@   r   __dict__r   others     r   __eq__V1ContainerPort.__eq__   s'     e_--==ENN**r   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rR   s     r   __ne__V1ContainerPort.__ne__   s     r   )r   r   r   r   r   r
   r   r   r   r   r   )NNNNN)__name__
__module____qualname____firstlineno____doc__r>   attribute_mapr   propertyr
   setterr   r   r   r   r5   rK   rN   rT   rX   __static_attributes__rW   r   r   r   r      sK    - (- #6 	  	  * *   >>	 	 
 
     
 
 ;;    ??	 	.#+r   r   )r^   pprintr   sixr   reobjectr   rW   r   r   <module>rg      s#   	   	ff fr   