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

scala.googleapis.bigquery.RestrictionConfig.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 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