Method: subscriptions.patch
HTTP অনুরোধ
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
subscription.name | string শনাক্তকারী। সাবস্ক্রিপশনের সম্পদের নাম। বিন্যাস: subscriptions/{subscription} |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
updateMask | string ( FieldMask format) ঐচ্ছিক। আপডেট করার জন্য ক্ষেত্র। যদি বাদ দেওয়া হয়, অনুরোধে অন্তর্ভুক্ত যেকোনো ক্ষেত্র আপডেট করে। আপনি সাবস্ক্রিপশনে নিম্নলিখিত ক্ষেত্রগুলির একটি আপডেট করতে পারেন: -
expireTime : সাবস্ক্রিপশনের মেয়াদ শেষ হওয়ার সময় টাইমস্ট্যাম্প। -
ttl : টাইম-টু-লাইভ (TTL) বা সাবস্ক্রিপশনের সময়কাল। -
eventTypes : টার্গেট রিসোর্স সম্পর্কে প্রাপ্ত ইভেন্ট প্রকারের তালিকা।
সদস্যতা সম্পূর্ণরূপে প্রতিস্থাপন করতে ( PUT এর সমতুল্য), * ব্যবহার করুন। কোনো বাদ দেওয়া ক্ষেত্র খালি মান সহ আপডেট করা হয়। |
validateOnly | boolean ঐচ্ছিক। true সেট করা থাকলে, অনুরোধটি যাচাই করে এবং পূর্বরূপ দেখায়, কিন্তু সদস্যতা আপডেট করে না। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে 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/meetings.space.created
-
https://www.googleapis.com/auth/meetings.space.readonly
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-15 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-15 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This API updates or renews a Google Workspace subscription using a PATCH request to the specified URL."],["You can optionally specify an `updateMask` to target specific fields for updating and `validateOnly` to preview the request without applying changes."],["The request body should contain a `Subscription` object and the successful response will include an `Operation` object with the updated `Subscription`."],["Authorization requires specific OAuth scopes related to Google Chat or Google Meet, as detailed in the documentation."]]],["This documentation details updating Google Workspace subscriptions via a `PATCH` HTTP request to `https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}`. Key actions involve specifying the subscription name in the path and using `updateMask` in query parameters to selectively modify fields like `expireTime`, `ttl`, or `eventTypes`. The request body contains subscription details, while the successful response includes an `Operation` with the updated subscription. Authentication requires specific OAuth scopes. The process allows for request validation without actual modification.\n"]]