Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
getOperation
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
异步 API 方法会在处理完成之前返回一个结果。使用 getOperation 通过异步操作的 operationId 检索其状态。
方法签名
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
| 属性名称 |
值 |
必填 |
说明 |
operationId |
string |
是 |
操作 ID。 |
错误行为
如果发生错误,该库会抛出包含以下错误代码之一的 CommonException:
| 错误代码 |
AUTHORIZATION_FAIL(如果转销商不是操作所有者) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],["Asynchronous operations are tracked using `getOperation`, which requires an `operationId` to check their status. The `getOperation` method, part of the API, takes a `GetOperationRequest` and can throw a `CommonException`. Possible errors include `AUTHORIZATION_FAIL` (if the caller lacks ownership), `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`. The method returns before the operation is completed, allowing users to periodically retrieve updates via `getOperation`.\n"]]