Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildArtifactsArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudbuild.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property images A list of images to be pushed upon the successful completion of all build steps.
* The images will be pushed using the builder service account's credentials.
* The digests of the pushed images will be stored in the Build resource's results field.
* If any of the images fail to be pushed, the build is marked FAILURE.
* @property mavenArtifacts A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
* @property npmPackages Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
* @property objects A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
* Files in the workspace matching specified paths globs will be uploaded to the
* Cloud Storage location using the builder service account's credentials.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
* @property pythonPackages Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
public data class TriggerBuildArtifactsArgs(
public val images: Output>? = null,
public val mavenArtifacts: Output>? = null,
public val npmPackages: Output>? = null,
public val objects: Output? = null,
public val pythonPackages: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsArgs.builder()
.images(images?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.mavenArtifacts(
mavenArtifacts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.npmPackages(
npmPackages?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.objects(objects?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.pythonPackages(
pythonPackages?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [TriggerBuildArtifactsArgs].
*/
@PulumiTagMarker
public class TriggerBuildArtifactsArgsBuilder internal constructor() {
private var images: Output>? = null
private var mavenArtifacts: Output>? = null
private var npmPackages: Output>? = null
private var objects: Output? = null
private var pythonPackages: Output>? = null
/**
* @param value A list of images to be pushed upon the successful completion of all build steps.
* The images will be pushed using the builder service account's credentials.
* The digests of the pushed images will be stored in the Build resource's results field.
* If any of the images fail to be pushed, the build is marked FAILURE.
*/
@JvmName("xtvnakaqjpfcjbcm")
public suspend fun images(`value`: Output>) {
this.images = value
}
@JvmName("hhvbrruprfnejrfg")
public suspend fun images(vararg values: Output) {
this.images = Output.all(values.asList())
}
/**
* @param values A list of images to be pushed upon the successful completion of all build steps.
* The images will be pushed using the builder service account's credentials.
* The digests of the pushed images will be stored in the Build resource's results field.
* If any of the images fail to be pushed, the build is marked FAILURE.
*/
@JvmName("vemubvxqievrppjr")
public suspend fun images(values: List>) {
this.images = Output.all(values)
}
/**
* @param value A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("xjbrjbvpxmwpmngy")
public suspend fun mavenArtifacts(`value`: Output>) {
this.mavenArtifacts = value
}
@JvmName("dxhpgoupmxlogrhq")
public suspend fun mavenArtifacts(vararg values: Output) {
this.mavenArtifacts = Output.all(values.asList())
}
/**
* @param values A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("ycluiljneiyedtrb")
public suspend fun mavenArtifacts(values: List>) {
this.mavenArtifacts = Output.all(values)
}
/**
* @param value Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("ebvaxowhigjwiaml")
public suspend fun npmPackages(`value`: Output>) {
this.npmPackages = value
}
@JvmName("kpawulifcctcwauq")
public suspend fun npmPackages(vararg values: Output) {
this.npmPackages = Output.all(values.asList())
}
/**
* @param values Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("ogxoggvsdohktvso")
public suspend fun npmPackages(values: List>) {
this.npmPackages = Output.all(values)
}
/**
* @param value A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
* Files in the workspace matching specified paths globs will be uploaded to the
* Cloud Storage location using the builder service account's credentials.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("xbccnwlfjhsgipxi")
public suspend fun objects(`value`: Output) {
this.objects = value
}
/**
* @param value Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("swtirgjflxsjniiv")
public suspend fun pythonPackages(`value`: Output>) {
this.pythonPackages = value
}
@JvmName("dvoshypgvdgakums")
public suspend fun pythonPackages(vararg values: Output) {
this.pythonPackages = Output.all(values.asList())
}
/**
* @param values Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("amdswlcehnxxdlnc")
public suspend fun pythonPackages(values: List>) {
this.pythonPackages = Output.all(values)
}
/**
* @param value A list of images to be pushed upon the successful completion of all build steps.
* The images will be pushed using the builder service account's credentials.
* The digests of the pushed images will be stored in the Build resource's results field.
* If any of the images fail to be pushed, the build is marked FAILURE.
*/
@JvmName("dcqplampodvqyifj")
public suspend fun images(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.images = mapped
}
/**
* @param values A list of images to be pushed upon the successful completion of all build steps.
* The images will be pushed using the builder service account's credentials.
* The digests of the pushed images will be stored in the Build resource's results field.
* If any of the images fail to be pushed, the build is marked FAILURE.
*/
@JvmName("qipxrkhtbdcfhbmi")
public suspend fun images(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.images = mapped
}
/**
* @param value A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("uwpwtvqkbdimyxva")
public suspend fun mavenArtifacts(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mavenArtifacts = mapped
}
/**
* @param argument A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("pmruayyxyupoxolj")
public suspend fun mavenArtifacts(argument: List Unit>) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsMavenArtifactArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.mavenArtifacts = mapped
}
/**
* @param argument A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("uovkhpikqictgsti")
public suspend fun mavenArtifacts(vararg argument: suspend TriggerBuildArtifactsMavenArtifactArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsMavenArtifactArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.mavenArtifacts = mapped
}
/**
* @param argument A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("xqgykfjdxxooxocg")
public suspend fun mavenArtifacts(argument: suspend TriggerBuildArtifactsMavenArtifactArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
TriggerBuildArtifactsMavenArtifactArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.mavenArtifacts = mapped
}
/**
* @param values A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("ebgyxotpdwlgbyrd")
public suspend fun mavenArtifacts(vararg values: TriggerBuildArtifactsMavenArtifactArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mavenArtifacts = mapped
}
/**
* @param value Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("mtkgwrprpkofvgnk")
public suspend fun npmPackages(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.npmPackages = mapped
}
/**
* @param argument Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("efsyhpoqrirtvcss")
public suspend fun npmPackages(argument: List Unit>) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsNpmPackageArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.npmPackages = mapped
}
/**
* @param argument Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("qjqjnhpphjeftbwm")
public suspend fun npmPackages(vararg argument: suspend TriggerBuildArtifactsNpmPackageArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsNpmPackageArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.npmPackages = mapped
}
/**
* @param argument Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("tfimbxphohqrrqoa")
public suspend fun npmPackages(argument: suspend TriggerBuildArtifactsNpmPackageArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
TriggerBuildArtifactsNpmPackageArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.npmPackages = mapped
}
/**
* @param values Npm package to upload to Artifact Registry upon successful completion of all build steps.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("rvuflqjtcolowdyg")
public suspend fun npmPackages(vararg values: TriggerBuildArtifactsNpmPackageArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.npmPackages = mapped
}
/**
* @param value A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
* Files in the workspace matching specified paths globs will be uploaded to the
* Cloud Storage location using the builder service account's credentials.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("phwkjxumtrbigorc")
public suspend fun objects(`value`: TriggerBuildArtifactsObjectsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.objects = mapped
}
/**
* @param argument A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
* Files in the workspace matching specified paths globs will be uploaded to the
* Cloud Storage location using the builder service account's credentials.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("oaaemxiotapwgouv")
public suspend fun objects(argument: suspend TriggerBuildArtifactsObjectsArgsBuilder.() -> Unit) {
val toBeMapped = TriggerBuildArtifactsObjectsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.objects = mapped
}
/**
* @param value Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("piuivagquijfocje")
public suspend fun pythonPackages(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pythonPackages = mapped
}
/**
* @param argument Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("dygdeqvahlujfvjs")
public suspend fun pythonPackages(argument: List Unit>) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsPythonPackageArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.pythonPackages = mapped
}
/**
* @param argument Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("ypmjsadrceoyknbp")
public suspend fun pythonPackages(vararg argument: suspend TriggerBuildArtifactsPythonPackageArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
TriggerBuildArtifactsPythonPackageArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.pythonPackages = mapped
}
/**
* @param argument Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("htpulauhidwpvagq")
public suspend fun pythonPackages(argument: suspend TriggerBuildArtifactsPythonPackageArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
TriggerBuildArtifactsPythonPackageArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.pythonPackages = mapped
}
/**
* @param values Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
* The location and generation of the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
* Structure is documented below.
*/
@JvmName("irrmamhymejuembd")
public suspend fun pythonPackages(vararg values: TriggerBuildArtifactsPythonPackageArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.pythonPackages = mapped
}
internal fun build(): TriggerBuildArtifactsArgs = TriggerBuildArtifactsArgs(
images = images,
mavenArtifacts = mavenArtifacts,
npmPackages = npmPackages,
objects = objects,
pythonPackages = pythonPackages,
)
}