get method
Gets command data a specific command issued to the device.
Request parameters:
customerId
- Immutable. ID of the Google Workspace account.
deviceId
- Immutable. ID of Chrome OS Device.
commandId
- Immutable. ID of Chrome OS Device Command.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a DirectoryChromeosdevicesCommand.
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<DirectoryChromeosdevicesCommand> get(
core.String customerId,
core.String deviceId,
core.String commandId, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'admin/directory/v1/customer/' +
commons.escapeVariable('$customerId') +
'/devices/chromeos/' +
commons.escapeVariable('$deviceId') +
'/commands/' +
commons.escapeVariable('$commandId');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return DirectoryChromeosdevicesCommand.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}