countChromeDevicesThatNeedAttention method

Future<GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse> countChromeDevicesThatNeedAttention(
  1. String customer, {
  2. String? orgUnitId,
  3. String? readMask,
  4. String? $fields,
})

Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint.

Further information can be found here https://support.google.com/chrome/a/answer/10564947

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.

readMask - Required. Mask of the fields that should be populated in the returned report.

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

Completes with a GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse.

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

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

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