com.pulumi.digitalocean.kotlin.inputs.AppSpecJobImageArgs.kt Maven / Gradle / Ivy
@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.AppSpecJobImageArgs.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 AppSpecJobImageArgs(
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.AppSpecJobImageArgs =
com.pulumi.digitalocean.inputs.AppSpecJobImageArgs.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 [AppSpecJobImageArgs].
*/
@PulumiTagMarker
public class AppSpecJobImageArgsBuilder 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("ohcgpsqeudnfduwy")
public suspend fun deployOnPushes(`value`: Output>) {
this.deployOnPushes = value
}
@JvmName("lgeigoifdgnihbdn")
public suspend fun deployOnPushes(vararg values: Output) {
this.deployOnPushes = Output.all(values.asList())
}
/**
* @param values Configures automatically deploying images pushed to DOCR.
*/
@JvmName("qyfecplistynindn")
public suspend fun deployOnPushes(values: List