Class: Google::Apis::ComputeV1::InstancesSetMachineResourcesRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstancesSetMachineResourcesRequest

Returns a new instance of InstancesSetMachineResourcesRequest.



12410
12411
12412
# File 'generated/google/apis/compute_v1/classes.rb', line 12410

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

Instance Attribute Details

#guest_acceleratorsArray<Google::Apis::ComputeV1::AcceleratorConfig>

A list of the type and count of accelerator cards attached to the instance. Corresponds to the JSON property guestAccelerators



12408
12409
12410
# File 'generated/google/apis/compute_v1/classes.rb', line 12408

def guest_accelerators
  @guest_accelerators
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12415
12416
12417
# File 'generated/google/apis/compute_v1/classes.rb', line 12415

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