Class: Google::Apis::MlV1::GoogleCloudMlV1Job

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

Overview

Represents a training or prediction job.

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) ⇒ GoogleCloudMlV1Job

Returns a new instance of GoogleCloudMlV1Job



1837
1838
1839
# File 'generated/google/apis/ml_v1/classes.rb', line 1837

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)


1830
1831
1832
# File 'generated/google/apis/ml_v1/classes.rb', line 1830

def create_time
  @create_time
end

#end_timeString

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

Returns:

  • (String)


1810
1811
1812
# File 'generated/google/apis/ml_v1/classes.rb', line 1810

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)


1800
1801
1802
# File 'generated/google/apis/ml_v1/classes.rb', line 1800

def error_message
  @error_message
end

#job_idString

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

Returns:

  • (String)


1805
1806
1807
# File 'generated/google/apis/ml_v1/classes.rb', line 1805

def job_id
  @job_id
end

#prediction_inputGoogle::Apis::MlV1::GoogleCloudMlV1PredictionInput

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



1795
1796
1797
# File 'generated/google/apis/ml_v1/classes.rb', line 1795

def prediction_input
  @prediction_input
end

#prediction_outputGoogle::Apis::MlV1::GoogleCloudMlV1PredictionOutput

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



1820
1821
1822
# File 'generated/google/apis/ml_v1/classes.rb', line 1820

def prediction_output
  @prediction_output
end

#start_timeString

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

Returns:

  • (String)


1815
1816
1817
# File 'generated/google/apis/ml_v1/classes.rb', line 1815

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


1790
1791
1792
# File 'generated/google/apis/ml_v1/classes.rb', line 1790

def state
  @state
end

#training_inputGoogle::Apis::MlV1::GoogleCloudMlV1TrainingInput

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



1835
1836
1837
# File 'generated/google/apis/ml_v1/classes.rb', line 1835

def training_input
  @training_input
end

#training_outputGoogle::Apis::MlV1::GoogleCloudMlV1TrainingOutput

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



1825
1826
1827
# File 'generated/google/apis/ml_v1/classes.rb', line 1825

def training_output
  @training_output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
# File 'generated/google/apis/ml_v1/classes.rb', line 1842

def update!(**args)
  @state = args[:state] if args.key?(:state)
  @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
  @error_message = args[:error_message] if args.key?(:error_message)
  @job_id = args[:job_id] if args.key?(:job_id)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
  @training_output = args[:training_output] if args.key?(:training_output)
  @create_time = args[:create_time] if args.key?(:create_time)
  @training_input = args[:training_input] if args.key?(:training_input)
end