searchApps method

Future<SearchFirebaseAppsResponse> searchApps(
  1. String parent, {
  2. String? filter,
  3. int? pageSize,
  4. String? pageToken,
  5. String? $fields,
})

Lists all available Apps for the specified FirebaseProject.

This is a convenience method. Typically, interaction with an App should be done using the platform-specific service, but some tool use-cases require a summary of all known Apps (such as for App selector interfaces).

Request parameters:

parent - The parent FirebaseProject for which to list Apps, in the format: projects/ PROJECT_IDENTIFIER Refer to the FirebaseProject [name](../projects#FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values. Value must have pattern ^projects/\[^/\]+$.

filter - A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [app_id](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [namespace](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [platform](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following "virtual" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * sha1_hash: This field is considered to be a repeated string field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * sha256_hash: This field is considered to be a repeated string field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * app_store_id: This field is considered to be a singular string field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * team_id: This field is considered to be a singular string field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.

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. This value cannot be negative.

pageToken - Token returned from a previous call to SearchFirebaseApps indicating where in the set of Apps to resume listing.

$fields - Selector specifying which fields to include in a partial response.

Completes with a SearchFirebaseAppsResponse.

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<SearchFirebaseAppsResponse> searchApps(
  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 = 'v1beta1/' + core.Uri.encodeFull('$parent') + ':searchApps';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return SearchFirebaseAppsResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}