scala.googleapis.storage.AnywhereCaches.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class AnywhereCaches(
/** The list of items.
*/
items: Option[List[AnywhereCache]] = None,
/** The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
*/
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 AnywhereCaches {
implicit val encoder: Encoder[AnywhereCaches] = Encoder.instance { x =>
Json.obj(
"items" := x.items,
"kind" := x.kind,
"nextPageToken" := x.nextPageToken,
)
}
implicit val decoder: Decoder[AnywhereCaches] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[AnywhereCache]]]("items")
v1 <- c.get[Option[String]]("kind")
v2 <- c.get[Option[String]]("nextPageToken")
} yield AnywhereCaches(v0, v1, v2)
}
}