com.pulumi.digitalocean.kotlin.outputs.GetAppSpecJobImage.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property deployOnPushes Whether to automatically deploy new commits made to the repo.
* @property registry The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type.
* @property registryCredentials Access credentials for third-party registries
* @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 GetAppSpecJobImage(
public val deployOnPushes: List,
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.GetAppSpecJobImage): GetAppSpecJobImage = GetAppSpecJobImage(
deployOnPushes = javaType.deployOnPushes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecJobImageDeployOnPush.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),
)
}
}