Class BucketMetadataPatchBuilder (2.18.0)

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.

Constructors

BucketMetadataPatchBuilder()

Functions

BuildPatch() const

Returns
Type Description
std::string

SetAcl(std::vector< BucketAccessControl > const &)

Parameter
Name Description
v std::vector< BucketAccessControl > const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetAcl()

Clears the ACL for the Bucket.

Returns
Type Description
BucketMetadataPatchBuilder &

SetAutoclass(BucketAutoclass const &)

Parameter
Name Description
v BucketAutoclass const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetAutoclass()

Returns
Type Description
BucketMetadataPatchBuilder &

SetBilling(BucketBilling const &)

Parameter
Name Description
v BucketBilling const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetBilling()

Returns
Type Description
BucketMetadataPatchBuilder &

SetCors(std::vector< CorsEntry > const &)

Parameter
Name Description
v std::vector< CorsEntry > const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetCors()

Returns
Type Description
BucketMetadataPatchBuilder &

SetDefaultEventBasedHold(bool)

Parameter
Name Description
v bool
Returns
Type Description
BucketMetadataPatchBuilder &

ResetDefaultEventBasedHold()

Returns
Type Description
BucketMetadataPatchBuilder &

SetDefaultAcl(std::vector< ObjectAccessControl > const &)

Parameter
Name Description
v std::vector< ObjectAccessControl > const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetDefaultAcl()

Clears the default object ACL for the Bucket.

Returns
Type Description
BucketMetadataPatchBuilder &

SetIamConfiguration(BucketIamConfiguration const &)

Parameter
Name Description
v BucketIamConfiguration const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetIamConfiguration()

Returns
Type Description
BucketMetadataPatchBuilder &

SetEncryption(BucketEncryption const &)

Parameter
Name Description
v BucketEncryption const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetEncryption()

Returns
Type Description
BucketMetadataPatchBuilder &

SetLabel(std::string const &, std::string const &)

Parameters
Name Description
label std::string const &
value std::string const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetLabel(std::string const &)

Parameter
Name Description
label std::string const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetLabels()

Returns
Type Description
BucketMetadataPatchBuilder &

SetLifecycle(BucketLifecycle const &)

Parameter
Name Description
v BucketLifecycle const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetLifecycle()

Returns
Type Description
BucketMetadataPatchBuilder &

SetLogging(BucketLogging const &)

Parameter
Name Description
v BucketLogging const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetLogging()

Returns
Type Description
BucketMetadataPatchBuilder &

SetName(std::string const &)

Parameter
Name Description
v std::string const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetName()

Returns
Type Description
BucketMetadataPatchBuilder &

SetRetentionPolicy(BucketRetentionPolicy const &)

Parameter
Name Description
v BucketRetentionPolicy const &
Returns
Type Description
BucketMetadataPatchBuilder &

SetRetentionPolicy(std::chrono::seconds)

Parameter
Name Description
retention_period std::chrono::seconds
Returns
Type Description
BucketMetadataPatchBuilder &

ResetRetentionPolicy()

Returns
Type Description
BucketMetadataPatchBuilder &

SetRpo(std::string const &)

Parameter
Name Description
v std::string const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetRpo()

Returns
Type Description
BucketMetadataPatchBuilder &

SetStorageClass(std::string const &)

Parameter
Name Description
v std::string const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetStorageClass()

Returns
Type Description
BucketMetadataPatchBuilder &

SetVersioning(BucketVersioning const &)

Parameter
Name Description
v BucketVersioning const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetVersioning()

Returns
Type Description
BucketMetadataPatchBuilder &

SetWebsite(BucketWebsite const &)

Parameter
Name Description
v BucketWebsite const &
Returns
Type Description
BucketMetadataPatchBuilder &

ResetWebsite()

Returns
Type Description
BucketMetadataPatchBuilder &