HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/docker/models/__pycache__/configs.cpython-310.pyc
o

�h5�@s@ddlmZddlmZmZGdd�de�ZGdd�de�ZdS)	�)�	APIClient�)�
Collection�Modelc@s0eZdZdZdZdd�Zedd��Zdd�Zd	S)
�Configz	A config.�IDcCsd|jj�d|j�d�S)N�<z: 'z'>)�	__class__�__name__�name��self�r�H/usr/local/CyberCP/lib/python3.10/site-packages/docker/models/configs.py�__repr__	szConfig.__repr__cCs|jddS)N�Spec�Name)�attrsrrrrrszConfig.namecCs|jj�|j�S)z�
        Remove this config.

        Raises:
            :py:class:`docker.errors.APIError`
                If config failed to remove.
        )�client�api�
remove_config�idrrrr�removesz
Config.removeN)	r
�
__module__�__qualname__�__doc__�id_attributer�propertyrrrrrrrs
rc@s6eZdZdZeZdd�Zejje_dd�Z	dd�Z
dS)	�ConfigCollectionzConfigs on the Docker server.cKs4|jjjdi|��}|�d�|�di�d<|�|�S)Nrrrr)rr�
create_config�get�
setdefault�
prepare_model)r
�kwargs�objrrr�creates
zConfigCollection.createcCs|�|jj�|��S)ac
        Get a config.

        Args:
            config_id (str): Config ID.

        Returns:
            (:py:class:`Config`): The config.

        Raises:
            :py:class:`docker.errors.NotFound`
                If the config does not exist.
            :py:class:`docker.errors.APIError`
                If the server returns an error.
        )r"rr�inspect_config)r
�	config_idrrrr %szConfigCollection.getcs&�jjjdi|��}�fdd�|D�S)aT
        List configs. Similar to the ``docker config ls`` command.

        Args:
            filters (dict): Server-side list filtering options.

        Returns:
            (list of :py:class:`Config`): The configs.

        Raises:
            :py:class:`docker.errors.APIError`
                If the server returns an error.
        csg|]}��|��qSr)r")�.0r$rrr�
<listcomp>Fsz)ConfigCollection.list.<locals>.<listcomp>Nr)rr�configs)r
r#�resprrr�list7szConfigCollection.listN)r
rrrr�modelr%rrr r,rrrrrs
rN)rr�resourcerrrrrrrr�<module>s