src.batch.v1.Job.scala Maven / Gradle / Ivy
The newest version!
package besom.api.googlenative.batch.v1
final case class Job private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
allocationPolicy: besom.types.Output[besom.api.googlenative.batch.v1.outputs.AllocationPolicyResponse],
createTime: besom.types.Output[String],
jobId: besom.types.Output[scala.Option[String]],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
logsPolicy: besom.types.Output[besom.api.googlenative.batch.v1.outputs.LogsPolicyResponse],
name: besom.types.Output[String],
notifications: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.batch.v1.outputs.JobNotificationResponse]],
priority: besom.types.Output[String],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
status: besom.types.Output[besom.api.googlenative.batch.v1.outputs.JobStatusResponse],
taskGroups: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.batch.v1.outputs.TaskGroupResponse]],
uid: besom.types.Output[String],
updateTime: besom.types.Output[String]
) 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.
*
* @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,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Job] =
ctx.readOrRegisterResource[Job, JobArgs]("google-native:batch/v1:Job", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:batch/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 allocationPolicy : besom.types.Output[besom.api.googlenative.batch.v1.outputs.AllocationPolicyResponse] = output.flatMap(_.allocationPolicy)
def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def jobId : besom.types.Output[scala.Option[String]] = output.flatMap(_.jobId)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def location : besom.types.Output[String] = output.flatMap(_.location)
def logsPolicy : besom.types.Output[besom.api.googlenative.batch.v1.outputs.LogsPolicyResponse] = output.flatMap(_.logsPolicy)
def name : besom.types.Output[String] = output.flatMap(_.name)
def notifications : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.batch.v1.outputs.JobNotificationResponse]] = output.flatMap(_.notifications)
def priority : besom.types.Output[String] = output.flatMap(_.priority)
def project : besom.types.Output[String] = output.flatMap(_.project)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def status : besom.types.Output[besom.api.googlenative.batch.v1.outputs.JobStatusResponse] = output.flatMap(_.status)
def taskGroups : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.batch.v1.outputs.TaskGroupResponse]] = output.flatMap(_.taskGroups)
def uid : besom.types.Output[String] = output.flatMap(_.uid)
def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy