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

com.pulumi.gcp.filestore.kotlin.outputs.GetInstanceResult.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.filestore.kotlin.outputs

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

/**
 * A collection of values returned by getInstance.
 * @property createTime
 * @property description
 * @property effectiveLabels
 * @property etag
 * @property fileShares
 * @property id The provider-assigned unique ID for this managed resource.
 * @property kmsKeyName
 * @property labels
 * @property location
 * @property name
 * @property networks
 * @property project
 * @property protocol
 * @property pulumiLabels
 * @property tier
 * @property zone
 */
public data class GetInstanceResult(
    public val createTime: String,
    public val description: String,
    public val effectiveLabels: Map,
    public val etag: String,
    public val fileShares: List,
    public val id: String,
    public val kmsKeyName: String,
    public val labels: Map,
    public val location: String? = null,
    public val name: String,
    public val networks: List,
    public val project: String? = null,
    public val protocol: String,
    public val pulumiLabels: Map,
    public val tier: String,
    public val zone: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.filestore.outputs.GetInstanceResult): GetInstanceResult = GetInstanceResult(
            createTime = javaType.createTime(),
            description = javaType.description(),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            etag = javaType.etag(),
            fileShares = javaType.fileShares().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.filestore.kotlin.outputs.GetInstanceFileShare.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            kmsKeyName = javaType.kmsKeyName(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            location = javaType.location().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            networks = javaType.networks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.filestore.kotlin.outputs.GetInstanceNetwork.Companion.toKotlin(args0)
                })
            }),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol(),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            tier = javaType.tier(),
            zone = javaType.zone(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy