Class BucketAccessControlPatchBuilder (2.19.0)

Prepares a patch for a BucketAccessControl resource.

The BucketAccessControl 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.

See Also

https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch for general information on PATCH requests for the Google Cloud Storage JSON API.

Constructors

BucketAccessControlPatchBuilder()

Functions

BuildPatch() const

Returns
TypeDescription
std::string

set_entity(std::string const &)

Parameter
NameDescription
v std::string const &
Returns
TypeDescription
BucketAccessControlPatchBuilder &

delete_entity()

Returns
TypeDescription
BucketAccessControlPatchBuilder &

set_role(std::string const &)

Parameter
NameDescription
v std::string const &
Returns
TypeDescription
BucketAccessControlPatchBuilder &

delete_role()

Returns
TypeDescription
BucketAccessControlPatchBuilder &