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

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

The newest version!
package googleapis.storage

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy