-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Open
Labels
api: securitycenterIssues related to the Security Command Center API.Issues related to the Security Command Center API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
In which file did you encounter the issue?
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:
from google.cloud import securitycenter_v2
client = securitycenter_v2.SecurityCenterClient()However, the securitycenter_update_source_v2 and securitycenter_list_sources_v2 samples use the v1 API:
from google.cloud import securitycenter
client = securitycenter.SecurityCenterClient()CC: @owenhuyn
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: securitycenterIssues related to the Security Command Center API.Issues related to the Security Command Center API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.