scala.googleapis.storage.BucketAccessControls.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class BucketAccessControls(
/** The list of items.
*/
items: Option[List[BucketAccessControl]] = None,
/** The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
*/
kind: Option[String] = None,
)
object BucketAccessControls {
implicit val encoder: Encoder[BucketAccessControls] = Encoder.instance { x =>
Json.obj("items" := x.items, "kind" := x.kind)
}
implicit val decoder: Decoder[BucketAccessControls] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[BucketAccessControl]]]("items")
v1 <- c.get[Option[String]]("kind")
} yield BucketAccessControls(v0, v1)
}
}