![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurefleet.kotlin.inputs.LinuxPatchSettingsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurefleet.kotlin.inputs
import com.pulumi.azurenative.azurefleet.inputs.LinuxPatchSettingsArgs.builder
import com.pulumi.azurenative.azurefleet.kotlin.enums.LinuxPatchAssessmentMode
import com.pulumi.azurenative.azurefleet.kotlin.enums.LinuxVMGuestPatchMode
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Specifies settings related to VM Guest Patching on Linux.
* @property assessmentMode Specifies the mode of VM Guest Patch Assessment for the IaaS virtual
* machine.
Possible values are:
**ImageDefault** - You
* control the timing of patch assessments on a virtual machine.
* **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
* The property provisionVMAgent must be true.
* @property automaticByPlatformSettings Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
* Patching on Linux.
* @property patchMode Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
* machines associated to virtual machine scale set with OrchestrationMode as
* Flexible.
Possible values are:
**ImageDefault** - The
* virtual machine's default patching configuration is used.
* **AutomaticByPlatform** - The virtual machine will be automatically updated by
* the platform. The property provisionVMAgent must be true
*/
public data class LinuxPatchSettingsArgs(
public val assessmentMode: Output>? = null,
public val automaticByPlatformSettings: Output? =
null,
public val patchMode: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurefleet.inputs.LinuxPatchSettingsArgs =
com.pulumi.azurenative.azurefleet.inputs.LinuxPatchSettingsArgs.builder()
.assessmentMode(
assessmentMode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.automaticByPlatformSettings(
automaticByPlatformSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.patchMode(
patchMode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [LinuxPatchSettingsArgs].
*/
@PulumiTagMarker
public class LinuxPatchSettingsArgsBuilder internal constructor() {
private var assessmentMode: Output>? = null
private var automaticByPlatformSettings: Output? =
null
private var patchMode: Output>? = null
/**
* @param value Specifies the mode of VM Guest Patch Assessment for the IaaS virtual
* machine.
Possible values are:
**ImageDefault** - You
* control the timing of patch assessments on a virtual machine.
* **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
* The property provisionVMAgent must be true.
*/
@JvmName("frsrxrinqqnvmxtq")
public suspend fun assessmentMode(`value`: Output>) {
this.assessmentMode = value
}
/**
* @param value Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
* Patching on Linux.
*/
@JvmName("hdbfvcxhfngaqpfd")
public suspend fun automaticByPlatformSettings(`value`: Output) {
this.automaticByPlatformSettings = value
}
/**
* @param value Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
* machines associated to virtual machine scale set with OrchestrationMode as
* Flexible.
Possible values are:
**ImageDefault** - The
* virtual machine's default patching configuration is used.
* **AutomaticByPlatform** - The virtual machine will be automatically updated by
* the platform. The property provisionVMAgent must be true
*/
@JvmName("qcjiynnrxiumbbwg")
public suspend fun patchMode(`value`: Output>) {
this.patchMode = value
}
/**
* @param value Specifies the mode of VM Guest Patch Assessment for the IaaS virtual
* machine.
Possible values are:
**ImageDefault** - You
* control the timing of patch assessments on a virtual machine.
* **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
* The property provisionVMAgent must be true.
*/
@JvmName("jltylidjttvicgso")
public suspend fun assessmentMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.assessmentMode = mapped
}
/**
* @param value Specifies the mode of VM Guest Patch Assessment for the IaaS virtual
* machine.
Possible values are:
**ImageDefault** - You
* control the timing of patch assessments on a virtual machine.
* **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
* The property provisionVMAgent must be true.
*/
@JvmName("wqyrranrrosiygku")
public fun assessmentMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.assessmentMode = mapped
}
/**
* @param value Specifies the mode of VM Guest Patch Assessment for the IaaS virtual
* machine.
Possible values are:
**ImageDefault** - You
* control the timing of patch assessments on a virtual machine.
* **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
* The property provisionVMAgent must be true.
*/
@JvmName("fqtqrlpkhfmcvqbf")
public fun assessmentMode(`value`: LinuxPatchAssessmentMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.assessmentMode = mapped
}
/**
* @param value Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
* Patching on Linux.
*/
@JvmName("srrjevmfboasvlpp")
public suspend fun automaticByPlatformSettings(`value`: LinuxVMGuestPatchAutomaticByPlatformSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.automaticByPlatformSettings = mapped
}
/**
* @param argument Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
* Patching on Linux.
*/
@JvmName("rffctuqguxmrggdf")
public suspend fun automaticByPlatformSettings(argument: suspend LinuxVMGuestPatchAutomaticByPlatformSettingsArgsBuilder.() -> Unit) {
val toBeMapped = LinuxVMGuestPatchAutomaticByPlatformSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.automaticByPlatformSettings = mapped
}
/**
* @param value Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
* machines associated to virtual machine scale set with OrchestrationMode as
* Flexible.
Possible values are:
**ImageDefault** - The
* virtual machine's default patching configuration is used.
* **AutomaticByPlatform** - The virtual machine will be automatically updated by
* the platform. The property provisionVMAgent must be true
*/
@JvmName("hgudngkqvyutfpdf")
public suspend fun patchMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.patchMode = mapped
}
/**
* @param value Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
* machines associated to virtual machine scale set with OrchestrationMode as
* Flexible.
Possible values are:
**ImageDefault** - The
* virtual machine's default patching configuration is used.
* **AutomaticByPlatform** - The virtual machine will be automatically updated by
* the platform. The property provisionVMAgent must be true
*/
@JvmName("xsosvixjlrgfvbua")
public fun patchMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.patchMode = mapped
}
/**
* @param value Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
* machines associated to virtual machine scale set with OrchestrationMode as
* Flexible.
Possible values are:
**ImageDefault** - The
* virtual machine's default patching configuration is used.
* **AutomaticByPlatform** - The virtual machine will be automatically updated by
* the platform. The property provisionVMAgent must be true
*/
@JvmName("xsgkatxtdwoegese")
public fun patchMode(`value`: LinuxVMGuestPatchMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.patchMode = mapped
}
internal fun build(): LinuxPatchSettingsArgs = LinuxPatchSettingsArgs(
assessmentMode = assessmentMode,
automaticByPlatformSettings = automaticByPlatformSettings,
patchMode = patchMode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy