Condition

com.google.storage.v2.storage.Bucket.Lifecycle.Rule.Condition
See theCondition companion object
final case class Condition(ageDays: Option[Int], createdBefore: Option[Date], isLive: Option[Boolean], numNewerVersions: Option[Int], matchesStorageClass: Seq[String], daysSinceCustomTime: Option[Int], customTimeBefore: Option[Date], daysSinceNoncurrentTime: Option[Int], noncurrentTimeBefore: Option[Date], matchesPrefix: Seq[String], matchesSuffix: Seq[String], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Condition]

A condition of an object which triggers some action.

Value parameters

ageDays

Age of an object (in days). This condition is satisfied when an object reaches the specified age. A value of 0 indicates that all objects immediately match this condition.

createdBefore

This condition is satisfied when an object is created before midnight of the specified date in UTC.

customTimeBefore

An object matches this condition if the custom timestamp set on the object is before the specified date in UTC.

daysSinceCustomTime

Number of days that have elapsed since the custom timestamp set on an object. The value of the field must be a nonnegative integer.

daysSinceNoncurrentTime

This condition is relevant only for versioned objects. An object version satisfies this condition only if these many days have been passed since it became noncurrent. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.

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.

matchesPrefix

List of object name prefixes. If any prefix exactly matches the beginning of the object name, the condition evaluates to true.

matchesStorageClass

Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.

matchesSuffix

List of object name suffixes. If any suffix exactly matches the end of the object name, the condition evaluates to true.

noncurrentTimeBefore

This condition is relevant only for versioned objects. An object version satisfies this condition only if it became noncurrent before the specified date in UTC.

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.

Attributes

Companion
object
Source
Bucket.scala
Graph
Supertypes
trait Updatable[Condition]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllMatchesPrefix(`__vs`: Iterable[String]): Condition

Attributes

Source
Bucket.scala
def addAllMatchesStorageClass(`__vs`: Iterable[String]): Condition

Attributes

Source
Bucket.scala
def addAllMatchesSuffix(`__vs`: Iterable[String]): Condition

Attributes

Source
Bucket.scala
def addMatchesPrefix(`__vs`: String*): Condition

Attributes

Source
Bucket.scala
def addMatchesStorageClass(`__vs`: String*): Condition

Attributes

Source
Bucket.scala
def addMatchesSuffix(`__vs`: String*): Condition

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def companion: Condition.type

Attributes

Source
Bucket.scala
def getAgeDays: Int

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
Bucket.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
Bucket.scala
def getIsLive: Boolean

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Bucket.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
Bucket.scala
def withAgeDays(`__v`: Int): Condition

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def withIsLive(`__v`: Boolean): Condition

Attributes

Source
Bucket.scala
def withMatchesPrefix(`__v`: Seq[String]): Condition

Attributes

Source
Bucket.scala
def withMatchesStorageClass(`__v`: Seq[String]): Condition

Attributes

Source
Bucket.scala
def withMatchesSuffix(`__v`: Seq[String]): Condition

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def withNumNewerVersions(`__v`: Int): Condition

Attributes

Source
Bucket.scala
def withUnknownFields(`__v`: UnknownFieldSet): Condition

Attributes

Source
Bucket.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
Bucket.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[Condition, Condition] => () => Condition*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala