
                         L    S SK Jr  SSKJrJr   " S S\5      r " S S\5      rg)	   )	APIClient   )Model
Collectionc                   8    \ rS rSrSrSrS r\S 5       rS r	Sr
g)	Config   z	A config.IDc                 P    SU R                   R                   SU R                   S3$ )N<z: 'z'>)	__class____name__nameselfs    (lib/third_party/docker/models/configs.py__repr__Config.__repr__	   s&    4>>**+3tyyk<<    c                 &    U R                   S   S   $ )NSpecName)attrsr   s    r   r   Config.name   s    zz&!&))r   c                 `    U R                   R                  R                  U R                  5      $ )zi
Remove this config.

Raises:
    :py:class:`docker.errors.APIError`
        If config failed to remove.
)clientapiremove_configidr   s    r   removeConfig.remove   s!     {{,,TWW55r    N)r   
__module____qualname____firstlineno____doc__id_attributer   propertyr   r    __static_attributes__r"   r   r   r   r      s(    L= * *6r   r   c                   d    \ rS rSrSr\rS r\R                  R                  \l        S r
S rSrg)ConfigCollection   zConfigs on the Docker server.c                 p    U R                   R                  R                  " S0 UD6nU R                  U5      $ )Nr"   )r   r   create_configprepare_model)r   kwargsobjs      r   createConfigCollection.create   s.    kkoo++5f5!!#&&r   c                 j    U R                  U R                  R                  R                  U5      5      $ )a  
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/   r   r   inspect_config)r   	config_ids     r   getConfigCollection.get$   s(      !!$++//"@"@"KLLr   c                     U R                   R                  R                  " S0 UD6nU Vs/ s H  o0R                  U5      PM     sn$ s  snf )a  
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.
r"   )r   r   configsr/   )r   r0   respr1   s       r   listConfigCollection.list6   s@     {{&&003784C""3'4888s   Ar"   N)r   r#   r$   r%   r&   r   modelr2   r   r.   r7   r<   r)   r"   r   r   r+   r+      s/    'E' ,,44FNM$9r   r+   N)r   r   resourcer   r   r   r+   r"   r   r   <module>r@      s#     '6U 6,*9z *9r   