The ObjectAccessControl resource only has two modifiable fields: entity and role. This class allows application developers to setup a PATCH message, note that some of the possible PATCH messages may result in errors from the server, for example: while it is possible to express "change the value of the
entity field" with a PATCH request, the server rejects such changes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-01 UTC."],[[["This documentation outlines the `ObjectAccessControlPatchBuilder` class, which is used to construct PATCH messages for `ObjectAccessControl` resources within Google Cloud Storage."],["The `ObjectAccessControl` resource's modifiable fields are limited to `entity` and `role`, and not all PATCH requests are accepted by the server, as trying to alter the value of the entity field is an invalid operation."],["The class provides methods to set or delete the `entity` and `role` fields using `set_entity`, `delete_entity`, `set_role` and `delete_role`."],["`BuildPatch()` is a function that returns the constructed PATCH operation as a string, and a list of links are provided for each version starting from 2.11.0 up to 2.37.0-rc."],["Refer to the Google Cloud Storage JSON API documentation for details on PATCH requests, and this class facilitates setting up these messages."]]],[]]