![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceImage.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 AppSpecServiceImage(
public val deployOnPushes: List? = null,
public val registry: String? = null,
public val registryCredentials: String? = null,
public val registryType: String,
public val repository: String,
public val tag: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecServiceImage): AppSpecServiceImage = AppSpecServiceImage(
deployOnPushes = javaType.deployOnPushes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceImageDeployOnPush.Companion.toKotlin(args0)
})
}),
registry = javaType.registry().map({ args0 -> args0 }).orElse(null),
registryCredentials = javaType.registryCredentials().map({ args0 -> args0 }).orElse(null),
registryType = javaType.registryType(),
repository = javaType.repository(),
tag = javaType.tag().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy