class Google::Apis::MlV1::GoogleCloudMlV1Job

Represents a training or prediction job.

Attributes

create_time[RW]

Output only. When the job was created. Corresponds to the JSON property `createTime` @return [String]

end_time[RW]

Output only. When the job processing was completed. Corresponds to the JSON property `endTime` @return [String]

error_message[RW]

Output only. The details of a failure or a cancellation. Corresponds to the JSON property `errorMessage` @return [String]

etag[RW]

`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a job from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform job updates in order to avoid race conditions: An `etag` is returned in the response to `GetJob`, and systems are expected to put that etag in the request to `UpdateJob` to ensure that their change will be applied to the same version of the job. Corresponds to the JSON property `etag` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

job_id[RW]

Required. The user-specified id of the job. Corresponds to the JSON property `jobId` @return [String]

labels[RW]

Optional. One or more labels that you can add, to organize your jobs. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels. Corresponds to the JSON property `labels` @return [Hash<String,String>]

prediction_input[RW]

Represents input parameters for a prediction job. Corresponds to the JSON property `predictionInput` @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]

prediction_output[RW]

Represents results of a prediction job. Corresponds to the JSON property `predictionOutput` @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]

start_time[RW]

Output only. When the job processing was started. Corresponds to the JSON property `startTime` @return [String]

state[RW]

Output only. The detailed state of a job. Corresponds to the JSON property `state` @return [String]

training_input[RW]

Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command- line arguments and/or in a YAML configuration file referenced from the – config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). Corresponds to the JSON property `trainingInput` @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]

training_output[RW]

Represents results of a training job. Output only. Corresponds to the JSON property `trainingOutput` @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 1429
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/ml_v1/classes.rb, line 1434
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error_message = args[:error_message] if args.key?(:error_message)
  @etag = args[:etag] if args.key?(:etag)
  @job_id = args[:job_id] if args.key?(:job_id)
  @labels = args[:labels] if args.key?(:labels)
  @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
  @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @training_input = args[:training_input] if args.key?(:training_input)
  @training_output = args[:training_output] if args.key?(:training_output)
end