
scala.googleapis.bigquery.MaterializedViewStatus.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class MaterializedViewStatus(
/** Output only. Error result of the last automatic refresh. If present, indicates that the last automatic refresh was unsuccessful.
*/
lastRefreshStatus: Option[ErrorProto] = None,
/** Output only. Refresh watermark of materialized view. The base tables' data were collected into the materialized view cache until this time.
*/
refreshWatermark: Option[String] = None,
)
object MaterializedViewStatus {
implicit val encoder: Encoder[MaterializedViewStatus] = Encoder.instance { x =>
Json.obj(
"lastRefreshStatus" := x.lastRefreshStatus,
"refreshWatermark" := x.refreshWatermark,
)
}
implicit val decoder: Decoder[
MaterializedViewStatus
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[ErrorProto]]("lastRefreshStatus")
v1 <- c.get[Option[String]]("refreshWatermark")
} yield MaterializedViewStatus(v0, v1)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy