Class SecretManagerSecretAccessor
java.lang.Object
io.micronaut.gcp.secretmanager.client.SecretManagerSecretAccessor
Helper methods for building Secret Manager requests and mapping responses.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.cloud.secretmanager.v1.AccessSecretVersionRequestaccessRequest(String projectId, String secretId, String version, SecretManagerConfigurationProperties configurationProperties) static VersionedSecretaccessSecret(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client, String projectId, String secretId, String version, SecretManagerConfigurationProperties configurationProperties) static VersionedSecrettoVersionedSecret(String secretId, String version, String projectId, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse response, SecretManagerConfigurationProperties configurationProperties)
-
Method Details
-
accessRequest
public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest accessRequest(String projectId, String secretId, String version, SecretManagerConfigurationProperties configurationProperties) -
accessSecret
public static VersionedSecret accessSecret(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client, String projectId, String secretId, String version, SecretManagerConfigurationProperties configurationProperties) -
toVersionedSecret
public static VersionedSecret toVersionedSecret(String secretId, String version, String projectId, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse response, SecretManagerConfigurationProperties configurationProperties)
-