com.pulumi.gcp.artifactregistry.kotlin.inputs.GetDockerImagePlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.artifactregistry.kotlin.inputs
import com.pulumi.gcp.artifactregistry.inputs.GetDockerImagePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getDockerImage.
* @property imageName The image name to fetch. If no digest or tag is provided, then the latest modified image will be used.
* @property location The location of the artifact registry.
* @property project The project ID in which the resource belongs. If it is not provided, the provider project is used.
* @property repositoryId The last part of the repository name to fetch from.
*/
public data class GetDockerImagePlainArgs(
public val imageName: String,
public val location: String,
public val project: String? = null,
public val repositoryId: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.GetDockerImagePlainArgs =
com.pulumi.gcp.artifactregistry.inputs.GetDockerImagePlainArgs.builder()
.imageName(imageName.let({ args0 -> args0 }))
.location(location.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.repositoryId(repositoryId.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDockerImagePlainArgs].
*/
@PulumiTagMarker
public class GetDockerImagePlainArgsBuilder internal constructor() {
private var imageName: String? = null
private var location: String? = null
private var project: String? = null
private var repositoryId: String? = null
/**
* @param value The image name to fetch. If no digest or tag is provided, then the latest modified image will be used.
*/
@JvmName("pnvkqtqccrdjkbna")
public suspend fun imageName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.imageName = mapped
}
/**
* @param value The location of the artifact registry.
*/
@JvmName("ywhikrifipjsbnbc")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.location = mapped
}
/**
* @param value The project ID in which the resource belongs. If it is not provided, the provider project is used.
*/
@JvmName("sxeyjftndpjpuspt")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The last part of the repository name to fetch from.
*/
@JvmName("kteusqmjyjmqfich")
public suspend fun repositoryId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.repositoryId = mapped
}
internal fun build(): GetDockerImagePlainArgs = GetDockerImagePlainArgs(
imageName = imageName ?: throw PulumiNullFieldException("imageName"),
location = location ?: throw PulumiNullFieldException("location"),
project = project,
repositoryId = repositoryId ?: throw PulumiNullFieldException("repositoryId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy