com.pulumi.gcp.container.kotlin.inputs.GetRegistryImagePlainArgs.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.container.kotlin.inputs
import com.pulumi.gcp.container.inputs.GetRegistryImagePlainArgs.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 getRegistryImage.
* @property digest The image digest to fetch, if any.
* @property name The image name.
* @property project The project ID that this image is attached to. If not provider, provider project will be used instead.
* @property region The GCR region to use. As of this writing, one of `asia`, `eu`, and `us`. See [the documentation](https://cloud.google.com/container-registry/docs/pushing-and-pulling) for additional information.
* @property tag The tag to fetch, if any.
*/
public data class GetRegistryImagePlainArgs(
public val digest: String? = null,
public val name: String,
public val project: String? = null,
public val region: String? = null,
public val tag: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.GetRegistryImagePlainArgs =
com.pulumi.gcp.container.inputs.GetRegistryImagePlainArgs.builder()
.digest(digest?.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.region(region?.let({ args0 -> args0 }))
.tag(tag?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetRegistryImagePlainArgs].
*/
@PulumiTagMarker
public class GetRegistryImagePlainArgsBuilder internal constructor() {
private var digest: String? = null
private var name: String? = null
private var project: String? = null
private var region: String? = null
private var tag: String? = null
/**
* @param value The image digest to fetch, if any.
*/
@JvmName("cxigaoaktsrbonan")
public suspend fun digest(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.digest = mapped
}
/**
* @param value The image name.
*/
@JvmName("rvyfhgiqoplfsyju")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The project ID that this image is attached to. If not provider, provider project will be used instead.
*/
@JvmName("fgshyttublcmfjwf")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The GCR region to use. As of this writing, one of `asia`, `eu`, and `us`. See [the documentation](https://cloud.google.com/container-registry/docs/pushing-and-pulling) for additional information.
*/
@JvmName("wmlklallieemeypj")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.region = mapped
}
/**
* @param value The tag to fetch, if any.
*/
@JvmName("mqsrfpyvuocaevnj")
public suspend fun tag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.tag = mapped
}
internal fun build(): GetRegistryImagePlainArgs = GetRegistryImagePlainArgs(
digest = digest,
name = name ?: throw PulumiNullFieldException("name"),
project = project,
region = region,
tag = tag,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy