add samples for using a regional endpoint with SCC v2 API
Description
The SCC API can be accessed via Regional Endpoints to meet customer data residency requirements. This sample shows how to override the endpoint for an API client. See https://cloud.google.com/security-command-center/docs/data-residency-support.md#regional-urls for more information on data residency
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
- [ ] I have followed Sample Guidelines from AUTHORING_GUIDE.MD
- [ ] README is updated to include all relevant information
- [ ] Tests pass:
nox -s py-3.9(see Test Environment Setup) - [ ] Lint pass:
nox -s lint(see Test Environment Setup) - [ ] These samples need a new API enabled in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
- [ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
- [ ] This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
- [ ] Please merge this PR for me once it is approved
Here is the summary of changes.
You are about to add 1 region tag.
- securitycenter/snippets_v2/snippets_findings_v2.py:58, tag
securitycenter_regional_endpoint_list_findings
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
@onagbonoga it feels like this is pretty duplicative of https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/securitycenter/snippets_v2/snippets_findings_v2.py bar the sending options which seems like it could be an addition to the existing snippet. Any particular reason to need both?
@onagbonoga it feels like this is pretty duplicative of https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/securitycenter/snippets_v2/snippets_findings_v2.py bar the sending options which seems like it could be an addition to the existing snippet. Any particular reason to need both?
Thank you. I have added the samples to snippets_findings_v2.py
Hi @onagbonoga. Since this PR was created, we're introduced Python 3.13 testing. Please rebase your PR so these tests can be run.
It looks like this PR was rebased incorrectly, given the amount of people tagged on this change when it should (by title) only be a small isolated change.
Since this is a branch on the main repo, it might be related to your main branch not being in sync.
I'm going to force rebase, which should help.
I've rebased this change, but the added test is failing. Please address ✨