com.pulumi.gcp.compute.kotlin.outputs.GetSubnetworkResult.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.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getSubnetwork.
* @property description Description of this subnetwork.
* @property gatewayAddress The IP address of the gateway.
* @property id The provider-assigned unique ID for this managed resource.
* @property internalIpv6Prefix The internal IPv6 address range that is assigned to this subnetwork.
* @property ipCidrRange The range of IP addresses belonging to this subnetwork
* secondary range.
* @property name
* @property network The network name or resource link to the parent
* network of this subnetwork.
* @property privateIpGoogleAccess Whether the VMs in this subnet
* can access Google services without assigned external IP
* addresses.
* @property project
* @property region
* @property secondaryIpRanges An array of configurations for secondary IP ranges for
* VM instances contained in this subnetwork. Structure is documented below.
* @property selfLink
*/
public data class GetSubnetworkResult(
public val description: String,
public val gatewayAddress: String,
public val id: String,
public val internalIpv6Prefix: String,
public val ipCidrRange: String,
public val name: String? = null,
public val network: String,
public val privateIpGoogleAccess: Boolean,
public val project: String,
public val region: String,
public val secondaryIpRanges: List,
public val selfLink: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetSubnetworkResult): GetSubnetworkResult = GetSubnetworkResult(
description = javaType.description(),
gatewayAddress = javaType.gatewayAddress(),
id = javaType.id(),
internalIpv6Prefix = javaType.internalIpv6Prefix(),
ipCidrRange = javaType.ipCidrRange(),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
network = javaType.network(),
privateIpGoogleAccess = javaType.privateIpGoogleAccess(),
project = javaType.project(),
region = javaType.region(),
secondaryIpRanges = javaType.secondaryIpRanges().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetSubnetworkSecondaryIpRange.Companion.toKotlin(args0)
})
}),
selfLink = javaType.selfLink(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy