Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

samples: add samples for new KMS rng APIs#577

Merged
gcf-merge-on-green[bot] merged 1 commit intogoogleapis:masterfrom
sethvargo:sethvargo/kms_rng
Aug 18, 2021
Merged

samples: add samples for new KMS rng APIs#577
gcf-merge-on-green[bot] merged 1 commit intogoogleapis:masterfrom
sethvargo:sethvargo/kms_rng

Conversation

@sethvargo
Copy link
Copy Markdown
Contributor

@sethvargo sethvargo commented Aug 16, 2021

This adds samples for the new RNG APIs.

@product-auto-label product-auto-label bot added api: cloudkms Issues related to the googleapis/java-kms API. samples Issues that are directly related to samples. labels Aug 16, 2021
@snippet-bot
Copy link
Copy Markdown

snippet-bot bot commented Aug 16, 2021

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 16, 2021
@chingor13 chingor13 requested a review from a team August 18, 2021 16:31
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

Going to rename this to merge as samples: as feat: will bump the client library version.


// Generate the bytes.
GenerateRandomBytesResponse response =
client.generateRandomBytes(locationName.toString(), numBytes, ProtectionLevel.HSM);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: the fact that we have to call toString() on the resource name instance implies that we're missing a resource name annotation on this API. It should have an overload that accepts the LocationName instance directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt the same way, but confirmed there was no overload. I would be supportive of adding that. What's the process for doing so?

@chingor13 chingor13 changed the title feat(kms): add samples for new KMS rng APIs samples: add samples for new KMS rng APIs Aug 18, 2021
@chingor13 chingor13 added the automerge Merge the pull request once unit tests and other checks pass. label Aug 18, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit 7879f05 into googleapis:master Aug 18, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 18, 2021
@sethvargo sethvargo deleted the sethvargo/kms_rng branch August 18, 2021 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: cloudkms Issues related to the googleapis/java-kms API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants