getOperation
Eşzamansız API yöntemleri, işlem tamamlanmadan önce bir sonuç döndürür. Eşzamansız bir işlemin durumunu almak için operationId
değerini kullanarak getOperation
işlevini kullanın.
Yöntem imzası
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
Mülk adı |
Değer |
Zorunlu |
Açıklama |
operationId |
string |
Evet |
İşlem kimliği. |
Hata davranışı
Hata oluştuğunda kitaplık aşağıdaki hata kodlarından birini içeren bir CommonException
oluşturur:
Hata kodu |
AUTHORIZATION_FAIL (operasyon bayiye ait değilse) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-09 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-09 UTC."],[[["Asynchronous API methods use `getOperation` to check the status of an operation."],["The `getOperation` method requires the `operationId` as a string in the `GetOperationRequest`."],["`CommonException` is thrown if an error occurs during the operation."],["Possible error codes include `AUTHORIZATION_FAIL`, `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`."]]],["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"]]