Ë
    ú}àip  ã                   ó@   — d dl mZmZ  G d„ de«      Z G d„ de«      Zy)é   )Ú
CollectionÚModelc                   ó2   — e Zd ZdZdZed„ «       Zd„ Zdd„Zy)ÚNodezA node in a swarm.ÚIDc                 óV   — | j                   j                  d«      j                  d«      S )zÝ
        The version number of the service. If this is not the same as the
        server, the :py:meth:`update` function will not work and you will
        need to call :py:meth:`reload` before calling it again.
        ÚVersionÚIndex)ÚattrsÚget)Úselfs    úZ/home/factor_ks/STREAMA2026/tests/venv/lib/python3.12/site-packages/docker/models/nodes.pyÚversionzNode.version   s"   € ð �z‰z�~‰~˜iÓ(×,Ñ,¨WÓ5Ð5ó    c                 óx   — | j                   j                  j                  | j                  | j                  |«      S )a¦  
        Update the node's configuration.

        Args:
            node_spec (dict): Configuration settings to update. Any values
                not provided will be removed. Default: ``None``

        Returns:
            `True` if the request went through.

        Raises:
            :py:class:`docker.errors.APIError`
                If the server returns an error.

        Example:

            >>> node_spec = {'Availability': 'active',
                             'Name': 'node-name',
                             'Role': 'manager',
                             'Labels': {'foo': 'bar'}
                            }
            >>> node.update(node_spec)

        )ÚclientÚapiÚupdate_nodeÚidr   )r   Ú	node_specs     r   ÚupdatezNode.update   s)   € ð2 �{‰{�‰×*Ñ*¨4¯7©7°D·L±LÀ)ÓLÐLr   c                 ód   — | j                   j                  j                  | j                  |¬«      S )a¥  
        Remove this node from the swarm.

        Args:
            force (bool): Force remove an active node. Default: `False`

        Returns:
            `True` if the request was successful.

        Raises:
            :py:class:`docker.errors.NotFound`
                If the node doesn't exist in the swarm.

            :py:class:`docker.errors.APIError`
                If the server returns an error.
        )Úforce)r   r   Úremove_noder   )r   r   s     r   ÚremovezNode.remove,   s&   € ð" �{‰{�‰×*Ñ*¨4¯7©7¸%Ð*Ó@Ð@r   N)F)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úid_attributeÚpropertyr   r   r   © r   r   r   r      s(   „ ÙØ€Làñ6ó ð6òMô6Ar   r   c                   ó    — e Zd ZdZeZd„ Zd„ Zy)ÚNodeCollectionzNodes on the Docker server.c                 ój   — | j                  | j                  j                  j                  |«      «      S )a  
        Get a node.

        Args:
            node_id (string): ID of the node to be inspected.

        Returns:
            A :py:class:`Node` object.

        Raises:
            :py:class:`docker.errors.APIError`
                If the server returns an error.
        )Úprepare_modelr   r   Úinspect_node)r   Únode_ids     r   r   zNodeCollection.getD   s(   € ð ×!Ñ! $§+¡+§/¡/×">Ñ">¸wÓ"GÓHÐHr   c                 ó’   —  | j                   j                  j                  |i |¤ŽD �cg c]  }| j                  |«      ‘Œ c}S c c}w )aè  
        List swarm nodes.

        Args:
            filters (dict): Filters to process on the nodes list. Valid
                filters: ``id``, ``name``, ``membership`` and ``role``.
                Default: ``None``

        Returns:
            A list of :py:class:`Node` objects.

        Raises:
            :py:class:`docker.errors.APIError`
                If the server returns an error.

        Example:

            >>> client.nodes.list(filters={'role': 'manager'})
        )r   r   Únodesr&   )r   ÚargsÚkwargsÚns       r   ÚlistzNodeCollection.listT   sI   € ð, +�T—[‘[—_‘_×*Ñ*¨DÐ;°FÑ;ö
àð ×Ñ˜qÕ!ò
ð 	
ùò 
s   ©AN)r   r   r   r   r   Úmodelr   r.   r"   r   r   r$   r$   @   s   „ Ù%Ø€EòIó 
r   r$   N)Úresourcer   r   r   r$   r"   r   r   ú<module>r1      s#   ðß 'ô9Aˆ5ô 9Aôx+
�Zõ +
r   