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::BucketAccessControl Class Reference

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

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

Public Member Functions

 BucketAccessControl ()=default
 
BucketAccessControlset_entity (std::string v)
 
BucketAccessControlset_role (std::string v)
 

Friends

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

Detailed Description

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.

Definition at line 41 of file bucket_access_control.h.

Constructor & Destructor Documentation

◆ BucketAccessControl()

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

Member Function Documentation

◆ set_entity()

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

Definition at line 56 of file bucket_access_control.h.

◆ set_role()

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

Definition at line 69 of file bucket_access_control.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 78 of file bucket_access_control.h.

◆ operator==

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

Definition at line 22 of file bucket_access_control.cc.