All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.googleapis.bigquery.CloneDefinition.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5-v2-20240905
Show newest version
package googleapis.bigquery

import io.circe._
import io.circe.syntax._

final case class CloneDefinition(
    /** Required. Reference describing the ID of the table that was cloned.
      */
    baseTableReference: Option[TableReference] = None,
    /** Required. The time at which the base table was cloned. This value is reported in the JSON response using RFC3339 format.
      */
    cloneTime: Option[String] = None,
)
object CloneDefinition {
  implicit val encoder: Encoder[CloneDefinition] = Encoder.instance { x =>
    Json.obj(
      "baseTableReference" := x.baseTableReference,
      "cloneTime" := x.cloneTime,
    )
  }
  implicit val decoder: Decoder[CloneDefinition] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[TableReference]]("baseTableReference")
      v1 <- c.get[Option[String]]("cloneTime")
    } yield CloneDefinition(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy