scala.googleapis.storage.BucketCustomPlacementConfig.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class BucketCustomPlacementConfig(
/** The list of regional locations in which data is placed.
*/
dataLocations: Option[List[String]] = None
)
object BucketCustomPlacementConfig {
implicit val encoder: Encoder[
BucketCustomPlacementConfig
] = Encoder.instance(x => Json.obj("dataLocations" := x.dataLocations))
implicit val decoder: Decoder[
BucketCustomPlacementConfig
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[String]]]("dataLocations")
} yield BucketCustomPlacementConfig(v0)
}
}