Method: folders.settings.updateValue
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir ayar değerini günceller.
Ayar veya ayar değeri yoksa google.rpc.Code.NOT_FOUND
ile google.rpc.Status
döndürür. Ayar salt okunur olarak işaretlenmişse google.rpc.Code.FAILED_PRECONDITION
ile bir google.rpc.Status
döndürür. İstekte sağlanan etag, ayar değerinin kalıcı etiketi ile eşleşmiyorsa google.rpc.Code.ABORTED
ile google.rpc.Status
döndürür.
Not: Sağlanan ayar değeri, tüm alanların üzerine yazılır.
HTTP isteği
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=folders/*/settings/*/value}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
settingValue.name |
string
Ayar değerinin kaynak adı. Aşağıdaki biçimlerden birinde olmalıdır:
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
Örneğin, "/projects/123/settings/gcp-enableMyFeature/value"
|
İstek metni
İstek metni, SettingValue
öğesinin bir örneğini içerir.
Yanıt metni
Başarılıysa yanıt metni, SettingValue
öğesinin bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/cloud-platform
Daha fazla bilgi için Kimlik Doğrulamaya Genel Bakış başlıklı makaleyi inceleyin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-05-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]