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

com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretResult.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.secretmanager.kotlin.outputs

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

/**
 * A collection of values returned by getSecret.
 * @property annotations
 * @property createTime
 * @property effectiveAnnotations
 * @property effectiveLabels
 * @property expireTime
 * @property id The provider-assigned unique ID for this managed resource.
 * @property labels
 * @property name
 * @property project
 * @property pulumiLabels
 * @property replications
 * @property rotations
 * @property secretId
 * @property topics
 * @property ttl
 * @property versionAliases
 * @property versionDestroyTtl
 */
public data class GetSecretResult(
    public val annotations: Map,
    public val createTime: String,
    public val effectiveAnnotations: Map,
    public val effectiveLabels: Map,
    public val expireTime: String,
    public val id: String,
    public val labels: Map,
    public val name: String,
    public val project: String? = null,
    public val pulumiLabels: Map,
    public val replications: List,
    public val rotations: List,
    public val secretId: String,
    public val topics: List,
    public val ttl: String,
    public val versionAliases: Map,
    public val versionDestroyTtl: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.secretmanager.outputs.GetSecretResult): GetSecretResult = GetSecretResult(
            annotations = javaType.annotations().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            createTime = javaType.createTime(),
            effectiveAnnotations = javaType.effectiveAnnotations().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            expireTime = javaType.expireTime(),
            id = javaType.id(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            replications = javaType.replications().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretReplication.Companion.toKotlin(args0)
                })
            }),
            rotations = javaType.rotations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretRotation.Companion.toKotlin(args0)
                })
            }),
            secretId = javaType.secretId(),
            topics = javaType.topics().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretTopic.Companion.toKotlin(args0)
                })
            }),
            ttl = javaType.ttl(),
            versionAliases = javaType.versionAliases().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            versionDestroyTtl = javaType.versionDestroyTtl(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy