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

com.pulumi.vault.identity.kotlin.outputs.GetEntityResult.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: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.identity.kotlin.outputs

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

/**
 * A collection of values returned by getEntity.
 * @property aliasId
 * @property aliasMountAccessor
 * @property aliasName
 * @property aliases A list of entity alias. Structure is documented below.
 * @property creationTime Creation time of the Alias
 * @property dataJson A string containing the full data payload retrieved from
 * Vault, serialized in JSON format.
 * @property directGroupIds List of Group IDs of which the entity is directly a member of
 * @property disabled Whether the entity is disabled
 * @property entityId
 * @property entityName
 * @property groupIds List of all Group IDs of which the entity is a member of
 * @property id The provider-assigned unique ID for this managed resource.
 * @property inheritedGroupIds List of all Group IDs of which the entity is a member of transitively
 * @property lastUpdateTime Last update time of the alias
 * @property mergedEntityIds Other entity IDs which is merged with this entity
 * @property metadata Arbitrary metadata
 * @property namespace
 * @property namespaceId Namespace of which the entity is part of
 * @property policies List of policies attached to the entity
 */
public data class GetEntityResult(
    public val aliasId: String,
    public val aliasMountAccessor: String,
    public val aliasName: String,
    public val aliases: List,
    public val creationTime: String,
    public val dataJson: String,
    public val directGroupIds: List,
    public val disabled: Boolean,
    public val entityId: String,
    public val entityName: String,
    public val groupIds: List,
    public val id: String,
    public val inheritedGroupIds: List,
    public val lastUpdateTime: String,
    public val mergedEntityIds: List,
    public val metadata: Map,
    public val namespace: String? = null,
    public val namespaceId: String,
    public val policies: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.vault.identity.outputs.GetEntityResult): GetEntityResult = GetEntityResult(
            aliasId = javaType.aliasId(),
            aliasMountAccessor = javaType.aliasMountAccessor(),
            aliasName = javaType.aliasName(),
            aliases = javaType.aliases().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.vault.identity.kotlin.outputs.GetEntityAlias.Companion.toKotlin(args0)
                })
            }),
            creationTime = javaType.creationTime(),
            dataJson = javaType.dataJson(),
            directGroupIds = javaType.directGroupIds().map({ args0 -> args0 }),
            disabled = javaType.disabled(),
            entityId = javaType.entityId(),
            entityName = javaType.entityName(),
            groupIds = javaType.groupIds().map({ args0 -> args0 }),
            id = javaType.id(),
            inheritedGroupIds = javaType.inheritedGroupIds().map({ args0 -> args0 }),
            lastUpdateTime = javaType.lastUpdateTime(),
            mergedEntityIds = javaType.mergedEntityIds().map({ args0 -> args0 }),
            metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
            namespaceId = javaType.namespaceId(),
            policies = javaType.policies().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy