Skip to content

samples(parameter_manager): add templates, tags and checksum samples - #36633

Open
suvidha-malaviya wants to merge 2 commits into
googleapis:mainfrom
suvidha-malaviya:feat/parametermanager-templates-tags-checksum-ruby
Open

suvidha-malaviya wants to merge 2 commits into
googleapis:mainfrom
suvidha-malaviya:feat/parametermanager-templates-tags-checksum-ruby

Conversation

@suvidha-malaviya

Copy link
Copy Markdown

Changes

  • Add template samples (global and regional): create_param_template.rb, create_param_template_version.rb, get_param_template.rb, get_param_template_version.rb, list_param_templates.rb, list_param_template_versions.rb, update_param_template_labels.rb, delete_param_template.rb, disable_param_template_version.rb, enable_param_template_version.rb, delete_param_template_version.rb, render_param_template_version.rb, template_quickstart.rb, and the regional_ variants of each (for example create_regional_param_template.rb, regional_template_quickstart.rb)
  • Add tag samples (global and regional): create_param_with_tags.rb creates a parameter with tags, bind_tags_to_param.rb creates a parameter and binds a tag through Resource Manager, get_param_tags.rb lists the tags bound to a parameter, plus regional_ variants
  • Add checksum samples (global and regional): create_param_version_with_checksum.rb creates a version with a client-computed CRC32C, get_param_version_verify_checksum.rb gets a version and verifies its checksum, plus regional_ variants
  • Add a *_test.rb file per sample under acceptance/
  • Extend acceptance/helper.rb and acceptance/regional_helper.rb with template IDs, template cleanup, a tag bindings client and the GOOGLE_CLOUD_TAG_KEY / GOOGLE_CLOUD_TAG_VALUE env vars. The tag tests need an existing tag key and value.
  • Bump google-cloud-parameter_manager-v1 to 1.1.0 in the samples Gemfile.lock, and add google-cloud-resource_manager-v3 and digest-crc to the samples Gemfile
  • Update README.md with the new samples and env vars

Prerequisite

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea.
  • Follow the instructions in CONTRIBUTING. Most importantly, ensure the tests and linter pass by running bundle exec rake ci in the gem subdirectory.
  • Update code documentation if necessary.

Add global and regional samples and acceptance tests for Parameter Manager templates, template versions, rendering, tags and CRC32C checksums, plus template quickstarts. Bump google-cloud-parameter_manager-v1 to 1.1.0 in the samples lockfile.
@suvidha-malaviya
suvidha-malaviya marked this pull request as ready for review October 14, 2026 12:17
@snippet-bot

snippet-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 36 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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant