create method
- GoogleFirebaseApptestersV1alphaTesterAppInstallation request,
- String parent, {
- String? fid,
- String? $fields,
Create a new TesterAppInstallation record to register a Firebase Installation ID with a specific Tester to enable FID based auth from the SDK
request
- The metadata request object.
Request parameters:
parent
- Required. The parent resource where this TesterAppInstallation
will be created Format: devices/{device}/testerApps/{tester_app}
Value must have pattern ^devices/\[^/\]+/testerApps/\[^/\]+$
.
fid
- Required. The firebase installation id to register
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleFirebaseApptestersV1alphaTesterAppInstallation.
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<GoogleFirebaseApptestersV1alphaTesterAppInstallation> create(
GoogleFirebaseApptestersV1alphaTesterAppInstallation request,
core.String parent, {
core.String? fid,
core.String? $fields,
}) async {
final _body = convert.json.encode(request);
final _queryParams = <core.String, core.List<core.String>>{
if (fid != null) 'fid': [fid],
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1alpha/' + core.Uri.encodeFull('$parent') + '/installations';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleFirebaseApptestersV1alphaTesterAppInstallation.fromJson(
_response as core.Map<core.String, core.dynamic>);
}