Class: Google::Apis::ContainerV1::AcceleratorConfig

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

AcceleratorConfig represents a Hardware Accelerator request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceleratorConfig

Returns a new instance of AcceleratorConfig.



47
48
49
# File 'lib/google/apis/container_v1/classes.rb', line 47

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

Instance Attribute Details

#accelerator_countFixnum

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

Returns:

  • (Fixnum)


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

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

The accelerator type resource name. List of supported accelerators here Corresponds to the JSON property acceleratorType

Returns:

  • (String)


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

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. Corresponds to the JSON property gpuPartitionSize

Returns:

  • (String)


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

def gpu_partition_size
  @gpu_partition_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52
53
54
55
56
# File 'lib/google/apis/container_v1/classes.rb', line 52

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