Method: subscriptions.reactivate

اشتراک Google Workspace که به حالت تعلیق درآمده بود را دوباره فعال می‌کند.

این روش، فیلد State اشتراک شما را به ACTIVE بازنشانی می‌کند. قبل از استفاده از این روش، باید خطایی را که اشتراک را به حالت تعلیق درآورده است، برطرف کنید. این روش هر اشتراکی را که در حال حاضر در حالت تعلیق نیست، نادیده می‌گیرد یا رد می‌کند. برای یادگیری نحوه استفاده از این روش، به فعال‌سازی مجدد اشتراک Google Workspace مراجعه کنید.

برای اشتراک در یک منبع هدف چت ، می‌توانید اشتراک را به صورت زیر دوباره فعال کنید:

درخواست HTTP

POST https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}:reactivate

این URL از سینتکس Transcoding در gRPC استفاده می‌کند.

پارامترهای مسیر

پارامترها
name

string

الزامی. نام منبع اشتراک.

قالب: subscriptions/{subscription}

درخواست بدنه

بدنه درخواست باید خالی باشد.

بدنه پاسخ

در صورت موفقیت، بدنه پاسخ شامل نمونه‌ای از Operation است.

  • فیلد metadata شامل یک آرایه خالی است.
  • فیلد response شامل یک نمونه به‌روزرسانی‌شده از Subscription است.

دامنه‌های مجوز

به یکی از حوزه‌های OAuth زیر نیاز دارد:

  • 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/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.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

برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.