Class: Google::Apis::TpuV2alpha1::SimulateMaintenanceEventRequest

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

Overview

Request for SimulateMaintenanceEvent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SimulateMaintenanceEventRequest

Returns a new instance of SimulateMaintenanceEventRequest.



1585
1586
1587
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1585

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

Instance Attribute Details

#worker_idsArray<String>

The 0-based worker ID. If it is empty, worker ID 0 will be selected for maintenance event simulation. A maintenance event will only be fired on the first specified worker ID. Future implementations may support firing on multiple workers. Corresponds to the JSON property workerIds

Returns:

  • (Array<String>)


1583
1584
1585
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1583

def worker_ids
  @worker_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1590
1591
1592
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1590

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