@@ -838,6 +838,10 @@ message SearchAllIamPoliciesRequest {
838838 // * `resource:(instance1 OR instance2) policy:amy` to find
839839 // IAM policy bindings that are set on resources "instance1" or
840840 // "instance2" and also specify user "amy".
841+ // * `roles:roles/compute.admin` to find IAM policy bindings that specify the
842+ // Compute Admin role.
843+ // * `memberTypes:user` to find IAM policy bindings that contain the "user"
844+ // member type.
841845 string query = 2 [(google.api.field_behavior ) = OPTIONAL ];
842846
843847 // Optional. The page size for search result pagination. Page size is capped at 500 even
@@ -851,6 +855,36 @@ message SearchAllIamPoliciesRequest {
851855 // previous response. The values of all other method parameters must be
852856 // identical to those in the previous call.
853857 string page_token = 4 [(google.api.field_behavior ) = OPTIONAL ];
858+
859+ // Optional. A list of asset types that the IAM policies are attached to. If empty, it
860+ // will search the IAM policies that are attached to all the [searchable asset
861+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
862+ //
863+ // Regular expressions are also supported. For example:
864+ //
865+ // * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
866+ // starts with "compute.googleapis.com".
867+ // * ".*Instance" snapshots IAM policies attached to asset type ends with
868+ // "Instance".
869+ // * ".*Instance.*" snapshots IAM policies attached to asset type contains
870+ // "Instance".
871+ //
872+ // See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
873+ // regular expression syntax. If the regular expression does not match any
874+ // supported asset type, an INVALID_ARGUMENT error will be returned.
875+ repeated string asset_types = 5 [(google.api.field_behavior ) = OPTIONAL ];
876+
877+ // Optional. A comma-separated list of fields specifying the sorting order of the
878+ // results. The default order is ascending. Add " DESC" after the field name
879+ // to indicate descending order. Redundant space characters are ignored.
880+ // Example: "assetType DESC, resource".
881+ // Only singular primitive fields in the response are sortable:
882+ // * resource
883+ // * assetType
884+ // * project
885+ // All the other fields such as repeated fields (e.g., `folders`) and
886+ // non-primitive fields (e.g., `policy`) are not supported.
887+ string order_by = 7 [(google.api.field_behavior ) = OPTIONAL ];
854888}
855889
856890// Search all IAM policies response.
0 commit comments