com.pulumi.gcp.firebase.kotlin.outputs.GetWebAppConfigResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.firebase.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* A collection of values returned by getWebAppConfig.
* @property apiKey The API key associated with the web App.
* @property authDomain The domain Firebase Auth configures for OAuth redirects, in the format:
* projectId.firebaseapp.com
* @property databaseUrl The default Firebase Realtime Database URL.
* @property id
* @property locationId The ID of the project's default GCP resource location. The location is one of the available GCP resource
* locations.
* This field is omitted if the default GCP resource location has not been finalized yet. To set your project's
* default GCP resource location, call defaultLocation.finalize after you add Firebase services to your project.
* @property measurementId The unique Google-assigned identifier of the Google Analytics web stream associated with the Firebase Web App.
* Firebase SDKs use this ID to interact with Google Analytics APIs.
* This field is only present if the App is linked to a web stream in a Google Analytics App + Web property.
* Learn more about this ID and Google Analytics web streams in the Analytics documentation.
* To generate a measurementId and link the Web App with a Google Analytics web stream,
* call projects.addGoogleAnalytics.
* @property messagingSenderId The sender ID for use with Firebase Cloud Messaging.
* @property project
* @property storageBucket The default Cloud Storage for Firebase storage bucket name.
* @property webAppId
*/
public data class GetWebAppConfigResult(
public val apiKey: String,
public val authDomain: String,
public val databaseUrl: String,
public val id: String,
public val locationId: String,
public val measurementId: String,
public val messagingSenderId: String,
public val project: String? = null,
public val storageBucket: String,
public val webAppId: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.firebase.outputs.GetWebAppConfigResult): GetWebAppConfigResult = GetWebAppConfigResult(
apiKey = javaType.apiKey(),
authDomain = javaType.authDomain(),
databaseUrl = javaType.databaseUrl(),
id = javaType.id(),
locationId = javaType.locationId(),
measurementId = javaType.measurementId(),
messagingSenderId = javaType.messagingSenderId(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
storageBucket = javaType.storageBucket(),
webAppId = javaType.webAppId(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy