Secrets¶
- class SecretClient(beaker: Beaker)[source]¶
Methods for interacting with Beaker Secrets. Accessed via the
Beaker.secretproperty.Warning
Do not instantiate this class directly! The
Beakerclient will create one automatically which you can access through the corresponding property.- get(name: str, *, workspace: Workspace | None = None) Secret[source]¶
- Examples:
>>> with Beaker.from_env() as beaker: ... secret = beaker.secret.get(secret_name)
- Returns:
A
BeakerSecretprotobuf object.- Raises:
BeakerSecretNotFound – If the secret doesn’t exist.