com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfig.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.osconfig.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allowedSuccessCodes Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
* @property gcsObject A Cloud Storage object containing the executable.
* Structure is documented below.
* @property interpreter The script interpreter to use to run the script. If no interpreter is specified the script will
* be executed directly, which will likely only succeed for scripts with shebang lines.
* Possible values are: `SHELL`, `POWERSHELL`.
* @property localPath An absolute path to the executable on the VM.
*/
public data class PatchDeploymentPatchConfigPostStepLinuxExecStepConfig(
public val allowedSuccessCodes: List? = null,
public val gcsObject: PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObject? = null,
public val interpreter: String? = null,
public val localPath: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfig): PatchDeploymentPatchConfigPostStepLinuxExecStepConfig =
PatchDeploymentPatchConfigPostStepLinuxExecStepConfig(
allowedSuccessCodes = javaType.allowedSuccessCodes().map({ args0 -> args0 }),
gcsObject = javaType.gcsObject().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObject.Companion.toKotlin(args0)
})
}).orElse(null),
interpreter = javaType.interpreter().map({ args0 -> args0 }).orElse(null),
localPath = javaType.localPath().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy