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

com.pulumi.gcp.vertex.kotlin.inputs.AiEndpointPredictRequestResponseLoggingConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiEndpointPredictRequestResponseLoggingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property bigqueryDestination BigQuery table for logging. If only given a project, a new dataset will be created with name `logging__` where will be made BigQuery-dataset-name compatible (e.g. most special characters will become underscores). If no table name is given, a new table will be created with name `request_response_logging`
 * Structure is documented below.
 * @property enabled If logging is enabled or not.
 * @property samplingRate Percentage of requests to be logged, expressed as a fraction in range(0,1]
 */
public data class AiEndpointPredictRequestResponseLoggingConfigArgs(
    public val bigqueryDestination: Output? = null,
    public val enabled: Output? = null,
    public val samplingRate: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiEndpointPredictRequestResponseLoggingConfigArgs =
        com.pulumi.gcp.vertex.inputs.AiEndpointPredictRequestResponseLoggingConfigArgs.builder()
            .bigqueryDestination(
                bigqueryDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .samplingRate(samplingRate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiEndpointPredictRequestResponseLoggingConfigArgs].
 */
@PulumiTagMarker
public class AiEndpointPredictRequestResponseLoggingConfigArgsBuilder internal constructor() {
    private var bigqueryDestination:
        Output? = null

    private var enabled: Output? = null

    private var samplingRate: Output? = null

    /**
     * @param value BigQuery table for logging. If only given a project, a new dataset will be created with name `logging__` where will be made BigQuery-dataset-name compatible (e.g. most special characters will become underscores). If no table name is given, a new table will be created with name `request_response_logging`
     * Structure is documented below.
     */
    @JvmName("oxwakwbeftgymqdv")
    public suspend fun bigqueryDestination(`value`: Output) {
        this.bigqueryDestination = value
    }

    /**
     * @param value If logging is enabled or not.
     */
    @JvmName("eleimxprtiqsrmsy")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Percentage of requests to be logged, expressed as a fraction in range(0,1]
     */
    @JvmName("qhwyedqdwkupfohk")
    public suspend fun samplingRate(`value`: Output) {
        this.samplingRate = value
    }

    /**
     * @param value BigQuery table for logging. If only given a project, a new dataset will be created with name `logging__` where will be made BigQuery-dataset-name compatible (e.g. most special characters will become underscores). If no table name is given, a new table will be created with name `request_response_logging`
     * Structure is documented below.
     */
    @JvmName("cukwssbuxuctetmx")
    public suspend fun bigqueryDestination(`value`: AiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bigqueryDestination = mapped
    }

    /**
     * @param argument BigQuery table for logging. If only given a project, a new dataset will be created with name `logging__` where will be made BigQuery-dataset-name compatible (e.g. most special characters will become underscores). If no table name is given, a new table will be created with name `request_response_logging`
     * Structure is documented below.
     */
    @JvmName("rudbxdljsdyhsufl")
    public suspend fun bigqueryDestination(argument: suspend AiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            AiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.bigqueryDestination = mapped
    }

    /**
     * @param value If logging is enabled or not.
     */
    @JvmName("xdfcpqjaueicjbpy")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Percentage of requests to be logged, expressed as a fraction in range(0,1]
     */
    @JvmName("ksebaaaouldejkvf")
    public suspend fun samplingRate(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samplingRate = mapped
    }

    internal fun build(): AiEndpointPredictRequestResponseLoggingConfigArgs =
        AiEndpointPredictRequestResponseLoggingConfigArgs(
            bigqueryDestination = bigqueryDestination,
            enabled = enabled,
            samplingRate = samplingRate,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy