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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryTaskSourceTriggerAuthenticationArgs.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.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryTaskSourceTriggerAuthenticationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property expireInSeconds Time in seconds that the token remains valid.
 * @property refreshToken The refresh token used to refresh the access token.
 * @property scope The scope of the access token.
 * @property token The access token used to access the source control provider.
 * @property tokenType The type of the token. Possible values are `PAT` (personal access token) and `OAuth`.
 */
public data class RegistryTaskSourceTriggerAuthenticationArgs(
    public val expireInSeconds: Output? = null,
    public val refreshToken: Output? = null,
    public val scope: Output? = null,
    public val token: Output,
    public val tokenType: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryTaskSourceTriggerAuthenticationArgs =
        com.pulumi.azure.containerservice.inputs.RegistryTaskSourceTriggerAuthenticationArgs.builder()
            .expireInSeconds(expireInSeconds?.applyValue({ args0 -> args0 }))
            .refreshToken(refreshToken?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0 }))
            .token(token.applyValue({ args0 -> args0 }))
            .tokenType(tokenType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegistryTaskSourceTriggerAuthenticationArgs].
 */
@PulumiTagMarker
public class RegistryTaskSourceTriggerAuthenticationArgsBuilder internal constructor() {
    private var expireInSeconds: Output? = null

    private var refreshToken: Output? = null

    private var scope: Output? = null

    private var token: Output? = null

    private var tokenType: Output? = null

    /**
     * @param value Time in seconds that the token remains valid.
     */
    @JvmName("qewnxojvxbkknhcb")
    public suspend fun expireInSeconds(`value`: Output) {
        this.expireInSeconds = value
    }

    /**
     * @param value The refresh token used to refresh the access token.
     */
    @JvmName("dtrqldkogsfymlna")
    public suspend fun refreshToken(`value`: Output) {
        this.refreshToken = value
    }

    /**
     * @param value The scope of the access token.
     */
    @JvmName("sidyomkwgnmblbyg")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value The access token used to access the source control provider.
     */
    @JvmName("ddsyolhtsklpuevu")
    public suspend fun token(`value`: Output) {
        this.token = value
    }

    /**
     * @param value The type of the token. Possible values are `PAT` (personal access token) and `OAuth`.
     */
    @JvmName("raanaysytosnriou")
    public suspend fun tokenType(`value`: Output) {
        this.tokenType = value
    }

    /**
     * @param value Time in seconds that the token remains valid.
     */
    @JvmName("ircftfvbpfmbecea")
    public suspend fun expireInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expireInSeconds = mapped
    }

    /**
     * @param value The refresh token used to refresh the access token.
     */
    @JvmName("fvvaipllrnpbfpud")
    public suspend fun refreshToken(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.refreshToken = mapped
    }

    /**
     * @param value The scope of the access token.
     */
    @JvmName("dramrolmhmooylbm")
    public suspend fun scope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value The access token used to access the source control provider.
     */
    @JvmName("gadvnqapgxrhqsct")
    public suspend fun token(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.token = mapped
    }

    /**
     * @param value The type of the token. Possible values are `PAT` (personal access token) and `OAuth`.
     */
    @JvmName("icdvdiemahtjrrve")
    public suspend fun tokenType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tokenType = mapped
    }

    internal fun build(): RegistryTaskSourceTriggerAuthenticationArgs =
        RegistryTaskSourceTriggerAuthenticationArgs(
            expireInSeconds = expireInSeconds,
            refreshToken = refreshToken,
            scope = scope,
            token = token ?: throw PulumiNullFieldException("token"),
            tokenType = tokenType ?: throw PulumiNullFieldException("tokenType"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy