securitycenter: Some v2 code samples use the v1 API #12713
Labels
api: securitycenter
Issues related to the Security Command Center API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/98d8ab50/securitycenter/snippets_v2/snippets_findings_v2.py
Did you change the file? If so, how?
no
Describe the issue
This file is supposed to contain samples for the Security Command Center v2 API. That means each sample needs to import
google.cloud.securitycenter_v2
:However, the
securitycenter_update_source_v2
andsecuritycenter_list_sources_v2
samples use the v1 API:CC: @owenhuyn
The text was updated successfully, but these errors were encountered: