
    [j^                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                   j   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dZd Zd Zd Zd Zd
S )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          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        || _	        ||| _
        ||| _        ||| _        |	|| _        dS dS )z,V1ContainerPort - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_container_port_host_ip
_host_port_name	_protocoldiscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   r   s          g/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_container_port.py__init__zV1ContainerPort.__init__6   s    #+'4'E'G'G$(@%#
!,"DL &DNDI$DMMM      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_portM   s     ##r   c                 N    | j         j        r|t          d          || _        dS )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 container_port: int
        Nz6Invalid value for `container_port`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r
   s     r   r
   zV1ContainerPort.container_portX   s5     (? 	WNDZUV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_ipf   s     }r   c                     || _         dS )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 host_ip: str
        Nr%   )r   r   s     r   r   zV1ContainerPort.host_ipq   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_port}   s     r   c                     || _         dS )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.  # noqa: E501

        :param host_port: The host_port of this V1ContainerPort.  # noqa: E501
        :type host_port: 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     zr   c                     || _         dS )aT  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 name: 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                     || _         dS )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 protocol: str
        Nr.   )r   r   s     r   r   zV1ContainerPort.protocol   s     "r   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   r2   argslen)xr5   	serializes     r   convertz(V1ContainerPort.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r   c                      |           S )N )r7   r9   s    r   <lambda>z)V1ContainerPort.to_dict.<locals>.<lambda>   s    ggajj r   c                 6    | d          | d                   fS )Nr   r3   r;   )itemr9   s    r   r<   z)V1ContainerPort.to_dict.<locals>.<lambda>   s    $q'7747+;+;!< r   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r   r8   resultattr_valuer9   s    `    @r   r2   zV1ContainerPort.to_dict   s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr2   r    s    r   to_strzV1ContainerPort.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rQ   r    s    r   __repr__zV1ContainerPort.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrE   r   r2   r   others     r   __eq__zV1ContainerPort.__eq__   s4    %11 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrU   rV   s     r   __ne__zV1ContainerPort.__ne__   s4    %11 	4||~~00r   )NNNNNN)F)__name__
__module____qualname____doc__rA   rC   r   propertyr
   setterr   r   r   r   r2   rQ   rS   rX   rZ   r;   r   r   r   r      s           M * M% % % %. $ $ X$ . . .   X ^	  	  ^	    X 	$ 	$ 	$   X 
[	 	 [	   X _	" 	" _	"   @. . .  1 1 11 1 1 1 1r   r   )r^   inspectr   ImportErrorr   rO   rer?   kubernetes.client.configurationr   objectr   r;   r   r   <module>rf      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9^1 ^1 ^1 ^1 ^1f ^1 ^1 ^1 ^1 ^1s    