
    <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dZd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ed        Zej                  d        Zd Zd Zd Zd Zd Zy) V1ServicePortzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strintobject)app_protocolname	node_portportprotocoltarget_portappProtocolr
   nodePortr   r   
targetPortNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        || _        ||| _        ||| _        yy)z*V1ServicePort - a model defined in OpenAPIN)r   local_vars_configuration_app_protocol_name
_node_port_port	_protocol_target_portdiscriminatorr	   r
   r   r   r   r   )selfr	   r
   r   r   r   r   r   s           ]/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_service_port.py__init__zV1ServicePort.__init__5   s    #+'4$(@%!

 !# ,DDI &DN	$DM"*D #    c                     | j                   S )a"  Gets the app_protocol of this V1ServicePort.  # noqa: E501

        The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:  * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).  * Kubernetes-defined prefixed names:   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455  * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.  # noqa: E501

        :return: The app_protocol of this V1ServicePort.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1ServicePort.app_protocolO   s     !!!r   c                     || _         y)a  Sets the app_protocol of this V1ServicePort.

        The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:  * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).  * Kubernetes-defined prefixed names:   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455  * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.  # noqa: E501

        :param app_protocol: The app_protocol of this V1ServicePort.  # noqa: E501
        :type: str
        Nr    )r   r	   s     r   r	   zV1ServicePort.app_protocolZ   s     *r   c                     | j                   S )a  Gets the name of this V1ServicePort.  # noqa: E501

        The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.  # noqa: E501

        :return: The name of this V1ServicePort.  # noqa: E501
        :rtype: str
        r   r!   s    r   r
   zV1ServicePort.namef        zzr   c                     || _         y)a  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. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.  # noqa: E501

        :param name: The name of this V1ServicePort.  # noqa: E501
        :type: str
        Nr$   )r   r
   s     r   r
   zV1ServicePort.nameq   s     
r   c                     | j                   S )a  Gets the node_port of this V1ServicePort.  # noqa: E501

        The port on each node on which this service is exposed when type is NodePort or LoadBalancer.  Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail.  If not specified, a port will be allocated if this Service requires one.  If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport  # noqa: E501

        :return: The node_port of this V1ServicePort.  # noqa: E501
        :rtype: int
        r   r!   s    r   r   zV1ServicePort.node_port}   s     r   c                     || _         y)a
  Sets the node_port of this V1ServicePort.

        The port on each node on which this service is exposed when type is NodePort or LoadBalancer.  Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail.  If not specified, a port will be allocated if this Service requires one.  If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport  # noqa: E501

        :param node_port: The node_port of this V1ServicePort.  # noqa: E501
        :type: int
        Nr(   )r   r   s     r   r   zV1ServicePort.node_port   s     $r   c                     | j                   S )zGets the port of this V1ServicePort.  # noqa: E501

        The port that will be exposed by this service.  # noqa: E501

        :return: The port of this V1ServicePort.  # noqa: E501
        :rtype: int
        )r   r!   s    r   r   zV1ServicePort.port   r%   r   c                 X    | j                   j                  r|t        d      || _        y)zSets the port of this V1ServicePort.

        The port that will be exposed by this service.  # noqa: E501

        :param port: The port of this V1ServicePort.  # noqa: E501
        :type: int
        Nz,Invalid value for `port`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1ServicePort.port   s*     ((??DLKLL
r   c                     | j                   S )a   Gets the protocol of this V1ServicePort.  # noqa: E501

        The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP.  # noqa: E501

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

        The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP.  # noqa: E501

        :param protocol: The protocol of this V1ServicePort.  # noqa: E501
        :type: str
        Nr/   )r   r   s     r   r   zV1ServicePort.protocol   s     "r   c                     | j                   S )a  Gets the target_port of this V1ServicePort.  # noqa: E501

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

        :return: The target_port of this V1ServicePort.  # noqa: E501
        :rtype: object
        r   r!   s    r   r   zV1ServicePort.target_port   s        r   c                     || _         y)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  # noqa: E501

        :param target_port: The target_port of this V1ServicePort.  # noqa: E501
        :type: object
        Nr2   )r   r   s     r   r   zV1ServicePort.target_port   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hasattrr6   )xs    r   <lambda>z'V1ServicePort.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r6   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r6   r   r7   )items    r   r:   z'V1ServicePort.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr8   r6   dictitems)r   resultattr_values        r   r6   zV1ServicePort.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pformatr6   r!   s    r   to_strzV1ServicePort.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rN   r!   s    r   __repr__zV1ServicePort.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrB   r   r6   r   others     r   __eq__zV1ServicePort.__eq__   s&    %/||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrR   rS   s     r   __ne__zV1ServicePort.__ne__  s&    %/||~00r   )NNNNNNN)__name__
__module____qualname____doc__r@   attribute_mapr   propertyr	   setterr
   r   r   r   r   r6   rN   rP   rU   rW    r   r   r   r      sn    M &#M+4 " " 	* 	*   
[[	 	   	$ 	$   
[[    __	" 	" ! ! 	( 	(0.11r   r   )r[   rL   rer>   kubernetes.client.configurationr   r   r   r_   r   r   <module>rb      s&     	 
 9r1F r1r   