AI-generated Key Takeaways
-
This document describes the structure for tracking the status of long-running operations related to claiming, unclaiming, or attaching metadata to devices.
-
The
successCount
field provides a summary of the number of items successfully processed within the operation. -
The
perDeviceStatus
field contains a list ofOperationPerDevice
objects, which detail the processing status for each individual device in the operation. -
Each
OperationPerDevice
includes aresult
field that uses thePerDeviceStatusInBatch
to define the outcome of each device's operation. -
PerDeviceStatusInBatch
includes fields likestatus
,deviceId
,errorMessage
, anderrorIdentifier
that will detail if an operation was successful, and if not, to give a description of the failure.
Tracks the status of a long-running operation to claim, unclaim, or attach metadata to devices. To learn more, read Long‑running batch operations.
JSON representation | |
---|---|
{
"successCount": integer,
"perDeviceStatus": [
{
object ( |
Fields | |
---|---|
successCount |
A summary of how many items in the operation the server processed successfully. Updated as the operation progresses. |
perDeviceStatus[] |
The processing status for each device in the operation. One |
OperationPerDevice
A task for each device in the operation. Corresponds to each device change in the request.
JSON representation | |
---|---|
{ "result": { object ( |
Fields | ||
---|---|---|
result |
The processing result for each device. |
|
Union field request . Containing the request received by the server. request can be only one of the following: |
||
claim |
A copy of the original device-claim request received by the server. |
|
unclaim |
A copy of the original device-unclaim request received by the server. |
|
updateMetadata |
A copy of the original metadata-update request received by the server. |
PerDeviceStatusInBatch
Captures the processing status for each device in the operation.
JSON representation | |
---|---|
{
"status": enum ( |
Fields | |
---|---|
status |
The result status of the device after processing. |
deviceId |
If processing succeeds, the device ID of the device. |
errorMessage |
If processing fails, a developer message explaining what went wrong. |
errorIdentifier |
If processing fails, the error type. |