com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudfunctionsv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getFunction.
* @property buildConfigs
* @property description
* @property effectiveLabels
* @property environment
* @property eventTriggers
* @property id The provider-assigned unique ID for this managed resource.
* @property kmsKeyName
* @property labels
* @property location
* @property name
* @property project
* @property pulumiLabels
* @property serviceConfigs
* @property state
* @property updateTime
* @property url
*/
public data class GetFunctionResult(
public val buildConfigs: List,
public val description: String,
public val effectiveLabels: Map,
public val environment: String,
public val eventTriggers: List,
public val id: String,
public val kmsKeyName: String,
public val labels: Map,
public val location: String,
public val name: String,
public val project: String? = null,
public val pulumiLabels: Map,
public val serviceConfigs: List,
public val state: String,
public val updateTime: String,
public val url: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionResult): GetFunctionResult = GetFunctionResult(
buildConfigs = javaType.buildConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionBuildConfig.Companion.toKotlin(args0)
})
}),
description = javaType.description(),
effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
environment = javaType.environment(),
eventTriggers = javaType.eventTriggers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionEventTrigger.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
kmsKeyName = javaType.kmsKeyName(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
location = javaType.location(),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
serviceConfigs = javaType.serviceConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfig.Companion.toKotlin(args0)
})
}),
state = javaType.state(),
updateTime = javaType.updateTime(),
url = javaType.url(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy