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

scala.googleapis.bigquery.ExternalCatalogDatasetOptions.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 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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy