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

com.pulumi.azurenative.web.kotlin.inputs.ApiOAuthSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.web.kotlin.inputs

import com.pulumi.azurenative.web.inputs.ApiOAuthSettingsArgs.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.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * OAuth settings for the connection provider
 * @property clientId Resource provider client id
 * @property clientSecret Client Secret needed for OAuth
 * @property customParameters OAuth parameters key is the name of parameter
 * @property identityProvider Identity provider
 * @property properties Read only properties for this oauth setting.
 * @property redirectUrl Url
 * @property scopes OAuth scopes
 */
public data class ApiOAuthSettingsArgs(
    public val clientId: Output? = null,
    public val clientSecret: Output? = null,
    public val customParameters: Output>? = null,
    public val identityProvider: Output? = null,
    public val properties: Output? = null,
    public val redirectUrl: Output? = null,
    public val scopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.web.inputs.ApiOAuthSettingsArgs =
        com.pulumi.azurenative.web.inputs.ApiOAuthSettingsArgs.builder()
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
            .customParameters(
                customParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .identityProvider(identityProvider?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0 }))
            .redirectUrl(redirectUrl?.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var clientSecret: Output? = null

    private var customParameters: Output>? = null

    private var identityProvider: Output? = null

    private var properties: Output? = null

    private var redirectUrl: Output? = null

    private var scopes: Output>? = null

    /**
     * @param value Resource provider client id
     */
    @JvmName("jjnykbnxwwfxxord")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Client Secret needed for OAuth
     */
    @JvmName("gjohypshiyyhnnty")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value OAuth parameters key is the name of parameter
     */
    @JvmName("qbuamijhasprdxfa")
    public suspend fun customParameters(`value`: Output>) {
        this.customParameters = value
    }

    /**
     * @param value Identity provider
     */
    @JvmName("ssigcuncrjecfxbn")
    public suspend fun identityProvider(`value`: Output) {
        this.identityProvider = value
    }

    /**
     * @param value Read only properties for this oauth setting.
     */
    @JvmName("ukymhqwuxerecmyj")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

    /**
     * @param value Url
     */
    @JvmName("vycckmlkmwolcgon")
    public suspend fun redirectUrl(`value`: Output) {
        this.redirectUrl = value
    }

    /**
     * @param value OAuth scopes
     */
    @JvmName("esjybcneyehvgjxv")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values OAuth scopes
     */
    @JvmName("qnohpseexftnoqxy")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value Resource provider client id
     */
    @JvmName("poyhusotfmivirsu")
    public suspend fun clientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Client Secret needed for OAuth
     */
    @JvmName("dparrddnicqyjixe")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value OAuth parameters key is the name of parameter
     */
    @JvmName("kirhqfmmsahoepjf")
    public suspend fun customParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customParameters = mapped
    }

    /**
     * @param argument OAuth parameters key is the name of parameter
     */
    @JvmName("efgkpdebcmkqalbo")
    public suspend fun customParameters(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ApiOAuthSettingsParameterArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.customParameters = mapped
    }

    /**
     * @param values OAuth parameters key is the name of parameter
     */
    @JvmName("hypqtaovqkonfbwe")
    public fun customParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customParameters = mapped
    }

    /**
     * @param value Identity provider
     */
    @JvmName("polilidxivrledpf")
    public suspend fun identityProvider(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityProvider = mapped
    }

    /**
     * @param value Read only properties for this oauth setting.
     */
    @JvmName("tdthxxxddhclfbtd")
    public suspend fun properties(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Url
     */
    @JvmName("njbodqduxbvyslkx")
    public suspend fun redirectUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.redirectUrl = mapped
    }

    /**
     * @param value OAuth scopes
     */
    @JvmName("eortcbenorixjhyj")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param values OAuth scopes
     */
    @JvmName("decvhukbsrduvefm")
    public suspend fun scopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    internal fun build(): ApiOAuthSettingsArgs = ApiOAuthSettingsArgs(
        clientId = clientId,
        clientSecret = clientSecret,
        customParameters = customParameters,
        identityProvider = identityProvider,
        properties = properties,
        redirectUrl = redirectUrl,
        scopes = scopes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy