Class: Google::Apis::TpuV2alpha1::Tpu
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::Tpu
- 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
-
#node_spec ⇒ Array<Google::Apis::TpuV2alpha1::NodeSpec>
The TPU node(s) being requested.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tpu
constructor
A new instance of Tpu.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tpu
Returns a new instance of Tpu.
1475 1476 1477 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#node_spec ⇒ Array<Google::Apis::TpuV2alpha1::NodeSpec>
The TPU node(s) being requested.
Corresponds to the JSON property nodeSpec
1473 1474 1475 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1473 def node_spec @node_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1480 1481 1482 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1480 def update!(**args) @node_spec = args[:node_spec] if args.key?(:node_spec) end |