Method: projects.settings.updateValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הערך מתעדכן.
הפונקציה מחזירה google.rpc.Status
עם google.rpc.Code.NOT_FOUND
אם ההגדרה או ערך ההגדרה לא קיימים. מחזירה google.rpc.Status
עם google.rpc.Code.FAILED_PRECONDITION
אם ההגדרה מסומנת כ'לקריאה בלבד'. מחזירה google.rpc.Status
עם google.rpc.Code.ABORTED
אם ה-etag שסופק בבקשה לא תואם ל-etag העקבי של ערך ההגדרה.
הערה: ערך ההגדרה שסופק יבצע החלפה מלאה של כל השדות.
בקשת HTTP
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=projects/*/settings/*/value}
כתובת ה-URL משתמשת בתחביר gRPC קידוד מחדש.
פרמטרים של נתיב
פרמטרים |
settingValue.name |
string
שם המשאב של ערך ההגדרה. עליה להיות באחת מהצורות הבאות:
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
לדוגמה, "/projects/123/settings/gcp-enableMyFeature/value"
|
גוף הבקשה
גוף הבקשה מכיל מופע של SettingValue
.
גוף התשובה
אם התגובה תצליח, גוף התגובה יכלול מופע של SettingValue
.
היקפי הרשאה
ההגדרה הזו מחייבת את היקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/cloud-platform
מידע נוסף זמין במאמר סקירה כללית על אימות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-05-25 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2023-05-25 (שעון UTC)."],[[["Updates a setting value, performing a full overwrite of all fields."],["Returns errors if the setting or value doesn't exist, is read-only, or the etag doesn't match."],["Requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."],["Uses the PATCH HTTP method and provides details on the request and response body structures."],["Identifies the required path parameter `settingValue.name` with format and example."]]],["This describes how to update a setting value via a `PATCH` HTTP request to a specific URL using gRPC Transcoding. The request requires a setting value name in the URL path, formatted as a project, folder, or organization identifier followed by the setting name and \"value\". The request body should contain a `SettingValue` instance, overwriting existing fields. A successful response returns a `SettingValue`, otherwise, status codes like `NOT_FOUND`, `FAILED_PRECONDITION`, or `ABORTED` may be returned. OAuth scope `https://www.googleapis.com/auth/cloud-platform` is necessary.\n"]]