Method: projects.settings.updateValue
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật giá trị cài đặt.
Trả về google.rpc.Status
với google.rpc.Code.NOT_FOUND
nếu chế độ cài đặt hoặc giá trị cài đặt không tồn tại. Trả về google.rpc.Status
có google.rpc.Code.FAILED_PRECONDITION
nếu chế độ cài đặt được gắn cờ là chỉ đọc. Trả về google.rpc.Status
với google.rpc.Code.ABORTED
nếu etag được cung cấp trong yêu cầu không khớp với etag được duy trì của giá trị cài đặt.
Lưu ý: giá trị cài đặt được cung cấp sẽ thực hiện ghi đè đầy đủ tất cả các trường.
Yêu cầu HTTP
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=projects/*/settings/*/value}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
settingValue.name |
string
Tên tài nguyên của giá trị cài đặt. Phải ở một trong các dạng sau:
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
Ví dụ: "/projects/123/settings/gcp-enableMyFeature/value"
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của SettingValue
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của SettingValue
.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/cloud-platform
Để biết thêm thông tin, hãy xem phần Tổng quan về quy trình xác thực.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-05-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]