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

Prepares a patch for a BucketAccessControl resource. More...

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

Public Member Functions

 BucketAccessControlPatchBuilder ()=default
 
std::string BuildPatch () const
 
BucketAccessControlPatchBuilderset_entity (std::string const &v)
 
BucketAccessControlPatchBuilderdelete_entity ()
 
BucketAccessControlPatchBuilderset_role (std::string const &v)
 
BucketAccessControlPatchBuilderdelete_role ()
 

Detailed Description

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.

Definition at line 104 of file bucket_access_control.h.

Constructor & Destructor Documentation

◆ BucketAccessControlPatchBuilder()

google::cloud::storage::v1::BucketAccessControlPatchBuilder::BucketAccessControlPatchBuilder ( )
default

Member Function Documentation

◆ BuildPatch()

std::string google::cloud::storage::v1::BucketAccessControlPatchBuilder::BuildPatch ( ) const
inline

Definition at line 108 of file bucket_access_control.h.

◆ delete_entity()

BucketAccessControlPatchBuilder& google::cloud::storage::v1::BucketAccessControlPatchBuilder::delete_entity ( )
inline

Definition at line 115 of file bucket_access_control.h.

◆ delete_role()

BucketAccessControlPatchBuilder& google::cloud::storage::v1::BucketAccessControlPatchBuilder::delete_role ( )
inline

Definition at line 125 of file bucket_access_control.h.

◆ set_entity()

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

Definition at line 110 of file bucket_access_control.h.

◆ set_role()

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

Definition at line 120 of file bucket_access_control.h.