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

com.pulumi.azure.postgresql.kotlin.outputs.GetServerResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.postgresql.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 PostgreSQL Server.
 * @property fqdn The fully qualified domain name of the PostgreSQL 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 PostgreSQL Server exists.
 * @property name
 * @property resourceGroupName
 * @property skuName The SKU name of the PostgreSQL Server.
 * @property tags A mapping of tags assigned to the resource.
 * @property version The version of the PostgreSQL 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 skuName: String,
    public val tags: Map,
    public val version: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.postgresql.outputs.GetServerResult): GetServerResult = GetServerResult(
            administratorLogin = javaType.administratorLogin(),
            fqdn = javaType.fqdn(),
            id = javaType.id(),
            identities = javaType.identities().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.postgresql.kotlin.outputs.GetServerIdentity.Companion.toKotlin(args0)
                })
            }),
            location = javaType.location(),
            name = javaType.name(),
            resourceGroupName = javaType.resourceGroupName(),
            skuName = javaType.skuName(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            version = javaType.version(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy