create method
Future<GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse>
create(
- GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest request,
- String mobilesdkAppId,
- String releaseId, {
- String? $fields,
Create release notes on a release.
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 GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse.
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<GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse> create(
GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest 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') +
'/notes';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}