scala.googleapis.storage.BucketObjectRetention.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class BucketObjectRetention(
/** The bucket's object retention mode. Can be Enabled.
*/
mode: Option[String] = None
)
object BucketObjectRetention {
implicit val encoder: Encoder[BucketObjectRetention] = Encoder.instance { x =>
Json.obj("mode" := x.mode)
}
implicit val decoder: Decoder[BucketObjectRetention] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("mode")
} yield BucketObjectRetention(v0)
}
}