    def get(self, name: str, cluster: str | None = None) -> Secret:
        """
        Get a secret by name.
        """
        secret = self._client.v1.get_secret(name, cluster)
        return Secret.from_secret_schema(secret)
Get a secret by name.
src/bentoml/_internal/cloud/secret.py