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

com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfig.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.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property apt Apt update settings. Use this setting to override the default apt patch rules.
 * Structure is documented below.
 * @property goo goo update settings. Use this setting to override the default goo patch rules.
 * Structure is documented below.
 * @property migInstancesAllowed Allows the patch job to run on Managed instance groups (MIGs).
 * @property postStep The ExecStep to run after the patch update.
 * Structure is documented below.
 * @property preStep The ExecStep to run before the patch update.
 * Structure is documented below.
 * @property rebootConfig Post-patch reboot settings.
 * Possible values are: `DEFAULT`, `ALWAYS`, `NEVER`.
 * @property windowsUpdate Windows update settings. Use this setting to override the default Windows patch rules.
 * Structure is documented below.
 * @property yum Yum update settings. Use this setting to override the default yum patch rules.
 * Structure is documented below.
 * @property zypper zypper update settings. Use this setting to override the default zypper patch rules.
 * Structure is documented below.
 */
public data class PatchDeploymentPatchConfig(
    public val apt: PatchDeploymentPatchConfigApt? = null,
    public val goo: PatchDeploymentPatchConfigGoo? = null,
    public val migInstancesAllowed: Boolean? = null,
    public val postStep: PatchDeploymentPatchConfigPostStep? = null,
    public val preStep: PatchDeploymentPatchConfigPreStep? = null,
    public val rebootConfig: String? = null,
    public val windowsUpdate: PatchDeploymentPatchConfigWindowsUpdate? = null,
    public val yum: PatchDeploymentPatchConfigYum? = null,
    public val zypper: PatchDeploymentPatchConfigZypper? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.PatchDeploymentPatchConfig): PatchDeploymentPatchConfig = PatchDeploymentPatchConfig(
            apt = javaType.apt().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigApt.Companion.toKotlin(args0)
                })
            }).orElse(null),
            goo = javaType.goo().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigGoo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            migInstancesAllowed = javaType.migInstancesAllowed().map({ args0 -> args0 }).orElse(null),
            postStep = javaType.postStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPostStep.Companion.toKotlin(args0)
                })
            }).orElse(null),
            preStep = javaType.preStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigPreStep.Companion.toKotlin(args0)
                })
            }).orElse(null),
            rebootConfig = javaType.rebootConfig().map({ args0 -> args0 }).orElse(null),
            windowsUpdate = javaType.windowsUpdate().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigWindowsUpdate.Companion.toKotlin(args0)
                })
            }).orElse(null),
            yum = javaType.yum().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigYum.Companion.toKotlin(args0)
                })
            }).orElse(null),
            zypper = javaType.zypper().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentPatchConfigZypper.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy