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 provisioning 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.
8443 8444 8445 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8443 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
8436 8437 8438 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8436 def accelerator_topology @accelerator_topology end |
#scheduling ⇒ Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling
Defines the instance scheduling options.
Corresponds to the JSON property scheduling
8441 8442 8443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8441 def scheduling @scheduling end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8448 8449 8450 8451 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8448 def update!(**args) @accelerator_topology = args[:accelerator_topology] if args.key?(:accelerator_topology) @scheduling = args[:scheduling] if args.key?(:scheduling) end |