Method: folders.settings.updateValue
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी सेटिंग की वैल्यू को अपडेट करता है.
अगर सेटिंग या सेटिंग की वैल्यू मौजूद नहीं है, तो google.rpc.Code.NOT_FOUND
के साथ google.rpc.Status
दिखाता है. अगर सेटिंग को सिर्फ़ पढ़ने के लिए फ़्लैग किया गया है, तो google.rpc.Code.FAILED_PRECONDITION
वाला google.rpc.Status
दिखाता है. अगर अनुरोध में दिया गया etag, सेटिंग वैल्यू के बरकरार ईमेल से मेल नहीं खाता है, तो google.rpc.Code.ABORTED
के साथ google.rpc.Status
दिखाता है.
ध्यान दें: दिया गया सेटिंग मान सभी फ़ील्ड को ओवरराइट कर देगा.
एचटीटीपी अनुरोध
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=folders/*/settings/*/value}
यह यूआरएल 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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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, returning errors if the setting or value is not found, read-only, or if the etag does not match."],["Uses a PATCH request to `https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=folders/*/settings/*/value}` with gRPC Transcoding syntax for updating."],["Requires a request body containing a `SettingValue` object for the update and returns the updated `SettingValue` in the response upon success."],["Needs the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."]]],["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 a specific format, provided as a path parameter. The request and response bodies use the `SettingValue` instance. Errors result in specific `google.rpc.Status` codes. Authorization requires the `cloud-platform` OAuth scope. A successful request updates the setting value with a full overwrite and returns the updated `SettingValue`.\n"]]