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

scala.googleapis.storage.BucketVersioning.scala Maven / Gradle / Ivy

The newest version!
package googleapis.storage

import io.circe._
import io.circe.syntax._

final case class BucketVersioning(
    /** While set to true, versioning is fully enabled for this bucket.
      */
    enabled: Option[Boolean] = None
)
object BucketVersioning {
  implicit val encoder: Encoder[BucketVersioning] = Encoder.instance { x =>
    Json.obj("enabled" := x.enabled)
  }
  implicit val decoder: Decoder[BucketVersioning] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[Boolean]]("enabled")
    } yield BucketVersioning(v0)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy