Files
OpenLLM/typings/docker/models/secrets.pyi
Aaron Pham c7f4dc7bb2 feat(test): snapshot testing (#107)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-10 17:23:19 -04:00

57 lines
1.4 KiB
Python
Generated

"""This type stub file was generated by pyright."""
from .resource import Collection
from .resource import Model
class Secret(Model):
"""A secret."""
id_attribute = ...
def __repr__(self): ...
@property
def name(self): ...
def remove(self):
"""Remove this secret.
Raises:
:py:class:`docker.errors.APIError`
If secret failed to remove.
"""
...
class SecretCollection(Collection):
"""Secrets on the Docker server."""
model = Secret
def create(self, **kwargs): ...
def get(self, secret_id): # -> Model:
"""Get a secret.
Args:
secret_id (str): Secret ID.
Returns:
(:py:class:`Secret`): The secret.
Raises:
:py:class:`docker.errors.NotFound`
If the secret does not exist.
:py:class:`docker.errors.APIError`
If the server returns an error.
"""
...
def list(self, **kwargs): # -> list[Model]:
"""List secrets. Similar to the ``docker secret ls`` command.
Args:
filters (dict): Server-side list filtering options.
Returns:
(list of :py:class:`Secret`): The secrets.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
"""
...