src.ml.v1.Job.scala Maven / Gradle / Ivy
The newest version!
package besom.api.googlenative.ml.v1
final case class Job private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
createTime: besom.types.Output[String],
endTime: besom.types.Output[String],
errorMessage: besom.types.Output[String],
etag: besom.types.Output[String],
jobId: besom.types.Output[String],
jobPosition: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
predictionInput: besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1PredictionInputResponse],
predictionOutput: besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1PredictionOutputResponse],
project: besom.types.Output[String],
startTime: besom.types.Output[String],
state: besom.types.Output[String],
trainingInput: besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1TrainingInputResponse],
trainingOutput: besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1TrainingOutputResponse]
) 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:ml/v1:Job", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:ml/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 createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def endTime : besom.types.Output[String] = output.flatMap(_.endTime)
def errorMessage : besom.types.Output[String] = output.flatMap(_.errorMessage)
def etag : besom.types.Output[String] = output.flatMap(_.etag)
def jobId : besom.types.Output[String] = output.flatMap(_.jobId)
def jobPosition : besom.types.Output[String] = output.flatMap(_.jobPosition)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def predictionInput : besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1PredictionInputResponse] = output.flatMap(_.predictionInput)
def predictionOutput : besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1PredictionOutputResponse] = output.flatMap(_.predictionOutput)
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 trainingInput : besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1TrainingInputResponse] = output.flatMap(_.trainingInput)
def trainingOutput : besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1TrainingOutputResponse] = output.flatMap(_.trainingOutput)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy