scala.googleapis.bigquery.ExternalCatalogDatasetOptions.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class ExternalCatalogDatasetOptions(
/** Optional. The storage location URI for all tables in the dataset. Equivalent to hive metastore's database locationUri. Maximum length of 1024 characters.
*/
defaultStorageLocationUri: Option[String] = None,
/** Optional. A map of key value pairs defining the parameters and properties of the open source schema. Maximum size of 2Mib.
*/
parameters: Option[Map[String, String]] = None,
)
object ExternalCatalogDatasetOptions {
implicit val encoder: Encoder[
ExternalCatalogDatasetOptions
] = Encoder.instance { x =>
Json.obj(
"defaultStorageLocationUri" := x.defaultStorageLocationUri,
"parameters"
:= x.parameters,
)
}
implicit val decoder: Decoder[
ExternalCatalogDatasetOptions
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("defaultStorageLocationUri")
v1 <- c.get[Option[Map[String, String]]]("parameters")
} yield ExternalCatalogDatasetOptions(v0, v1)
}
}