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

scala.googleapis.bigquery.SparkLoggingInfo.scala Maven / Gradle / Ivy

There is a newer version: 0.6.1-v2-20241111
Show newest version
package googleapis.bigquery

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

final case class SparkLoggingInfo(
    /** Output only. Project ID where the Spark logs were written.
      */
    projectId: Option[String] = None,
    /** Output only. Resource type used for logging.
      */
    resourceType: Option[String] = None,
)
object SparkLoggingInfo {
  implicit val encoder: Encoder[SparkLoggingInfo] = Encoder.instance { x =>
    Json.obj("projectId" := x.projectId, "resourceType" := x.resourceType)
  }
  implicit val decoder: Decoder[SparkLoggingInfo] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[String]]("projectId")
      v1 <- c.get[Option[String]]("resourceType")
    } yield SparkLoggingInfo(v0, v1)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy