Method: subscriptions.delete

ลบการสมัครใช้บริการ Google Workspace ดูวิธีใช้วิธีนี้ได้ที่ลบการสมัครใช้บริการ Google Workspace

คำขอ HTTP

DELETE https://workspaceevents.googleapis.com/v1/{name=subscriptions/*}

URL ใช้ไวยากรณ์การแปลงรหัส 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

ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์