Skip to content

Commit 9e1a89d

Browse files
feat: [securitycenter] add cloud_dlp_inspection and cloud_dlp_data_profile 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>
1 parent b47972a commit 9e1a89d

File tree

32 files changed

+3572
-770
lines changed

32 files changed

+3572
-770
lines changed

java-securitycenter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.12.0</version>
23+
<version>26.13.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.22.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.23.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6039,7 +6039,7 @@ public final OrganizationSettings updateOrganizationSettings(
60396039
/**
60406040
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
60416041
* mask. Updating the enablement state is supported on both resident and inherited modules (though
6042-
* resident modules cannot have an enablement state of inherited). Updating the display name and
6042+
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
60436043
* custom config of a module is supported on resident modules only.
60446044
*
60456045
* <p>Sample code:
@@ -6080,7 +6080,7 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu
60806080
/**
60816081
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
60826082
* mask. Updating the enablement state is supported on both resident and inherited modules (though
6083-
* resident modules cannot have an enablement state of inherited). Updating the display name and
6083+
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
60846084
* custom config of a module is supported on resident modules only.
60856085
*
60866086
* <p>Sample code:
@@ -6115,7 +6115,7 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu
61156115
/**
61166116
* Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update
61176117
* mask. Updating the enablement state is supported on both resident and inherited modules (though
6118-
* resident modules cannot have an enablement state of inherited). Updating the display name and
6118+
* resident modules cannot have an enablement state of "inherited"). Updating the display name and
61196119
* custom config of a module is supported on resident modules only.
61206120
*
61216121
* <p>Sample code:

java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ public void createFindingTest() throws Exception {
453453
.setKubernetes(Kubernetes.newBuilder().build())
454454
.setDatabase(Database.newBuilder().build())
455455
.addAllFiles(new ArrayList<File>())
456+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
457+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
456458
.setKernelRootkit(KernelRootkit.newBuilder().build())
457459
.build();
458460
mockService.addResponse(expectedResponse);
@@ -535,6 +537,8 @@ public void createFindingTest2() throws Exception {
535537
.setKubernetes(Kubernetes.newBuilder().build())
536538
.setDatabase(Database.newBuilder().build())
537539
.addAllFiles(new ArrayList<File>())
540+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
541+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
538542
.setKernelRootkit(KernelRootkit.newBuilder().build())
539543
.build();
540544
mockService.addResponse(expectedResponse);
@@ -3904,6 +3908,8 @@ public void setFindingStateTest() throws Exception {
39043908
.setKubernetes(Kubernetes.newBuilder().build())
39053909
.setDatabase(Database.newBuilder().build())
39063910
.addAllFiles(new ArrayList<File>())
3911+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3912+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
39073913
.setKernelRootkit(KernelRootkit.newBuilder().build())
39083914
.build();
39093915
mockService.addResponse(expectedResponse);
@@ -3988,6 +3994,8 @@ public void setFindingStateTest2() throws Exception {
39883994
.setKubernetes(Kubernetes.newBuilder().build())
39893995
.setDatabase(Database.newBuilder().build())
39903996
.addAllFiles(new ArrayList<File>())
3997+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3998+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
39913999
.setKernelRootkit(KernelRootkit.newBuilder().build())
39924000
.build();
39934001
mockService.addResponse(expectedResponse);
@@ -4070,6 +4078,8 @@ public void setMuteTest() throws Exception {
40704078
.setKubernetes(Kubernetes.newBuilder().build())
40714079
.setDatabase(Database.newBuilder().build())
40724080
.addAllFiles(new ArrayList<File>())
4081+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4082+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
40734083
.setKernelRootkit(KernelRootkit.newBuilder().build())
40744084
.build();
40754085
mockService.addResponse(expectedResponse);
@@ -4152,6 +4162,8 @@ public void setMuteTest2() throws Exception {
41524162
.setKubernetes(Kubernetes.newBuilder().build())
41534163
.setDatabase(Database.newBuilder().build())
41544164
.addAllFiles(new ArrayList<File>())
4165+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4166+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
41554167
.setKernelRootkit(KernelRootkit.newBuilder().build())
41564168
.build();
41574169
mockService.addResponse(expectedResponse);
@@ -4484,6 +4496,8 @@ public void updateFindingTest() throws Exception {
44844496
.setKubernetes(Kubernetes.newBuilder().build())
44854497
.setDatabase(Database.newBuilder().build())
44864498
.addAllFiles(new ArrayList<File>())
4499+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4500+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
44874501
.setKernelRootkit(KernelRootkit.newBuilder().build())
44884502
.build();
44894503
mockService.addResponse(expectedResponse);
@@ -4524,6 +4538,8 @@ public void updateFindingTest() throws Exception {
45244538
.setKubernetes(Kubernetes.newBuilder().build())
45254539
.setDatabase(Database.newBuilder().build())
45264540
.addAllFiles(new ArrayList<File>())
4541+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4542+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
45274543
.setKernelRootkit(KernelRootkit.newBuilder().build())
45284544
.build();
45294545

@@ -4589,6 +4605,8 @@ public void updateFindingExceptionTest() throws Exception {
45894605
.setKubernetes(Kubernetes.newBuilder().build())
45904606
.setDatabase(Database.newBuilder().build())
45914607
.addAllFiles(new ArrayList<File>())
4608+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4609+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
45924610
.setKernelRootkit(KernelRootkit.newBuilder().build())
45934611
.build();
45944612
client.updateFinding(finding);

java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ public void createFindingTest() throws Exception {
440440
.setKubernetes(Kubernetes.newBuilder().build())
441441
.setDatabase(Database.newBuilder().build())
442442
.addAllFiles(new ArrayList<File>())
443+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
444+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
443445
.setKernelRootkit(KernelRootkit.newBuilder().build())
444446
.build();
445447
mockSecurityCenter.addResponse(expectedResponse);
@@ -518,6 +520,8 @@ public void createFindingTest2() throws Exception {
518520
.setKubernetes(Kubernetes.newBuilder().build())
519521
.setDatabase(Database.newBuilder().build())
520522
.addAllFiles(new ArrayList<File>())
523+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
524+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
521525
.setKernelRootkit(KernelRootkit.newBuilder().build())
522526
.build();
523527
mockSecurityCenter.addResponse(expectedResponse);
@@ -3581,6 +3585,8 @@ public void setFindingStateTest() throws Exception {
35813585
.setKubernetes(Kubernetes.newBuilder().build())
35823586
.setDatabase(Database.newBuilder().build())
35833587
.addAllFiles(new ArrayList<File>())
3588+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3589+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
35843590
.setKernelRootkit(KernelRootkit.newBuilder().build())
35853591
.build();
35863592
mockSecurityCenter.addResponse(expectedResponse);
@@ -3661,6 +3667,8 @@ public void setFindingStateTest2() throws Exception {
36613667
.setKubernetes(Kubernetes.newBuilder().build())
36623668
.setDatabase(Database.newBuilder().build())
36633669
.addAllFiles(new ArrayList<File>())
3670+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3671+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
36643672
.setKernelRootkit(KernelRootkit.newBuilder().build())
36653673
.build();
36663674
mockSecurityCenter.addResponse(expectedResponse);
@@ -3739,6 +3747,8 @@ public void setMuteTest() throws Exception {
37393747
.setKubernetes(Kubernetes.newBuilder().build())
37403748
.setDatabase(Database.newBuilder().build())
37413749
.addAllFiles(new ArrayList<File>())
3750+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3751+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
37423752
.setKernelRootkit(KernelRootkit.newBuilder().build())
37433753
.build();
37443754
mockSecurityCenter.addResponse(expectedResponse);
@@ -3816,6 +3826,8 @@ public void setMuteTest2() throws Exception {
38163826
.setKubernetes(Kubernetes.newBuilder().build())
38173827
.setDatabase(Database.newBuilder().build())
38183828
.addAllFiles(new ArrayList<File>())
3829+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
3830+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
38193831
.setKernelRootkit(KernelRootkit.newBuilder().build())
38203832
.build();
38213833
mockSecurityCenter.addResponse(expectedResponse);
@@ -4103,6 +4115,8 @@ public void updateFindingTest() throws Exception {
41034115
.setKubernetes(Kubernetes.newBuilder().build())
41044116
.setDatabase(Database.newBuilder().build())
41054117
.addAllFiles(new ArrayList<File>())
4118+
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
4119+
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
41064120
.setKernelRootkit(KernelRootkit.newBuilder().build())
41074121
.build();
41084122
mockSecurityCenter.addResponse(expectedResponse);

java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,7 +2847,7 @@ default void updateOrganizationSettings(
28472847
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
28482848
* on the given update mask. Updating the enablement state is supported on
28492849
* both resident and inherited modules (though resident modules cannot have an
2850-
* enablement state of inherited). Updating the display name and custom
2850+
* enablement state of "inherited"). Updating the display name and custom
28512851
* config of a module is supported on resident modules only.
28522852
* </pre>
28532853
*/
@@ -3652,7 +3652,7 @@ public void updateOrganizationSettings(
36523652
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
36533653
* on the given update mask. Updating the enablement state is supported on
36543654
* both resident and inherited modules (though resident modules cannot have an
3655-
* enablement state of inherited). Updating the display name and custom
3655+
* enablement state of "inherited"). Updating the display name and custom
36563656
* config of a module is supported on resident modules only.
36573657
* </pre>
36583658
*/
@@ -4345,7 +4345,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizatio
43454345
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
43464346
* on the given update mask. Updating the enablement state is supported on
43474347
* both resident and inherited modules (though resident modules cannot have an
4348-
* enablement state of inherited). Updating the display name and custom
4348+
* enablement state of "inherited"). Updating the display name and custom
43494349
* config of a module is supported on resident modules only.
43504350
* </pre>
43514351
*/
@@ -5050,7 +5050,7 @@ protected SecurityCenterFutureStub build(
50505050
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
50515051
* on the given update mask. Updating the enablement state is supported on
50525052
* both resident and inherited modules (though resident modules cannot have an
5053-
* enablement state of inherited). Updating the display name and custom
5053+
* enablement state of "inherited"). Updating the display name and custom
50545054
* config of a module is supported on resident modules only.
50555055
* </pre>
50565056
*/

0 commit comments

Comments
 (0)