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

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceStatusTraffic.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.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 GetServiceStatusTraffic(
    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.GetServiceStatusTraffic): GetServiceStatusTraffic = GetServiceStatusTraffic(
            latestRevision = javaType.latestRevision(),
            percent = javaType.percent(),
            revisionName = javaType.revisionName(),
            tag = javaType.tag(),
            url = javaType.url(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy