Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [SecretManager] Add Secret Version Delayed Destroy changes for client libraries #7250

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

gcf-owl-bot[bot]
Copy link
Contributor

@gcf-owl-bot gcf-owl-bot bot commented Apr 21, 2024

  • Regenerate this pull request now.

docs: Users can now enable secret version delayed destruction
PiperOrigin-RevId: 626820938

Source-Link: googleapis/googleapis@0345704

Source-Link: https://github.com/googleapis/googleapis-gen/commit/2532a567ea4749c5f5e1c0bb7a3f710b06279390
Copy-Tag: eyJwIjoiU2VjcmV0TWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiMjUzMmE1NjdlYTQ3NDljNWY1ZTFjMGJiN2EzZjcxMGIwNjI3OTM5MCJ9

docs: Users can now enable secret version delayed destruction
PiperOrigin-RevId: 626820938

Source-Link: googleapis/googleapis@0345704

Source-Link: googleapis/googleapis-gen@2532a56
Copy-Tag: eyJwIjoiU2VjcmV0TWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiMjUzMmE1NjdlYTQ3NDljNWY1ZTFjMGJiN2EzZjcxMGIwNjI3OTM5MCJ9
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2024
@gcf-owl-bot gcf-owl-bot bot marked this pull request as ready for review April 21, 2024 20:04
@gcf-owl-bot gcf-owl-bot bot requested review from a team as code owners April 21, 2024 20:04
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2024
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 25, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 25, 2024
*
* @return string The formatted project_location_secret_secret_version resource.
*/
public static function projectLocationSecretSecretVersionName(string $project, string $location, string $secret, string $secretVersion): string
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to name it as projectLocationSecretVersionName instead of projectLocationSecretSecretVersionName!

Copy link
Contributor

Choose a reason for hiding this comment

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

cc: @bshaffer

Copy link
Contributor

Choose a reason for hiding this comment

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

This is auto-generated, and it is created from the URL template by concatenating all the variable names in the URL. In this case, the URL template is:

 - projectLocationSecretSecretVersion: projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}

As you can see, because the last variable is called secret_version, and the one before it is called secret, the method name ends up having SecretSecret. This is not ideal, but the fix for this would require changing the variable name in the API (it's too late for this), or writing a custom fix in the generator (this is hacky and error prone).

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm.. Will merge this for now then, thank you Brent for the confirmation.

@ajupazhamayil ajupazhamayil merged commit 6744443 into main Apr 26, 2024
24 checks passed
@ajupazhamayil ajupazhamayil deleted the owl-bot-copy-SecretManager branch April 26, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants