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
โปรดดูข้อมูลเพิ่มเติมที่ภาพรวมการตรวจสอบสิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]