Class: Google::Apis::TpuV2alpha1::Tpu

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

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.



1526
1527
1528
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1526

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

Instance Attribute Details

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

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



1524
1525
1526
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1524

def node_spec
  @node_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1531
1532
1533
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1531

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