Class: Google::Apis::MlV1::GoogleCloudMlV1Job
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/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.
-
#etag ⇒ String
etagis used for optimistic concurrency control as a way to help prevent simultaneous updates of a job from overwriting each other. -
#job_id ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
Optional.
-
#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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1Job
Returns a new instance of GoogleCloudMlV1Job.
1425 1426 1427 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1425 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
1354 1355 1356 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1354 def create_time @create_time end |
#end_time ⇒ String
Output only. When the job processing was completed.
Corresponds to the JSON property endTime
1359 1360 1361 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1359 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
1364 1365 1366 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1364 def @error_message end |
#etag ⇒ String
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.
1376 1377 1378 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1376 def etag @etag end |
#job_id ⇒ String
Required. The user-specified id of the job.
Corresponds to the JSON property jobId
1381 1382 1383 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1381 def job_id @job_id end |
#labels ⇒ Hash<String,String>
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
1389 1390 1391 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1389 def labels @labels end |
#prediction_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionInput
Represents input parameters for a prediction job.
Corresponds to the JSON property predictionInput
1394 1395 1396 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1394 def prediction_input @prediction_input end |
#prediction_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput
Represents results of a prediction job.
Corresponds to the JSON property predictionOutput
1399 1400 1401 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1399 def prediction_output @prediction_output end |
#start_time ⇒ String
Output only. When the job processing was started.
Corresponds to the JSON property startTime
1404 1405 1406 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1404 def start_time @start_time end |
#state ⇒ String
Output only. The detailed state of a job.
Corresponds to the JSON property state
1409 1410 1411 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1409 def state @state end |
#training_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingInput
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.
Corresponds to the JSON property trainingInput
1418 1419 1420 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1418 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
1423 1424 1425 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1423 def training_output @training_output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 |
# File 'lib/google/apis/ml_v1/classes.rb', line 1430 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 |