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

com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerGithub.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.12.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 enterpriseConfigResourceName The resource name of the github enterprise config that should be applied to this installation.
 * For example: "projects/{$projectId}/locations/{$locationId}/githubEnterpriseConfigs/{$configId}"
 * @property name Name of the repository. For example: The name for
 * https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".
 * @property owner Owner of the repository. For example: The owner for
 * https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".
 * @property pullRequests filter to match changes in pull requests. Specify only one of 'pull_request' or 'push'.
 * @property pushes filter to match changes in refs, like branches or tags. Specify only one of 'pull_request' or 'push'.
 */
public data class GetTriggerGithub(
    public val enterpriseConfigResourceName: String,
    public val name: String,
    public val owner: String,
    public val pullRequests: List,
    public val pushes: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerGithub): GetTriggerGithub = GetTriggerGithub(
            enterpriseConfigResourceName = javaType.enterpriseConfigResourceName(),
            name = javaType.name(),
            owner = javaType.owner(),
            pullRequests = javaType.pullRequests().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerGithubPullRequest.Companion.toKotlin(args0)
                })
            }),
            pushes = javaType.pushes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerGithubPush.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy