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

com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceLogConfig.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress

/**
 *
 * @property enable Specifies whether to enable logging for traffic served by this service.
 * @property sampleRate Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1].
 * This field can only be specified if logging is enabled for this service.
 */
public data class EdgeCacheServiceLogConfig(
    public val enable: Boolean? = null,
    public val sampleRate: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.EdgeCacheServiceLogConfig): EdgeCacheServiceLogConfig = EdgeCacheServiceLogConfig(
            enable = javaType.enable().map({ args0 -> args0 }).orElse(null),
            sampleRate = javaType.sampleRate().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy