Method: subscriptions.delete

একটি গুগল ওয়ার্কস্পেস সাবস্ক্রিপশন মুছে ফেলে। এই পদ্ধতিটি কীভাবে ব্যবহার করতে হয় তা জানতে, “একটি গুগল ওয়ার্কস্পেস সাবস্ক্রিপশন মুছুন” দেখুন।

HTTP অনুরোধ

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

URL-টিতে gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করা হয়েছে।

পথের পরামিতি

প্যারামিটার
name

string

আবশ্যক। যে সাবস্ক্রিপশনটি মুছে ফেলতে হবে তার রিসোর্স নাম।

ফর্ম্যাট: subscriptions/{subscription}

কোয়েরি প্যারামিটার

প্যারামিটার
validateOnly

boolean

ঐচ্ছিক। true সেট করা হলে, এটি অনুরোধটি যাচাই করে এবং প্রিভিউ দেখায়, কিন্তু সাবস্ক্রিপশনটি মুছে ফেলে না।

allowMissing

boolean

ঐচ্ছিক। যদি এটি ' true সেট করা হয় এবং সাবস্ক্রিপশনটি খুঁজে না পাওয়া যায়, তাহলে অনুরোধটি সফল হয় কিন্তু সাবস্ক্রিপশনটি মুছে ফেলা হয় না।

etag

string

ঐচ্ছিক। সাবস্ক্রিপশনের ই-ট্যাগ।

যদি উপস্থিত থাকে, তবে তা অবশ্যই সার্ভারের 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

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।