com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTraffic.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.cloudrun.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property latestRevision LatestRevision may be optionally provided to indicate that the latest ready
* Revision of the Configuration should be used for this traffic target. When
* provided LatestRevision must be true if RevisionName is empty; it must be
* false when RevisionName is non-empty.
* @property percent Percent specifies percent of the traffic to this Revision or Configuration.
* @property revisionName RevisionName of a specific revision to which to send this portion of traffic.
* @property tag Tag is optionally used to expose a dedicated url for referencing this target exclusively.
* @property url URL displays the URL for accessing tagged traffic targets. URL is displayed in status,
* and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname,
* but may not contain anything else (e.g. basic auth, url path, etc.)
*/
public data class GetServiceTraffic(
public val latestRevision: Boolean,
public val percent: Int,
public val revisionName: String,
public val tag: String,
public val url: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTraffic): GetServiceTraffic = GetServiceTraffic(
latestRevision = javaType.latestRevision(),
percent = javaType.percent(),
revisionName = javaType.revisionName(),
tag = javaType.tag(),
url = javaType.url(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy