com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerRepositoryEventConfig.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.cloudbuild.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property pullRequests Contains filter properties for matching Pull Requests.
* @property pushes Contains filter properties for matching git pushes.
* @property repository The resource name of the Repo API resource.
*/
public data class GetTriggerRepositoryEventConfig(
public val pullRequests: List,
public val pushes: List,
public val repository: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerRepositoryEventConfig): GetTriggerRepositoryEventConfig = GetTriggerRepositoryEventConfig(
pullRequests = javaType.pullRequests().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerRepositoryEventConfigPullRequest.Companion.toKotlin(args0)
})
}),
pushes = javaType.pushes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerRepositoryEventConfigPush.Companion.toKotlin(args0)
})
}),
repository = javaType.repository(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy