Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [securitycenter] Added parent display name i.e. source display name for a finding as one of the finding attributes #8400

Merged
merged 2 commits into from
Sep 19, 2022
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
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