
com.pulumi.gcp.vertex.kotlin.outputs.AiEndpointPredictRequestResponseLoggingConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.vertex.kotlin.outputs
import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress
/**
*
* @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 AiEndpointPredictRequestResponseLoggingConfig(
public val bigqueryDestination: AiEndpointPredictRequestResponseLoggingConfigBigqueryDestination? =
null,
public val enabled: Boolean? = null,
public val samplingRate: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.vertex.outputs.AiEndpointPredictRequestResponseLoggingConfig): AiEndpointPredictRequestResponseLoggingConfig =
AiEndpointPredictRequestResponseLoggingConfig(
bigqueryDestination = javaType.bigqueryDestination().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.vertex.kotlin.outputs.AiEndpointPredictRequestResponseLoggingConfigBigqueryDestination.Companion.toKotlin(args0)
})
}).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
samplingRate = javaType.samplingRate().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy