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.



1379
1380
1381
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1379

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


1377
1378
1379
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1377

def worker_ids
  @worker_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1384
1385
1386
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1384

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