Skip to content

Commit

Permalink
feat: [securitycenter] Added parent display name i.e. source display …
Browse files Browse the repository at this point in the history
…name for a finding as one of the finding attributes (#8400)

* feat: Added parent display name i.e. source display name for a finding as one of the finding attributes

PiperOrigin-RevId: 474319054

Source-Link: googleapis/googleapis@862f99f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/bfc34971e1d16b179ffab8cb6779bc64f7378c09
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiYmZjMzQ5NzFlMWQxNmIxNzlmZmFiOGNiNjc3OWJjNjRmNzM3OGMwOSJ9

* 🦉 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 Sep 19, 2022
1 parent 018d929 commit 4fe4dcd
Show file tree
Hide file tree
Showing 8 changed files with 438 additions and 132 deletions.
6 changes: 3 additions & 3 deletions java-securitycenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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.1.1</version>
<version>26.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -67,13 +67,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter'
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-securitycenter:2.9.0'
implementation 'com.google.cloud:google-cloud-securitycenter:2.10.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.9.0"
libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.10.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ public void createFindingTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -394,6 +395,7 @@ public void createFindingTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2785,6 +2787,7 @@ public void setFindingStateTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2865,6 +2868,7 @@ public void setFindingStateTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2943,6 +2947,7 @@ public void setMuteTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -3021,6 +3026,7 @@ public void setMuteTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -3349,6 +3355,7 @@ public void updateFindingTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -3385,6 +3392,7 @@ public void updateFindingTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -3446,6 +3454,7 @@ public void updateFindingExceptionTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public void createFindingTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -381,6 +382,7 @@ public void createFindingTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2556,6 +2558,7 @@ public void setFindingStateTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2632,6 +2635,7 @@ public void setFindingStateTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2706,6 +2710,7 @@ public void setMuteTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -2779,6 +2784,7 @@ public void setMuteTest2() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down Expand Up @@ -3062,6 +3068,7 @@ public void updateFindingTest() throws Exception {
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setParentDisplayName("parentDisplayName-1523759261")
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
.addAllIamBindings(new ArrayList<IamBinding>())
Expand Down
Loading

0 comments on commit 4fe4dcd

Please sign in to comment.