Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Instance provisining properties.
Instance Attribute Summary collapse
-
#accelerator_topology ⇒ String
Input only.
-
#scheduling ⇒ Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling
Defines the instance scheduling options.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceRequestInstanceProperties
constructor
A new instance of CapacityAdviceRequestInstanceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityAdviceRequestInstanceProperties
Returns a new instance of CapacityAdviceRequestInstanceProperties.
8461 8462 8463 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_topology ⇒ String
Input only. Specifies the topology required to create a partition for
VMs that have interconnected GPUs or TPUs.
Example values: 2x2 for ct5l-hightpu-4t.
Corresponds to the JSON property acceleratorTopology
8454 8455 8456 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8454 def accelerator_topology @accelerator_topology end |
#scheduling ⇒ Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling
Defines the instance scheduling options.
Corresponds to the JSON property scheduling
8459 8460 8461 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8459 def scheduling @scheduling end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8466 8467 8468 8469 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8466 def update!(**args) @accelerator_topology = args[:accelerator_topology] if args.key?(:accelerator_topology) @scheduling = args[:scheduling] if args.key?(:scheduling) end |