Google Cloud Storage C++ Client  1.26.0
A C++ Client Library for Google Cloud Storage
Public Attributes | List of all members
google::cloud::storage::v1::BucketRetentionPolicy Struct Reference

The retention policy for a bucket. More...

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

Public Attributes

std::chrono::seconds retention_period
std::chrono::system_clock::time_point effective_time
bool is_locked

Detailed Description

The retention policy for a bucket.

The Bucket Lock feature of Google Cloud Storage allows you to configure a data retention policy for a Cloud Storage bucket. This policy governs how long objects in the bucket must be retained. The feature also allows you to lock the data retention policy, permanently preventing the policy from from being reduced or removed.

See also for a general overview

Definition at line 382 of file bucket_metadata.h.

Member Data Documentation

◆ effective_time

std::chrono::system_clock::time_point google::cloud::storage::v1::BucketRetentionPolicy::effective_time

Definition at line 384 of file bucket_metadata.h.

◆ is_locked

bool google::cloud::storage::v1::BucketRetentionPolicy::is_locked

Definition at line 385 of file bucket_metadata.h.

◆ retention_period

std::chrono::seconds google::cloud::storage::v1::BucketRetentionPolicy::retention_period

Definition at line 383 of file bucket_metadata.h.