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

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

Overview

Dataproc job status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobStatus

Returns a new instance of JobStatus.



2180
2181
2182
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2180

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

Instance Attribute Details

#detailsString

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

Returns:

  • (String)


2162
2163
2164
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2162

def details
  @details
end

#stateString

Output only. A state message specifying the overall job state. Corresponds to the JSON property state

Returns:

  • (String)


2167
2168
2169
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2167

def state
  @state
end

#state_start_timeString

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

Returns:

  • (String)


2172
2173
2174
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2172

def state_start_time
  @state_start_time
end

#substateString

Output only. Additional state information, which includes status reported by the agent. Corresponds to the JSON property substate

Returns:

  • (String)


2178
2179
2180
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2178

def substate
  @substate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2185
2186
2187
2188
2189
2190
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2185

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