distribute method
- GoogleFirebaseAppdistroV1DistributeReleaseRequest request,
- String name, {
- String? $fields,
Distributes a release to testers.
This call does the following: 1. Creates testers for the specified emails,
if none exist 2. Adds the testers and groups to the release 3. Sends new
testers an invitation email 4. Sends existing testers a new release email
The request will fail with a INVALID_ARGUMENT
if it contains a group
that doesn't exist.
request
- The metadata request object.
Request parameters:
name
- Required. The name of the release. Format:
projects/{project_number}/apps/{app}/releases/{release}
Value must have pattern
^projects/\[^/\]+/apps/\[^/\]+/releases/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleFirebaseAppdistroV1DistributeReleaseResponse.
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<GoogleFirebaseAppdistroV1DistributeReleaseResponse> distribute(
GoogleFirebaseAppdistroV1DistributeReleaseRequest request,
core.String name, {
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 = 'v1/' + core.Uri.encodeFull('$name') + ':distribute';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleFirebaseAppdistroV1DistributeReleaseResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}