com.pulumi.azure.cosmosdb.kotlin.outputs.GetSqlDatabaseResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cosmosdb.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getSqlDatabase.
* @property accountName
* @property autoscaleSettings An `autoscale_settings` block as defined below.
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property resourceGroupName
* @property throughput The throughput of SQL database (RU/s).
*/
public data class GetSqlDatabaseResult(
public val accountName: String,
public val autoscaleSettings: List,
public val id: String,
public val name: String,
public val resourceGroupName: String,
public val throughput: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.GetSqlDatabaseResult): GetSqlDatabaseResult = GetSqlDatabaseResult(
accountName = javaType.accountName(),
autoscaleSettings = javaType.autoscaleSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cosmosdb.kotlin.outputs.GetSqlDatabaseAutoscaleSetting.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
name = javaType.name(),
resourceGroupName = javaType.resourceGroupName(),
throughput = javaType.throughput(),
)
}
}