
com.pulumi.gcp.container.kotlin.inputs.ClusterAddonsConfigRayOperatorConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterAddonsConfigRayOperatorConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enabled
* @property rayClusterLoggingConfig The status of Ray Logging, which scrapes Ray cluster logs to Cloud Logging. Defaults to disabled; set enabled = true to enable.
* @property rayClusterMonitoringConfig The status of Ray Cluster monitoring, which shows Ray cluster metrics in Cloud Console. Defaults to disabled; set enabled = true to enable.
*/
public data class ClusterAddonsConfigRayOperatorConfigArgs(
public val enabled: Output,
public val rayClusterLoggingConfig: Output? = null,
public val rayClusterMonitoringConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterAddonsConfigRayOperatorConfigArgs =
com.pulumi.gcp.container.inputs.ClusterAddonsConfigRayOperatorConfigArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.rayClusterLoggingConfig(
rayClusterLoggingConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.rayClusterMonitoringConfig(
rayClusterMonitoringConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ClusterAddonsConfigRayOperatorConfigArgs].
*/
@PulumiTagMarker
public class ClusterAddonsConfigRayOperatorConfigArgsBuilder internal constructor() {
private var enabled: Output? = null
private var rayClusterLoggingConfig:
Output? = null
private var rayClusterMonitoringConfig:
Output? = null
/**
* @param value
*/
@JvmName("wuhwchphyfaygxxr")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The status of Ray Logging, which scrapes Ray cluster logs to Cloud Logging. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("uvmngbqepyetvmrn")
public suspend fun rayClusterLoggingConfig(`value`: Output) {
this.rayClusterLoggingConfig = value
}
/**
* @param value The status of Ray Cluster monitoring, which shows Ray cluster metrics in Cloud Console. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("duigpxstdhshecmq")
public suspend fun rayClusterMonitoringConfig(`value`: Output) {
this.rayClusterMonitoringConfig = value
}
/**
* @param value
*/
@JvmName("crdmadyvqpnhuqfr")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The status of Ray Logging, which scrapes Ray cluster logs to Cloud Logging. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("oropxtsytinhekbq")
public suspend fun rayClusterLoggingConfig(`value`: ClusterAddonsConfigRayOperatorConfigRayClusterLoggingConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rayClusterLoggingConfig = mapped
}
/**
* @param argument The status of Ray Logging, which scrapes Ray cluster logs to Cloud Logging. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("vkejgbfvbisxwopa")
public suspend fun rayClusterLoggingConfig(argument: suspend ClusterAddonsConfigRayOperatorConfigRayClusterLoggingConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterAddonsConfigRayOperatorConfigRayClusterLoggingConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.rayClusterLoggingConfig = mapped
}
/**
* @param value The status of Ray Cluster monitoring, which shows Ray cluster metrics in Cloud Console. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("qtnbfdnuernerjhx")
public suspend fun rayClusterMonitoringConfig(`value`: ClusterAddonsConfigRayOperatorConfigRayClusterMonitoringConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rayClusterMonitoringConfig = mapped
}
/**
* @param argument The status of Ray Cluster monitoring, which shows Ray cluster metrics in Cloud Console. Defaults to disabled; set enabled = true to enable.
*/
@JvmName("lcwwfnfnetvjxgvl")
public suspend fun rayClusterMonitoringConfig(argument: suspend ClusterAddonsConfigRayOperatorConfigRayClusterMonitoringConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterAddonsConfigRayOperatorConfigRayClusterMonitoringConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.rayClusterMonitoringConfig = mapped
}
internal fun build(): ClusterAddonsConfigRayOperatorConfigArgs =
ClusterAddonsConfigRayOperatorConfigArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
rayClusterLoggingConfig = rayClusterLoggingConfig,
rayClusterMonitoringConfig = rayClusterMonitoringConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy