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.
Constructors
ObjectAccessControl()
Functions
bucket() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
object() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
generation() const
Accessors.
Returns | |
---|---|
Type | Description |
std::int64_t |
domain() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
email() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
entity() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
entity_id() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
etag() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
id() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
kind() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
has_project_team() const
Accessors.
Returns | |
---|---|
Type | Description |
bool |
project_team() const
Accessors.
Returns | |
---|---|
Type | Description |
ProjectTeam const & |
project_team_as_optional() const
Accessors.
Returns | |
---|---|
Type | Description |
absl::optional< ProjectTeam > const & |
role() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
self_link() const
Accessors.
Returns | |
---|---|
Type | Description |
std::string const & |
set_entity(std::string)
Modifiers for mutable attributes.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_role(std::string)
Modifiers for mutable attributes.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_bucket(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_object(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_generation(std::int64_t)
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.
Parameter | |
---|---|
Name | Description |
v |
std::int64_t
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_domain(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_email(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_entity_id(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_etag(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_id(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_kind(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_project_team(ProjectTeam)
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.
Parameter | |
---|---|
Name | Description |
v |
ProjectTeam
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
set_self_link(std::string)
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.
Parameter | |
---|---|
Name | Description |
v |
std::string
|
Returns | |
---|---|
Type | Description |
ObjectAccessControl & |
static ROLE_OWNER()
Well-known values for the role() field..
Returns | |
---|---|
Type | Description |
std::string |
static ROLE_READER()
Well-known values for the role() field..
Returns | |
---|---|
Type | Description |
std::string |
static TEAM_EDITORS()
Well-known values for the project_team().team field..
Returns | |
---|---|
Type | Description |
std::string |
static TEAM_OWNERS()
Well-known values for the project_team().team field..
Returns | |
---|---|
Type | Description |
std::string |
static TEAM_VIEWERS()
Well-known values for the project_team().team field..
Returns | |
---|---|
Type | Description |
std::string |