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

com.pulumi.gcp.secretmanager.kotlin.outputs.GetRegionalSecretResult.kt Maven / Gradle / Ivy

@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 getRegionalSecret.
 * @property annotations
 * @property createTime
 * @property customerManagedEncryptions
 * @property effectiveAnnotations
 * @property effectiveLabels
 * @property expireTime
 * @property id The provider-assigned unique ID for this managed resource.
 * @property labels
 * @property location
 * @property name
 * @property project
 * @property pulumiLabels
 * @property rotations
 * @property secretId
 * @property topics
 * @property ttl
 * @property versionAliases
 * @property versionDestroyTtl
 */
public data class GetRegionalSecretResult(
    public val annotations: Map,
    public val createTime: String,
    public val customerManagedEncryptions: List,
    public val effectiveAnnotations: Map,
    public val effectiveLabels: Map,
    public val expireTime: String,
    public val id: String,
    public val labels: Map,
    public val location: String,
    public val name: String,
    public val project: String? = null,
    public val pulumiLabels: Map,
    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.GetRegionalSecretResult): GetRegionalSecretResult = GetRegionalSecretResult(
            annotations = javaType.annotations().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            createTime = javaType.createTime(),
            customerManagedEncryptions = javaType.customerManagedEncryptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetRegionalSecretCustomerManagedEncryption.Companion.toKotlin(args0)
                })
            }),
            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(),
            location = javaType.location(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            rotations = javaType.rotations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetRegionalSecretRotation.Companion.toKotlin(args0)
                })
            }),
            secretId = javaType.secretId(),
            topics = javaType.topics().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.secretmanager.kotlin.outputs.GetRegionalSecretTopic.Companion.toKotlin(args0)
                })
            }),
            ttl = javaType.ttl(),
            versionAliases = javaType.versionAliases().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            versionDestroyTtl = javaType.versionDestroyTtl(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy