Google Cloud Storage C++ Client
1.40.2
A C++ Client Library for Google Cloud Storage
|
Defines objects to read, create, and modify Object Lifecycle Rules. More...
#include <google/cloud/storage/lifecycle_rule.h>
Public Member Functions | |
LifecycleRule (LifecycleRuleCondition condition, LifecycleRuleAction action) | |
LifecycleRuleAction const & | action () const |
LifecycleRuleCondition const & | condition () const |
Static Public Member Functions | |
Creates different types of LifecycleRule actions. | |
static LifecycleRuleAction | Delete () |
static LifecycleRuleAction | SetStorageClassStandard () |
static LifecycleRuleAction | SetStorageClassMultiRegional () |
static LifecycleRuleAction | SetStorageClassRegional () |
static LifecycleRuleAction | SetStorageClassNearline () |
static LifecycleRuleAction | SetStorageClassColdline () |
static LifecycleRuleAction | SetStorageClassDurableReducedAvailability () |
static LifecycleRuleAction | SetStorageClassArchive () |
static LifecycleRuleAction | SetStorageClass (std::string storage_class) |
Creates different types of LifecycleRule rules. | |
static LifecycleRuleCondition | MaxAge (std::int32_t days) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | CreatedBefore (absl::CivilDay date) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | IsLive (bool value) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClass (std::string storage_class) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClasses (std::initializer_list< std::string > list) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
template<typename Iterator > | |
static LifecycleRuleCondition | MatchesStorageClasses (Iterator begin, Iterator end) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassStandard () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassMultiRegional () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassRegional () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassNearline () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassColdline () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassDurableReducedAvailability () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | MatchesStorageClassArchive () |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | NumNewerVersions (std::int32_t days) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | DaysSinceNoncurrentTime (std::int32_t days) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | NoncurrentTimeBefore (absl::CivilDay date) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | DaysSinceCustomTime (std::int32_t days) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
static LifecycleRuleCondition | CustomTimeBefore (absl::CivilDay date) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
template<typename... Condition> | |
static LifecycleRuleCondition | ConditionConjunction (Condition &&... condition) |
Combines multiple LifecycleRule conditions using conjunction. More... | |
Defines objects to read, create, and modify Object Lifecycle Rules.
Object Lifecycle Rules allow to configure a Bucket to automatically delete or change the storage class of objects as they go through lifecycle events.
Definition at line 147 of file lifecycle_rule.h.
|
inlineexplicit |
Definition at line 149 of file lifecycle_rule.h.
|
inline |
Definition at line 153 of file lifecycle_rule.h.
|
inline |
Definition at line 154 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 304 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 181 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 271 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 265 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 253 of file lifecycle_rule.h.
|
static |
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 187 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 193 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 243 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 234 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 239 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 210 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 201 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 222 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 230 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 226 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 218 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 175 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 259 of file lifecycle_rule.h.
|
inlinestatic |
Combines multiple LifecycleRule conditions using conjunction.
Create a condition that require all the condition
parameters to be met to take effect.
std::invalid_argument | if the list of parameters is contradictory, for example, IsLive(true) and IsLive(false) are in the condition list. |
condition
conditions are satisfied. Condition | the types of the conditions, they must all be convertible to LifecycleRuleCondition . |
Definition at line 247 of file lifecycle_rule.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |