countChromeBrowsersNeedingAttention method

Future<GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse> countChromeBrowsersNeedingAttention(
  1. String customer, {
  2. String? orgUnitId,
  3. String? $fields,
})

Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.

Request parameters:

customer - Required. The customer ID or "my_customer" prefixed with "customers/". Value must have pattern ^customers/\[^/\]+$.

orgUnitId - Optional. The ID of the organizational unit. If omitted, all data will be returned.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse.

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<
        GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
    countChromeBrowsersNeedingAttention(
  core.String customer, {
  core.String? orgUnitId,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (orgUnitId != null) 'orgUnitId': [orgUnitId],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' +
      core.Uri.encodeFull('$customer') +
      '/reports:countChromeBrowsersNeedingAttention';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse
      .fromJson(response_ as core.Map<core.String, core.dynamic>);
}