com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerGithub.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
/**
*
* @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 pullRequest filter to match changes in pull requests. Specify only one of `pull_request` or `push`.
* Structure is documented below.
* @property push filter to match changes in refs, like branches or tags. Specify only one of `pull_request` or `push`.
* Structure is documented below.
*/
public data class TriggerGithub(
public val enterpriseConfigResourceName: String? = null,
public val name: String? = null,
public val owner: String? = null,
public val pullRequest: TriggerGithubPullRequest? = null,
public val push: TriggerGithubPush? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerGithub): TriggerGithub =
TriggerGithub(
enterpriseConfigResourceName = javaType.enterpriseConfigResourceName().map({ args0 ->
args0
}).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
owner = javaType.owner().map({ args0 -> args0 }).orElse(null),
pullRequest = javaType.pullRequest().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerGithubPullRequest.Companion.toKotlin(args0)
})
}).orElse(null),
push = javaType.push().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerGithubPush.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy