com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceResult.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.cloudrun.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getService.
* @property autogenerateRevisionName
* @property id The provider-assigned unique ID for this managed resource.
* @property location
* @property metadatas
* @property name
* @property project
* @property statuses
* @property templates
* @property traffics
*/
public data class GetServiceResult(
public val autogenerateRevisionName: Boolean,
public val id: String,
public val location: String,
public val metadatas: List,
public val name: String,
public val project: String? = null,
public val statuses: List,
public val templates: List,
public val traffics: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceResult): GetServiceResult = GetServiceResult(
autogenerateRevisionName = javaType.autogenerateRevisionName(),
id = javaType.id(),
location = javaType.location(),
metadatas = javaType.metadatas().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceMetadata.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
statuses = javaType.statuses().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceStatus.Companion.toKotlin(args0)
})
}),
templates = javaType.templates().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplate.Companion.toKotlin(args0)
})
}),
traffics = javaType.traffics().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTraffic.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy