Google Cloud Storage C++ Client  1.24.0
A C++ Client Library for Google Cloud Storage
Public Member Functions | List of all members
google::cloud::storage::v1::ObjectAccessControlPatchBuilder Class Reference

Prepares a patch for an ObjectAccessControl resource. More...

#include <google/cloud/storage/object_access_control.h>

Public Member Functions

 ObjectAccessControlPatchBuilder ()=default
std::string BuildPatch () const
ObjectAccessControlPatchBuilderset_entity (std::string const &v)
ObjectAccessControlPatchBuilderdelete_entity ()
ObjectAccessControlPatchBuilderset_role (std::string const &v)
ObjectAccessControlPatchBuilderdelete_role ()

Detailed Description

Prepares a patch for an ObjectAccessControl resource.

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.

See also for general information on PATCH requests for the Google Cloud Storage JSON API.

Definition at line 113 of file object_access_control.h.

Constructor & Destructor Documentation

◆ ObjectAccessControlPatchBuilder()

google::cloud::storage::v1::ObjectAccessControlPatchBuilder::ObjectAccessControlPatchBuilder ( )

Member Function Documentation

◆ BuildPatch()

std::string google::cloud::storage::v1::ObjectAccessControlPatchBuilder::BuildPatch ( ) const

Definition at line 117 of file object_access_control.h.

◆ delete_entity()

ObjectAccessControlPatchBuilder& google::cloud::storage::v1::ObjectAccessControlPatchBuilder::delete_entity ( )

Definition at line 124 of file object_access_control.h.

◆ delete_role()

ObjectAccessControlPatchBuilder& google::cloud::storage::v1::ObjectAccessControlPatchBuilder::delete_role ( )

Definition at line 134 of file object_access_control.h.

◆ set_entity()

ObjectAccessControlPatchBuilder& google::cloud::storage::v1::ObjectAccessControlPatchBuilder::set_entity ( std::string const &  v)

Definition at line 119 of file object_access_control.h.

◆ set_role()

ObjectAccessControlPatchBuilder& google::cloud::storage::v1::ObjectAccessControlPatchBuilder::set_role ( std::string const &  v)

Definition at line 129 of file object_access_control.h.