All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerRepositoryEventConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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