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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-05 (שעון 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"]]