class Google::Apis::ContainerV1beta1::AcceleratorConfig
AcceleratorConfig
represents a Hardware Accelerator request.
Attributes
accelerator_count[RW]
The number of the accelerator cards exposed to an instance. Corresponds to the JSON property `acceleratorCount` @return [Fixnum]
accelerator_type[RW]
The accelerator type resource name. List of supported accelerators [here]( cloud.google.com/compute/docs/gpus) Corresponds to the JSON property `acceleratorType` @return [String]
gpu_partition_size[RW]
Size of partitions to create on the GPU. Valid values are described in the NVIDIA [mig user guide](docs.nvidia.com/datacenter/tesla/mig-user- guide/#partitioning). Corresponds to the JSON property `gpuPartitionSize` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/container_v1beta1/classes.rb, line 47 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/container_v1beta1/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