list method

Future<GoogleChromeManagementV1ListTelemetryUsersResponse> list(
  1. String parent, {
  2. String? filter,
  3. int? pageSize,
  4. String? pageToken,
  5. String? readMask,
  6. String? $fields,
})

List all telemetry users.

Request parameters:

parent - Required. Customer id or "my_customer" to use the customer associated to the account making the request. Value must have pattern ^customers/\[^/\]+$.

filter - Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id

pageSize - Maximum number of results to return. Default value is 100. Maximum value is 1000.

pageToken - Token to specify next page in the list.

readMask - Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report

  • user_device.peripherals_report

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

Completes with a GoogleChromeManagementV1ListTelemetryUsersResponse.

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<GoogleChromeManagementV1ListTelemetryUsersResponse> list(
  core.String parent, {
  core.String? filter,
  core.int? pageSize,
  core.String? pageToken,
  core.String? readMask,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (filter != null) 'filter': [filter],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (readMask != null) 'readMask': [readMask],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/telemetry/users';

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