Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.31.0</version>
<version>26.32.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.42.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.43.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 @@ -395,6 +395,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.securitycenter.v1.Application",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.securitycenter.v1.Application$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.securitycenter.v1.Asset",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ public void createFindingTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -540,6 +541,7 @@ public void createFindingTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -3911,6 +3913,7 @@ public void setFindingStateTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -3997,6 +4000,7 @@ public void setFindingStateTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -4081,6 +4085,7 @@ public void setMuteTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -4165,6 +4170,7 @@ public void setMuteTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -4552,6 +4558,7 @@ public void updateFindingTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -4594,6 +4601,7 @@ public void updateFindingTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();

Finding actualResponse = client.updateFinding(finding);
Expand Down Expand Up @@ -4661,6 +4669,7 @@ public void updateFindingExceptionTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
client.updateFinding(finding);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ public void createFindingTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -523,6 +524,7 @@ public void createFindingTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -3588,6 +3590,7 @@ public void setFindingStateTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -3670,6 +3673,7 @@ public void setFindingStateTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -3750,6 +3754,7 @@ public void setMuteTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -3829,6 +3834,7 @@ public void setMuteTest2() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -4168,6 +4174,7 @@ public void updateFindingTest() throws Exception {
.setCloudDlpInspection(CloudDlpInspection.newBuilder().build())
.setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build())
.setKernelRootkit(KernelRootkit.newBuilder().build())
.setApplication(Application.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down
Loading