
com.pulumi.googlenative.compute.beta.kotlin.outputs.GetRouteResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.beta.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property asPaths AS path.
* @property creationTimestamp Creation timestamp in RFC3339 text format.
* @property description An optional description of this resource. Provide this field when you create the resource.
* @property destRange The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
* @property kind Type of this resource. Always compute#routes for Route resources.
* @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
* @property network Fully-qualified URL of the network that this route applies to.
* @property nextHopGateway The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway
* @property nextHopIlb The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule
* @property nextHopInstance The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
* @property nextHopInterconnectAttachment The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment.
* @property nextHopIp The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
* @property nextHopNetwork The URL of the local network if it should handle matching packets.
* @property nextHopPeering The network peering name that should handle matching packets, which should conform to RFC1035.
* @property nextHopVpnTunnel The URL to a VpnTunnel that should handle matching packets.
* @property priority The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive.
* @property routeStatus [Output only] The status of the route.
* @property routeType The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route
* @property selfLink Server-defined fully-qualified URL for this resource.
* @property tags A list of instance tags to which this route applies.
* @property warnings If potential misconfigurations are detected for this route, this field will be populated with warning messages.
*/
public data class GetRouteResult(
public val asPaths: List,
public val creationTimestamp: String,
public val description: String,
public val destRange: String,
public val kind: String,
public val name: String,
public val network: String,
public val nextHopGateway: String,
public val nextHopIlb: String,
public val nextHopInstance: String,
public val nextHopInterconnectAttachment: String,
public val nextHopIp: String,
public val nextHopNetwork: String,
public val nextHopPeering: String,
public val nextHopVpnTunnel: String,
public val priority: Int,
public val routeStatus: String,
public val routeType: String,
public val selfLink: String,
public val tags: List,
public val warnings: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.compute.beta.outputs.GetRouteResult): GetRouteResult = GetRouteResult(
asPaths = javaType.asPaths().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.compute.beta.kotlin.outputs.RouteAsPathResponse.Companion.toKotlin(args0)
})
}),
creationTimestamp = javaType.creationTimestamp(),
description = javaType.description(),
destRange = javaType.destRange(),
kind = javaType.kind(),
name = javaType.name(),
network = javaType.network(),
nextHopGateway = javaType.nextHopGateway(),
nextHopIlb = javaType.nextHopIlb(),
nextHopInstance = javaType.nextHopInstance(),
nextHopInterconnectAttachment = javaType.nextHopInterconnectAttachment(),
nextHopIp = javaType.nextHopIp(),
nextHopNetwork = javaType.nextHopNetwork(),
nextHopPeering = javaType.nextHopPeering(),
nextHopVpnTunnel = javaType.nextHopVpnTunnel(),
priority = javaType.priority(),
routeStatus = javaType.routeStatus(),
routeType = javaType.routeType(),
selfLink = javaType.selfLink(),
tags = javaType.tags().map({ args0 -> args0 }),
warnings = javaType.warnings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.compute.beta.kotlin.outputs.RouteWarningsItemResponse.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy