Class: Google::Apis::ComputeV1::MachineType::Accelerator

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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.



15113
15114
15115
# File 'generated/google/apis/compute_v1/classes.rb', line 15113

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)


15106
15107
15108
# File 'generated/google/apis/compute_v1/classes.rb', line 15106

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)


15111
15112
15113
# File 'generated/google/apis/compute_v1/classes.rb', line 15111

def guest_accelerator_type
  @guest_accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15118
15119
15120
15121
# File 'generated/google/apis/compute_v1/classes.rb', line 15118

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