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

src.compute.alpha.RegionCommitment.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.compute.alpha

final case class RegionCommitment private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  autoRenew: besom.types.Output[Boolean],
  category: besom.types.Output[String],
  creationTimestamp: besom.types.Output[String],
  description: besom.types.Output[String],
  endTimestamp: besom.types.Output[String],
  existingReservations: besom.types.Output[scala.collection.immutable.List[String]],
  kind: besom.types.Output[String],
  licenseResource: besom.types.Output[besom.api.googlenative.compute.alpha.outputs.LicenseResourceCommitmentResponse],
  mergeSourceCommitments: besom.types.Output[scala.collection.immutable.List[String]],
  name: besom.types.Output[String],
  plan: besom.types.Output[String],
  project: besom.types.Output[String],
  region: besom.types.Output[String],
  requestId: besom.types.Output[scala.Option[String]],
  reservations: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.alpha.outputs.ReservationResponse]],
  resourceStatus: besom.types.Output[besom.api.googlenative.compute.alpha.outputs.CommitmentResourceStatusResponse],
  resources: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.alpha.outputs.ResourceCommitmentResponse]],
  selfLink: besom.types.Output[String],
  selfLinkWithId: besom.types.Output[String],
  splitSourceCommitment: besom.types.Output[String],
  startTimestamp: besom.types.Output[String],
  status: besom.types.Output[String],
  statusMessage: besom.types.Output[String],
  `type`: besom.types.Output[String]
) extends besom.CustomResource

object RegionCommitment extends besom.ResourceCompanion[RegionCommitment]:
  /** Resource constructor for RegionCommitment. 
    * 
    * @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 [[RegionCommitmentArgs]] The configuration to use to create this resource. 
    *
    * @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 = RegionCommitment(
    *          "my-resource",
    *          RegionCommitmentArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: RegionCommitmentArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[RegionCommitment] =
    ctx.readOrRegisterResource[RegionCommitment, RegionCommitmentArgs]("google-native:compute/alpha:RegionCommitment", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:compute/alpha:RegionCommitment"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[RegionCommitment])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def autoRenew : besom.types.Output[Boolean] = output.flatMap(_.autoRenew)
      def category : besom.types.Output[String] = output.flatMap(_.category)
      def creationTimestamp : besom.types.Output[String] = output.flatMap(_.creationTimestamp)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def endTimestamp : besom.types.Output[String] = output.flatMap(_.endTimestamp)
      def existingReservations : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.existingReservations)
      def kind : besom.types.Output[String] = output.flatMap(_.kind)
      def licenseResource : besom.types.Output[besom.api.googlenative.compute.alpha.outputs.LicenseResourceCommitmentResponse] = output.flatMap(_.licenseResource)
      def mergeSourceCommitments : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.mergeSourceCommitments)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def plan : besom.types.Output[String] = output.flatMap(_.plan)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def region : besom.types.Output[String] = output.flatMap(_.region)
      def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
      def reservations : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.alpha.outputs.ReservationResponse]] = output.flatMap(_.reservations)
      def resourceStatus : besom.types.Output[besom.api.googlenative.compute.alpha.outputs.CommitmentResourceStatusResponse] = output.flatMap(_.resourceStatus)
      def resources : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.alpha.outputs.ResourceCommitmentResponse]] = output.flatMap(_.resources)
      def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
      def selfLinkWithId : besom.types.Output[String] = output.flatMap(_.selfLinkWithId)
      def splitSourceCommitment : besom.types.Output[String] = output.flatMap(_.splitSourceCommitment)
      def startTimestamp : besom.types.Output[String] = output.flatMap(_.startTimestamp)
      def status : besom.types.Output[String] = output.flatMap(_.status)
      def statusMessage : besom.types.Output[String] = output.flatMap(_.statusMessage)
      def `type` : besom.types.Output[String] = output.flatMap(_.`type`)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy