Class: Google::Apis::DataprocV1::JobStatus

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

Overview

Cloud Dataproc job status.

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

Returns a new instance of JobStatus.



1228
1229
1230
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1228

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

Instance Attribute Details

#detailsString

[Optional] Job state details, such as an error description if the state is ERROR. Corresponds to the JSON property details

Returns:

  • (String)


1221
1222
1223
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1221

def details
  @details
end

#stateString

[Required] A state message specifying the overall job state. Corresponds to the JSON property state

Returns:

  • (String)


1215
1216
1217
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1215

def state
  @state
end

#state_start_timeString

[Output-only] The time when this state was entered. Corresponds to the JSON property stateStartTime

Returns:

  • (String)


1226
1227
1228
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1226

def state_start_time
  @state_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1233
1234
1235
1236
1237
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1233

def update!(**args)
  @state = args[:state] if args.key?(:state)
  @details = args[:details] if args.key?(:details)
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
end