class Google::Apis::TpuV2alpha1::AcceleratorType

A accelerator type that a Node can be configured with.

Attributes

name[RW]

The resource name. Corresponds to the JSON property ‘name` @return [String]

type[RW]

the accelerator type. Corresponds to the JSON property ‘type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tpu_v2alpha1/classes.rb, line 39
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tpu_v2alpha1/classes.rb, line 44
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end