Class BucketAccessControl (2.29.0)

Wraps the bucketAccessControl resource in Google Cloud Storage.

BucketAccessControl 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/bucketAccessControls for an authoritative source of field definitions.

Constructors

BucketAccessControl()

Functions

bucket() const

Accessors.

Returns
Type Description
std::string const &

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
BucketAccessControl &

set_role(std::string)

Modifiers for mutable attributes.

Parameter
Name Description
v std::string
Returns
Type Description
BucketAccessControl &

set_bucket(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_domain(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_email(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_entity_id(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_etag(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_id(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_kind(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_project_team(ProjectTeam)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

set_self_link(std::string)

Testing modifiers.

The following attributes cannot be changed when updating, creating, or patching an BucketAccessControl 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
BucketAccessControl &

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