Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
Public Attributes | List of all members
google::cloud::storage::BucketRetentionPolicy Struct Reference

The retention policy for a bucket. More...

#include <google/cloud/storage/bucket_retention_policy.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
https://cloud.google.com/storage/docs/bucket-lock for a general overview

Member Data Documentation

◆ effective_time

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

◆ is_locked

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

◆ retention_period

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