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
  • 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

لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.