fetchUsersRequestingExtension method

Future<GoogleChromeManagementV1FetchUsersRequestingExtensionResponse> fetchUsersRequestingExtension(
  1. String customer, {
  2. String? extensionId,
  3. String? orgUnitId,
  4. int? pageSize,
  5. String? pageToken,
  6. String? $fields,
})

Get a list of users 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 the requesting users.

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 GoogleChromeManagementV1FetchUsersRequestingExtensionResponse.

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<GoogleChromeManagementV1FetchUsersRequestingExtensionResponse>
    fetchUsersRequestingExtension(
  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:fetchUsersRequestingExtension';

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