
                         >    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)V1ServicePort   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
strintobject)name	node_portportprotocoltarget_portr   nodePortr   r   
targetPortNc                     SU l         SU l        SU l        SU l        SU l        SU l        Ub  Xl        Ub  X l        X0l        Ub  X@l	        Ub  XPl
        gg)z,
V1ServicePort - a model defined in Swagger
N_name
_node_port_port	_protocol_target_portdiscriminatorr   r   r   r   r   )selfr   r   r   r   r   s         ;lib/third_party/kubernetes/client/models/v1_service_port.py__init__V1ServicePort.__init__.   sg     DJDODJDNDDi nIm$     c                     U R                   $ )aK  
Gets the name of this V1ServicePort.
The name of this port within the service. This must be a DNS_LABEL. All
ports within a ServiceSpec must have unique names. This maps to the
'Name' field in EndpointPort objects. Optional if only one ServicePort
is defined on this service.

:return: The name of this V1ServicePort.
:rtype: str
r   r   s    r   r   V1ServicePort.nameI   s     ::r   c                     Xl         g)aN  
Sets the name of this V1ServicePort.
The name of this port within the service. This must be a DNS_LABEL. All
ports within a ServiceSpec must have unique names. This maps to the
'Name' field in EndpointPort objects. Optional if only one ServicePort
is defined on this service.

:param name: The name of this V1ServicePort.
:type: str
Nr    )r   r   s     r   r   r"   W   s	     Jr   c                     U R                   $ )a  
Gets the node_port of this V1ServicePort.
The port on each node on which this service is exposed when
type=NodePort or LoadBalancer. Usually assigned by the system. If
specified, it will be allocated to the service if unused or else
creation of the service will fail. Default is to auto-allocate a port if
the ServiceType of this Service requires one. More info:
https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

:return: The node_port of this V1ServicePort.
:rtype: int
r   r!   s    r   r   V1ServicePort.node_portf   s     ??r   c                     Xl         g)a  
Sets the node_port of this V1ServicePort.
The port on each node on which this service is exposed when
type=NodePort or LoadBalancer. Usually assigned by the system. If
specified, it will be allocated to the service if unused or else
creation of the service will fail. Default is to auto-allocate a port if
the ServiceType of this Service requires one. More info:
https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

:param node_port: The node_port of this V1ServicePort.
:type: int
Nr%   )r   r   s     r   r   r&   v   s	      Or   c                     U R                   $ )z
Gets the port of this V1ServicePort.
The port that will be exposed by this service.

:return: The port of this V1ServicePort.
:rtype: int
)r   r!   s    r   r   V1ServicePort.port   s     ::r   c                 ,    Uc  [        S5      eXl        g)z
Sets the port of this V1ServicePort.
The port that will be exposed by this service.

:param port: The port of this V1ServicePort.
:type: int
Nz,Invalid value for `port`, must not be `None`)
ValueErrorr   )r   r   s     r   r   r)      s     |EFFJr   c                     U R                   $ )z
Gets the protocol of this V1ServicePort.
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
Default is TCP.

:return: The protocol of this V1ServicePort.
:rtype: str
r   r!   s    r   r   V1ServicePort.protocol   s     >>r   c                     Xl         g)z
Sets the protocol of this V1ServicePort.
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
Default is TCP.

:param protocol: The protocol of this V1ServicePort.
:type: str
Nr-   )r   r   s     r   r   r.      s	     Nr   c                     U R                   $ )a  
Gets the target_port of this V1ServicePort.
Number or name of the port to access on the pods targeted by the
service. Number must be in the range 1 to 65535. Name must be an
IANA_SVC_NAME. If this is a string, it will be looked up as a named port
in the target Pod's container ports. If this is not specified, the value
of the 'port' field is used (an identity map). This field is ignored for
services with clusterIP=None, and should be omitted or set equal to the
'port' field. More info:
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service

:return: The target_port of this V1ServicePort.
:rtype: object
r   r!   s    r   r   V1ServicePort.target_port   s      r   c                     Xl         g)a  
Sets the target_port of this V1ServicePort.
Number or name of the port to access on the pods targeted by the
service. Number must be in the range 1 to 65535. Name must be an
IANA_SVC_NAME. If this is a string, it will be looked up as a named port
in the target Pod's container ports. If this is not specified, the value
of the 'port' field is used (an identity map). This field is ignored for
services with clusterIP=None, and should be omitted or set equal to the
'port' field. More info:
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service

:param target_port: The target_port of this V1ServicePort.
:type: object
Nr1   )r   r   s     r   r   r2      s
    " $r   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hasattrr6   )xs    r   <lambda>'V1ServicePort.to_dict.<locals>.<lambda>   s    I)>)>!))+EAEr   r6   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r6   r   r7   )items    r   r:   r;      s9    47I.. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr8   r6   dictitems)r   resultattr_values        r   r6   V1ServicePort.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   r6   r!   s    r   to_strV1ServicePort.to_str   s     4<<>""r   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rL   r!   s    r   __repr__V1ServicePort.__repr__   s     ;;=r   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rA   r   __dict__r   others     r   __eq__V1ServicePort.__eq__  s'     e]++==ENN**r   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rS   s     r   __ne__V1ServicePort.__ne__
  s     r   r   )NNNNN)__name__
__module____qualname____firstlineno____doc__r?   attribute_mapr   propertyr   setterr   r   r   r   r6   rL   rO   rU   rY   __static_attributes__rX   r   r   r   r      sK    - !- %6   ;;           ;;  	 	 ??
 
  " $ $$.#+r   r   )r_   pprintr   sixr   rer
   r   rX   r   r   <module>rg      s#   	   	|F |r   