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



748
749
750
# File 'generated/google/apis/dataproc_v1/classes.rb', line 748

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

Instance Attribute Details

#detailsString

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

Returns:

  • (String)


741
742
743
# File 'generated/google/apis/dataproc_v1/classes.rb', line 741

def details
  @details
end

#stateString

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

Returns:

  • (String)


746
747
748
# File 'generated/google/apis/dataproc_v1/classes.rb', line 746

def state
  @state
end

#state_start_timeString

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

Returns:

  • (String)


735
736
737
# File 'generated/google/apis/dataproc_v1/classes.rb', line 735

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)


730
731
732
# File 'generated/google/apis/dataproc_v1/classes.rb', line 730

def substate
  @substate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



753
754
755
756
757
758
# File 'generated/google/apis/dataproc_v1/classes.rb', line 753

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