Interface SecretManagerClient
- All Known Implementing Classes:
- DefaultSecretManagerClient
public interface SecretManagerClient
This interface is intended to abstract interactions with 
SecretManagerServiceClient, and instead of returning Google's ApiFuture
 transform it on reactive extensions.- Since:
- 3.4.0
- Author:
- Vinicius Carvalho
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionorg.reactivestreams.Publisher<VersionedSecret>Fetches a secret from the Secret Manager storage using the `gcp.projectId` project, and "latest" as the version.org.reactivestreams.Publisher<VersionedSecret>Fetches a secret from the Secret Manager storage using the `gcp.projectId` project.org.reactivestreams.Publisher<VersionedSecret>Fetches a secret from the Secret Manager storage.
- 
Field Details- 
LATEST- See Also:
 
 
- 
- 
Method Details- 
getSecretFetches a secret from the Secret Manager storage using the `gcp.projectId` project, and "latest" as the version.- Parameters:
- secretId- - name of the secret
- Returns:
- String value of the secret or empty
 
- 
getSecret@SingleResult org.reactivestreams.Publisher<VersionedSecret> getSecret(String secretId, String version) Fetches a secret from the Secret Manager storage using the `gcp.projectId` project.- Parameters:
- secretId- - name of the secret
- version- - version of the secret
- Returns:
- String value of the secret or empty
 
- 
getSecret@SingleResult org.reactivestreams.Publisher<VersionedSecret> getSecret(String secretId, String version, String projectId) Fetches a secret from the Secret Manager storage.- Parameters:
- secretId- - name of the secret
- version- - version of the secret
- projectId- - project identifier
- Returns:
- String value of the secret or empty
 
 
-