Class: Google::Apis::TpuV2::Tpu

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

Overview

Details of the TPU resource(s) being requested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tpu

Returns a new instance of Tpu.



1574
1575
1576
# File 'lib/google/apis/tpu_v2/classes.rb', line 1574

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

Instance Attribute Details

#node_specArray<Google::Apis::TpuV2::NodeSpec>

Optional. The TPU node(s) being requested. Corresponds to the JSON property nodeSpec

Returns:



1572
1573
1574
# File 'lib/google/apis/tpu_v2/classes.rb', line 1572

def node_spec
  @node_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1579
1580
1581
# File 'lib/google/apis/tpu_v2/classes.rb', line 1579

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