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

com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuild.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudbuild.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property artifacts Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
 * @property availableSecrets Secrets and secret environment variables.
 * @property images A list of images to be pushed upon the successful completion of all build steps.
 * The images are 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 status is marked FAILURE.
 * @property logsBucket Google Cloud Storage bucket where logs should be written.
 * Logs file names will be of the format ${logsBucket}/log-${build_id}.txt.
 * @property options Special options for this build.
 * @property queueTtl TTL in queue for this build. If provided and the build is enqueued longer than this value,
 * the build will expire and the build status will be EXPIRED.
 * The TTL starts ticking from createTime.
 * A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 * @property secrets Secrets to decrypt using Cloud Key Management Service.
 * @property sources The location of the source files to build.
 * One of 'storageSource' or 'repoSource' must be provided.
 * @property steps The operations to be performed on the workspace.
 * @property substitutions Substitutions data for Build resource.
 * @property tags Tags for annotation of a Build. These are not docker tags.
 * @property timeout Amount of time that this build should be allowed to run, to second granularity.
 * If this amount of time elapses, work on the build will cease and the build status will be TIMEOUT.
 * This timeout must be equal to or greater than the sum of the timeouts for build steps within the build.
 * The expected format is the number of seconds followed by s.
 * Default time is ten minutes (600s).
 */
public data class GetTriggerBuild(
    public val artifacts: List,
    public val availableSecrets: List,
    public val images: List,
    public val logsBucket: String,
    public val options: List,
    public val queueTtl: String,
    public val secrets: List,
    public val sources: List,
    public val steps: List,
    public val substitutions: Map,
    public val tags: List,
    public val timeout: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerBuild): GetTriggerBuild = GetTriggerBuild(
            artifacts = javaType.artifacts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildArtifact.Companion.toKotlin(args0)
                })
            }),
            availableSecrets = javaType.availableSecrets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildAvailableSecret.Companion.toKotlin(args0)
                })
            }),
            images = javaType.images().map({ args0 -> args0 }),
            logsBucket = javaType.logsBucket(),
            options = javaType.options().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildOption.Companion.toKotlin(args0)
                })
            }),
            queueTtl = javaType.queueTtl(),
            secrets = javaType.secrets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildSecret.Companion.toKotlin(args0)
                })
            }),
            sources = javaType.sources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildSource.Companion.toKotlin(args0)
                })
            }),
            steps = javaType.steps().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildStep.Companion.toKotlin(args0)
                })
            }),
            substitutions = javaType.substitutions().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            tags = javaType.tags().map({ args0 -> args0 }),
            timeout = javaType.timeout(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy