Google Cloud Storage C++ Client  1.42.0
A C++ Client Library for Google Cloud Storage
Public Member Functions | Friends | List of all members
google::cloud::storage::ObjectAccessControl Class Reference

Wraps the objectAccessControl resource in Google Cloud Storage. More...

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

Public Member Functions

 ObjectAccessControl ()=default
 
ObjectAccessControlset_entity (std::string v)
 
ObjectAccessControlset_role (std::string v)
 
std::int64_t generation () const
 
std::string const & object () const
 

Friends

bool operator== (ObjectAccessControl const &lhs, ObjectAccessControl const &rhs)
 
bool operator!= (ObjectAccessControl const &lhs, ObjectAccessControl const &rhs)
 

Detailed Description

Wraps the objectAccessControl resource in Google Cloud Storage.

objectAccessControl describes the access to a bucket for a single entity, where the entity might be a user, group, or other role.

See also
https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls for an authoritative source of field definitions.

Definition at line 44 of file object_access_control.h.

Constructor & Destructor Documentation

◆ ObjectAccessControl()

google::cloud::storage::ObjectAccessControl::ObjectAccessControl ( )
default

Member Function Documentation

◆ generation()

std::int64_t google::cloud::storage::ObjectAccessControl::generation ( ) const
inline

Definition at line 80 of file object_access_control.h.

◆ object()

std::string const& google::cloud::storage::ObjectAccessControl::object ( ) const
inline

Definition at line 81 of file object_access_control.h.

◆ set_entity()

ObjectAccessControl& google::cloud::storage::ObjectAccessControl::set_entity ( std::string  v)
inline

Definition at line 59 of file object_access_control.h.

◆ set_role()

ObjectAccessControl& google::cloud::storage::ObjectAccessControl::set_role ( std::string  v)
inline

Definition at line 73 of file object_access_control.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( ObjectAccessControl const &  lhs,
ObjectAccessControl const &  rhs 
)
friend

Definition at line 85 of file object_access_control.h.

◆ operator==

bool operator== ( ObjectAccessControl const &  lhs,
ObjectAccessControl const &  rhs 
)
friend