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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSlotAuthSettingsV2GithubV2Args.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.WindowsWebAppSlotAuthSettingsV2GithubV2Args.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 clientSecretSettingName The app setting name that contains the `client_secret` value used for GitHub Login.
 * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
 * @property loginScopes The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
 */
public data class WindowsWebAppSlotAuthSettingsV2GithubV2Args(
    public val clientId: Output,
    public val clientSecretSettingName: Output,
    public val loginScopes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotAuthSettingsV2GithubV2Args =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotAuthSettingsV2GithubV2Args.builder()
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecretSettingName(clientSecretSettingName.applyValue({ args0 -> args0 }))
            .loginScopes(loginScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var clientSecretSettingName: Output? = null

    private var loginScopes: Output>? = null

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

    /**
     * @param value The app setting name that contains the `client_secret` value used for GitHub Login.
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     */
    @JvmName("psbnfssnctgkdqkm")
    public suspend fun clientSecretSettingName(`value`: Output) {
        this.clientSecretSettingName = value
    }

    /**
     * @param value The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     */
    @JvmName("uojcscwfsfaikxas")
    public suspend fun loginScopes(`value`: Output>) {
        this.loginScopes = value
    }

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

    /**
     * @param values The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     */
    @JvmName("toxupgngamervwgr")
    public suspend fun loginScopes(values: List>) {
        this.loginScopes = Output.all(values)
    }

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

    /**
     * @param value The app setting name that contains the `client_secret` value used for GitHub Login.
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     */
    @JvmName("wjamdckasvqsvoay")
    public suspend fun clientSecretSettingName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

    /**
     * @param value The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     */
    @JvmName("drhfbfdnjidrjjkc")
    public suspend fun loginScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loginScopes = mapped
    }

    /**
     * @param values The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     */
    @JvmName("mgydvotknmbxosrf")
    public suspend fun loginScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loginScopes = mapped
    }

    internal fun build(): WindowsWebAppSlotAuthSettingsV2GithubV2Args =
        WindowsWebAppSlotAuthSettingsV2GithubV2Args(
            clientId = clientId ?: throw PulumiNullFieldException("clientId"),
            clientSecretSettingName = clientSecretSettingName ?: throw
                PulumiNullFieldException("clientSecretSettingName"),
            loginScopes = loginScopes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy