com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property allowInsecure Defaults to false. When false, files are
* subject to validations based on the file type: Remote: A checksum must be
* specified. Cloud Storage: An object generation number must be specified.
* @property gcs A Cloud Storage object. Structure is
* documented below.
* @property localPath A local path within the VM to use.
* @property remote A generic remote file. Structure is
* documented below.
*/
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs(
public val allowInsecure: Output? = null,
public val gcs: Output? =
null,
public val localPath: Output? = null,
public val remote: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs =
com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs.builder()
.allowInsecure(allowInsecure?.applyValue({ args0 -> args0 }))
.gcs(gcs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.localPath(localPath?.applyValue({ args0 -> args0 }))
.remote(remote?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs].
*/
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgsBuilder internal constructor() {
private var allowInsecure: Output? = null
private var gcs: Output? =
null
private var localPath: Output? = null
private var remote: Output? =
null
/**
* @param value Defaults to false. When false, files are
* subject to validations based on the file type: Remote: A checksum must be
* specified. Cloud Storage: An object generation number must be specified.
*/
@JvmName("ofcedakrxmlyeaan")
public suspend fun allowInsecure(`value`: Output) {
this.allowInsecure = value
}
/**
* @param value A Cloud Storage object. Structure is
* documented below.
*/
@JvmName("yvlfrjkurepinbep")
public suspend fun gcs(`value`: Output) {
this.gcs = value
}
/**
* @param value A local path within the VM to use.
*/
@JvmName("oqfgngqwvwyllcib")
public suspend fun localPath(`value`: Output) {
this.localPath = value
}
/**
* @param value A generic remote file. Structure is
* documented below.
*/
@JvmName("fxubnmxxffruclyr")
public suspend fun remote(`value`: Output) {
this.remote = value
}
/**
* @param value Defaults to false. When false, files are
* subject to validations based on the file type: Remote: A checksum must be
* specified. Cloud Storage: An object generation number must be specified.
*/
@JvmName("etqgcstgchacgujw")
public suspend fun allowInsecure(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowInsecure = mapped
}
/**
* @param value A Cloud Storage object. Structure is
* documented below.
*/
@JvmName("qnwtqisidhraxtje")
public suspend fun gcs(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceGcsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gcs = mapped
}
/**
* @param argument A Cloud Storage object. Structure is
* documented below.
*/
@JvmName("oaqgleiwbgefjmno")
public suspend fun gcs(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceGcsArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceGcsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.gcs = mapped
}
/**
* @param value A local path within the VM to use.
*/
@JvmName("kaeqglmqbamkjujw")
public suspend fun localPath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.localPath = mapped
}
/**
* @param value A generic remote file. Structure is
* documented below.
*/
@JvmName("jjtseqmwtgvvdhha")
public suspend fun remote(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceRemoteArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.remote = mapped
}
/**
* @param argument A generic remote file. Structure is
* documented below.
*/
@JvmName("axppcgjnfgmmchaj")
public suspend fun remote(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceRemoteArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceRemoteArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.remote = mapped
}
internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs =
OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiSourceArgs(
allowInsecure = allowInsecure,
gcs = gcs,
localPath = localPath,
remote = remote,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy