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

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

There is a newer version: 0.6.1-v2-20241111
Show newest version
package googleapis.bigquery

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

final case class LocationMetadata(
    /** The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is for any API consumers that need the legacy “US” and “EU” locations.
      */
    legacyLocationId: Option[String] = None
)
object LocationMetadata {
  implicit val encoder: Encoder[LocationMetadata] = Encoder.instance { x =>
    Json.obj("legacyLocationId" := x.legacyLocationId)
  }
  implicit val decoder: Decoder[LocationMetadata] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[String]]("legacyLocationId")
    } yield LocationMetadata(v0)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy