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 provisining properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_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)


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

def accelerator_topology
  @accelerator_topology
end

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