
scala.googleapis.bigquery.RestrictionConfig.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class RestrictionConfig(
/** Output only. Specifies the type of dataset/table restriction.
*/
`type`: Option[RestrictionConfigType] = None
)
object RestrictionConfig {
implicit val encoder: Encoder[RestrictionConfig] = Encoder.instance { x =>
Json.obj("type" := x.`type`)
}
implicit val decoder: Decoder[RestrictionConfig] = Decoder.instance { c =>
for {
v0 <- c.get[Option[RestrictionConfigType]]("type")
} yield RestrictionConfig(v0)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy