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

com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimeterSpecIngressPolicyIngressToOperation.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.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 ServicePerimeterSpecIngressPolicyIngressToOperation(
    public val methodSelectors: List? = null,
    public val serviceName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.ServicePerimeterSpecIngressPolicyIngressToOperation): ServicePerimeterSpecIngressPolicyIngressToOperation =
            ServicePerimeterSpecIngressPolicyIngressToOperation(
                methodSelectors = javaType.methodSelectors().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelector.Companion.toKotlin(args0)
                    })
                }),
                serviceName = javaType.serviceName().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy