Class: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector

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

Overview

Hardware constraints configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2NodeSelector

Returns a new instance of GoogleCloudRunV2NodeSelector.



1512
1513
1514
# File 'lib/google/apis/run_v2/classes.rb', line 1512

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

Instance Attribute Details

#acceleratorString

Required. GPU accelerator type to attach to an instance. Corresponds to the JSON property accelerator

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/run_v2/classes.rb', line 1510

def accelerator
  @accelerator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1517
1518
1519
# File 'lib/google/apis/run_v2/classes.rb', line 1517

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