Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (#839)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 454027580

Source-Link: googleapis/googleapis@1b22277

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9

feat: Add compliances, processes and exfiltration fields to findings attributes. They contain compliance information about a security standard indicating unmet recommendations, represents operating system processes, and data exfiltration attempt of one...
or more source(s) to one or more target(s).  Source(s) represent the source of data that is exfiltrated, and Target(s) represents the destination the data was copied to

PiperOrigin-RevId: 452067806

Source-Link: googleapis/googleapis@5bfadd9

Source-Link: https://github.com/googleapis/googleapis-gen/commit/ae56215246dee968a4eac43b0012d676876e52a4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWU1NjIxNTI0NmRlZTk2OGE0ZWFjNDNiMDAxMmQ2NzY4NzZlNTJhNCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 14, 2022
1 parent ea5bfe3 commit 412c047
Show file tree
Hide file tree
Showing 33 changed files with 11,565 additions and 225 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ public final UnaryCallable<GetBigQueryExportRequest, BigQueryExport> getBigQuery
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* Policy response = securityCenterClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -1456,7 +1456,8 @@ public final Policy getIamPolicy(String resource) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = securityCenterClient.getIamPolicy(request);
Expand All @@ -1482,7 +1483,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.getIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -1999,7 +2001,7 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
* .build();
* while (true) {
* GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request);
* for (GroupResult element : response.getResponsesList()) {
* for (GroupResult element : response.getGroupByResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2227,7 +2229,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque
* .build();
* while (true) {
* GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
* for (GroupResult element : response.getResponsesList()) {
* for (GroupResult element : response.getGroupByResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2336,7 +2338,7 @@ public final UnaryCallable<ListAssetsRequest, ListAssetsPagedResponse> listAsset
* .build();
* while (true) {
* ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request);
* for (ListAssetsResponse.ListAssetsResult element : response.getResponsesList()) {
* for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2458,7 +2460,8 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
* .build();
* while (true) {
* ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
* for (ListFindingsResponse.ListFindingsResult element : response.getResponsesList()) {
* for (ListFindingsResponse.ListFindingsResult element :
* response.getListFindingsResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2666,7 +2669,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest
* while (true) {
* ListMuteConfigsResponse response =
* securityCenterClient.listMuteConfigsCallable().call(request);
* for (MuteConfig element : response.getResponsesList()) {
* for (MuteConfig element : response.getMuteConfigsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2823,7 +2826,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
* while (true) {
* ListNotificationConfigsResponse response =
* securityCenterClient.listNotificationConfigsCallable().call(request);
* for (NotificationConfig element : response.getResponsesList()) {
* for (NotificationConfig element : response.getNotificationConfigsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -3031,7 +3034,7 @@ public final ListSourcesPagedResponse listSources(ListSourcesRequest request) {
* .build();
* while (true) {
* ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
* for (Source element : response.getResponsesList()) {
* for (Source element : response.getSourcesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -3456,7 +3459,7 @@ public final UnaryCallable<SetMuteRequest, Finding> setMuteCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* Policy policy = Policy.newBuilder().build();
* Policy response = securityCenterClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -3519,7 +3522,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -3546,7 +3550,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -3570,7 +3575,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* securityCenterClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -3640,7 +3645,8 @@ public final TestIamPermissionsResponse testIamPermissions(
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
Expand All @@ -3666,7 +3672,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(
* SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down Expand Up @@ -4895,7 +4902,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(
* while (true) {
* ListBigQueryExportsResponse response =
* securityCenterClient.listBigQueryExportsCallable().call(request);
* for (BigQueryExport element : response.getResponsesList()) {
* for (BigQueryExport element : response.getBigQueryExportsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public final UnaryCallable<CreateFindingRequest, Finding> createFindingCallable(
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* Policy response = securityCenterClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -472,7 +472,7 @@ public final Policy getIamPolicy(String resource) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = securityCenterClient.getIamPolicy(request);
Expand All @@ -498,7 +498,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.getIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -802,7 +802,7 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
* .build();
* while (true) {
* GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request);
* for (GroupResult element : response.getResponsesList()) {
* for (GroupResult element : response.getGroupByResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1003,7 +1003,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque
* .build();
* while (true) {
* GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
* for (GroupResult element : response.getResponsesList()) {
* for (GroupResult element : response.getGroupByResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1112,7 +1112,7 @@ public final UnaryCallable<ListAssetsRequest, ListAssetsPagedResponse> listAsset
* .build();
* while (true) {
* ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request);
* for (ListAssetsResponse.ListAssetsResult element : response.getResponsesList()) {
* for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1227,7 +1227,7 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
* .build();
* while (true) {
* ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
* for (Finding element : response.getResponsesList()) {
* for (Finding element : response.getFindingsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1376,7 +1376,7 @@ public final ListSourcesPagedResponse listSources(ListSourcesRequest request) {
* .build();
* while (true) {
* ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
* for (Source element : response.getResponsesList()) {
* for (Source element : response.getSourcesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1667,7 +1667,7 @@ public final UnaryCallable<SetFindingStateRequest, Finding> setFindingStateCalla
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* Policy policy = Policy.newBuilder().build();
* Policy response = securityCenterClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -1730,7 +1730,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -1757,7 +1757,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -1781,7 +1781,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* securityCenterClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -1851,7 +1851,7 @@ public final TestIamPermissionsResponse testIamPermissions(
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
Expand All @@ -1877,7 +1877,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Loading

0 comments on commit 412c047

Please sign in to comment.