
com.pulumi.azurenative.containerregistry.kotlin.inputs.EncodedTaskRunRequestArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.EncodedTaskRunRequestArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The parameters for a quick task run request.
* @property agentConfiguration The machine configuration of the run agent.
* @property agentPoolName The dedicated agent pool for the run.
* @property credentials The properties that describes a set of credentials that will be used when this run is invoked.
* @property encodedTaskContent Base64 encoded value of the template/definition file content.
* @property encodedValuesContent Base64 encoded value of the parameters/values file content.
* @property isArchiveEnabled The value that indicates whether archiving is enabled for the run or not.
* @property logTemplate The template that describes the repository and tag information for run log artifact.
* @property platform The platform properties against which the run has to happen.
* @property sourceLocation The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
* If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
* @property timeout Run timeout in seconds.
* @property type The type of the run request.
* Expected value is 'EncodedTaskRunRequest'.
* @property values The collection of overridable values that can be passed when running a task.
*/
public data class EncodedTaskRunRequestArgs(
public val agentConfiguration: Output? = null,
public val agentPoolName: Output? = null,
public val credentials: Output? = null,
public val encodedTaskContent: Output,
public val encodedValuesContent: Output? = null,
public val isArchiveEnabled: Output? = null,
public val logTemplate: Output? = null,
public val platform: Output,
public val sourceLocation: Output? = null,
public val timeout: Output? = null,
public val type: Output,
public val values: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.EncodedTaskRunRequestArgs =
com.pulumi.azurenative.containerregistry.inputs.EncodedTaskRunRequestArgs.builder()
.agentConfiguration(
agentConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.agentPoolName(agentPoolName?.applyValue({ args0 -> args0 }))
.credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.encodedTaskContent(encodedTaskContent.applyValue({ args0 -> args0 }))
.encodedValuesContent(encodedValuesContent?.applyValue({ args0 -> args0 }))
.isArchiveEnabled(isArchiveEnabled?.applyValue({ args0 -> args0 }))
.logTemplate(logTemplate?.applyValue({ args0 -> args0 }))
.platform(platform.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sourceLocation(sourceLocation?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.values(
values?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [EncodedTaskRunRequestArgs].
*/
@PulumiTagMarker
public class EncodedTaskRunRequestArgsBuilder internal constructor() {
private var agentConfiguration: Output? = null
private var agentPoolName: Output? = null
private var credentials: Output? = null
private var encodedTaskContent: Output? = null
private var encodedValuesContent: Output? = null
private var isArchiveEnabled: Output? = null
private var logTemplate: Output? = null
private var platform: Output? = null
private var sourceLocation: Output? = null
private var timeout: Output? = null
private var type: Output? = null
private var values: Output>? = null
/**
* @param value The machine configuration of the run agent.
*/
@JvmName("tisybnfdvtoqbtkb")
public suspend fun agentConfiguration(`value`: Output) {
this.agentConfiguration = value
}
/**
* @param value The dedicated agent pool for the run.
*/
@JvmName("wvdmbcmmnvphydxv")
public suspend fun agentPoolName(`value`: Output) {
this.agentPoolName = value
}
/**
* @param value The properties that describes a set of credentials that will be used when this run is invoked.
*/
@JvmName("lmtovxdvbfxjavic")
public suspend fun credentials(`value`: Output) {
this.credentials = value
}
/**
* @param value Base64 encoded value of the template/definition file content.
*/
@JvmName("mkdpbreaqomlmlpm")
public suspend fun encodedTaskContent(`value`: Output) {
this.encodedTaskContent = value
}
/**
* @param value Base64 encoded value of the parameters/values file content.
*/
@JvmName("isncocgggnagbfqg")
public suspend fun encodedValuesContent(`value`: Output) {
this.encodedValuesContent = value
}
/**
* @param value The value that indicates whether archiving is enabled for the run or not.
*/
@JvmName("nhoivbeeobmmaecv")
public suspend fun isArchiveEnabled(`value`: Output) {
this.isArchiveEnabled = value
}
/**
* @param value The template that describes the repository and tag information for run log artifact.
*/
@JvmName("twpyvupqxppcvvav")
public suspend fun logTemplate(`value`: Output) {
this.logTemplate = value
}
/**
* @param value The platform properties against which the run has to happen.
*/
@JvmName("kodernhiwfxynyhh")
public suspend fun platform(`value`: Output) {
this.platform = value
}
/**
* @param value The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
* If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*/
@JvmName("rekuirtjblbckoma")
public suspend fun sourceLocation(`value`: Output) {
this.sourceLocation = value
}
/**
* @param value Run timeout in seconds.
*/
@JvmName("xfklwdtacndeajih")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value The type of the run request.
* Expected value is 'EncodedTaskRunRequest'.
*/
@JvmName("iaqsogaiualtispv")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The collection of overridable values that can be passed when running a task.
*/
@JvmName("ehrdaoraftmncqsl")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("rnldsfxwpqskgicu")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values The collection of overridable values that can be passed when running a task.
*/
@JvmName("lybsqtqdvogyqkly")
public suspend fun values(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy