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

src.transcoder.v1.Job.scala Maven / Gradle / Ivy

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

final case class Job private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  batchModePriority: besom.types.Output[Int],
  config: besom.types.Output[besom.api.googlenative.transcoder.v1.outputs.JobConfigResponse],
  createTime: besom.types.Output[String],
  endTime: besom.types.Output[String],
  error: besom.types.Output[besom.api.googlenative.transcoder.v1.outputs.StatusResponse],
  inputUri: besom.types.Output[String],
  labels: besom.types.Output[scala.Predef.Map[String, String]],
  location: besom.types.Output[String],
  mode: besom.types.Output[String],
  name: besom.types.Output[String],
  optimization: besom.types.Output[String],
  outputUri: besom.types.Output[String],
  project: besom.types.Output[String],
  startTime: besom.types.Output[String],
  state: besom.types.Output[String],
  templateId: besom.types.Output[String],
  ttlAfterCompletionDays: besom.types.Output[Int]
) extends besom.CustomResource

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

  private[besom] def typeToken: besom.types.ResourceType = "google-native:transcoder/v1:Job"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[Job])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def batchModePriority : besom.types.Output[Int] = output.flatMap(_.batchModePriority)
      def config : besom.types.Output[besom.api.googlenative.transcoder.v1.outputs.JobConfigResponse] = output.flatMap(_.config)
      def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
      def endTime : besom.types.Output[String] = output.flatMap(_.endTime)
      def error : besom.types.Output[besom.api.googlenative.transcoder.v1.outputs.StatusResponse] = output.flatMap(_.error)
      def inputUri : besom.types.Output[String] = output.flatMap(_.inputUri)
      def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def mode : besom.types.Output[String] = output.flatMap(_.mode)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def optimization : besom.types.Output[String] = output.flatMap(_.optimization)
      def outputUri : besom.types.Output[String] = output.flatMap(_.outputUri)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def startTime : besom.types.Output[String] = output.flatMap(_.startTime)
      def state : besom.types.Output[String] = output.flatMap(_.state)
      def templateId : besom.types.Output[String] = output.flatMap(_.templateId)
      def ttlAfterCompletionDays : besom.types.Output[Int] = output.flatMap(_.ttlAfterCompletionDays)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy