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 resource to distribute. Format:
projects/{project_number}/apps/{app_id}/releases/{release_id}
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>);
}