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

scala.googleapis.firebase.FirebaseAppInfoState.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5-v1beta1-20240918
Show newest version
package googleapis.firebase

import io.circe._

sealed abstract class FirebaseAppInfoState(val value: String) extends Product with Serializable
object FirebaseAppInfoState {

  /** Unspecified state.
    */
  case object STATE_UNSPECIFIED extends FirebaseAppInfoState("STATE_UNSPECIFIED")

  /** The App is active.
    */
  case object ACTIVE extends FirebaseAppInfoState("ACTIVE")

  /** The App has been soft-deleted. After an App has been in the `DELETED` state for more than 30 days, it is considered expired and will be permanently deleted. Up until this time, you can restore the App by calling `Undelete` ([Android](projects.androidApps/undelete) | [iOS](projects.iosApps/undelete) | [web](projects.webApps/undelete)).
    */
  case object DELETED extends FirebaseAppInfoState("DELETED")
  val values = List(STATE_UNSPECIFIED, ACTIVE, DELETED)
  def fromString(input: String): Either[String, FirebaseAppInfoState] = values
    .find(_.value == input)
    .toRight(s"'$input' was not a valid value for FirebaseAppInfoState")
  implicit val decoder: Decoder[FirebaseAppInfoState] = Decoder[String].emap(s => fromString(s))
  implicit val encoder: Encoder[FirebaseAppInfoState] = Encoder[String].contramap(_.value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy