删除 Google Workspace 订阅。如需了解如何使用此方法,请参阅删除 Google Workspace 订阅。
HTTP 请求
DELETE https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
| name | 
 必需。要删除的订阅的资源名称。 格式: | 
查询参数
| 参数 | |
|---|---|
| validateOnly | 
 可选。如果设置为  | 
| allowMissing | 
 可选。如果设为  | 
| etag | 
 可选。相应订阅的 ETag。 如果存在,则必须与服务器的 ETag 相匹配。否则,请求将失败,并显示状态  | 
请求正文
请求正文必须为空。
响应正文
如果成功,则响应正文包含一个 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
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive.metadata
- https://www.googleapis.com/auth/drive.metadata.readonly
- https://www.googleapis.com/auth/drive.readonly
如需了解详情,请参阅授权指南。