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

com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstancesResult.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.sql.kotlin.outputs

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

/**
 * A collection of values returned by getDatabaseInstances.
 * @property databaseVersion
 * @property id The provider-assigned unique ID for this managed resource.
 * @property instances
 * @property project
 * @property region
 * @property state
 * @property tier
 * @property zone
 */
public data class GetDatabaseInstancesResult(
    public val databaseVersion: String? = null,
    public val id: String,
    public val instances: List,
    public val project: String? = null,
    public val region: String? = null,
    public val state: String? = null,
    public val tier: String? = null,
    public val zone: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstancesResult): GetDatabaseInstancesResult = GetDatabaseInstancesResult(
            databaseVersion = javaType.databaseVersion().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            instances = javaType.instances().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstancesInstance.Companion.toKotlin(args0)
                })
            }),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            region = javaType.region().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
            tier = javaType.tier().map({ args0 -> args0 }).orElse(null),
            zone = javaType.zone().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy