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

com.pulumi.googlenative.compute.alpha.kotlin.outputs.PrincipalResponse.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.alpha.kotlin.outputs

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

/**
 * [Deprecated] All fields defined in a principal are ANDed.
 * @property condition An expression to specify custom condition.
 * @property groups The groups the principal belongs to. Exact match, prefix match, and suffix match are supported.
 * @property ips IPv4 or IPv6 address or range (In CIDR format)
 * @property namespaces The namespaces. Exact match, prefix match, and suffix match are supported.
 * @property notGroups Negate of groups. Specifies exclusions.
 * @property notIps Negate of IPs. Specifies exclusions.
 * @property notNamespaces Negate of namespaces. Specifies exclusions.
 * @property notUsers Negate of users. Specifies exclusions.
 * @property properties A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are supported for values. For example, `request.headers[version]: "v1"`. The properties are ANDed together.
 * @property users The user names/IDs or service accounts. Exact match, prefix match, and suffix match are supported.
 */
public data class PrincipalResponse(
    public val condition: String,
    public val groups: List,
    public val ips: List,
    public val namespaces: List,
    public val notGroups: List,
    public val notIps: List,
    public val notNamespaces: List,
    public val notUsers: List,
    public val properties: Map,
    public val users: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.alpha.outputs.PrincipalResponse): PrincipalResponse = PrincipalResponse(
            condition = javaType.condition(),
            groups = javaType.groups().map({ args0 -> args0 }),
            ips = javaType.ips().map({ args0 -> args0 }),
            namespaces = javaType.namespaces().map({ args0 -> args0 }),
            notGroups = javaType.notGroups().map({ args0 -> args0 }),
            notIps = javaType.notIps().map({ args0 -> args0 }),
            notNamespaces = javaType.notNamespaces().map({ args0 -> args0 }),
            notUsers = javaType.notUsers().map({ args0 -> args0 }),
            properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            users = javaType.users().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy