
    <gd'                     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)!V1EndpointSlicezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strzlist[V1Endpoint]V1ObjectMetazlist[DiscoveryV1EndpointPort])address_typeapi_version	endpointskindmetadataportsaddressType
apiVersionr
   r   r   r   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        || _	        ||| _
        || _        ||| _        ||| _        ||| _        yy)z,V1EndpointSlice - a model defined in OpenAPIN)r   local_vars_configuration_address_type_api_version
_endpoints_kind	_metadata_ports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_endpoint_slice.py__init__zV1EndpointSlice.__init__5   s    #+'4$(@%! 
!("*D"DI$DMDJ     c                     | j                   S )a  Gets the address_type of this V1EndpointSlice.  # noqa: E501

        addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.  # noqa: E501

        :return: The address_type of this V1EndpointSlice.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zV1EndpointSlice.address_typeN   s     !!!r   c                 X    | j                   j                  r|t        d      || _        y)a
  Sets the address_type of this V1EndpointSlice.

        addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.  # noqa: E501

        :param address_type: The address_type of this V1EndpointSlice.  # noqa: E501
        :type: str
        Nz4Invalid value for `address_type`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1EndpointSlice.address_typeY   s,     ((??LDXSTT)r   c                     | j                   S )a  Gets the api_version of this V1EndpointSlice.  # noqa: E501

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :return: The api_version of this V1EndpointSlice.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1EndpointSlice.api_versiong   s        r   c                     || _         y)a  Sets the api_version of this V1EndpointSlice.

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :param api_version: The api_version of this V1EndpointSlice.  # noqa: E501
        :type: str
        Nr#   )r   r	   s     r   r	   zV1EndpointSlice.api_versionr   s     (r   c                     | j                   S )a,  Gets the endpoints of this V1EndpointSlice.  # noqa: E501

        endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.  # noqa: E501

        :return: The endpoints of this V1EndpointSlice.  # noqa: E501
        :rtype: list[V1Endpoint]
        )r   r   s    r   r
   zV1EndpointSlice.endpoints~   s     r   c                 X    | j                   j                  r|t        d      || _        y)a&  Sets the endpoints of this V1EndpointSlice.

        endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.  # noqa: E501

        :param endpoints: The endpoints of this V1EndpointSlice.  # noqa: E501
        :type: list[V1Endpoint]
        Nz1Invalid value for `endpoints`, must not be `None`)r   r    r!   r   )r   r
   s     r   r
   zV1EndpointSlice.endpoints   s+     ((??IDUPQQ#r   c                     | j                   S )a  Gets the kind of this V1EndpointSlice.  # noqa: E501

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

        :return: The kind of this V1EndpointSlice.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1EndpointSlice.kind   s     zzr   c                     || _         y)a  Sets the kind of this V1EndpointSlice.

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

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


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


        :param metadata: The metadata of this V1EndpointSlice.  # noqa: E501
        :type: V1ObjectMeta
        Nr+   )r   r   s     r   r   zV1EndpointSlice.metadata   s     "r   c                     | j                   S )a  Gets the ports of this V1EndpointSlice.  # noqa: E501

        ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.  # noqa: E501

        :return: The ports of this V1EndpointSlice.  # noqa: E501
        :rtype: list[DiscoveryV1EndpointPort]
        r   r   s    r   r   zV1EndpointSlice.ports   s     {{r   c                     || _         y)a  Sets the ports of this V1EndpointSlice.

        ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.  # noqa: E501

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