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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs.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.ServicePerimeterStatusIngressPolicyIngressToOperationArgs.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 ServicePerimeterStatusIngressPolicyIngressToOperationArgs(
    public val methodSelectors: Output>? = null,
    public val serviceName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs.builder()
            .methodSelectors(
                methodSelectors?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .serviceName(serviceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServicePerimeterStatusIngressPolicyIngressToOperationArgs].
 */
@PulumiTagMarker
public class ServicePerimeterStatusIngressPolicyIngressToOperationArgsBuilder 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("oljlludxnnjxcahg")
    public suspend fun methodSelectors(`value`: Output>) {
        this.methodSelectors = value
    }

    @JvmName("uvebusxkkcutnqax")
    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("mbjqywckfpbfwepv")
    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("aifkyspwnnrurjce")
    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("fleiubqasvkwboic")
    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("qqaplwgvjyluaxby")
    public suspend fun methodSelectors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgsBuilder().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("nkmxwrrmoqlslsht")
    public suspend fun methodSelectors(vararg argument: suspend ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgsBuilder().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("xaaicicekjlbimke")
    public suspend fun methodSelectors(argument: suspend ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgsBuilder().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("cxhutcpimhtwprix")
    public suspend fun methodSelectors(vararg values: ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs) {
        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("ogdagxxtbttuinmr")
    public suspend fun serviceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceName = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy