Class: Google::Apis::WorkstationsV1beta::Accelerator

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb

Overview

An accelerator card attached to the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Accelerator

Returns a new instance of Accelerator.



40
41
42
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 40

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

Instance Attribute Details

#countFixnum

Optional. Number of accelerator cards exposed to the instance. Corresponds to the JSON property count

Returns:

  • (Fixnum)


32
33
34
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 32

def count
  @count
end

#typeString

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100". Corresponds to the JSON property type

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 38

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 45

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