com.pulumi.azure.sql.kotlin.outputs.GetServerResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.sql.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getServer.
* @property administratorLogin The administrator username of the SQL Server.
* @property fqdn The fully qualified domain name of the SQL Server.
* @property id The provider-assigned unique ID for this managed resource.
* @property identities An `identity` block as defined below.
* @property location The location of the Resource Group in which the SQL Server exists.
* @property name
* @property resourceGroupName
* @property tags A mapping of tags assigned to the resource.
* @property version The version of the SQL Server.
*/
public data class GetServerResult(
public val administratorLogin: String,
public val fqdn: String,
public val id: String,
public val identities: List,
public val location: String,
public val name: String,
public val resourceGroupName: String,
public val tags: Map,
public val version: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.sql.outputs.GetServerResult): GetServerResult =
GetServerResult(
administratorLogin = javaType.administratorLogin(),
fqdn = javaType.fqdn(),
id = javaType.id(),
identities = javaType.identities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.sql.kotlin.outputs.GetServerIdentity.Companion.toKotlin(args0)
})
}),
location = javaType.location(),
name = javaType.name(),
resourceGroupName = javaType.resourceGroupName(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
version = javaType.version(),
)
}
}