Class: Google::Apis::ComputeAlpha::InstancesReportHostAsFaultyRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesReportHostAsFaultyRequest

Returns a new instance of InstancesReportHostAsFaultyRequest.



22762
22763
22764
# File 'lib/google/apis/compute_alpha/classes.rb', line 22762

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

Instance Attribute Details

#action_hintString

The action hint to report the host as faulty. Corresponds to the JSON property actionHint

Returns:

  • (String)


22755
22756
22757
# File 'lib/google/apis/compute_alpha/classes.rb', line 22755

def action_hint
  @action_hint
end

#fault_reasonsArray<Google::Apis::ComputeAlpha::InstancesReportHostAsFaultyRequestFaultReason>

Corresponds to the JSON property faultReasons



22760
22761
22762
# File 'lib/google/apis/compute_alpha/classes.rb', line 22760

def fault_reasons
  @fault_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22767
22768
22769
22770
# File 'lib/google/apis/compute_alpha/classes.rb', line 22767

def update!(**args)
  @action_hint = args[:action_hint] if args.key?(:action_hint)
  @fault_reasons = args[:fault_reasons] if args.key?(:fault_reasons)
end