Skip to content

Commit

Permalink
feat: Add BigQuery export APIs (#289)
Browse files Browse the repository at this point in the history
* feat: Add BigQuery export APIs that help you enable writing new/updated findings from  Security Command Center to a BigQuery table in near-real time. You can then integrate the data into existing workflows and create custom analyses. You can enable this feature at the organization, folder, and project levels to export findings based on your requirements

PiperOrigin-RevId: 431905699

Source-Link: googleapis/googleapis@4c1b56f

Source-Link: googleapis/googleapis-gen@fbaf35c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmJhZjM1YzZjZDdmODE3ZjU3MjI4OWVkMGY4YTMzODEyYTZlYjNiOSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Mar 4, 2022
1 parent 7caec1d commit 4b0fa8a
Show file tree
Hide file tree
Showing 28 changed files with 4,401 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
from google.cloud.securitycenter_v1.types.access import Access
from google.cloud.securitycenter_v1.types.access import Geolocation
from google.cloud.securitycenter_v1.types.asset import Asset
from google.cloud.securitycenter_v1.types.bigquery_export import BigQueryExport
from google.cloud.securitycenter_v1.types.external_system import ExternalSystem
from google.cloud.securitycenter_v1.types.finding import Finding
from google.cloud.securitycenter_v1.types.folder import Folder
from google.cloud.securitycenter_v1.types.indicator import Indicator
from google.cloud.securitycenter_v1.types.mitre_attack import MitreAttack
from google.cloud.securitycenter_v1.types.mute_config import MuteConfig
from google.cloud.securitycenter_v1.types.notification_config import NotificationConfig
from google.cloud.securitycenter_v1.types.notification_message import (
Expand All @@ -47,6 +49,9 @@
from google.cloud.securitycenter_v1.types.securitycenter_service import (
BulkMuteFindingsResponse,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
CreateBigQueryExportRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
CreateFindingRequest,
)
Expand All @@ -59,12 +64,18 @@
from google.cloud.securitycenter_v1.types.securitycenter_service import (
CreateSourceRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
DeleteBigQueryExportRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
DeleteMuteConfigRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
DeleteNotificationConfigRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
GetBigQueryExportRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
GetMuteConfigRequest,
)
Expand Down Expand Up @@ -94,6 +105,12 @@
from google.cloud.securitycenter_v1.types.securitycenter_service import (
ListAssetsResponse,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
ListBigQueryExportsRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
ListBigQueryExportsResponse,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
ListFindingsRequest,
)
Expand Down Expand Up @@ -125,6 +142,9 @@
SetFindingStateRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import SetMuteRequest
from google.cloud.securitycenter_v1.types.securitycenter_service import (
UpdateBigQueryExportRequest,
)
from google.cloud.securitycenter_v1.types.securitycenter_service import (
UpdateExternalSystemRequest,
)
Expand Down Expand Up @@ -158,10 +178,12 @@
"Access",
"Geolocation",
"Asset",
"BigQueryExport",
"ExternalSystem",
"Finding",
"Folder",
"Indicator",
"MitreAttack",
"MuteConfig",
"NotificationConfig",
"NotificationMessage",
Expand All @@ -171,12 +193,15 @@
"SecurityMarks",
"BulkMuteFindingsRequest",
"BulkMuteFindingsResponse",
"CreateBigQueryExportRequest",
"CreateFindingRequest",
"CreateMuteConfigRequest",
"CreateNotificationConfigRequest",
"CreateSourceRequest",
"DeleteBigQueryExportRequest",
"DeleteMuteConfigRequest",
"DeleteNotificationConfigRequest",
"GetBigQueryExportRequest",
"GetMuteConfigRequest",
"GetNotificationConfigRequest",
"GetOrganizationSettingsRequest",
Expand All @@ -188,6 +213,8 @@
"GroupResult",
"ListAssetsRequest",
"ListAssetsResponse",
"ListBigQueryExportsRequest",
"ListBigQueryExportsResponse",
"ListFindingsRequest",
"ListFindingsResponse",
"ListMuteConfigsRequest",
Expand All @@ -199,6 +226,7 @@
"RunAssetDiscoveryRequest",
"SetFindingStateRequest",
"SetMuteRequest",
"UpdateBigQueryExportRequest",
"UpdateExternalSystemRequest",
"UpdateFindingRequest",
"UpdateMuteConfigRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
from .types.access import Access
from .types.access import Geolocation
from .types.asset import Asset
from .types.bigquery_export import BigQueryExport
from .types.external_system import ExternalSystem
from .types.finding import Finding
from .types.folder import Folder
from .types.indicator import Indicator
from .types.mitre_attack import MitreAttack
from .types.mute_config import MuteConfig
from .types.notification_config import NotificationConfig
from .types.notification_message import NotificationMessage
Expand All @@ -33,12 +35,15 @@
from .types.security_marks import SecurityMarks
from .types.securitycenter_service import BulkMuteFindingsRequest
from .types.securitycenter_service import BulkMuteFindingsResponse
from .types.securitycenter_service import CreateBigQueryExportRequest
from .types.securitycenter_service import CreateFindingRequest
from .types.securitycenter_service import CreateMuteConfigRequest
from .types.securitycenter_service import CreateNotificationConfigRequest
from .types.securitycenter_service import CreateSourceRequest
from .types.securitycenter_service import DeleteBigQueryExportRequest
from .types.securitycenter_service import DeleteMuteConfigRequest
from .types.securitycenter_service import DeleteNotificationConfigRequest
from .types.securitycenter_service import GetBigQueryExportRequest
from .types.securitycenter_service import GetMuteConfigRequest
from .types.securitycenter_service import GetNotificationConfigRequest
from .types.securitycenter_service import GetOrganizationSettingsRequest
Expand All @@ -50,6 +55,8 @@
from .types.securitycenter_service import GroupResult
from .types.securitycenter_service import ListAssetsRequest
from .types.securitycenter_service import ListAssetsResponse
from .types.securitycenter_service import ListBigQueryExportsRequest
from .types.securitycenter_service import ListBigQueryExportsResponse
from .types.securitycenter_service import ListFindingsRequest
from .types.securitycenter_service import ListFindingsResponse
from .types.securitycenter_service import ListMuteConfigsRequest
Expand All @@ -61,6 +68,7 @@
from .types.securitycenter_service import RunAssetDiscoveryRequest
from .types.securitycenter_service import SetFindingStateRequest
from .types.securitycenter_service import SetMuteRequest
from .types.securitycenter_service import UpdateBigQueryExportRequest
from .types.securitycenter_service import UpdateExternalSystemRequest
from .types.securitycenter_service import UpdateFindingRequest
from .types.securitycenter_service import UpdateMuteConfigRequest
Expand All @@ -78,20 +86,24 @@
"SecurityCenterAsyncClient",
"Access",
"Asset",
"BigQueryExport",
"BulkMuteFindingsRequest",
"BulkMuteFindingsResponse",
"CreateBigQueryExportRequest",
"CreateFindingRequest",
"CreateMuteConfigRequest",
"CreateNotificationConfigRequest",
"CreateSourceRequest",
"Cve",
"Cvssv3",
"DeleteBigQueryExportRequest",
"DeleteMuteConfigRequest",
"DeleteNotificationConfigRequest",
"ExternalSystem",
"Finding",
"Folder",
"Geolocation",
"GetBigQueryExportRequest",
"GetMuteConfigRequest",
"GetNotificationConfigRequest",
"GetOrganizationSettingsRequest",
Expand All @@ -104,6 +116,8 @@
"Indicator",
"ListAssetsRequest",
"ListAssetsResponse",
"ListBigQueryExportsRequest",
"ListBigQueryExportsResponse",
"ListFindingsRequest",
"ListFindingsResponse",
"ListMuteConfigsRequest",
Expand All @@ -112,6 +126,7 @@
"ListNotificationConfigsResponse",
"ListSourcesRequest",
"ListSourcesResponse",
"MitreAttack",
"MuteConfig",
"NotificationConfig",
"NotificationMessage",
Expand All @@ -125,6 +140,7 @@
"SetFindingStateRequest",
"SetMuteRequest",
"Source",
"UpdateBigQueryExportRequest",
"UpdateExternalSystemRequest",
"UpdateFindingRequest",
"UpdateMuteConfigRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"bulk_mute_findings"
]
},
"CreateBigQueryExport": {
"methods": [
"create_big_query_export"
]
},
"CreateFinding": {
"methods": [
"create_finding"
Expand All @@ -35,6 +40,11 @@
"create_source"
]
},
"DeleteBigQueryExport": {
"methods": [
"delete_big_query_export"
]
},
"DeleteMuteConfig": {
"methods": [
"delete_mute_config"
Expand All @@ -45,6 +55,11 @@
"delete_notification_config"
]
},
"GetBigQueryExport": {
"methods": [
"get_big_query_export"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
Expand Down Expand Up @@ -85,6 +100,11 @@
"list_assets"
]
},
"ListBigQueryExports": {
"methods": [
"list_big_query_exports"
]
},
"ListFindings": {
"methods": [
"list_findings"
Expand Down Expand Up @@ -130,6 +150,11 @@
"test_iam_permissions"
]
},
"UpdateBigQueryExport": {
"methods": [
"update_big_query_export"
]
},
"UpdateExternalSystem": {
"methods": [
"update_external_system"
Expand Down Expand Up @@ -175,6 +200,11 @@
"bulk_mute_findings"
]
},
"CreateBigQueryExport": {
"methods": [
"create_big_query_export"
]
},
"CreateFinding": {
"methods": [
"create_finding"
Expand All @@ -195,6 +225,11 @@
"create_source"
]
},
"DeleteBigQueryExport": {
"methods": [
"delete_big_query_export"
]
},
"DeleteMuteConfig": {
"methods": [
"delete_mute_config"
Expand All @@ -205,6 +240,11 @@
"delete_notification_config"
]
},
"GetBigQueryExport": {
"methods": [
"get_big_query_export"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
Expand Down Expand Up @@ -245,6 +285,11 @@
"list_assets"
]
},
"ListBigQueryExports": {
"methods": [
"list_big_query_exports"
]
},
"ListFindings": {
"methods": [
"list_findings"
Expand Down Expand Up @@ -290,6 +335,11 @@
"test_iam_permissions"
]
},
"UpdateBigQueryExport": {
"methods": [
"update_big_query_export"
]
},
"UpdateExternalSystem": {
"methods": [
"update_external_system"
Expand Down
Loading

0 comments on commit 4b0fa8a

Please sign in to comment.