Class Bucket.LifecycleData.RuleData.ConditionData
The condition(s) under which the action will be taken.
Inheritance
Inherited Members
Namespace: Google.Apis.Storage.v1.Data
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class ConditionData
Properties
Age
Age of an object (in days). This condition is satisfied when an object reaches the specified age.
Declaration
[JsonProperty("age")]
public virtual int? Age { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
CreatedBefore
A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC.
Declaration
[JsonProperty("createdBefore")]
public virtual string CreatedBefore { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsLive
Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
Declaration
[JsonProperty("isLive")]
public virtual bool? IsLive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
MatchesPattern
A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
Declaration
[JsonProperty("matchesPattern")]
public virtual string MatchesPattern { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MatchesStorageClass
Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
Declaration
[JsonProperty("matchesStorageClass")]
public virtual IList<string> MatchesStorageClass { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
NumNewerVersions
Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
Declaration
[JsonProperty("numNewerVersions")]
public virtual int? NumNewerVersions { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |