Class: Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesSetMachineResourcesRequest

Returns a new instance of InstancesSetMachineResourcesRequest.



15351
15352
15353
# File 'generated/google/apis/compute_beta/classes.rb', line 15351

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

Instance Attribute Details

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

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



15349
15350
15351
# File 'generated/google/apis/compute_beta/classes.rb', line 15349

def guest_accelerators
  @guest_accelerators
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15356
15357
15358
# File 'generated/google/apis/compute_beta/classes.rb', line 15356

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