Class: Google::Apis::ComputeAlpha::ResourcePolicyWorkloadPolicy

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

Represents the workload policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcePolicyWorkloadPolicy

Returns a new instance of ResourcePolicyWorkloadPolicy.



52649
52650
52651
# File 'lib/google/apis/compute_alpha/classes.rb', line 52649

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accelerator_topologyString

Specifies the topology required to create a partition for VMs that have interconnected GPUs. Corresponds to the JSON property acceleratorTopology

Returns:

  • (String)


52637
52638
52639
# File 'lib/google/apis/compute_alpha/classes.rb', line 52637

def accelerator_topology
  @accelerator_topology
end

#max_topology_distanceString

Specifies the maximum distance between instances. Corresponds to the JSON property maxTopologyDistance

Returns:

  • (String)


52642
52643
52644
# File 'lib/google/apis/compute_alpha/classes.rb', line 52642

def max_topology_distance
  @max_topology_distance
end

#typeString

Specifies the intent of the instance placement in the MIG. Corresponds to the JSON property type

Returns:

  • (String)


52647
52648
52649
# File 'lib/google/apis/compute_alpha/classes.rb', line 52647

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52654
52655
52656
52657
52658
# File 'lib/google/apis/compute_alpha/classes.rb', line 52654

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