Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
|
Wraps the objectAccessControl resource in Google Cloud Storage. More...
#include <google/cloud/storage/object_access_control.h>
Public Member Functions | |
ObjectAccessControl ()=default | |
Accessors. | |
std::string const & | bucket () const |
std::string const & | object () const |
std::int64_t | generation () const |
std::string const & | domain () const |
std::string const & | email () const |
std::string const & | entity () const |
std::string const & | entity_id () const |
std::string const & | etag () const |
std::string const & | id () const |
std::string const & | kind () const |
bool | has_project_team () const |
ProjectTeam const & | project_team () const |
absl::optional< ProjectTeam > const & | project_team_as_optional () const |
std::string const & | role () const |
std::string const & | self_link () const |
Modifiers for mutable attributes. | |
ObjectAccessControl & | set_entity (std::string v) |
ObjectAccessControl & | set_role (std::string v) |
Testing modifiers. | |
The following attributes cannot be changed when updating, creating, or patching an ObjectAccessControl resource. However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library. | |
ObjectAccessControl & | set_bucket (std::string v) |
ObjectAccessControl & | set_object (std::string v) |
ObjectAccessControl & | set_generation (std::int64_t v) |
ObjectAccessControl & | set_domain (std::string v) |
ObjectAccessControl & | set_email (std::string v) |
ObjectAccessControl & | set_entity_id (std::string v) |
ObjectAccessControl & | set_etag (std::string v) |
ObjectAccessControl & | set_id (std::string v) |
ObjectAccessControl & | set_kind (std::string v) |
ObjectAccessControl & | set_project_team (ProjectTeam v) |
ObjectAccessControl & | set_self_link (std::string v) |
Static Public Member Functions | |
Well-known values for the role() field.. | |
static std::string | ROLE_OWNER () |
static std::string | ROLE_READER () |
Well-known values for the project_team().team field.. | |
static std::string | TEAM_EDITORS () |
static std::string | TEAM_OWNERS () |
static std::string | TEAM_VIEWERS () |
Friends | |
bool | operator== (ObjectAccessControl const &lhs, ObjectAccessControl const &rhs) |
bool | operator!= (ObjectAccessControl const &lhs, ObjectAccessControl const &rhs) |
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.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
friend |
|
friend |