Class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1beta1/classes.rb,
generated/google/apis/ml_v1beta1/representations.rb,
generated/google/apis/ml_v1beta1/representations.rb

Overview

Represents a training or prediction job. Next ID: 16

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1beta1Job

Returns a new instance of GoogleCloudMlV1beta1Job



557
558
559
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 557

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. When the job was created. Corresponds to the JSON property createTime

Returns:

  • (String)


510
511
512
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 510

def create_time
  @create_time
end

#end_timeString

Output only. When the job processing was completed. Corresponds to the JSON property endTime

Returns:

  • (String)


515
516
517
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 515

def end_time
  @end_time
end

#error_messageString

Output only. The details of a failure or a cancellation. Corresponds to the JSON property errorMessage

Returns:

  • (String)


520
521
522
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 520

def error_message
  @error_message
end

#job_idString

Required. The user-specified id of the job. Corresponds to the JSON property jobId

Returns:

  • (String)


525
526
527
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 525

def job_id
  @job_id
end

#prediction_inputGoogle::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionInput

Represents input parameters for a prediction job. Corresponds to the JSON property predictionInput



530
531
532
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 530

def prediction_input
  @prediction_input
end

#prediction_outputGoogle::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionOutput

Represents results of a prediction job. Corresponds to the JSON property predictionOutput



535
536
537
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 535

def prediction_output
  @prediction_output
end

#start_timeString

Output only. When the job processing was started. Corresponds to the JSON property startTime

Returns:

  • (String)


540
541
542
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 540

def start_time
  @start_time
end

#stateString

Output only. The detailed state of a job. Corresponds to the JSON property state

Returns:

  • (String)


545
546
547
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 545

def state
  @state
end

#training_inputGoogle::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingInput

Represents input parameters for a training job. Corresponds to the JSON property trainingInput



550
551
552
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 550

def training_input
  @training_input
end

#training_outputGoogle::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingOutput

Represents results of a training job. Output only. Corresponds to the JSON property trainingOutput



555
556
557
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 555

def training_output
  @training_output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



562
563
564
565
566
567
568
569
570
571
572
573
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 562

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)
  @job_id = args[:job_id] if args.key?(:job_id)
  @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