com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTraffic.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.cloudrunv2.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property percent Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
* @property revision Revision to which to send this portion of traffic, if traffic allocation is by revision.
* @property tag Indicates a string to be part of the URI to exclusively reference this target.
* @property type The allocation type for this traffic target.
* Possible values are: `TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST`, `TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION`.
*/
public data class ServiceTraffic(
public val percent: Int? = null,
public val revision: String? = null,
public val tag: String? = null,
public val type: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTraffic): ServiceTraffic = ServiceTraffic(
percent = javaType.percent().map({ args0 -> args0 }).orElse(null),
revision = javaType.revision().map({ args0 -> args0 }).orElse(null),
tag = javaType.tag().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy