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

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

/**
 *
 * @property apt A package managed by Apt. Structure is
 * documented below.
 * @property deb A deb package file. Structure is
 * documented below.
 * @property desiredState The desired state the agent should maintain for
 * this package. Possible values are: `DESIRED_STATE_UNSPECIFIED`, `INSTALLED`,
 * `REMOVED`.
 * @property googet A package managed by GooGet. Structure is
 * documented below.
 * @property msi An MSI package. Structure is
 * documented below.
 * @property rpm An rpm package file. Structure is
 * documented below.
 * @property yum A package managed by YUM. Structure is
 * documented below.
 * @property zypper A package managed by Zypper. Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkg(
    public val apt: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgApt? = null,
    public val deb: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDeb? = null,
    public val desiredState: String,
    public val googet: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgGooget? = null,
    public val msi: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsi? = null,
    public val rpm: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm? = null,
    public val yum: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgYum? = null,
    public val zypper: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgZypper? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkg): OsPolicyAssignmentOsPolicyResourceGroupResourcePkg =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkg(
                apt = javaType.apt().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgApt.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                deb = javaType.deb().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDeb.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                desiredState = javaType.desiredState(),
                googet = javaType.googet().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgGooget.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                msi = javaType.msi().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsi.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                rpm = javaType.rpm().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                yum = javaType.yum().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgYum.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                zypper = javaType.zypper().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgZypper.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy