Class: Google::Apis::DataprocV1::GkeNodePoolAcceleratorConfig

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

Overview

A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeNodePoolAcceleratorConfig

Returns a new instance of GkeNodePoolAcceleratorConfig.



1997
1998
1999
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1997

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

Instance Attribute Details

#accelerator_countFixnum

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

Returns:

  • (Fixnum)


1983
1984
1985
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1983

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

The accelerator type resource namename (see GPUs on Compute Engine). Corresponds to the JSON property acceleratorType

Returns:

  • (String)


1988
1989
1990
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1988

def accelerator_type
  @accelerator_type
end

#gpu_partition_sizeString

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/

partitioning).

Corresponds to the JSON property gpuPartitionSize

Returns:

  • (String)


1995
1996
1997
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1995

def gpu_partition_size
  @gpu_partition_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2002
2003
2004
2005
2006
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2002

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