com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceStatus.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property conditions Array of observed Service Conditions, indicating the current ready state of the service.
* @property latestCreatedRevisionName 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 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 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 Traffic specifies how to distribute traffic over a collection of Knative Revisions
* and Configurations
* @property url From RouteStatus. URL holds the url that will distribute traffic over the provided traffic
* targets. It generally has the form
* https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app
*/
public data class GetServiceStatus(
public val conditions: List,
public val latestCreatedRevisionName: String,
public val latestReadyRevisionName: String,
public val observedGeneration: Int,
public val traffics: List,
public val url: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceStatus): GetServiceStatus = GetServiceStatus(
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceStatusCondition.Companion.toKotlin(args0)
})
}),
latestCreatedRevisionName = javaType.latestCreatedRevisionName(),
latestReadyRevisionName = javaType.latestReadyRevisionName(),
observedGeneration = javaType.observedGeneration(),
traffics = javaType.traffics().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceStatusTraffic.Companion.toKotlin(args0)
})
}),
url = javaType.url(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy