com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs.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.OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs.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 OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs(
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.OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs =
com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs.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 [OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs].
*/
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgsBuilder 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("ijuguxtlxgrobytn")
public suspend fun allowInsecure(`value`: Output) {
this.allowInsecure = value
}
/**
* @param value A Cloud Storage object. Structure is
* documented below.
*/
@JvmName("uwubtxanifgorlpw")
public suspend fun gcs(`value`: Output) {
this.gcs = value
}
/**
* @param value A local path within the VM to use.
*/
@JvmName("cerosgutuirwvcyy")
public suspend fun localPath(`value`: Output) {
this.localPath = value
}
/**
* @param value A generic remote file. Structure is
* documented below.
*/
@JvmName("ajblxxbysixauury")
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("xtpiawnbolxyxjts")
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("fnbotepomsfmbqaq")
public suspend fun gcs(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileGcsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gcs = mapped
}
/**
* @param argument A Cloud Storage object. Structure is
* documented below.
*/
@JvmName("kgwmmohxonyroehv")
public suspend fun gcs(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileGcsArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileGcsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.gcs = mapped
}
/**
* @param value A local path within the VM to use.
*/
@JvmName("xpmkbmoisbvjyeiw")
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("trcikofcrvjmwcet")
public suspend fun remote(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileRemoteArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.remote = mapped
}
/**
* @param argument A generic remote file. Structure is
* documented below.
*/
@JvmName("jqunmesowildrasl")
public suspend fun remote(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileRemoteArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileRemoteArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.remote = mapped
}
internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs =
OsPolicyAssignmentOsPolicyResourceGroupResourceExecValidateFileArgs(
allowInsecure = allowInsecure,
gcs = gcs,
localPath = localPath,
remote = remote,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy