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

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

The newest version!
package googleapis.storage

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

final case class ObjectAccessControls(
    /** The list of items.
      */
    items: Option[List[ObjectAccessControl]] = None,
    /** The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
      */
    kind: Option[String] = None,
)
object ObjectAccessControls {
  implicit val encoder: Encoder[ObjectAccessControls] = Encoder.instance { x =>
    Json.obj("items" := x.items, "kind" := x.kind)
  }
  implicit val decoder: Decoder[ObjectAccessControls] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[List[ObjectAccessControl]]]("items")
      v1 <- c.get[Option[String]]("kind")
    } yield ObjectAccessControls(v0, v1)

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy