get method

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

Get telemetry device.

Request parameters:

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

readMask - Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report

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

Completes with a GoogleChromeManagementV1TelemetryDevice.

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<GoogleChromeManagementV1TelemetryDevice> 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 GoogleChromeManagementV1TelemetryDevice.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}