![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cognitive.kotlin.outputs.GetAccountResult.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.cognitive.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getAccount.
* @property endpoint The endpoint of the Cognitive Services Account
* @property id The provider-assigned unique ID for this managed resource.
* @property identities A `identity` block as defined below.
* @property kind The kind of the Cognitive Services Account
* @property location The Azure location where the Cognitive Services Account exists
* @property name
* @property primaryAccessKey The primary access key of the Cognitive Services Account
* @property qnaRuntimeEndpoint If `kind` is `QnAMaker` the link to the QNA runtime.
* @property resourceGroupName
* @property secondaryAccessKey The secondary access key of the Cognitive Services Account
* @property skuName The SKU name of the Cognitive Services Account
* @property tags A mapping of tags to assigned to the resource.
*/
public data class GetAccountResult(
public val endpoint: String,
public val id: String,
public val identities: List,
public val kind: String,
public val location: String,
public val name: String,
public val primaryAccessKey: String,
public val qnaRuntimeEndpoint: String,
public val resourceGroupName: String,
public val secondaryAccessKey: String,
public val skuName: String,
public val tags: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cognitive.outputs.GetAccountResult): GetAccountResult = GetAccountResult(
endpoint = javaType.endpoint(),
id = javaType.id(),
identities = javaType.identities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cognitive.kotlin.outputs.GetAccountIdentity.Companion.toKotlin(args0)
})
}),
kind = javaType.kind(),
location = javaType.location(),
name = javaType.name(),
primaryAccessKey = javaType.primaryAccessKey(),
qnaRuntimeEndpoint = javaType.qnaRuntimeEndpoint(),
resourceGroupName = javaType.resourceGroupName(),
secondaryAccessKey = javaType.secondaryAccessKey(),
skuName = javaType.skuName(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy