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

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

package com.pulumi.gcp.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterEgressPolicyEgressToOperationArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property methodSelectors API methods or permissions to allow. Method or permission must belong
 * to the service specified by `serviceName` field. A single MethodSelector
 * entry with `*` specified for the `method` field will allow all methods
 * AND permissions for the service specified in `serviceName`.
 * Structure is documented below.
 * @property serviceName The name of the API whose methods or permissions the `IngressPolicy` or
 * `EgressPolicy` want to allow. A single `ApiOperation` with serviceName
 * field set to `*` will allow all methods AND permissions for all services.
 */
public data class ServicePerimeterEgressPolicyEgressToOperationArgs(
    public val methodSelectors: Output>? = null,
    public val serviceName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterEgressPolicyEgressToOperationArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterEgressPolicyEgressToOperationArgs.builder()
            .methodSelectors(
                methodSelectors?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .serviceName(serviceName?.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceName: Output? = null

    /**
     * @param value API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("wavaylgxlhggryfg")
    public suspend fun methodSelectors(`value`: Output>) {
        this.methodSelectors = value
    }

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

    /**
     * @param values API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("qumwqqkuntvxbqsx")
    public suspend fun methodSelectors(values: List>) {
        this.methodSelectors = Output.all(values)
    }

    /**
     * @param value The name of the API whose methods or permissions the `IngressPolicy` or
     * `EgressPolicy` want to allow. A single `ApiOperation` with serviceName
     * field set to `*` will allow all methods AND permissions for all services.
     */
    @JvmName("yndosqvvnywafqdd")
    public suspend fun serviceName(`value`: Output) {
        this.serviceName = value
    }

    /**
     * @param value API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("oesfccaxtdqaolll")
    public suspend fun methodSelectors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.methodSelectors = mapped
    }

    /**
     * @param argument API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("peyifmekkbigrqhy")
    public suspend fun methodSelectors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.methodSelectors = mapped
    }

    /**
     * @param argument API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("pwjydtymvvjmqvnk")
    public suspend fun methodSelectors(vararg argument: suspend ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.methodSelectors = mapped
    }

    /**
     * @param argument API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("fvfintwxtihlalov")
    public suspend fun methodSelectors(argument: suspend ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.methodSelectors = mapped
    }

    /**
     * @param values API methods or permissions to allow. Method or permission must belong
     * to the service specified by `serviceName` field. A single MethodSelector
     * entry with `*` specified for the `method` field will allow all methods
     * AND permissions for the service specified in `serviceName`.
     * Structure is documented below.
     */
    @JvmName("ybbpbywpyypuoaun")
    public suspend fun methodSelectors(vararg values: ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.methodSelectors = mapped
    }

    /**
     * @param value The name of the API whose methods or permissions the `IngressPolicy` or
     * `EgressPolicy` want to allow. A single `ApiOperation` with serviceName
     * field set to `*` will allow all methods AND permissions for all services.
     */
    @JvmName("jawxdirbkwxxrctc")
    public suspend fun serviceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceName = mapped
    }

    internal fun build(): ServicePerimeterEgressPolicyEgressToOperationArgs =
        ServicePerimeterEgressPolicyEgressToOperationArgs(
            methodSelectors = methodSelectors,
            serviceName = serviceName,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy