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

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) ⇒ InstancesSetMachineResourcesRequest

Returns a new instance of InstancesSetMachineResourcesRequest.



18417
18418
18419
# File 'lib/google/apis/compute_v1/classes.rb', line 18417

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



18415
18416
18417
# File 'lib/google/apis/compute_v1/classes.rb', line 18415

def guest_accelerators
  @guest_accelerators
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18422
18423
18424
# File 'lib/google/apis/compute_v1/classes.rb', line 18422

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