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

com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfig.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.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 PatchDeploymentPatchConfigPreStepWindowsExecStepConfig(
    public val allowedSuccessCodes: List? = null,
    public val gcsObject: PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject? = null,
    public val interpreter: String? = null,
    public val localPath: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfig): PatchDeploymentPatchConfigPreStepWindowsExecStepConfig =
            PatchDeploymentPatchConfigPreStepWindowsExecStepConfig(
                allowedSuccessCodes = javaType.allowedSuccessCodes().map({ args0 -> args0 }),
                gcsObject = javaType.gcsObject().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject.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