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.



22271
22272
22273
# File 'lib/google/apis/compute_alpha/classes.rb', line 22271

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)


22264
22265
22266
# File 'lib/google/apis/compute_alpha/classes.rb', line 22264

def action_hint
  @action_hint
end

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

Corresponds to the JSON property faultReasons



22269
22270
22271
# File 'lib/google/apis/compute_alpha/classes.rb', line 22269

def fault_reasons
  @fault_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22276
22277
22278
22279
# File 'lib/google/apis/compute_alpha/classes.rb', line 22276

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