Class: Google::Apis::ComputeAlpha::MachineType::Accelerator

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

Returns a new instance of Accelerator.



23953
23954
23955
# File 'lib/google/apis/compute_alpha/classes.rb', line 23953

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)


23946
23947
23948
# File 'lib/google/apis/compute_alpha/classes.rb', line 23946

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)


23951
23952
23953
# File 'lib/google/apis/compute_alpha/classes.rb', line 23951

def guest_accelerator_type
  @guest_accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23958
23959
23960
23961
# File 'lib/google/apis/compute_alpha/classes.rb', line 23958

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