fetchDevicesRequestingExtension method
Get a list of devices that have requested to install an extension.
Request parameters:
customer
- Required. The customer ID or "my_customer" prefixed with
"customers/".
Value must have pattern ^customers/\[^/\]+$
.
extensionId
- Required. The extension for which we want to find
requesting devices.
orgUnitId
- The ID of the organizational unit. Only consider devices
that directly belong to this org unit, i.e. sub-orgunits are not counted.
If omitted, all data will be returned.
pageSize
- Optional. Maximum number of results to return. Maximum and
default are 50. Any page size larger than 50 will be coerced to 50.
pageToken
- Optional. Token to specify the page of the request to be
returned. Token expires after 1 day.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse.
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<GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>
fetchDevicesRequestingExtension(
core.String customer, {
core.String? extensionId,
core.String? orgUnitId,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (extensionId != null) 'extensionId': [extensionId],
if (orgUnitId != null) 'orgUnitId': [orgUnitId],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' +
core.Uri.encodeFull('$customer') +
'/apps:fetchDevicesRequestingExtension';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse
.fromJson(response_ as core.Map<core.String, core.dynamic>);
}