Content-Length: 229129 | pFad | http://github.com/googleapis/google-cloud-python/issues/13735

FC Feature Request: Add location parameter to TagBinding API in Python SDK · Issue #13735 · googleapis/google-cloud-python · GitHub
Skip to content

Feature Request: Add location parameter to TagBinding API in Python SDK #13735

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

Open
1 task done
jissac opened this issue Apr 3, 2025 · 0 comments
Open
1 task done
Assignees
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@jissac
Copy link

jissac commented Apr 3, 2025

Determine this is the right repository

  • I determined this is the correct repository in which to report this feature request.

Summary of the feature request

Feature Request

The google.cloud.resourcemanager_v3.TagBinding API does not support specifying location, which is required when tagging regional resources (e.g., Cloud Storage buckets).

Problem

  • The gcloud CLI allows specifying --location, which is mandatory for tagging buckets.
  • The Python SDK lacks this parameter, making it impossible to create tag bindings for regional resources.
  • Attempting to use the Python SDK results in an error: "Must be a valid One Platform resource name of a tag-compatible global resource."

Example of Working gcloud Command:

gcloud resource-manager tags bindings create \
  --tag-value=466574201342/datacompliance/pii \
  --parent=//storage.googleapis.com/projects/_/buckets/dd-dv01-test-v105-6353 \
  --location=us-east1

API client name and version

From Python SDK:
google.cloud.resourcemanager_v3

Use case

Applying and listing existing tags to GCS buckets via the Python SDK

Proposed Fix

Add a location parameter to TagBinding in google.cloud.resourcemanager_v3.types

Update create_tag_binding() to accept and pass location to the API.

This change would align the Python SDK with the gcloud CLI and unblock regional tagging.

@jissac jissac added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/issues/13735

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy