google_api_storage v0.18.0 GoogleApi.Storage.V1.Model.BucketLifecycleRuleCondition View Source

The condition(s) under which the action will be taken.

Attributes

  • age (type: integer(), default: nil) - Age of an object (in days). This condition is satisfied when an object reaches the specified age.
  • createdBefore (type: Date.t, default: nil) - 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.
  • isLive (type: boolean(), default: nil) - Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
  • matchesPattern (type: String.t, default: nil) - 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.
  • matchesStorageClass (type: list(String.t), default: nil) - 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.
  • numNewerVersions (type: integer(), default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Storage.V1.Model.BucketLifecycleRuleCondition{
  age: integer(),
  createdBefore: Date.t(),
  isLive: boolean(),
  matchesPattern: String.t(),
  matchesStorageClass: [String.t()],
  numNewerVersions: integer()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.