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

src.index.AgentIngress.scala Maven / Gradle / Ivy

There is a newer version: 0.0.24-core.0.3
Show newest version
package besom.api.ngrok

final case class AgentIngress private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  createdAt: besom.types.Output[String],
  description: besom.types.Output[scala.Option[String]],
  domain: besom.types.Output[String],
  metadata: besom.types.Output[scala.Option[String]],
  nsTargets: besom.types.Output[scala.collection.immutable.List[String]],
  regionDomains: besom.types.Output[scala.collection.immutable.List[String]],
  uri: besom.types.Output[String]
) extends besom.CustomResource

object AgentIngress extends besom.ResourceCompanion[AgentIngress]:
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: AgentIngressArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[AgentIngress] =
    ctx.readOrRegisterResource[AgentIngress, AgentIngressArgs]("ngrok:index/agentIngress:AgentIngress", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/agentIngress:AgentIngress"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[AgentIngress] =
    besom.internal.ResourceDecoder.derived[AgentIngress]

  given decoder(using besom.types.Context): besom.types.Decoder[AgentIngress] =
    besom.internal.Decoder.customResourceDecoder[AgentIngress]


  given outputOps: {} with
    extension(output: besom.types.Output[AgentIngress])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def createdAt : besom.types.Output[String] = output.flatMap(_.createdAt)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def domain : besom.types.Output[String] = output.flatMap(_.domain)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def nsTargets : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.nsTargets)
      def regionDomains : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.regionDomains)
      def uri : besom.types.Output[String] = output.flatMap(_.uri)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy