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

com.pulumi.gcp.compute.kotlin.outputs.GetNetworkResult.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 getNetwork.
 * @property description Description of this network.
 * @property gatewayIpv4 The IP address of the gateway.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property internalIpv6Range The ula internal ipv6 range assigned to this network.
 * @property name
 * @property project
 * @property selfLink The URI of the resource.
 * @property subnetworksSelfLinks the list of subnetworks which belong to the network
 */
public data class GetNetworkResult(
    public val description: String,
    public val gatewayIpv4: String,
    public val id: String,
    public val internalIpv6Range: String,
    public val name: String,
    public val project: String? = null,
    public val selfLink: String,
    public val subnetworksSelfLinks: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetNetworkResult): GetNetworkResult = GetNetworkResult(
            description = javaType.description(),
            gatewayIpv4 = javaType.gatewayIpv4(),
            id = javaType.id(),
            internalIpv6Range = javaType.internalIpv6Range(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            selfLink = javaType.selfLink(),
            subnetworksSelfLinks = javaType.subnetworksSelfLinks().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy