Method: subscriptions.delete
HTTP 请求
DELETE https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。要删除的订阅的资源名称。 格式:subscriptions/{subscription}
|
查询参数
参数 |
validateOnly |
boolean
可选。如果设为 true ,则验证并预览请求,但不会删除订阅。
|
allowMissing |
boolean
可选。如果设为 true 且未找到订阅,则请求会成功,但不会删除订阅。
|
etag |
string
可选。订阅的 ETag。 如果存在,则必须与服务器的 etag 匹配。否则,请求失败,并显示 ABORTED 状态。
|
响应正文
如果成功,则响应正文包含一个 Operation
实例。
metadata
字段包含空数组。response
字段为空。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-03。
[null,null,["最后更新时间 (UTC):2024-05-03。"],[[["This document describes how to delete a Google Workspace subscription using the `DELETE` method."],["The request requires specifying the subscription name in the URL path and can optionally include query parameters for validation, error handling, and Etag verification."],["An empty request body is required, and a successful response will return an Operation object indicating the deletion process."],["To authorize this request, you need one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/chat.bot` or those related to Chat, Meetings, and Spaces."],["This feature is part of the Google Workspace Developer Preview Program and may be subject to change."]]],["This document outlines the process for deleting a Google Workspace subscription via an HTTP DELETE request to `https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}`. The `name` path parameter is required to specify the subscription. Optional query parameters include `validateOnly`, `allowMissing`, and `etag`. The request body should be empty. A successful operation returns an Operation instance, while specific OAuth scopes are required for authorization.\n"]]