countChromeHardwareFleetDevices method
Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type).
Further information can be found here https://support.google.com/chrome/a/answer/10564947
Request parameters:
customer
- Required. The customer ID or "my_customer".
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 GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.
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<GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
countChromeHardwareFleetDevices(
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:countChromeHardwareFleetDevices';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse
.fromJson(response_ as core.Map<core.String, core.dynamic>);
}