GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.32k stars 1.75k forks source link

feat(findings): Add findings v2 resources #4270

Closed vijaykanthm closed 2 months ago

vijaykanthm commented 4 months ago

Description

Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API for the List findings, List findings with filter, Group findings, Group findings with filter, List findings with Security marks, Group findings by state, Create a Source, Get a Source, List Security Sources, Update a Source.

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

Checklist

snippet-bot[bot] commented 4 months ago

Here is the summary of changes.

You are about to add 11 region tags. - [securitycenter/findingsv2/add_security_marks.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/add_security_marks.go#L17), tag `securitycenter_add_finding_security_marks_v2` - [securitycenter/findingsv2/create_source.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/create_source.go#L17), tag `securitycenter_create_source_v2` - [securitycenter/findingsv2/get_source.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/get_source.go#L17), tag `securitycenter_get_source_v2` - [securitycenter/findingsv2/group_filtered_findings.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/group_filtered_findings.go#L17), tag `securitycenter_group_filtered_findings_v2` - [securitycenter/findingsv2/group_findings.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/group_findings.go#L17), tag `securitycenter_group_findings_v2` - [securitycenter/findingsv2/group_findings_state.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/group_findings_state.go#L17), tag `securitycenter_group_filtered_state_v2` - [securitycenter/findingsv2/list_all_findings.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/list_all_findings.go#L17), tag `securitycenter_list_all_findings_v2` - [securitycenter/findingsv2/list_filtered_findings.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/list_filtered_findings.go#L17), tag `securitycenter_list_filtered_findings_v2` - [securitycenter/findingsv2/list_findings_with_security_mark.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/list_findings_with_security_mark.go#L17), tag `securitycenter_list_findings_with_security_marks_v2` - [securitycenter/findingsv2/list_sources.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/list_sources.go#L17), tag `securitycenter_list_sources_v2` - [securitycenter/findingsv2/update_source.go:17](https://github.com/vijaykanthm/golang-samples/blob/a0ff30c5a5484683b5dd91cfe8f0804aa487b1d0/securitycenter/findingsv2/update_source.go#L17), tag `securitycenter_update_source_v2`

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: