list method
Lists all ResourcePolicy configurations for the specified project and service.
Request parameters:
parent
- Required. The relative resource name of the parent Service for
which to list each associated ResourcePolicy, in the format: projects/{project_number}/services/{service_id}
Note that the
service_id
element must be a supported service ID. Currently, the
following service IDs are supported: * oauth2.googleapis.com
(Google
Identity for iOS)
Value must have pattern ^projects/\[^/\]+/services/\[^/\]+$
.
filter
- Optional. Filters the results by the specified rule. For the
exact syntax of this field, please consult the
[AIP-160](https://google.aip.dev/160) standard. Currently, since the
only fields in the ResourcePolicy resource are the scalar fields
enforcement_mode
and target_resource
, this method does not support the
traversal operator (.
) or the has operator (:
). Here are some examples
of valid filters: * enforcement_mode = ENFORCED
* target_resource = "//oauth2.googleapis.com/projects/12345/oauthClients/"
*
enforcement_mode = ENFORCED AND target_resource = "//oauth2.googleapis.com/projects/12345/oauthClients/"
pageSize
- The maximum number of ResourcePolicy objects to return in the
response. The server may return fewer than this at its own discretion. If
no value is specified (or too large a value is specified), the server will
impose its own limit.
pageToken
- Token returned from a previous call to ListResourcePolicies
indicating where in the set of ResourcePolicy objects to resume listing.
Provide this to retrieve the subsequent page. When paginating, all other
parameters provided to ListResourcePolicies must match the call that
provided the page token; if they do not match, the result is undefined.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleFirebaseAppcheckV1ListResourcePoliciesResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleFirebaseAppcheckV1ListResourcePoliciesResponse> list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/resourcePolicies';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleFirebaseAppcheckV1ListResourcePoliciesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}