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

com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceStatus.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property conditions (Output)
 * Array of observed Service Conditions, indicating the current ready state of the service.
 * Structure is documented below.
 * @property latestCreatedRevisionName (Output)
 * From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created
 * from this Service's Configuration. It might not be ready yet, for that use
 * LatestReadyRevisionName.
 * @property latestReadyRevisionName (Output)
 * From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision
 * stamped out from this Service's Configuration that has had its "Ready" condition become
 * "True".
 * @property observedGeneration (Output)
 * ObservedGeneration is the 'Generation' of the Route that was last processed by the
 * controller.
 * Clients polling for completed reconciliation should poll until observedGeneration =
 * metadata.generation and the Ready condition's status is True or False.
 * @property traffics (Output)
 * Traffic specifies how to distribute traffic over a collection of Knative Revisions
 * and Configurations
 * Structure is documented below.
 * @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 ServiceStatus(
    public val conditions: List? = null,
    public val latestCreatedRevisionName: String? = null,
    public val latestReadyRevisionName: String? = null,
    public val observedGeneration: Int? = null,
    public val traffics: List? = null,
    public val url: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceStatus): ServiceStatus =
            ServiceStatus(
                conditions = javaType.conditions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceStatusCondition.Companion.toKotlin(args0)
                    })
                }),
                latestCreatedRevisionName = javaType.latestCreatedRevisionName().map({ args0 ->
                    args0
                }).orElse(null),
                latestReadyRevisionName = javaType.latestReadyRevisionName().map({ args0 -> args0 }).orElse(null),
                observedGeneration = javaType.observedGeneration().map({ args0 -> args0 }).orElse(null),
                traffics = javaType.traffics().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceStatusTraffic.Companion.toKotlin(args0)
                    })
                }),
                url = javaType.url().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy