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