countChromeDevicesReachingAutoExpirationDate method

Future<GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse> countChromeDevicesReachingAutoExpirationDate(
  1. String customer, {
  2. String? maxAueDate,
  3. String? minAueDate,
  4. String? orgUnitId,
  5. String? $fields,
})

Generate report of the number of devices expiring in each month of the selected time frame.

Devices are grouped by auto update expiration date and model. Further information can be found here.

Request parameters:

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

maxAueDate - Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.

minAueDate - Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.

orgUnitId - Optional. The organizational unit ID, if omitted, will return data for all organizational units.

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

Completes with a GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse.

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

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

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