list method
Lists each WebApp associated with the specified FirebaseProject.
The elements are returned in no particular order, but will be a consistent
view of the Apps when additional requests are made with a pageToken
.
Request parameters:
parent
- The resource name of the parent FirebaseProject for which to
list each associated WebApp, in the format:
projects/PROJECT_IDENTIFIER/webApps Refer to the FirebaseProject
[name
](../projects#FirebaseProject.FIELDS.name) field for details
about PROJECT_IDENTIFIER values.
Value must have pattern ^projects/\[^/\]+$
.
pageSize
- The maximum number of Apps to return in the response. The
server may return fewer than this value at its discretion. If no value is
specified (or too large a value is specified), then the server will impose
its own limit.
pageToken
- Token returned from a previous call to ListWebApps
indicating where in the set of Apps to resume listing.
showDeleted
- Controls whether Apps in the DELETED state should be
returned in the response. If not specified, only ACTIVE
Apps will be
returned.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListWebAppsResponse.
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<ListWebAppsResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.bool? showDeleted,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1beta1/' + core.Uri.encodeFull('$parent') + '/webApps';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListWebAppsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}