com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerImageArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecWorkerImageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property deployOnPushes Configures automatically deploying images pushed to DOCR.
* @property registry The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type.
* @property registryCredentials The credentials required to access a private Docker Hub or GitHub registry, in the following syntax `:`.
* @property registryType The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`.
* @property repository The repository name.
* @property tag The repository tag. Defaults to `latest` if not provided.
*/
public data class AppSpecWorkerImageArgs(
public val deployOnPushes: Output>? = null,
public val registry: Output? = null,
public val registryCredentials: Output? = null,
public val registryType: Output,
public val repository: Output,
public val tag: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerImageArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerImageArgs.builder()
.deployOnPushes(
deployOnPushes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.registry(registry?.applyValue({ args0 -> args0 }))
.registryCredentials(registryCredentials?.applyValue({ args0 -> args0 }))
.registryType(registryType.applyValue({ args0 -> args0 }))
.repository(repository.applyValue({ args0 -> args0 }))
.tag(tag?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecWorkerImageArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerImageArgsBuilder internal constructor() {
private var deployOnPushes: Output>? = null
private var registry: Output? = null
private var registryCredentials: Output? = null
private var registryType: Output? = null
private var repository: Output? = null
private var tag: Output? = null
/**
* @param value Configures automatically deploying images pushed to DOCR.
*/
@JvmName("fcaxcaweecyyuear")
public suspend fun deployOnPushes(`value`: Output>) {
this.deployOnPushes = value
}
@JvmName("cowegsmptadvvfvi")
public suspend fun deployOnPushes(vararg values: Output) {
this.deployOnPushes = Output.all(values.asList())
}
/**
* @param values Configures automatically deploying images pushed to DOCR.
*/
@JvmName("alstbbcfrcjkqcmo")
public suspend fun deployOnPushes(values: List