
src.compute.v1.Route.scala Maven / Gradle / Ivy
package besom.api.googlenative.compute.v1
final case class Route private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
asPaths: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.RouteAsPathResponse]],
creationTimestamp: besom.types.Output[String],
description: besom.types.Output[String],
destRange: besom.types.Output[String],
kind: besom.types.Output[String],
name: besom.types.Output[String],
network: besom.types.Output[String],
nextHopGateway: besom.types.Output[String],
nextHopHub: besom.types.Output[String],
nextHopIlb: besom.types.Output[String],
nextHopInstance: besom.types.Output[String],
nextHopIp: besom.types.Output[String],
nextHopNetwork: besom.types.Output[String],
nextHopPeering: besom.types.Output[String],
nextHopVpnTunnel: besom.types.Output[String],
priority: besom.types.Output[Int],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
routeStatus: besom.types.Output[String],
routeType: besom.types.Output[String],
selfLink: besom.types.Output[String],
tags: besom.types.Output[scala.collection.immutable.List[String]],
warnings: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.RouteWarningsItemResponse]]
) extends besom.CustomResource
object Route extends besom.ResourceCompanion[Route]:
/** Resource constructor for Route.
*
* @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
* NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
* issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
* string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
*
* @param args [[RouteArgs]] The configuration to use to create this resource. This resource has a default configuration.
*
* @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource.
* Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
*
* {{{
* val res = Route(
* "my-resource",
* RouteArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: RouteArgs = RouteArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Route] =
ctx.readOrRegisterResource[Route, RouteArgs]("google-native:compute/v1:Route", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:compute/v1:Route"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Route] =
besom.internal.ResourceDecoder.derived[Route]
given decoder(using besom.types.Context): besom.types.Decoder[Route] =
besom.internal.Decoder.customResourceDecoder[Route]
given outputOps: {} with
extension(output: besom.types.Output[Route])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def asPaths : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.RouteAsPathResponse]] = output.flatMap(_.asPaths)
def creationTimestamp : besom.types.Output[String] = output.flatMap(_.creationTimestamp)
def description : besom.types.Output[String] = output.flatMap(_.description)
def destRange : besom.types.Output[String] = output.flatMap(_.destRange)
def kind : besom.types.Output[String] = output.flatMap(_.kind)
def name : besom.types.Output[String] = output.flatMap(_.name)
def network : besom.types.Output[String] = output.flatMap(_.network)
def nextHopGateway : besom.types.Output[String] = output.flatMap(_.nextHopGateway)
def nextHopHub : besom.types.Output[String] = output.flatMap(_.nextHopHub)
def nextHopIlb : besom.types.Output[String] = output.flatMap(_.nextHopIlb)
def nextHopInstance : besom.types.Output[String] = output.flatMap(_.nextHopInstance)
def nextHopIp : besom.types.Output[String] = output.flatMap(_.nextHopIp)
def nextHopNetwork : besom.types.Output[String] = output.flatMap(_.nextHopNetwork)
def nextHopPeering : besom.types.Output[String] = output.flatMap(_.nextHopPeering)
def nextHopVpnTunnel : besom.types.Output[String] = output.flatMap(_.nextHopVpnTunnel)
def priority : besom.types.Output[Int] = output.flatMap(_.priority)
def project : besom.types.Output[String] = output.flatMap(_.project)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def routeStatus : besom.types.Output[String] = output.flatMap(_.routeStatus)
def routeType : besom.types.Output[String] = output.flatMap(_.routeType)
def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
def tags : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.tags)
def warnings : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.RouteWarningsItemResponse]] = output.flatMap(_.warnings)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy