
    <g                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   \   e Zd ZdZ	 ddddddZddddd	dZddZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd Zy
)V1ContainerPortzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intstr)container_porthost_ip	host_portnameprotocolcontainerPorthostIPhostPortr   r   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        || _        ||| _	        ||| _
        ||| _        ||| _        yy)z,V1ContainerPort - a model defined in OpenAPIN)r   local_vars_configuration_container_port_host_ip
_host_port_name	_protocoldiscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   r   s          _/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_container_port.py__init__zV1ContainerPort.__init__3   s    #+'4$(@%#
!,"DL &DNDI$DM      c                     | j                   S )a!  Gets the container_port of this V1ContainerPort.  # noqa: E501

        Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.  # noqa: E501

        :return: The container_port of this V1ContainerPort.  # noqa: E501
        :rtype: int
        )r   r   s    r   r   zV1ContainerPort.container_portJ   s     ###r   c                 X    | j                   j                  r|t        d      || _        y)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.  # noqa: E501

        :param container_port: The container_port of this V1ContainerPort.  # noqa: E501
        :type: int
        Nz6Invalid value for `container_port`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1ContainerPort.container_portU   s,     ((??NDZUVV-r   c                     | j                   S )zGets the host_ip of this V1ContainerPort.  # noqa: E501

        What host IP to bind the external port to.  # noqa: E501

        :return: The host_ip of this V1ContainerPort.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1ContainerPort.host_ipc   s     }}r   c                     || _         y)zSets the host_ip of this V1ContainerPort.

        What host IP to bind the external port to.  # noqa: E501

        :param host_ip: The host_ip of this V1ContainerPort.  # noqa: E501
        :type: str
        Nr"   )r   r	   s     r   r	   zV1ContainerPort.host_ipn   s      r   c                     | j                   S )aw  Gets the host_port of this V1ContainerPort.  # noqa: E501

        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.  # noqa: E501

        :return: The host_port of this V1ContainerPort.  # noqa: E501
        :rtype: int
        r   r   s    r   r
   zV1ContainerPort.host_portz   s     r   c                     || _         y)aq  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.  # noqa: E501

        :param host_port: The host_port of this V1ContainerPort.  # noqa: E501
        :type: int
        Nr%   )r   r
   s     r   r
   zV1ContainerPort.host_port   s     $r   c                     | j                   S )aZ  Gets the name of this V1ContainerPort.  # noqa: E501

        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.  # noqa: E501

        :return: The name of this V1ContainerPort.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1ContainerPort.name   s     zzr   c                     || _         y)aO  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.  # noqa: E501

        :param name: The name of this V1ContainerPort.  # noqa: E501
        :type: str
        Nr(   )r   r   s     r   r   zV1ContainerPort.name   s     
r   c                     | j                   S )zGets the protocol of this V1ContainerPort.  # noqa: E501

        Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".  # noqa: E501

        :return: The protocol of this V1ContainerPort.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1ContainerPort.protocol   s     ~~r   c                     || _         y)zSets the protocol of this V1ContainerPort.

        Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".  # noqa: E501

        :param protocol: The protocol of this V1ContainerPort.  # noqa: E501
        :type: str
        Nr+   )r   r   s     r   r   zV1ContainerPort.protocol   s     "r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr/   )xs    r   <lambda>z)V1ContainerPort.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r/   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r/   r   r0   )items    r   r3   z)V1ContainerPort.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr1   r/   dictitems)r   resultattr_values        r   r/   zV1ContainerPort.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr/   r   s    r   to_strzV1ContainerPort.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rG   r   s    r   __repr__zV1ContainerPort.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr;   r   r/   r   others     r   __eq__zV1ContainerPort.__eq__   s&    %1||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrK   rL   s     r   __ne__zV1ContainerPort.__ne__   s&    %1||~00r   )NNNNNN)__name__
__module____qualname____doc__r9   attribute_mapr   propertyr   setterr	   r
   r   r   r/   rG   rI   rN   rP    r   r   r   r      s:     M *M%. $ $ . .   ^^	  	    	$ 	$   
[[	 	   __	" 	"0.11r   r   )rT   rE   rer7   kubernetes.client.configurationr   objectr   rX   r   r   <module>r\      s&     	 
 9V1f V1r   