
scala.googleapis.bigquery.ExternalDatasetReference.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class ExternalDatasetReference(
/** Required. The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id}
*/
connection: Option[String] = None,
/** Required. External source that backs this dataset.
*/
externalSource: Option[String] = None,
)
object ExternalDatasetReference {
implicit val encoder: Encoder[
ExternalDatasetReference
] = Encoder.instance { x =>
Json.obj("connection" := x.connection, "externalSource" := x.externalSource)
}
implicit val decoder: Decoder[
ExternalDatasetReference
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("connection")
v1 <- c.get[Option[String]]("externalSource")
} yield ExternalDatasetReference(v0, v1)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy