com.pulumi.gcp.cloudrun.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.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 (Output)
* 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 ServiceTraffic(
public val latestRevision: Boolean? = null,
public val percent: Int,
public val revisionName: String? = null,
public val tag: String? = null,
public val url: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceTraffic): ServiceTraffic =
ServiceTraffic(
latestRevision = javaType.latestRevision().map({ args0 -> args0 }).orElse(null),
percent = javaType.percent(),
revisionName = javaType.revisionName().map({ args0 -> args0 }).orElse(null),
tag = javaType.tag().map({ args0 -> args0 }).orElse(null),
url = javaType.url().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy