Class: Google::Apis::ComputeV1::FutureResourcesSpecAggregateResources

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureResourcesSpecAggregateResources

Returns a new instance of FutureResourcesSpecAggregateResources.



15678
15679
15680
# File 'lib/google/apis/compute_v1/classes.rb', line 15678

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

Instance Attribute Details

#accelerator_countFixnum

Size of the request, in accelerator (chip) count. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


15665
15666
15667
# File 'lib/google/apis/compute_v1/classes.rb', line 15665

def accelerator_count
  @accelerator_count
end

#vm_familyString

The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Corresponds to the JSON property vmFamily

Returns:

  • (String)


15671
15672
15673
# File 'lib/google/apis/compute_v1/classes.rb', line 15671

def vm_family
  @vm_family
end

#workload_typeString

Workload type. Use for TPU reservations. Corresponds to the JSON property workloadType

Returns:

  • (String)


15676
15677
15678
# File 'lib/google/apis/compute_v1/classes.rb', line 15676

def workload_type
  @workload_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15683
15684
15685
15686
15687
# File 'lib/google/apis/compute_v1/classes.rb', line 15683

def update!(**args)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
  @vm_family = args[:vm_family] if args.key?(:vm_family)
  @workload_type = args[:workload_type] if args.key?(:workload_type)
end