list method

Future<GoogleFirebaseApptestersV1alphaListDevicesResponse> list({
  1. int? pageSize,
  2. String? pageToken,
  3. String? $fields,
})

Get a list of devices for a tester A device represents a physical device that is used by a tester to test an app.

Testers can use multiple devices to test apps. For each device a tester uses, the tester must consent to sharing the device's data for an app in order to view that app's releases. This is required for iOS apps. Specifically, for iOS apps with Ad-hoc distributions, we need to access the devices UUID to determine if the release can be downloaded on the tester's device. Devices are parents of apps because the device that a tester is using affects the values of fields in the App and Release messages.

Request parameters:

pageSize - Maximum number of devices to return

pageToken - Page token received from previous ListDevices call

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

Completes with a GoogleFirebaseApptestersV1alphaListDevicesResponse.

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<GoogleFirebaseApptestersV1alphaListDevicesResponse> list({
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

  const _url = 'v1alpha/devices';

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