From 89ca24b49c93737569b428dd7ca883de6429a41c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 01:04:06 +0000 Subject: [PATCH] docs: update currently supported Finding filter fields (#159) PiperOrigin-RevId: 378264900 Source-Link: https://github.com/googleapis/googleapis/commit/020ba74ce6eab75b754f7f885a0096722bed57c1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b1413c12175a7c512a37077f2f9941b7c598a58e --- .coveragerc | 1 - .../types/securitycenter_service.py | 67 +++++++++++++------ 2 files changed, 47 insertions(+), 21 deletions(-) diff --git a/.coveragerc b/.coveragerc index f9eb6a20..3655af7f 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,7 +2,6 @@ branch = True [report] -fail_under = 100 show_missing = True omit = google/cloud/securitycenter/__init__.py diff --git a/google/cloud/securitycenter_v1/types/securitycenter_service.py b/google/cloud/securitycenter_v1/types/securitycenter_service.py index 2d5227a4..91f76fe4 100644 --- a/google/cloud/securitycenter_v1/types/securitycenter_service.py +++ b/google/cloud/securitycenter_v1/types/securitycenter_service.py @@ -435,27 +435,39 @@ class GroupFindingsRequest(proto.Message): - event_time: ``=``, ``>``, ``<``, ``>=``, ``<=`` - - severity: ``=``, ``:`` - Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: ``event_time = "2019-06-10T16:07:18-07:00"`` ``event_time = 1560208038000`` + - severity: ``=``, ``:`` + + - workflow_state: ``=``, ``:`` + - security_marks.marks: ``=``, ``:`` - source_properties: ``=``, ``:``, ``>``, ``<``, ``>=``, ``<=`` - For example, ``source_properties.size = 100`` is a valid - filter string. + For example, ``source_properties.size = 100`` is a valid + filter string. - Use a partial match on the empty string to filter based on a - property existing: ``source_properties.my_property : ""`` + Use a partial match on the empty string to filter based + on a property existing: + ``source_properties.my_property : ""`` - Use a negated partial match on the empty string to filter - based on a property not existing: - ``-source_properties.my_property : ""`` + Use a negated partial match on the empty string to filter + based on a property not existing: + ``-source_properties.my_property : ""`` + + - resource: + + - resource.name: ``=``, ``:`` + - resource.parent_name: ``=``, ``:`` + - resource.parent_display_name: ``=``, ``:`` + - resource.project_name: ``=``, ``:`` + - resource.project_display_name: ``=``, ``:`` + - resource.type: ``=``, ``:`` group_by (str): Required. Expression that defines what assets fields to use for grouping (including ``state_change``). The string value @@ -958,25 +970,40 @@ class ListFindingsRequest(proto.Message): - event_time: ``=``, ``>``, ``<``, ``>=``, ``<=`` - - severity: ``=``, ``:`` - Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: ``event_time = "2019-06-10T16:07:18-07:00"`` ``event_time = 1560208038000`` - security_marks.marks: ``=``, ``:`` source_properties: ``=``, - ``:``, ``>``, ``<``, ``>=``, ``<=`` + - severity: ``=``, ``:`` - For example, ``source_properties.size = 100`` is a valid - filter string. + - workflow_state: ``=``, ``:`` - Use a partial match on the empty string to filter based on a - property existing: ``source_properties.my_property : ""`` + - security_marks.marks: ``=``, ``:`` - Use a negated partial match on the empty string to filter - based on a property not existing: - ``-source_properties.my_property : ""`` + - source_properties: ``=``, ``:``, ``>``, ``<``, ``>=``, + ``<=`` + + For example, ``source_properties.size = 100`` is a valid + filter string. + + Use a partial match on the empty string to filter based + on a property existing: + ``source_properties.my_property : ""`` + + Use a negated partial match on the empty string to filter + based on a property not existing: + ``-source_properties.my_property : ""`` + + - resource: + + - resource.name: ``=``, ``:`` + - resource.parent_name: ``=``, ``:`` + - resource.parent_display_name: ``=``, ``:`` + - resource.project_name: ``=``, ``:`` + - resource.project_display_name: ``=``, ``:`` + - resource.type: ``=``, ``:`` + - resource.folders.resource_folder: ``=``, ``:`` order_by (str): Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma