Class: Google::Apis::MlV1::GoogleCloudMlV1Job
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Job
- 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
-
#create_time ⇒ String
Output only.
-
#end_time ⇒ String
Output only.
-
#error_message ⇒ String
Output only.
-
#job_id ⇒ String
Required.
-
#prediction_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionInput
Represents input parameters for a prediction job.
-
#prediction_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput
Represents results of a prediction job.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#training_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingInput
Represents input parameters for a training job.
-
#training_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput
Represents results of a training job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1Job
constructor
A new instance of GoogleCloudMlV1Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1Job
Returns a new instance of GoogleCloudMlV1Job
1607 1608 1609 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. When the job was created.
Corresponds to the JSON property createTime
1580 1581 1582 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1580 def create_time @create_time end |
#end_time ⇒ String
Output only. When the job processing was completed.
Corresponds to the JSON property endTime
1560 1561 1562 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1560 def end_time @end_time end |
#error_message ⇒ String
Output only. The details of a failure or a cancellation.
Corresponds to the JSON property errorMessage
1600 1601 1602 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1600 def @error_message end |
#job_id ⇒ String
Required. The user-specified id of the job.
Corresponds to the JSON property jobId
1605 1606 1607 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1605 def job_id @job_id end |
#prediction_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionInput
Represents input parameters for a prediction job.
Corresponds to the JSON property predictionInput
1590 1591 1592 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1590 def prediction_input @prediction_input end |
#prediction_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput
Represents results of a prediction job.
Corresponds to the JSON property predictionOutput
1570 1571 1572 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1570 def prediction_output @prediction_output end |
#start_time ⇒ String
Output only. When the job processing was started.
Corresponds to the JSON property startTime
1565 1566 1567 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1565 def start_time @start_time end |
#state ⇒ String
Output only. The detailed state of a job.
Corresponds to the JSON property state
1595 1596 1597 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1595 def state @state end |
#training_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingInput
Represents input parameters for a training job.
Corresponds to the JSON property trainingInput
1585 1586 1587 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1585 def training_input @training_input end |
#training_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput
Represents results of a training job. Output only.
Corresponds to the JSON property trainingOutput
1575 1576 1577 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1575 def training_output @training_output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1612 def update!(**args) @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) @prediction_input = args[:prediction_input] if args.key?(:prediction_input) @state = args[:state] if args.key?(:state) @error_message = args[:error_message] if args.key?(:error_message) @job_id = args[:job_id] if args.key?(:job_id) end |