Method: invalidation.partners.invalidateResource
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使现有资源失效。
如果请求的资源未订阅 Google 服务,则请求会被忽略。
支持的资源类型:- 自提
HTTP 请求
POST https://mapsbooking.googleapis.com/v1alpha/invalidation/{resourceId=partners/**}:invalidateResource
网址采用 gRPC 转码语法。
路径参数
参数 |
resourceId |
string
要使资源失效的资源的名称。 例如,对于自提资源,名称应采用 partners/{partner_id}/pickups/{pickup_id} 格式。实现必须移除已识别资源的缓存版本。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/mapsbooking
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[[["\u003cp\u003eInvalidates an existing Pickup resource, removing cached versions, if it's subscribed to Google service.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/mapsbooking\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe request is sent as an empty POST request to a specific URL with the resource ID as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will be empty upon successful invalidation.\u003c/p\u003e\n"]]],[],null,["# Method: invalidation.partners.invalidateResource\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nInvalidates an existing resource.\n\nA request is ignored if the requested resource is not subscribed to Google service.\n\nSupported resource types: - Pickup\n\n### HTTP request\n\n`POST https://mapsbooking.googleapis.com/v1alpha/invalidation/{resourceId=partners/**}:invalidateResource`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resource``Id` | `string` The name of the resource to be invalidated. For example, for a Pickup resource, name should have the format of `partners/{partner_id}/pickups/{pickup_id}`. Implementations MUST remove cached versions of the identified resource. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/mapsbooking`"]]