Class: Google::Apis::ComputeBeta::AcceleratorConfig

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

Overview

A specification of the type and number of accelerator cards attached to the instance.

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

Returns a new instance of AcceleratorConfig



41
42
43
# File 'generated/google/apis/compute_beta/classes.rb', line 41

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

Instance Attribute Details

#accelerator_countFixnum

The number of the guest accelerator cards exposed to this instance. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


33
34
35
# File 'generated/google/apis/compute_beta/classes.rb', line 33

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

Full or partial URL of the accelerator type resource to expose to this instance. Corresponds to the JSON property acceleratorType

Returns:

  • (String)


39
40
41
# File 'generated/google/apis/compute_beta/classes.rb', line 39

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'generated/google/apis/compute_beta/classes.rb', line 46

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