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
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[null,null,["上次更新時間: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`"]]