Google Cloud Storage C++ Client  2.5.0
A C++ Client Library for Google Cloud Storage
Public Member Functions | List of all members
google::cloud::storage::BucketMetadataPatchBuilder Class Reference

Prepares a patch for the Bucket resource. More...

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

Public Member Functions

 BucketMetadataPatchBuilder ()=default
 
std::string BuildPatch () const
 
BucketMetadataPatchBuilderSetAcl (std::vector< BucketAccessControl > const &v)
 
BucketMetadataPatchBuilderResetAcl ()
 Clears the ACL for the Bucket. More...
 
BucketMetadataPatchBuilderSetAutoclass (BucketAutoclass const &v)
 
BucketMetadataPatchBuilderResetAutoclass ()
 
BucketMetadataPatchBuilderSetBilling (BucketBilling const &v)
 
BucketMetadataPatchBuilderResetBilling ()
 
BucketMetadataPatchBuilderSetCors (std::vector< CorsEntry > const &v)
 
BucketMetadataPatchBuilderResetCors ()
 
BucketMetadataPatchBuilderSetDefaultEventBasedHold (bool v)
 
BucketMetadataPatchBuilderResetDefaultEventBasedHold ()
 
BucketMetadataPatchBuilderSetDefaultAcl (std::vector< ObjectAccessControl > const &v)
 
BucketMetadataPatchBuilderResetDefaultAcl ()
 Clears the default object ACL for the Bucket. More...
 
BucketMetadataPatchBuilderSetIamConfiguration (BucketIamConfiguration const &v)
 
BucketMetadataPatchBuilderResetIamConfiguration ()
 
BucketMetadataPatchBuilderSetEncryption (BucketEncryption const &v)
 
BucketMetadataPatchBuilderResetEncryption ()
 
BucketMetadataPatchBuilderSetLabel (std::string const &label, std::string const &value)
 
BucketMetadataPatchBuilderResetLabel (std::string const &label)
 
BucketMetadataPatchBuilderResetLabels ()
 
BucketMetadataPatchBuilderSetLifecycle (BucketLifecycle const &v)
 
BucketMetadataPatchBuilderResetLifecycle ()
 
BucketMetadataPatchBuilderSetLogging (BucketLogging const &v)
 
BucketMetadataPatchBuilderResetLogging ()
 
BucketMetadataPatchBuilderSetName (std::string const &v)
 
BucketMetadataPatchBuilderResetName ()
 
BucketMetadataPatchBuilderSetRetentionPolicy (BucketRetentionPolicy const &v)
 
BucketMetadataPatchBuilderSetRetentionPolicy (std::chrono::seconds retention_period)
 
BucketMetadataPatchBuilderResetRetentionPolicy ()
 
BucketMetadataPatchBuilderSetRpo (std::string const &v)
 
BucketMetadataPatchBuilderResetRpo ()
 
BucketMetadataPatchBuilderSetStorageClass (std::string const &v)
 
BucketMetadataPatchBuilderResetStorageClass ()
 
BucketMetadataPatchBuilderSetVersioning (BucketVersioning const &v)
 
BucketMetadataPatchBuilderResetVersioning ()
 
BucketMetadataPatchBuilderSetWebsite (BucketWebsite const &v)
 
BucketMetadataPatchBuilderResetWebsite ()
 

Detailed Description

Prepares a patch for the Bucket resource.

The Bucket resource has many modifiable fields. The application may send a patch request to change (or delete) a small fraction of these fields by using this object.

See also
https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch for general information on PATCH requests for the Google Cloud Storage JSON API.

Definition at line 614 of file bucket_metadata.h.

Constructor & Destructor Documentation

◆ BucketMetadataPatchBuilder()

google::cloud::storage::BucketMetadataPatchBuilder::BucketMetadataPatchBuilder ( )
default

Member Function Documentation

◆ BuildPatch()

std::string google::cloud::storage::BucketMetadataPatchBuilder::BuildPatch ( ) const

◆ ResetAcl()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetAcl ( )

Clears the ACL for the Bucket.

Warning
Currently the server ignores requests to reset the full ACL.

◆ ResetAutoclass()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetAutoclass ( )

◆ ResetBilling()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetBilling ( )

◆ ResetCors()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetCors ( )

◆ ResetDefaultAcl()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetDefaultAcl ( )

Clears the default object ACL for the Bucket.

Warning
Currently the server ignores requests to reset the full ACL.

◆ ResetDefaultEventBasedHold()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetDefaultEventBasedHold ( )

◆ ResetEncryption()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetEncryption ( )

◆ ResetIamConfiguration()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetIamConfiguration ( )

◆ ResetLabel()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetLabel ( std::string const &  label)

◆ ResetLabels()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetLabels ( )

◆ ResetLifecycle()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetLifecycle ( )

◆ ResetLogging()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetLogging ( )

◆ ResetName()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetName ( )

◆ ResetRetentionPolicy()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetRetentionPolicy ( )

◆ ResetRpo()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetRpo ( )

◆ ResetStorageClass()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetStorageClass ( )

◆ ResetVersioning()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetVersioning ( )

◆ ResetWebsite()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::ResetWebsite ( )

◆ SetAcl()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetAcl ( std::vector< BucketAccessControl > const &  v)

◆ SetAutoclass()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetAutoclass ( BucketAutoclass const &  v)

◆ SetBilling()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetBilling ( BucketBilling const &  v)

◆ SetCors()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetCors ( std::vector< CorsEntry > const &  v)

◆ SetDefaultAcl()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetDefaultAcl ( std::vector< ObjectAccessControl > const &  v)

◆ SetDefaultEventBasedHold()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetDefaultEventBasedHold ( bool  v)

◆ SetEncryption()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetEncryption ( BucketEncryption const &  v)

◆ SetIamConfiguration()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetIamConfiguration ( BucketIamConfiguration const &  v)

◆ SetLabel()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetLabel ( std::string const &  label,
std::string const &  value 
)

◆ SetLifecycle()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetLifecycle ( BucketLifecycle const &  v)

◆ SetLogging()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetLogging ( BucketLogging const &  v)

◆ SetName()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetName ( std::string const &  v)

◆ SetRetentionPolicy() [1/2]

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetRetentionPolicy ( BucketRetentionPolicy const &  v)

◆ SetRetentionPolicy() [2/2]

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetRetentionPolicy ( std::chrono::seconds  retention_period)
inline

Definition at line 674 of file bucket_metadata.h.

◆ SetRpo()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetRpo ( std::string const &  v)

◆ SetStorageClass()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetStorageClass ( std::string const &  v)

◆ SetVersioning()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetVersioning ( BucketVersioning const &  v)

◆ SetWebsite()

BucketMetadataPatchBuilder& google::cloud::storage::BucketMetadataPatchBuilder::SetWebsite ( BucketWebsite const &  v)