DeleteWaitlistEntry 方法
客户端使用 DeleteWaitlistEntry 删除现有候补名单条目。
如果因业务逻辑错误而导致预订更新失败,则应将相应错误填充到响应中。针对不存在的资源执行删除操作时,应返回 HTTP 状态代码 404(未找到)。
请求
DeleteWaitlistEntryRequest
返回值
google.protobuf.Empty(空消息)
// Cancel the user's entry in the waitlist.
message DeleteWaitlistEntryRequest {
// Required. The partner-provided ID for the waitlist entry to be deleted.
string waitlist_entry_id = 1;
}
DeleteWaitlistEntry 示例
{ "waitlist_entry_id": "MYS-1668739060" }
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-26。
[null,null,["最后更新时间 (UTC):2024-11-26。"],[[["The `DeleteWaitlistEntry` method allows clients to remove an existing waitlist entry."],["Requests must include the `waitlist_entry_id` in the request body."],["Successful deletion returns an empty response, while attempts to delete non-existent entries result in a 404 (Not Found) error."],["Business logic errors during deletion will be indicated in the response."]]],["The `DeleteWaitlistEntry` method removes a waitlist entry using its partner-provided `waitlist_entry_id`. A failed update due to business logic errors will include the error in the response. Deleting a non-existent entry results in a 404 (Not Found) HTTP status code. The request requires a `waitlist_entry_id`, and successful deletion returns an empty message. A sample request uses a `waitlist_entry_id`, like \"MYS-1668739060\", with an empty JSON object returned on success.\n"]]