mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-05-04 22:02:45 -04:00
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
57 lines
1.4 KiB
Python
Generated
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.
|
|
"""
|
|
...
|