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

src.ml.v1.JobArgs.scala Maven / Gradle / Ivy

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

final case class JobArgs private(
  etag: besom.types.Output[scala.Option[String]],
  jobId: besom.types.Output[String],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  predictionInput: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1PredictionInputArgs]],
  predictionOutput: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1PredictionOutputArgs]],
  project: besom.types.Output[scala.Option[String]],
  trainingInput: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrainingInputArgs]],
  trainingOutput: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrainingOutputArgs]]
)

object JobArgs:
  def apply(
    etag: besom.types.Input.Optional[String] = scala.None,
    jobId: besom.types.Input[String],
    labels: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    predictionInput: besom.types.Input.Optional[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1PredictionInputArgs] = scala.None,
    predictionOutput: besom.types.Input.Optional[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1PredictionOutputArgs] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    trainingInput: besom.types.Input.Optional[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrainingInputArgs] = scala.None,
    trainingOutput: besom.types.Input.Optional[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrainingOutputArgs] = scala.None
  )(using besom.types.Context): JobArgs =
    new JobArgs(
      etag = etag.asOptionOutput(isSecret = false),
      jobId = jobId.asOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      predictionInput = predictionInput.asOptionOutput(isSecret = false),
      predictionOutput = predictionOutput.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      trainingInput = trainingInput.asOptionOutput(isSecret = false),
      trainingOutput = trainingOutput.asOptionOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[JobArgs] =
    besom.internal.Encoder.derived[JobArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[JobArgs] =
    besom.internal.ArgsEncoder.derived[JobArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy