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

com.pulumi.gcp.compute.kotlin.outputs.RouterStatusResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by RouterStatus.
 * @property bestRoutes List of best `compute#routes` configurations for this router's network. See gcp.compute.Route resource for available attributes.
 * @property bestRoutesForRouters List of best `compute#routes` for this specific router. See gcp.compute.Route resource for available attributes.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property network The network name or resource link to the parent
 * network of this subnetwork.
 * @property project
 * @property region
 */
public data class RouterStatusResult(
    public val bestRoutes: List,
    public val bestRoutesForRouters: List,
    public val id: String,
    public val name: String,
    public val network: String,
    public val project: String? = null,
    public val region: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RouterStatusResult): RouterStatusResult = RouterStatusResult(
            bestRoutes = javaType.bestRoutes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RouterStatusBestRoute.Companion.toKotlin(args0)
                })
            }),
            bestRoutesForRouters = javaType.bestRoutesForRouters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RouterStatusBestRoutesForRouter.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            name = javaType.name(),
            network = javaType.network(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            region = javaType.region(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy