Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package googleapis.firebase
import io.circe._
import io.circe.syntax._
final case class FirebaseAppInfo(
/** The user-assigned display name of the Firebase App.
*/
displayName: Option[String] = None,
/** Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state.
*/
expireTime: Option[String] = None,
/** The resource name of the Firebase App, in the format: projects/PROJECT_ID /iosApps/APP_ID or projects/PROJECT_ID/androidApps/APP_ID or projects/ PROJECT_ID/webApps/APP_ID
*/
name: Option[String] = None,
/** Output only. The lifecycle state of the App.
*/
state: Option[FirebaseAppInfoState] = None,
/** The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the App. Be aware that this value is the UID of the API key, _not_ the [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key. The `keyString` is the value that can be found in the App's configuration artifact ([`AndroidApp`](../../rest/v1beta1/projects.androidApps/getConfig) | [`IosApp`](../../rest/v1beta1/projects.iosApps/getConfig) | [`WebApp`](../../rest/v1beta1/projects.webApps/getConfig)). If `api_key_id` is not set in requests to create the App ([`AndroidApp`](../../rest/v1beta1/projects.androidApps/create) | [`IosApp`](../../rest/v1beta1/projects.iosApps/create) | [`WebApp`](../../rest/v1beta1/projects.webApps/create)), then Firebase automatically associates an `api_key_id` with the App. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
*/
apiKeyId: Option[String] = None,
/** Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified.
*/
appId: Option[String] = None,
/** The platform of the Firebase App.
*/
platform: Option[FirebaseAppInfoPlatform] = None,
/** Output only. Immutable. The platform-specific identifier of the App. \*Note:\* For most use cases, use `appId`, which is the canonical, globally unique identifier for referencing an App. This string is derived from a native identifier for each platform: `packageName` for an `AndroidApp`, `bundleId` for an `IosApp`, and `webId` for a `WebApp`. Its contents should be treated as opaque, as the native identifier format may change as platforms evolve. This string is only unique within a `FirebaseProject` and its associated Apps.
*/
namespace: Option[String] = None,
)
object FirebaseAppInfo {
implicit val encoder: Encoder[FirebaseAppInfo] = Encoder.instance { x =>
Json.obj(
"displayName" := x.displayName,
"expireTime" := x.expireTime,
"name" := x.name,
"state" := x.state,
"apiKeyId" := x.apiKeyId,
"appId" := x.appId,
"platform" := x.platform,
"namespace" := x.namespace,
)
}
implicit val decoder: Decoder[FirebaseAppInfo] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("displayName")
v1 <- c.get[Option[String]]("expireTime")
v2 <- c.get[Option[String]]("name")
v3 <- c.get[Option[FirebaseAppInfoState]]("state")
v4 <- c.get[Option[String]]("apiKeyId")
v5 <- c.get[Option[String]]("appId")
v6 <- c.get[Option[FirebaseAppInfoPlatform]]("platform")
v7 <- c.get[Option[String]]("namespace")
} yield FirebaseAppInfo(v0, v1, v2, v3, v4, v5, v6, v7)
}
}