chore(spanner): add example for Mutable Credentials#12293
chore(spanner): add example for Mutable Credentials#12293
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new Java snippet, MutableCredentialsExample.java, which demonstrates how to implement dynamic credential rotation in Google Cloud Spanner using MutableCredentials and a scheduled executor to monitor file updates. The review feedback suggests improving the example's usability by passing the credentials path as a method parameter and enhancing code readability by using an import for AtomicReference instead of its fully qualified name.
java-spanner/samples/snippets/src/main/java/com/example/spanner/MutableCredentialsExample.java
Outdated
Show resolved
Hide resolved
java-spanner/samples/snippets/src/main/java/com/example/spanner/MutableCredentialsExample.java
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
# Conflicts: # java-spanner/samples/snippets/src/main/java/com/example/spanner/MutableCredentialsExample.java
This provides an example of how to use mutable credentials.