Google Cloud Storage C++ Client  2.5.0
A C++ Client Library for Google Cloud Storage
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 for a general overview

Definition at line 41 of file bucket_retention_policy.h.

Member Data Documentation

◆ effective_time

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

Definition at line 43 of file bucket_retention_policy.h.

◆ is_locked

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

Definition at line 44 of file bucket_retention_policy.h.

◆ retention_period

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

Definition at line 42 of file bucket_retention_policy.h.