scala.googleapis.storage.ManagedFolders.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class ManagedFolders(
/** The list of items.
*/
items: Option[List[ManagedFolder]] = None,
/** The kind of item this is. For lists of managed folders, this is always storage#managedFolders.
*/
kind: Option[String] = None,
/** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
*/
nextPageToken: Option[String] = None,
)
object ManagedFolders {
implicit val encoder: Encoder[ManagedFolders] = Encoder.instance { x =>
Json.obj(
"items" := x.items,
"kind" := x.kind,
"nextPageToken" := x.nextPageToken,
)
}
implicit val decoder: Decoder[ManagedFolders] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[ManagedFolder]]]("items")
v1 <- c.get[Option[String]]("kind")
v2 <- c.get[Option[String]]("nextPageToken")
} yield ManagedFolders(v0, v1, v2)
}
}