com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildOption.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property diskSizeGb Requested disk size for the VM that runs the build. Note that this is NOT "disk free";
* some of the space will be used by the operating system and build utilities.
* Also note that this is the minimum disk size that will be allocated for the build --
* the build may run with a larger disk than requested. At present, the maximum disk size
* is 1000GB; builds that request more than the maximum are rejected with an error.
* @property dynamicSubstitutions Option to specify whether or not to apply bash style string operations to the substitutions.
* NOTE this is always enabled for triggered builds and cannot be overridden in the build configuration file.
* @property envs A list of global environment variable definitions that will exist for all build steps
* in this build. If a variable is defined in both globally and in a build step,
* the variable will use the build step value.
* The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
* @property logStreamingOption Option to define build log streaming behavior to Google Cloud Storage. Possible values: ["STREAM_DEFAULT", "STREAM_ON", "STREAM_OFF"]
* @property logging Option to specify the logging mode, which determines if and where build logs are stored. Possible values: ["LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "CLOUD_LOGGING_ONLY", "NONE"]
* @property machineType Compute Engine machine type on which to run the build.
* @property requestedVerifyOption Requested verifiability options. Possible values: ["NOT_VERIFIED", "VERIFIED"]
* @property secretEnvs A list of global environment variables, which are encrypted using a Cloud Key Management
* Service crypto key. These values must be specified in the build's Secret. These variables
* will be available to all build steps in this build.
* @property sourceProvenanceHashes Requested hash for SourceProvenance. Possible values: ["NONE", "SHA256", "MD5"]
* @property substitutionOption Option to specify behavior when there is an error in the substitution checks.
* NOTE this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden
* in the build configuration file. Possible values: ["MUST_MATCH", "ALLOW_LOOSE"]
* @property volumes Global list of volumes to mount for ALL build steps
* Each volume is created as an empty volume prior to starting the build process.
* Upon completion of the build, volumes and their contents are discarded. Global
* volume names and paths cannot conflict with the volumes defined a build step.
* Using a global volume in a build with only one step is not valid as it is indicative
* of a build request with an incorrect configuration.
* @property workerPool Option to specify a WorkerPool for the build. Format projects/{project}/workerPools/{workerPool}
* This field is experimental.
*/
public data class GetTriggerBuildOption(
public val diskSizeGb: Int,
public val dynamicSubstitutions: Boolean,
public val envs: List,
public val logStreamingOption: String,
public val logging: String,
public val machineType: String,
public val requestedVerifyOption: String,
public val secretEnvs: List,
public val sourceProvenanceHashes: List,
public val substitutionOption: String,
public val volumes: List,
public val workerPool: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerBuildOption): GetTriggerBuildOption = GetTriggerBuildOption(
diskSizeGb = javaType.diskSizeGb(),
dynamicSubstitutions = javaType.dynamicSubstitutions(),
envs = javaType.envs().map({ args0 -> args0 }),
logStreamingOption = javaType.logStreamingOption(),
logging = javaType.logging(),
machineType = javaType.machineType(),
requestedVerifyOption = javaType.requestedVerifyOption(),
secretEnvs = javaType.secretEnvs().map({ args0 -> args0 }),
sourceProvenanceHashes = javaType.sourceProvenanceHashes().map({ args0 -> args0 }),
substitutionOption = javaType.substitutionOption(),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildOptionVolume.Companion.toKotlin(args0)
})
}),
workerPool = javaType.workerPool(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy