com.pulumi.azurenative.app.kotlin.inputs.GoogleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.GoogleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The configuration settings of the Google provider.
* @property enabled false
if the Google provider should not be enabled despite the set registration; otherwise, true
.
* @property login The configuration settings of the login flow.
* @property registration The configuration settings of the app registration for the Google provider.
* @property validation The configuration settings of the Azure Active Directory token validation flow.
*/
public data class GoogleArgs(
public val enabled: Output? = null,
public val login: Output? = null,
public val registration: Output? = null,
public val validation: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.GoogleArgs =
com.pulumi.azurenative.app.inputs.GoogleArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.login(login?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.registration(registration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.validation(validation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GoogleArgs].
*/
@PulumiTagMarker
public class GoogleArgsBuilder internal constructor() {
private var enabled: Output? = null
private var login: Output? = null
private var registration: Output? = null
private var validation: Output? = null
/**
* @param value false
if the Google provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("aegnftlncjopiobu")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The configuration settings of the login flow.
*/
@JvmName("qlbxnoxehtceupap")
public suspend fun login(`value`: Output) {
this.login = value
}
/**
* @param value The configuration settings of the app registration for the Google provider.
*/
@JvmName("qtqdfrbsqhrfqmqq")
public suspend fun registration(`value`: Output) {
this.registration = value
}
/**
* @param value The configuration settings of the Azure Active Directory token validation flow.
*/
@JvmName("htcvywujrqawuykt")
public suspend fun validation(`value`: Output) {
this.validation = value
}
/**
* @param value false
if the Google provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("qorrjysqyevibxiv")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The configuration settings of the login flow.
*/
@JvmName("ewgpyuxpycecwdna")
public suspend fun login(`value`: LoginScopesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.login = mapped
}
/**
* @param argument The configuration settings of the login flow.
*/
@JvmName("fentgxrqusbaxecr")
public suspend fun login(argument: suspend LoginScopesArgsBuilder.() -> Unit) {
val toBeMapped = LoginScopesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.login = mapped
}
/**
* @param value The configuration settings of the app registration for the Google provider.
*/
@JvmName("yhsapyseucxvqooi")
public suspend fun registration(`value`: ClientRegistrationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registration = mapped
}
/**
* @param argument The configuration settings of the app registration for the Google provider.
*/
@JvmName("ucfnjeegllfccllj")
public suspend fun registration(argument: suspend ClientRegistrationArgsBuilder.() -> Unit) {
val toBeMapped = ClientRegistrationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.registration = mapped
}
/**
* @param value The configuration settings of the Azure Active Directory token validation flow.
*/
@JvmName("unbyhdfjftknjngq")
public suspend fun validation(`value`: AllowedAudiencesValidationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.validation = mapped
}
/**
* @param argument The configuration settings of the Azure Active Directory token validation flow.
*/
@JvmName("kbjidhfmlkjlwrww")
public suspend fun validation(argument: suspend AllowedAudiencesValidationArgsBuilder.() -> Unit) {
val toBeMapped = AllowedAudiencesValidationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.validation = mapped
}
internal fun build(): GoogleArgs = GoogleArgs(
enabled = enabled,
login = login,
registration = registration,
validation = validation,
)
}