scala.googleapis.storage.BucketStorageLayoutHierarchicalNamespace.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class BucketStorageLayoutHierarchicalNamespace(
/** When set to true, hierarchical namespace is enabled for this bucket.
*/
enabled: Option[Boolean] = None
)
object BucketStorageLayoutHierarchicalNamespace {
implicit val encoder: Encoder[
BucketStorageLayoutHierarchicalNamespace
] = Encoder.instance(x => Json.obj("enabled" := x.enabled))
implicit val decoder: Decoder[
BucketStorageLayoutHierarchicalNamespace
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[Boolean]]("enabled")
} yield BucketStorageLayoutHierarchicalNamespace(v0)
}
}