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

src.tpu.v2alpha1.QueuedResource.scala Maven / Gradle / Ivy

package besom.api.googlenative.tpu.v2alpha1

final case class QueuedResource private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  bestEffort: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.BestEffortResponse],
  createTime: besom.types.Output[String],
  guaranteed: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.GuaranteedResponse],
  location: besom.types.Output[String],
  name: besom.types.Output[String],
  project: besom.types.Output[String],
  queuedResourceId: besom.types.Output[scala.Option[String]],
  queueingPolicy: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.QueueingPolicyResponse],
  requestId: besom.types.Output[scala.Option[String]],
  reservationName: besom.types.Output[String],
  spot: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.SpotResponse],
  state: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.QueuedResourceStateResponse],
  tpu: besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.TpuResponse]
) extends besom.CustomResource

object QueuedResource extends besom.ResourceCompanion[QueuedResource]:
  /** Resource constructor for QueuedResource. 
    * 
    * @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 [[QueuedResourceArgs]] 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 = QueuedResource(
    *          "my-resource",
    *          QueuedResourceArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: QueuedResourceArgs = QueuedResourceArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[QueuedResource] =
    ctx.readOrRegisterResource[QueuedResource, QueuedResourceArgs]("google-native:tpu/v2alpha1:QueuedResource", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:tpu/v2alpha1:QueuedResource"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[QueuedResource])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def bestEffort : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.BestEffortResponse] = output.flatMap(_.bestEffort)
      def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
      def guaranteed : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.GuaranteedResponse] = output.flatMap(_.guaranteed)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def queuedResourceId : besom.types.Output[scala.Option[String]] = output.flatMap(_.queuedResourceId)
      def queueingPolicy : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.QueueingPolicyResponse] = output.flatMap(_.queueingPolicy)
      def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
      def reservationName : besom.types.Output[String] = output.flatMap(_.reservationName)
      def spot : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.SpotResponse] = output.flatMap(_.spot)
      def state : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.QueuedResourceStateResponse] = output.flatMap(_.state)
      def tpu : besom.types.Output[besom.api.googlenative.tpu.v2alpha1.outputs.TpuResponse] = output.flatMap(_.tpu)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy