get method
Get the specified group.
Request parameters:
groupName
- Required. The group resource name. Written as
projects/{projectID}/groups/{group_name}
. Call
[groupStats.list
](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
to return a list of groups belonging to this project. Example:
projects/my-project-123/groups/my-group
Value must have pattern ^projects/\[^/\]+/groups/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ErrorGroup.
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<ErrorGroup> get(
core.String groupName, {
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1beta1/' + core.Uri.encodeFull('$groupName');
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return ErrorGroup.fromJson(
_response as core.Map<core.String, core.dynamic>);
}