Skip to content

Commit 4d71c45

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added resource type and display_name field to the FindingResult, and supported them in the filter for ListFindings and GroupFindings. Also added display_name to the resource which is surfaced in NotificationMessage
PiperOrigin-RevId: 408362247
1 parent 78eb8a2 commit 4d71c45

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

google/cloud/securitycenter/v1/resource.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ message Resource {
5353
// The first folder is the deepest nested folder, and the last folder is the
5454
// folder directly under the Organization.
5555
repeated Folder folders = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
56+
57+
// The human readable name of the resource.
58+
string display_name = 8;
5659
}

google/cloud/securitycenter/v1/securitycenter_service.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ message ListFindingsRequest {
11081108
// * resource.project_display_name: `=`, `:`
11091109
// * resource.type: `=`, `:`
11101110
// * resource.folders.resource_folder: `=`, `:`
1111+
// * resource.display_name: `=`, `:`
11111112
string filter = 2;
11121113

11131114
// Expression that defines what fields and order to use for sorting. The
@@ -1205,10 +1206,16 @@ message ListFindingsResponse {
12051206
// The human readable name of resource's parent.
12061207
string parent_display_name = 5;
12071208

1209+
// The full resource type of the resource.
1210+
string type = 6;
1211+
12081212
// Contains a Folder message for each folder in the assets ancestry.
12091213
// The first folder is the deepest nested folder, and the last folder is
12101214
// the folder directly under the Organization.
12111215
repeated Folder folders = 7;
1216+
1217+
// The human readable name of the resource.
1218+
string display_name = 8;
12121219
}
12131220

12141221
// The change in state of the finding.

0 commit comments

Comments
 (0)