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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.appservice.inputs.LinuxWebAppAuthSettingsGithubArgs.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 ID of the GitHub app used for login.
 * @property clientSecret The Client Secret of the GitHub app used for GitHub login. Cannot be specified with `client_secret_setting_name`.
 * @property clientSecretSettingName The app setting name that contains the `client_secret` value used for GitHub login. Cannot be specified with `client_secret`.
 * @property oauthScopes Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub login authentication.
 */
public data class LinuxWebAppAuthSettingsGithubArgs(
    public val clientId: Output,
    public val clientSecret: Output? = null,
    public val clientSecretSettingName: Output? = null,
    public val oauthScopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.LinuxWebAppAuthSettingsGithubArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppAuthSettingsGithubArgs.builder()
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
            .clientSecretSettingName(clientSecretSettingName?.applyValue({ args0 -> args0 }))
            .oauthScopes(oauthScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var clientSecret: Output? = null

    private var clientSecretSettingName: Output? = null

    private var oauthScopes: Output>? = null

    /**
     * @param value The ID of the GitHub app used for login.
     */
    @JvmName("jxrdtjywnocqoahb")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The Client Secret of the GitHub app used for GitHub login. Cannot be specified with `client_secret_setting_name`.
     */
    @JvmName("ttmhldqthtsojiqn")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value The app setting name that contains the `client_secret` value used for GitHub login. Cannot be specified with `client_secret`.
     */
    @JvmName("vugpmchyxcgirvle")
    public suspend fun clientSecretSettingName(`value`: Output) {
        this.clientSecretSettingName = value
    }

    /**
     * @param value Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub login authentication.
     */
    @JvmName("qpqknsmcviaoebgd")
    public suspend fun oauthScopes(`value`: Output>) {
        this.oauthScopes = value
    }

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

    /**
     * @param values Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub login authentication.
     */
    @JvmName("npwyyrfnecnjlicj")
    public suspend fun oauthScopes(values: List>) {
        this.oauthScopes = Output.all(values)
    }

    /**
     * @param value The ID of the GitHub app used for login.
     */
    @JvmName("pyhjowilvmglwcfc")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The Client Secret of the GitHub app used for GitHub login. Cannot be specified with `client_secret_setting_name`.
     */
    @JvmName("xfvtxwsqlkohxxgq")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value The app setting name that contains the `client_secret` value used for GitHub login. Cannot be specified with `client_secret`.
     */
    @JvmName("mxcgkytnuwrmggoh")
    public suspend fun clientSecretSettingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

    /**
     * @param value Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub login authentication.
     */
    @JvmName("kubekucwyxpgvema")
    public suspend fun oauthScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    /**
     * @param values Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub login authentication.
     */
    @JvmName("uprebulheylhykyk")
    public suspend fun oauthScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy