com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildArtifacts.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 TriggerBuildArtifacts(
public val images: List? = null,
public val mavenArtifacts: List? = null,
public val npmPackages: List? = null,
public val objects: TriggerBuildArtifactsObjects? = null,
public val pythonPackages: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerBuildArtifacts): TriggerBuildArtifacts = TriggerBuildArtifacts(
images = javaType.images().map({ args0 -> args0 }),
mavenArtifacts = javaType.mavenArtifacts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildArtifactsMavenArtifact.Companion.toKotlin(args0)
})
}),
npmPackages = javaType.npmPackages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildArtifactsNpmPackage.Companion.toKotlin(args0)
})
}),
objects = javaType.objects().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildArtifactsObjects.Companion.toKotlin(args0)
})
}).orElse(null),
pythonPackages = javaType.pythonPackages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildArtifactsPythonPackage.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy