Method: operations.delete
删除长时间运行的操作。此方法只是表明客户端不再关注操作结果,而不会取消操作。如果服务器不支持此方法,则会返回 google.rpc.Code.UNIMPLEMENTED
。
HTTP 请求
DELETE https://routeoptimization.googleapis.com/v1/{name=operations/**}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
要删除的操作资源的名称。
|
响应正文
如果成功,响应正文将为空的 JSON 对象。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/cloud-platform
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-10。
[null,null,["最后更新时间 (UTC):2025-02-10。"],[[["Deletes a long-running operation, signaling the client is no longer interested in the result, but doesn't cancel the operation itself."],["Uses a DELETE HTTP request with the operation's name as a path parameter."],["Requires an empty request body and returns an empty response body upon success."],["Needs authorization with the `https://www.googleapis.com/auth/cloud-platform` scope."],["If unsupported by the server, it returns a `google.rpc.Code.UNIMPLEMENTED` error."]]],["This document details how to delete a long-running operation via an HTTP DELETE request. The target URL is constructed using a path parameter, `name`, which specifies the operation resource to be deleted. The request body must be empty. A successful deletion returns an empty JSON object in the response body. This action indicates client disinterest and doesn't cancel the operation. The request requires authorization through the `https://www.googleapis.com/auth/cloud-platform` OAuth scope.\n"]]