![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.sql.kotlin.outputs.GetDatabaseResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.sql.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* A collection of values returned by getDatabase.
* @property collation The name of the collation.
* @property defaultSecondaryLocation The default secondary location of the SQL Database.
* @property edition The edition of the database.
* @property elasticPoolName The name of the elastic database pool the database belongs to.
* @property failoverGroupId The ID of the failover group the database belongs to.
* @property id The provider-assigned unique ID for this managed resource.
* @property location The location of the Resource Group in which the SQL Server exists.
* @property name The name of the database.
* @property readScale Indicate if read-only connections will be redirected to a high-available replica.
* @property resourceGroupName The name of the resource group in which the database resides. This will always be the same resource group as the Database Server.
* @property serverName The name of the SQL Server on which to create the database.
* @property tags A mapping of tags assigned to the resource.
*/
public data class GetDatabaseResult(
public val collation: String,
public val defaultSecondaryLocation: String,
public val edition: String,
public val elasticPoolName: String,
public val failoverGroupId: String,
public val id: String,
public val location: String,
public val name: String,
public val readScale: Boolean,
public val resourceGroupName: String,
public val serverName: String,
public val tags: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.sql.outputs.GetDatabaseResult): GetDatabaseResult = GetDatabaseResult(
collation = javaType.collation(),
defaultSecondaryLocation = javaType.defaultSecondaryLocation(),
edition = javaType.edition(),
elasticPoolName = javaType.elasticPoolName(),
failoverGroupId = javaType.failoverGroupId(),
id = javaType.id(),
location = javaType.location(),
name = javaType.name(),
readScale = javaType.readScale(),
resourceGroupName = javaType.resourceGroupName(),
serverName = javaType.serverName(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy