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

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

package com.pulumi.gcp.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property operations Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
 * Structure is documented below.
 */
public data class AuthzPolicyHttpRuleToArgs(
    public val operations: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToArgs.builder()
            .operations(
                operations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("cmmxscfcchclopcl")
    public suspend fun operations(`value`: Output>) {
        this.operations = value
    }

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

    /**
     * @param values Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("llpylwcxpetbisky")
    public suspend fun operations(values: List>) {
        this.operations = Output.all(values)
    }

    /**
     * @param value Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("qhyrmdpyekdpmpsx")
    public suspend fun operations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    /**
     * @param argument Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("uuddymamaiawxdhr")
    public suspend fun operations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleToOperationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("vcypndielrnnmsol")
    public suspend fun operations(vararg argument: suspend AuthzPolicyHttpRuleToOperationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleToOperationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("hlowdvjihclcgjif")
    public suspend fun operations(argument: suspend AuthzPolicyHttpRuleToOperationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleToOperationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param values Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 5 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.
     * Structure is documented below.
     */
    @JvmName("vfuhljkpouqfsrne")
    public suspend fun operations(vararg values: AuthzPolicyHttpRuleToOperationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    internal fun build(): AuthzPolicyHttpRuleToArgs = AuthzPolicyHttpRuleToArgs(
        operations = operations,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy