com.pulumi.gcp.sourcerepo.kotlin.outputs.GetRepositoryResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.sourcerepo.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getRepository.
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property project
* @property pubsubConfigs
* @property size
* @property url
*/
public data class GetRepositoryResult(
public val id: String,
public val name: String,
public val project: String? = null,
public val pubsubConfigs: List,
public val size: Int,
public val url: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sourcerepo.outputs.GetRepositoryResult): GetRepositoryResult = GetRepositoryResult(
id = javaType.id(),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
pubsubConfigs = javaType.pubsubConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sourcerepo.kotlin.outputs.GetRepositoryPubsubConfig.Companion.toKotlin(args0)
})
}),
size = javaType.size(),
url = javaType.url(),
)
}
}