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

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

The newest version!
package googleapis.storage

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

final case class ServiceAccount(
    /** The ID of the notification.
      */
    email_address: Option[String] = None,
    /** The kind of item this is. For notifications, this is always storage#notification.
      */
    kind: Option[String] = None,
)
object ServiceAccount {
  implicit val encoder: Encoder[ServiceAccount] = Encoder.instance { x =>
    Json.obj("email_address" := x.email_address, "kind" := x.kind)
  }
  implicit val decoder: Decoder[ServiceAccount] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[String]]("email_address")
      v1 <- c.get[Option[String]]("kind")
    } yield ServiceAccount(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy