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.



31865
31866
31867
# File 'lib/google/apis/compute_alpha/classes.rb', line 31865

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)


31853
31854
31855
# File 'lib/google/apis/compute_alpha/classes.rb', line 31853

def action_hint
  @action_hint
end

#disruption_scheduleString

The disruption schedule for the VM. Required field, only allows IMMEDIATE. Corresponds to the JSON property disruptionSchedule

Returns:

  • (String)


31858
31859
31860
# File 'lib/google/apis/compute_alpha/classes.rb', line 31858

def disruption_schedule
  @disruption_schedule
end

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

Corresponds to the JSON property faultReasons



31863
31864
31865
# File 'lib/google/apis/compute_alpha/classes.rb', line 31863

def fault_reasons
  @fault_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31870
31871
31872
31873
31874
# File 'lib/google/apis/compute_alpha/classes.rb', line 31870

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