countChromeAppRequests method
Generate summary of app installation requests.
Request parameters:
customer
- Required. Customer id or "my_customer" to use the customer
associated to the account making the request.
Value must have pattern ^customers/\[^/\]+$
.
orderBy
- Field used to order results. Supported fields: * request_count
- latest_request_time
orgUnitId
- The ID of the organizational unit.
pageSize
- Maximum number of results to return. Maximum and default are
50, anything above will be coerced to 50.
pageToken
- Token to specify the page of the request to be returned.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleChromeManagementV1CountChromeAppRequestsResponse.
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<GoogleChromeManagementV1CountChromeAppRequestsResponse>
countChromeAppRequests(
core.String customer, {
core.String? orderBy,
core.String? orgUnitId,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (orderBy != null) 'orderBy': [orderBy],
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:countChromeAppRequests';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleChromeManagementV1CountChromeAppRequestsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}