Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Aguarda até que a operação de longa duração especificada seja concluída ou atinja, no máximo, um tempo limite especificado, devolvendo o estado mais recente. Se a operação já estiver concluída, o estado mais recente é devolvido imediatamente. Se o limite de tempo especificado for superior ao limite de tempo HTTP/RPC predefinido, é usado o limite de tempo HTTP/RPC. Se o servidor não suportar este método, devolve google.rpc.Code.UNIMPLEMENTED. Tenha em atenção que este método é realizado mediante o melhor esforço possível. Pode devolver o estado mais recente antes do limite de tempo especificado (inclusive imediatamente), o que significa que mesmo uma resposta imediata não garante que a operação esteja concluída.
Pedido HTTP
POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:wait
Parâmetros de caminho
Parâmetros
name
string
O nome do recurso de operação a aguardar.
Corpo do pedido
O corpo do pedido contém dados com a seguinte estrutura:
A duração máxima de espera antes de atingir o limite de tempo. Se for deixado em branco, a espera é, no máximo, o tempo permitido pelo protocolo HTTP/RPC subjacente. Se o prazo do contexto RPC também for especificado, é usado o mais curto.
Uma duração em segundos com até nove dígitos fracionários, que termina com "s". Exemplo: "3.5s".
Corpo da resposta
Se for bem-sucedido, o corpo da resposta contém uma instância de Operation.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-21 UTC."],[[["\u003cp\u003eThis operation waits for a long-running process to complete or until a specified timeout, returning the latest state of the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the request path indicates the specific operation to wait for.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can include a \u003ccode\u003etimeout\u003c/code\u003e field, which is a string in duration format that sets the maximum wait time, otherwise the HTTP/RPC timeout will apply.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return an instance of an Operation object.\u003c/p\u003e\n"],["\u003cp\u003eThis operation requires one of two specific OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-translation\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.operations.wait\n\nWaits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.\n\n### HTTP request\n\n`POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:wait`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rest/v3/projects.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-translation`\n- `https://www.googleapis.com/auth/cloud-platform`"]]