Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelMurata committed Apr 12, 2024
1 parent 59bfc7a commit 90af478
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 540 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static void main(String[] args) throws IOException {
// https://cloud.google.com/security-command-center/docs/how-to-analyze-findings-in-big-query#export_findings_from_to
String bigQueryExportId = "default-" + UUID.randomUUID().toString().split("-")[0];

createBigQueryExport(organizationId,location ,projectId,filter, bigQueryDatasetId, bigQueryExportId);
createBigQueryExport(organizationId, location, projectId, filter, bigQueryDatasetId,
bigQueryExportId);
}

// Create export configuration to export findings from a project to a BigQuery dataset.
Expand All @@ -60,7 +61,8 @@ public static void createBigQueryExport(String organizationId, String location,
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (SecurityCenterClient client = SecurityCenterClient.create()) {
OrganizationLocationName organizationName = OrganizationLocationName.of(organizationId, location);
OrganizationLocationName organizationName = OrganizationLocationName.of(organizationId,
location);
// Create the BigQuery export configuration.
BigQueryExport bigQueryExport =
BigQueryExport.newBuilder()
Expand Down
Loading

0 comments on commit 90af478

Please sign in to comment.