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

com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerResult.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getTrigger.
 * @property approvalConfigs
 * @property bitbucketServerTriggerConfigs
 * @property builds
 * @property createTime
 * @property description
 * @property disabled
 * @property filename
 * @property filter
 * @property gitFileSources
 * @property githubs
 * @property id The provider-assigned unique ID for this managed resource.
 * @property ignoredFiles
 * @property includeBuildLogs
 * @property includedFiles
 * @property location
 * @property name
 * @property project
 * @property pubsubConfigs
 * @property repositoryEventConfigs
 * @property serviceAccount
 * @property sourceToBuilds
 * @property substitutions
 * @property tags
 * @property triggerId
 * @property triggerTemplates
 * @property webhookConfigs
 */
public data class GetTriggerResult(
    public val approvalConfigs: List,
    public val bitbucketServerTriggerConfigs: List,
    public val builds: List,
    public val createTime: String,
    public val description: String,
    public val disabled: Boolean,
    public val filename: String,
    public val filter: String,
    public val gitFileSources: List,
    public val githubs: List,
    public val id: String,
    public val ignoredFiles: List,
    public val includeBuildLogs: String,
    public val includedFiles: List,
    public val location: String,
    public val name: String,
    public val project: String? = null,
    public val pubsubConfigs: List,
    public val repositoryEventConfigs: List,
    public val serviceAccount: String,
    public val sourceToBuilds: List,
    public val substitutions: Map,
    public val tags: List,
    public val triggerId: String,
    public val triggerTemplates: List,
    public val webhookConfigs: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerResult): GetTriggerResult = GetTriggerResult(
            approvalConfigs = javaType.approvalConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerApprovalConfig.Companion.toKotlin(args0)
                })
            }),
            bitbucketServerTriggerConfigs = javaType.bitbucketServerTriggerConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBitbucketServerTriggerConfig.Companion.toKotlin(args0)
                })
            }),
            builds = javaType.builds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuild.Companion.toKotlin(args0)
                })
            }),
            createTime = javaType.createTime(),
            description = javaType.description(),
            disabled = javaType.disabled(),
            filename = javaType.filename(),
            filter = javaType.filter(),
            gitFileSources = javaType.gitFileSources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerGitFileSource.Companion.toKotlin(args0)
                })
            }),
            githubs = javaType.githubs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerGithub.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            ignoredFiles = javaType.ignoredFiles().map({ args0 -> args0 }),
            includeBuildLogs = javaType.includeBuildLogs(),
            includedFiles = javaType.includedFiles().map({ args0 -> args0 }),
            location = javaType.location(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pubsubConfigs = javaType.pubsubConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerPubsubConfig.Companion.toKotlin(args0)
                })
            }),
            repositoryEventConfigs = javaType.repositoryEventConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerRepositoryEventConfig.Companion.toKotlin(args0)
                })
            }),
            serviceAccount = javaType.serviceAccount(),
            sourceToBuilds = javaType.sourceToBuilds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerSourceToBuild.Companion.toKotlin(args0)
                })
            }),
            substitutions = javaType.substitutions().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            tags = javaType.tags().map({ args0 -> args0 }),
            triggerId = javaType.triggerId(),
            triggerTemplates = javaType.triggerTemplates().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerTriggerTemplate.Companion.toKotlin(args0)
                })
            }),
            webhookConfigs = javaType.webhookConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerWebhookConfig.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy