Class: Google::Apis::ComputeBeta::MachineType::Accelerator

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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Accelerator

Returns a new instance of Accelerator.



16681
16682
16683
# File 'generated/google/apis/compute_beta/classes.rb', line 16681

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

Instance Attribute Details

#guest_accelerator_countFixnum

Number of accelerator cards exposed to the guest. Corresponds to the JSON property guestAcceleratorCount

Returns:

  • (Fixnum)


16674
16675
16676
# File 'generated/google/apis/compute_beta/classes.rb', line 16674

def guest_accelerator_count
  @guest_accelerator_count
end

#guest_accelerator_typeString

The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'. Corresponds to the JSON property guestAcceleratorType

Returns:

  • (String)


16679
16680
16681
# File 'generated/google/apis/compute_beta/classes.rb', line 16679

def guest_accelerator_type
  @guest_accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16686
16687
16688
16689
# File 'generated/google/apis/compute_beta/classes.rb', line 16686

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