GetBucketLifecycleRuleCondition

data class GetBucketLifecycleRuleCondition(val age: Int, val createdBefore: String, val customTimeBefore: String, val daysSinceCustomTime: Int, val daysSinceNoncurrentTime: Int, val matchesPrefixes: List<String>, val matchesStorageClasses: List<String>, val matchesSuffixes: List<String>, val noncurrentTimeBefore: String, val numNewerVersions: Int, val sendAgeIfZero: Boolean, val sendDaysSinceCustomTimeIfZero: Boolean, val sendDaysSinceNoncurrentTimeIfZero: Boolean, val sendNumNewerVersionsIfZero: Boolean, val withState: String)

Constructors

Link copied to clipboard
constructor(age: Int, createdBefore: String, customTimeBefore: String, daysSinceCustomTime: Int, daysSinceNoncurrentTime: Int, matchesPrefixes: List<String>, matchesStorageClasses: List<String>, matchesSuffixes: List<String>, noncurrentTimeBefore: String, numNewerVersions: Int, sendAgeIfZero: Boolean, sendDaysSinceCustomTimeIfZero: Boolean, sendDaysSinceNoncurrentTimeIfZero: Boolean, sendNumNewerVersionsIfZero: Boolean, withState: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val age: Int

Minimum age of an object in days to satisfy this condition.

Link copied to clipboard

Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.

Link copied to clipboard

Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.

Link copied to clipboard

Number of days elapsed since the user-specified timestamp set on an object.

Link copied to clipboard

Number of days elapsed since the noncurrent timestamp of an object. This condition is relevant only for versioned objects.

Link copied to clipboard

One or more matching name prefixes to satisfy this condition.

Link copied to clipboard

Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, DURABLE_REDUCED_AVAILABILITY.

Link copied to clipboard

One or more matching name suffixes to satisfy this condition.

Link copied to clipboard

Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.

Link copied to clipboard

Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.

Link copied to clipboard

While set true, age value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the age field. It can be used alone or together with age.

Link copied to clipboard

While set true, days_since_custom_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_custom_time field. It can be used alone or together with days_since_custom_time.

Link copied to clipboard

While set true, days_since_noncurrent_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_noncurrent_time field. It can be used alone or together with days_since_noncurrent_time.

Link copied to clipboard

While set true, num_newer_versions value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the num_newer_versions field. It can be used alone or together with num_newer_versions.

Link copied to clipboard

Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".