com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateArgs.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.cloudrun.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property metadata Optional metadata for this Revision, including labels and annotations.
* Name will be generated by the Configuration. To set minimum instances
* for this revision, use the "autoscaling.knative.dev/minScale" annotation
* key. To set maximum instances for this revision, use the
* "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
* connections for the revision, use the "run.googleapis.com/cloudsql-instances"
* annotation key.
* Structure is documented below.
* @property spec RevisionSpec holds the desired state of the Revision (from the client).
* Structure is documented below.
*/
public data class ServiceTemplateArgs(
public val metadata: Output? = null,
public val spec: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs =
com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs.builder()
.metadata(metadata?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.spec(spec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ServiceTemplateArgs].
*/
@PulumiTagMarker
public class ServiceTemplateArgsBuilder internal constructor() {
private var metadata: Output? = null
private var spec: Output? = null
/**
* @param value Optional metadata for this Revision, including labels and annotations.
* Name will be generated by the Configuration. To set minimum instances
* for this revision, use the "autoscaling.knative.dev/minScale" annotation
* key. To set maximum instances for this revision, use the
* "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
* connections for the revision, use the "run.googleapis.com/cloudsql-instances"
* annotation key.
* Structure is documented below.
*/
@JvmName("vqrlvdtxwsaaatqx")
public suspend fun metadata(`value`: Output) {
this.metadata = value
}
/**
* @param value RevisionSpec holds the desired state of the Revision (from the client).
* Structure is documented below.
*/
@JvmName("hggwcqrtuflsprkk")
public suspend fun spec(`value`: Output) {
this.spec = value
}
/**
* @param value Optional metadata for this Revision, including labels and annotations.
* Name will be generated by the Configuration. To set minimum instances
* for this revision, use the "autoscaling.knative.dev/minScale" annotation
* key. To set maximum instances for this revision, use the
* "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
* connections for the revision, use the "run.googleapis.com/cloudsql-instances"
* annotation key.
* Structure is documented below.
*/
@JvmName("yhxquegfkndmbult")
public suspend fun metadata(`value`: ServiceTemplateMetadataArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param argument Optional metadata for this Revision, including labels and annotations.
* Name will be generated by the Configuration. To set minimum instances
* for this revision, use the "autoscaling.knative.dev/minScale" annotation
* key. To set maximum instances for this revision, use the
* "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
* connections for the revision, use the "run.googleapis.com/cloudsql-instances"
* annotation key.
* Structure is documented below.
*/
@JvmName("yralggwmpcchaesw")
public suspend fun metadata(argument: suspend ServiceTemplateMetadataArgsBuilder.() -> Unit) {
val toBeMapped = ServiceTemplateMetadataArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.metadata = mapped
}
/**
* @param value RevisionSpec holds the desired state of the Revision (from the client).
* Structure is documented below.
*/
@JvmName("qwnpgvrufudcymaw")
public suspend fun spec(`value`: ServiceTemplateSpecArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.spec = mapped
}
/**
* @param argument RevisionSpec holds the desired state of the Revision (from the client).
* Structure is documented below.
*/
@JvmName("vjvocncoenprkamv")
public suspend fun spec(argument: suspend ServiceTemplateSpecArgsBuilder.() -> Unit) {
val toBeMapped = ServiceTemplateSpecArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spec = mapped
}
internal fun build(): ServiceTemplateArgs = ServiceTemplateArgs(
metadata = metadata,
spec = spec,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy