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

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

package com.pulumi.gcp.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigZypperArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property categories Install only patches with these categories. Common categories include security, recommended, and feature.
 * @property excludes List of packages to exclude from update.
 * @property exclusivePatches An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
 * This field must not be used with any other patch configuration fields.
 * @property severities Install only patches with these severities. Common severities include critical, important, moderate, and low.
 * @property withOptional Adds the --with-optional flag to zypper patch.
 * @property withUpdate Adds the --with-update flag, to zypper patch.
 */
public data class PatchDeploymentPatchConfigZypperArgs(
    public val categories: Output>? = null,
    public val excludes: Output>? = null,
    public val exclusivePatches: Output>? = null,
    public val severities: Output>? = null,
    public val withOptional: Output? = null,
    public val withUpdate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigZypperArgs =
        com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigZypperArgs.builder()
            .categories(categories?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .excludes(excludes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .exclusivePatches(exclusivePatches?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .severities(severities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .withOptional(withOptional?.applyValue({ args0 -> args0 }))
            .withUpdate(withUpdate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PatchDeploymentPatchConfigZypperArgs].
 */
@PulumiTagMarker
public class PatchDeploymentPatchConfigZypperArgsBuilder internal constructor() {
    private var categories: Output>? = null

    private var excludes: Output>? = null

    private var exclusivePatches: Output>? = null

    private var severities: Output>? = null

    private var withOptional: Output? = null

    private var withUpdate: Output? = null

    /**
     * @param value Install only patches with these categories. Common categories include security, recommended, and feature.
     */
    @JvmName("pekqddhlulanrgyw")
    public suspend fun categories(`value`: Output>) {
        this.categories = value
    }

    @JvmName("dinbcmbnwsjtmctf")
    public suspend fun categories(vararg values: Output) {
        this.categories = Output.all(values.asList())
    }

    /**
     * @param values Install only patches with these categories. Common categories include security, recommended, and feature.
     */
    @JvmName("ijujomcenvsqavyu")
    public suspend fun categories(values: List>) {
        this.categories = Output.all(values)
    }

    /**
     * @param value List of packages to exclude from update.
     */
    @JvmName("yssadamdybjagbub")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

    @JvmName("bgjoarwojwnhsxpt")
    public suspend fun excludes(vararg values: Output) {
        this.excludes = Output.all(values.asList())
    }

    /**
     * @param values List of packages to exclude from update.
     */
    @JvmName("dksfybuybhdbsutk")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
     * This field must not be used with any other patch configuration fields.
     */
    @JvmName("tvlfrdntsmuynjss")
    public suspend fun exclusivePatches(`value`: Output>) {
        this.exclusivePatches = value
    }

    @JvmName("hheuyoyngcoxxklf")
    public suspend fun exclusivePatches(vararg values: Output) {
        this.exclusivePatches = Output.all(values.asList())
    }

    /**
     * @param values An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
     * This field must not be used with any other patch configuration fields.
     */
    @JvmName("onhmboyktwnxxdif")
    public suspend fun exclusivePatches(values: List>) {
        this.exclusivePatches = Output.all(values)
    }

    /**
     * @param value Install only patches with these severities. Common severities include critical, important, moderate, and low.
     */
    @JvmName("efakcqawmyvoadeh")
    public suspend fun severities(`value`: Output>) {
        this.severities = value
    }

    @JvmName("lrrviqensrqbxibp")
    public suspend fun severities(vararg values: Output) {
        this.severities = Output.all(values.asList())
    }

    /**
     * @param values Install only patches with these severities. Common severities include critical, important, moderate, and low.
     */
    @JvmName("ovwrpwhmlsaeolsl")
    public suspend fun severities(values: List>) {
        this.severities = Output.all(values)
    }

    /**
     * @param value Adds the --with-optional flag to zypper patch.
     */
    @JvmName("xqpvvnxrwvhvvvmn")
    public suspend fun withOptional(`value`: Output) {
        this.withOptional = value
    }

    /**
     * @param value Adds the --with-update flag, to zypper patch.
     */
    @JvmName("ulxnbbsaybjrujyi")
    public suspend fun withUpdate(`value`: Output) {
        this.withUpdate = value
    }

    /**
     * @param value Install only patches with these categories. Common categories include security, recommended, and feature.
     */
    @JvmName("loavtpkvgkublmgu")
    public suspend fun categories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param values Install only patches with these categories. Common categories include security, recommended, and feature.
     */
    @JvmName("jwbywvretttuidvn")
    public suspend fun categories(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param value List of packages to exclude from update.
     */
    @JvmName("xblbmlyaxbrexccc")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param values List of packages to exclude from update.
     */
    @JvmName("yxtrbcikqqcrsjco")
    public suspend fun excludes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
     * This field must not be used with any other patch configuration fields.
     */
    @JvmName("xkehfuegvgmibgyg")
    public suspend fun exclusivePatches(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusivePatches = mapped
    }

    /**
     * @param values An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
     * This field must not be used with any other patch configuration fields.
     */
    @JvmName("cdjnmavbixasfkdf")
    public suspend fun exclusivePatches(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusivePatches = mapped
    }

    /**
     * @param value Install only patches with these severities. Common severities include critical, important, moderate, and low.
     */
    @JvmName("lrctjqbqxowwgkbw")
    public suspend fun severities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.severities = mapped
    }

    /**
     * @param values Install only patches with these severities. Common severities include critical, important, moderate, and low.
     */
    @JvmName("kommxjetsmkwkrqp")
    public suspend fun severities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.severities = mapped
    }

    /**
     * @param value Adds the --with-optional flag to zypper patch.
     */
    @JvmName("fwkoliwuidsadsqx")
    public suspend fun withOptional(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.withOptional = mapped
    }

    /**
     * @param value Adds the --with-update flag, to zypper patch.
     */
    @JvmName("okuxaqkitpkkchpy")
    public suspend fun withUpdate(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.withUpdate = mapped
    }

    internal fun build(): PatchDeploymentPatchConfigZypperArgs = PatchDeploymentPatchConfigZypperArgs(
        categories = categories,
        excludes = excludes,
        exclusivePatches = exclusivePatches,
        severities = severities,
        withOptional = withOptional,
        withUpdate = withUpdate,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy