get method

Future<GoogleChromeManagementV1TelemetryUser> get(
  1. String name, {
  2. String? readMask,
  3. String? $fields,
})

Get telemetry user.

Request parameters:

name - Required. Name of the TelemetryUser to return. Value must have pattern ^customers/\[^/\]+/telemetry/users/\[^/\]+$.

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

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<GoogleChromeManagementV1TelemetryUser> get(
  core.String name, {
  core.String? readMask,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (readMask != null) 'readMask': [readMask],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$name');

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