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.



8460
8461
8462
# File 'lib/google/apis/compute_alpha/classes.rb', line 8460

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)


8453
8454
8455
# File 'lib/google/apis/compute_alpha/classes.rb', line 8453

def accelerator_topology
  @accelerator_topology
end

#schedulingGoogle::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling

Defines the instance scheduling options. Corresponds to the JSON property scheduling



8458
8459
8460
# File 'lib/google/apis/compute_alpha/classes.rb', line 8458

def scheduling
  @scheduling
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8465
8466
8467
8468
# File 'lib/google/apis/compute_alpha/classes.rb', line 8465

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