GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.08k stars 6.34k forks source link

feat(scc): add samples for SCC v2 findings #11997

Open thokalavinod opened 2 days ago

thokalavinod commented 2 days ago

Related to b/339692150 https://cloud.google.com/security-command-center/docs/reference/rest/v2/organizations.sources.locations.findings

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

snippet-bot[bot] commented 2 days ago

Here is the summary of changes.

You are about to add 4 region tags. - [securitycenter/snippets_v2/snippets_findings_v2.py:21](https://github.com/thokalavinod/python-docs-samples/blob/9947b51cc9572a6c91c0c1f90c04984d8e4087be/securitycenter/snippets_v2/snippets_findings_v2.py#L21), tag `securitycenter_list_all_findings` - [securitycenter/snippets_v2/snippets_findings_v2.py:54](https://github.com/thokalavinod/python-docs-samples/blob/9947b51cc9572a6c91c0c1f90c04984d8e4087be/securitycenter/snippets_v2/snippets_findings_v2.py#L54), tag `securitycenter_list_filtered_findings` - [securitycenter/snippets_v2/snippets_findings_v2.py:88](https://github.com/thokalavinod/python-docs-samples/blob/9947b51cc9572a6c91c0c1f90c04984d8e4087be/securitycenter/snippets_v2/snippets_findings_v2.py#L88), tag `securitycenter_group_all_findings` - [securitycenter/snippets_v2/snippets_findings_v2.py:114](https://github.com/thokalavinod/python-docs-samples/blob/9947b51cc9572a6c91c0c1f90c04984d8e4087be/securitycenter/snippets_v2/snippets_findings_v2.py#L114), tag `securitycenter_group_filtered_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:

Sita04 commented 29 minutes ago

@thokalavinod

The samples differ from the Java ones here: https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/security-command-center/snippets/src/main/java/vtwo/findings

Kindly reconcile python samples to match with Java.