Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_topologyString

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

Returns:

  • (String)


8436
8437
8438
# File 'lib/google/apis/compute_alpha/classes.rb', line 8436

def accelerator_topology
  @accelerator_topology
end

#schedulingGoogle::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