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

com.pulumi.azure.appservice.kotlin.inputs.FunctionAppAuthSettingsGoogleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.FunctionAppAuthSettingsGoogleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property clientId The OpenID Connect Client ID for the Google web application.
 * @property clientSecret The client secret associated with the Google web application.
 * @property oauthScopes The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. 
 */
public data class FunctionAppAuthSettingsGoogleArgs(
    public val clientId: Output,
    public val clientSecret: Output,
    public val oauthScopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.FunctionAppAuthSettingsGoogleArgs =
        com.pulumi.azure.appservice.inputs.FunctionAppAuthSettingsGoogleArgs.builder()
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret.applyValue({ args0 -> args0 }))
            .oauthScopes(oauthScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FunctionAppAuthSettingsGoogleArgs].
 */
@PulumiTagMarker
public class FunctionAppAuthSettingsGoogleArgsBuilder internal constructor() {
    private var clientId: Output? = null

    private var clientSecret: Output? = null

    private var oauthScopes: Output>? = null

    /**
     * @param value The OpenID Connect Client ID for the Google web application.
     */
    @JvmName("brjtujaphrhhasnx")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The client secret associated with the Google web application.
     */
    @JvmName("hpcvtikcyeaxnlee")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. 
     */
    @JvmName("prtomuqtjfscsylx")
    public suspend fun oauthScopes(`value`: Output>) {
        this.oauthScopes = value
    }

    @JvmName("ucroenviolnkstnd")
    public suspend fun oauthScopes(vararg values: Output) {
        this.oauthScopes = Output.all(values.asList())
    }

    /**
     * @param values The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. 
     */
    @JvmName("cbnfkuekrvtvdryt")
    public suspend fun oauthScopes(values: List>) {
        this.oauthScopes = Output.all(values)
    }

    /**
     * @param value The OpenID Connect Client ID for the Google web application.
     */
    @JvmName("oebusvwbqltnjuas")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The client secret associated with the Google web application.
     */
    @JvmName("ybnycqwvkfgjkylk")
    public suspend fun clientSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. 
     */
    @JvmName("jwriflhdaivvyuxh")
    public suspend fun oauthScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    /**
     * @param values The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. 
     */
    @JvmName("nhgfncuvtmvdthxq")
    public suspend fun oauthScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    internal fun build(): FunctionAppAuthSettingsGoogleArgs = FunctionAppAuthSettingsGoogleArgs(
        clientId = clientId ?: throw PulumiNullFieldException("clientId"),
        clientSecret = clientSecret ?: throw PulumiNullFieldException("clientSecret"),
        oauthScopes = oauthScopes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy