Class: Google::Apis::DataprocV1::ClusterStatus

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

The status of a cluster and its instances.

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

Returns a new instance of ClusterStatus



633
634
635
# File 'generated/google/apis/dataproc_v1/classes.rb', line 633

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

Instance Attribute Details

#detailString

Output-only. Optional details of cluster's state. Corresponds to the JSON property detail

Returns:

  • (String)


626
627
628
# File 'generated/google/apis/dataproc_v1/classes.rb', line 626

def detail
  @detail
end

#stateString

Output-only. The cluster's state. Corresponds to the JSON property state

Returns:

  • (String)


631
632
633
# File 'generated/google/apis/dataproc_v1/classes.rb', line 631

def state
  @state
end

#state_start_timeString

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

Returns:

  • (String)


621
622
623
# File 'generated/google/apis/dataproc_v1/classes.rb', line 621

def state_start_time
  @state_start_time
end

#substateString

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

Returns:

  • (String)


616
617
618
# File 'generated/google/apis/dataproc_v1/classes.rb', line 616

def substate
  @substate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



638
639
640
641
642
643
# File 'generated/google/apis/dataproc_v1/classes.rb', line 638

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