Class: Google::Apis::ComputeAlpha::InstancesSetMachineResourcesRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesSetMachineResourcesRequest

Returns a new instance of InstancesSetMachineResourcesRequest.



21357
21358
21359
# File 'lib/google/apis/compute_alpha/classes.rb', line 21357

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

Instance Attribute Details

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

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



21355
21356
21357
# File 'lib/google/apis/compute_alpha/classes.rb', line 21355

def guest_accelerators
  @guest_accelerators
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21362
21363
21364
# File 'lib/google/apis/compute_alpha/classes.rb', line 21362

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