Skip to content

Commit

Permalink
feat: [securitycenter] Add application field to finding's list of att…
Browse files Browse the repository at this point in the history
…ributes (#10367)

* feat: Add application field to finding's list of attributes

PiperOrigin-RevId: 606675743

Source-Link: googleapis/googleapis@8e7f6bb

Source-Link: googleapis/googleapis-gen@e65f14e
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiZTY1ZjE0ZTQ5MTk4MmExYWVmMmVjZmM0MTk0MGIwNGI5ZGU3ODA2OSJ9

* 🦉 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] committed Feb 14, 2024
1 parent 350d5a8 commit cd8a6ef
Show file tree
Hide file tree
Showing 12 changed files with 1,460 additions and 105 deletions.
2 changes: 1 addition & 1 deletion java-securitycenter/README.md
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
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
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
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

0 comments on commit cd8a6ef

Please sign in to comment.