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

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

package com.pulumi.gcp.osconfig.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property archiveExtraction Extracts an archive into the specified directory.
 * Structure is documented below.
 * @property dpkgInstallation Installs a deb file via dpkg.
 * Structure is documented below.
 * @property fileCopy Copies a file onto the instance.
 * Structure is documented below.
 * @property fileExec Executes an artifact or local file.
 * Structure is documented below.
 * @property msiInstallation Installs an MSI file.
 * Structure is documented below.
 * @property rpmInstallation Installs an rpm file via the rpm utility.
 * Structure is documented below.
 * @property scriptRun Runs commands in a shell.
 * Structure is documented below.
 */
public data class GuestPoliciesRecipeUpdateStep(
    public val archiveExtraction: GuestPoliciesRecipeUpdateStepArchiveExtraction? = null,
    public val dpkgInstallation: GuestPoliciesRecipeUpdateStepDpkgInstallation? = null,
    public val fileCopy: GuestPoliciesRecipeUpdateStepFileCopy? = null,
    public val fileExec: GuestPoliciesRecipeUpdateStepFileExec? = null,
    public val msiInstallation: GuestPoliciesRecipeUpdateStepMsiInstallation? = null,
    public val rpmInstallation: GuestPoliciesRecipeUpdateStepRpmInstallation? = null,
    public val scriptRun: GuestPoliciesRecipeUpdateStepScriptRun? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.GuestPoliciesRecipeUpdateStep): GuestPoliciesRecipeUpdateStep = GuestPoliciesRecipeUpdateStep(
            archiveExtraction = javaType.archiveExtraction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepArchiveExtraction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dpkgInstallation = javaType.dpkgInstallation().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepDpkgInstallation.Companion.toKotlin(args0)
                })
            }).orElse(null),
            fileCopy = javaType.fileCopy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepFileCopy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            fileExec = javaType.fileExec().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepFileExec.Companion.toKotlin(args0)
                })
            }).orElse(null),
            msiInstallation = javaType.msiInstallation().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepMsiInstallation.Companion.toKotlin(args0)
                })
            }).orElse(null),
            rpmInstallation = javaType.rpmInstallation().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepRpmInstallation.Companion.toKotlin(args0)
                })
            }).orElse(null),
            scriptRun = javaType.scriptRun().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepScriptRun.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy