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

scala.googleapis.bigquery.SystemVariables.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 SystemVariables(
    /** Output only. Data type for each system variable.
      */
    types: Option[Map[String, StandardSqlDataType]] = None,
    /** Output only. Value for each system variable.
      */
    values: Option[Map[String, Json]] = None,
)
object SystemVariables {
  implicit val encoder: Encoder[SystemVariables] = Encoder.instance { x =>
    Json.obj("types" := x.types, "values" := x.values)
  }
  implicit val decoder: Decoder[SystemVariables] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[Map[String, StandardSqlDataType]]]("types")
      v1 <- c.get[Option[Map[String, Json]]]("values")
    } yield SystemVariables(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy