scala.googleapis.bigquery.UndeleteDatasetRequest.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class UndeleteDatasetRequest(
/** Optional. The exact time when the dataset was deleted. If not specified, the most recently deleted version is undeleted. Undeleting a dataset using deletion time is not supported.
*/
deletionTime: Option[String] = None
)
object UndeleteDatasetRequest {
implicit val encoder: Encoder[UndeleteDatasetRequest] = Encoder.instance { x =>
Json.obj("deletionTime" := x.deletionTime)
}
implicit val decoder: Decoder[
UndeleteDatasetRequest
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("deletionTime")
} yield UndeleteDatasetRequest(v0)
}
}