Method: folders.settings.updateValue
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Aktualisiert einen Einstellungswert.
Gibt google.rpc.Status
mit google.rpc.Code.NOT_FOUND
zurück, wenn die Einstellung oder der Einstellungswert nicht vorhanden ist. Gibt ein google.rpc.Status
mit google.rpc.Code.FAILED_PRECONDITION
zurück, wenn die Einstellung schreibgeschützt ist. Gibt ein google.rpc.Status
mit google.rpc.Code.ABORTED
zurück, wenn das in der Anfrage angegebene ETag nicht mit dem persistenten ETag des Einstellungswerts übereinstimmt.
Hinweis: Mit dem angegebenen Einstellungswert werden alle Felder vollständig überschrieben.
HTTP-Anfrage
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=folders/*/settings/*/value}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
settingValue.name |
string
Der Ressourcenname des Einstellungswerts. Sie müssen in einem der folgenden Formate vorliegen:
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
Beispiel: „/projects/123/settings/gcp-enableMyFeature/value“
|
Anfragetext
Der Anfragetext enthält eine Instanz von SettingValue
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von SettingValue
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/cloud-platform
Weitere Informationen finden Sie in der Authentifizierungsübersicht.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2023-05-25 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]