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

com.pulumi.digitalocean.kotlin.outputs.AppSpecJobImage.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 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 AppSpecJobImage(
    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.AppSpecJobImage): AppSpecJobImage = AppSpecJobImage(
            deployOnPushes = javaType.deployOnPushes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.AppSpecJobImageDeployOnPush.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 - 2024 Weber Informatics LLC | Privacy Policy