Google Cloud Storage C++ Client  1.24.0
A C++ Client Library for Google Cloud Storage
Public Member Functions | Friends | List of all members
google::cloud::storage::v1::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 43 of file object_access_control.h.

Constructor & Destructor Documentation

◆ ObjectAccessControl()

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

Member Function Documentation

◆ generation()

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

Definition at line 79 of file object_access_control.h.

◆ object()

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

Definition at line 80 of file object_access_control.h.

◆ set_entity()

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

Definition at line 58 of file object_access_control.h.

◆ set_role()

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

Definition at line 72 of file object_access_control.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 84 of file object_access_control.h.

◆ operator==

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

Definition at line 23 of file object_access_control.cc.