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 (#5505)

* 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: googleapis/googleapis-gen@bfc3497
Copy-Tag: eyJwIjoiU2VjdXJpdHlDZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6ImJmYzM0OTcxZTFkMTZiMTc5ZmZhYjhjYjY3NzliYzY0ZjczNzhjMDkifQ==

* 🦉 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>
Co-authored-by: David Supplee <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2022
1 parent 826499f commit ac4ebc8
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 20 deletions.
Binary file modified SecurityCenter/metadata/V1/Finding.php
Binary file not shown.
78 changes: 58 additions & 20 deletions SecurityCenter/src/V1/Finding.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions SecurityCenter/tests/Unit/V1/SecurityCenterClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ public function createFindingTest()
$externalUri = 'externalUri-1385596168';
$canonicalName = 'canonicalName1385400054';
$muteInitiator = 'muteInitiator7603081';
$parentDisplayName = 'parentDisplayName934119773';
$description = 'description-1724546052';
$nextSteps = 'nextSteps-921338149';
$expectedResponse = new Finding();
Expand All @@ -329,6 +330,7 @@ public function createFindingTest()
$expectedResponse->setExternalUri($externalUri);
$expectedResponse->setCanonicalName($canonicalName);
$expectedResponse->setMuteInitiator($muteInitiator);
$expectedResponse->setParentDisplayName($parentDisplayName);
$expectedResponse->setDescription($description);
$expectedResponse->setNextSteps($nextSteps);
$transport->addResponse($expectedResponse);
Expand Down Expand Up @@ -1957,6 +1959,7 @@ public function setFindingStateTest()
$externalUri = 'externalUri-1385596168';
$canonicalName = 'canonicalName1385400054';
$muteInitiator = 'muteInitiator7603081';
$parentDisplayName = 'parentDisplayName934119773';
$description = 'description-1724546052';
$nextSteps = 'nextSteps-921338149';
$expectedResponse = new Finding();
Expand All @@ -1967,6 +1970,7 @@ public function setFindingStateTest()
$expectedResponse->setExternalUri($externalUri);
$expectedResponse->setCanonicalName($canonicalName);
$expectedResponse->setMuteInitiator($muteInitiator);
$expectedResponse->setParentDisplayName($parentDisplayName);
$expectedResponse->setDescription($description);
$expectedResponse->setNextSteps($nextSteps);
$transport->addResponse($expectedResponse);
Expand Down Expand Up @@ -2115,6 +2119,7 @@ public function setMuteTest()
$externalUri = 'externalUri-1385596168';
$canonicalName = 'canonicalName1385400054';
$muteInitiator = 'muteInitiator7603081';
$parentDisplayName = 'parentDisplayName934119773';
$description = 'description-1724546052';
$nextSteps = 'nextSteps-921338149';
$expectedResponse = new Finding();
Expand All @@ -2125,6 +2130,7 @@ public function setMuteTest()
$expectedResponse->setExternalUri($externalUri);
$expectedResponse->setCanonicalName($canonicalName);
$expectedResponse->setMuteInitiator($muteInitiator);
$expectedResponse->setParentDisplayName($parentDisplayName);
$expectedResponse->setDescription($description);
$expectedResponse->setNextSteps($nextSteps);
$transport->addResponse($expectedResponse);
Expand Down Expand Up @@ -2407,6 +2413,7 @@ public function updateFindingTest()
$externalUri = 'externalUri-1385596168';
$canonicalName = 'canonicalName1385400054';
$muteInitiator = 'muteInitiator7603081';
$parentDisplayName = 'parentDisplayName934119773';
$description = 'description-1724546052';
$nextSteps = 'nextSteps-921338149';
$expectedResponse = new Finding();
Expand All @@ -2417,6 +2424,7 @@ public function updateFindingTest()
$expectedResponse->setExternalUri($externalUri);
$expectedResponse->setCanonicalName($canonicalName);
$expectedResponse->setMuteInitiator($muteInitiator);
$expectedResponse->setParentDisplayName($parentDisplayName);
$expectedResponse->setDescription($description);
$expectedResponse->setNextSteps($nextSteps);
$transport->addResponse($expectedResponse);
Expand Down

0 comments on commit ac4ebc8

Please sign in to comment.