
com.pulumi.azurenative.containerregistry.kotlin.inputs.DockerBuildRequestArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.DockerBuildRequestArgs.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 docker quick build.
* @property agentConfiguration The machine configuration of the run agent.
* @property agentPoolName The dedicated agent pool for the run.
* @property arguments The collection of override arguments to be used when executing the run.
* @property credentials The properties that describes a set of credentials that will be used when this run is invoked.
* @property dockerFilePath The Docker file path relative to the source location.
* @property imageNames The fully qualified image names including the repository and tag.
* @property isArchiveEnabled The value that indicates whether archiving is enabled for the run or not.
* @property isPushEnabled The value of this property indicates whether the image built should be pushed to the registry or not.
* @property logTemplate The template that describes the repository and tag information for run log artifact.
* @property noCache The value of this property indicates whether the image cache is enabled or not.
* @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 target The name of the target build stage for the docker build.
* @property timeout Run timeout in seconds.
* @property type The type of the run request.
* Expected value is 'DockerBuildRequest'.
*/
public data class DockerBuildRequestArgs(
public val agentConfiguration: Output? = null,
public val agentPoolName: Output? = null,
public val arguments: Output>? = null,
public val credentials: Output? = null,
public val dockerFilePath: Output,
public val imageNames: Output>? = null,
public val isArchiveEnabled: Output? = null,
public val isPushEnabled: Output? = null,
public val logTemplate: Output? = null,
public val noCache: Output? = null,
public val platform: Output,
public val sourceLocation: Output? = null,
public val target: Output? = null,
public val timeout: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.DockerBuildRequestArgs =
com.pulumi.azurenative.containerregistry.inputs.DockerBuildRequestArgs.builder()
.agentConfiguration(
agentConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.agentPoolName(agentPoolName?.applyValue({ args0 -> args0 }))
.arguments(
arguments?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dockerFilePath(dockerFilePath.applyValue({ args0 -> args0 }))
.imageNames(imageNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.isArchiveEnabled(isArchiveEnabled?.applyValue({ args0 -> args0 }))
.isPushEnabled(isPushEnabled?.applyValue({ args0 -> args0 }))
.logTemplate(logTemplate?.applyValue({ args0 -> args0 }))
.noCache(noCache?.applyValue({ args0 -> args0 }))
.platform(platform.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sourceLocation(sourceLocation?.applyValue({ args0 -> args0 }))
.target(target?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DockerBuildRequestArgs].
*/
@PulumiTagMarker
public class DockerBuildRequestArgsBuilder internal constructor() {
private var agentConfiguration: Output? = null
private var agentPoolName: Output? = null
private var arguments: Output>? = null
private var credentials: Output? = null
private var dockerFilePath: Output? = null
private var imageNames: Output>? = null
private var isArchiveEnabled: Output? = null
private var isPushEnabled: Output? = null
private var logTemplate: Output? = null
private var noCache: Output? = null
private var platform: Output? = null
private var sourceLocation: Output? = null
private var target: Output? = null
private var timeout: Output? = null
private var type: Output? = null
/**
* @param value The machine configuration of the run agent.
*/
@JvmName("xeaekohtyvnjfljy")
public suspend fun agentConfiguration(`value`: Output) {
this.agentConfiguration = value
}
/**
* @param value The dedicated agent pool for the run.
*/
@JvmName("fkgefwnudqyiocmt")
public suspend fun agentPoolName(`value`: Output) {
this.agentPoolName = value
}
/**
* @param value The collection of override arguments to be used when executing the run.
*/
@JvmName("alrekhtqjfvcfhal")
public suspend fun arguments(`value`: Output>) {
this.arguments = value
}
@JvmName("usoofoekvnfucmos")
public suspend fun arguments(vararg values: Output) {
this.arguments = Output.all(values.asList())
}
/**
* @param values The collection of override arguments to be used when executing the run.
*/
@JvmName("xugmokowuxnwtiun")
public suspend fun arguments(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy