batchGet method
Gets up to 1K extensions in a batch.
Request parameters:
parent
- The parent resource shared by all extensions being retrieved.
Format: publishers/{publisher} If this is set, the parent of all of the
extensions specified in names
must match this field.
Value must have pattern ^publishers/\[^/\]+$
.
names
- Required. The names of the extensions to retrieve. A maximum of
1000 extensions can be retrieved in a batch. Format:
publishers/{publisher}/extensions/{extension}
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleFirebaseExtensionsV1betaBatchGetExtensionsResponse.
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<GoogleFirebaseExtensionsV1betaBatchGetExtensionsResponse>
batchGet(
core.String parent, {
core.List<core.String>? names,
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if (names != null) 'names': names,
if ($fields != null) 'fields': [$fields],
};
final _url =
'v1beta/' + core.Uri.encodeFull('$parent') + '/extensions:batchGet';
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return GoogleFirebaseExtensionsV1betaBatchGetExtensionsResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}