Skip to content

Commit

Permalink
feat: [securitycenter] add cloud_dlp_inspection and cloud_dlp_data_pr…
Browse files Browse the repository at this point in the history
…ofile fields to finding's list of attributes (#9371)

* feat: add cloud_dlp_inspection and cloud_dlp_data_profile fields to finding's list of attributes
docs: miscellaneous style improvements

PiperOrigin-RevId: 525798516

Source-Link: googleapis/googleapis@36a885f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/c47a1b79926eb4b9fc47f445a3a8971314075de7
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiYzQ3YTFiNzk5MjZlYjRiOWZjNDdmNDQ1YTNhODk3MTMxNDA3NWRlNyJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 25, 2023
1 parent b47972a commit 9e1a89d
Show file tree
Hide file tree
Showing 32 changed files with 3,572 additions and 770 deletions.
4 changes: 2 additions & 2 deletions java-securitycenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.12.0</version>
<version>26.13.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.22.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.23.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6039,7 +6039,7 @@ public final OrganizationSettings updateOrganizationSettings(
/**
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
* mask. Updating the enablement state is supported on both resident and inherited modules (though
* resident modules cannot have an enablement state of inherited). Updating the display name and
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
* custom config of a module is supported on resident modules only.
*
* <p>Sample code:
Expand Down Expand Up @@ -6080,7 +6080,7 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu
/**
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
* mask. Updating the enablement state is supported on both resident and inherited modules (though
* resident modules cannot have an enablement state of inherited). Updating the display name and
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
* custom config of a module is supported on resident modules only.
*
* <p>Sample code:
Expand Down Expand Up @@ -6115,7 +6115,7 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu
/**
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
* mask. Updating the enablement state is supported on both resident and inherited modules (though
* resident modules cannot have an enablement state of inherited). Updating the display name and
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
* custom config of a module is supported on resident modules only.
*
* <p>Sample code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ public void createFindingTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -535,6 +537,8 @@ public void createFindingTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -3904,6 +3908,8 @@ public void setFindingStateTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -3988,6 +3994,8 @@ public void setFindingStateTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -4070,6 +4078,8 @@ public void setMuteTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -4152,6 +4162,8 @@ public void setMuteTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -4484,6 +4496,8 @@ public void updateFindingTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -4524,6 +4538,8 @@ public void updateFindingTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();

Expand Down Expand Up @@ -4589,6 +4605,8 @@ public void updateFindingExceptionTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
client.updateFinding(finding);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ public void createFindingTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -518,6 +520,8 @@ public void createFindingTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -3581,6 +3585,8 @@ public void setFindingStateTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -3661,6 +3667,8 @@ public void setFindingStateTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -3739,6 +3747,8 @@ public void setMuteTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -3816,6 +3826,8 @@ public void setMuteTest2() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -4103,6 +4115,8 @@ public void updateFindingTest() throws Exception {
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.addAllFiles(new ArrayList<File>())
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ default void updateOrganizationSettings(
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
* on the given update mask. Updating the enablement state is supported on
* both resident and inherited modules (though resident modules cannot have an
* enablement state of inherited). Updating the display name and custom
* enablement state of "inherited"). Updating the display name and custom
* config of a module is supported on resident modules only.
* </pre>
*/
Expand Down Expand Up @@ -3652,7 +3652,7 @@ public void updateOrganizationSettings(
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
* on the given update mask. Updating the enablement state is supported on
* both resident and inherited modules (though resident modules cannot have an
* enablement state of inherited). Updating the display name and custom
* enablement state of "inherited"). Updating the display name and custom
* config of a module is supported on resident modules only.
* </pre>
*/
Expand Down Expand Up @@ -4345,7 +4345,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizatio
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
* on the given update mask. Updating the enablement state is supported on
* both resident and inherited modules (though resident modules cannot have an
* enablement state of inherited). Updating the display name and custom
* enablement state of "inherited"). Updating the display name and custom
* config of a module is supported on resident modules only.
* </pre>
*/
Expand Down Expand Up @@ -5050,7 +5050,7 @@ protected SecurityCenterFutureStub build(
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
* on the given update mask. Updating the enablement state is supported on
* both resident and inherited modules (though resident modules cannot have an
* enablement state of inherited). Updating the display name and custom
* enablement state of "inherited"). Updating the display name and custom
* config of a module is supported on resident modules only.
* </pre>
*/
Expand Down
Loading

0 comments on commit 9e1a89d

Please sign in to comment.