Class: Google::Apis::ContainerV1::GpuDirectConfig

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

Overview

GPUDirectConfig specifies the GPU direct strategy on the node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GpuDirectConfig

Returns a new instance of GpuDirectConfig.



4122
4123
4124
# File 'lib/google/apis/container_v1/classes.rb', line 4122

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

Instance Attribute Details

#gpu_direct_strategyString

The type of GPU direct strategy to enable on the node pool. Corresponds to the JSON property gpuDirectStrategy

Returns:

  • (String)


4120
4121
4122
# File 'lib/google/apis/container_v1/classes.rb', line 4120

def gpu_direct_strategy
  @gpu_direct_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4127
4128
4129
# File 'lib/google/apis/container_v1/classes.rb', line 4127

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