enableAccess method

Enable access on a release for testers.

request - The metadata request object.

Request parameters:

mobilesdkAppId - Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289

releaseId - Release identifier

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

Completes with a GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse.

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<GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse>
    enableAccess(
  GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest request,
  core.String mobilesdkAppId,
  core.String releaseId, {
  core.String? $fields,
}) async {
  final _body = convert.json.encode(request);
  final _queryParams = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1alpha/apps/' +
      commons.escapeVariable('$mobilesdkAppId') +
      '/releases/' +
      commons.escapeVariable('$releaseId') +
      '/enable_access';

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