Class: Google::Apis::NotebooksV2::GpuDriverConfig
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::GpuDriverConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
A GPU driver configuration
Instance Attribute Summary collapse
-
#custom_gpu_driver_path ⇒ String
Optional.
-
#enable_gpu_driver ⇒ Boolean
(also: #enable_gpu_driver?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GpuDriverConfig
constructor
A new instance of GpuDriverConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GpuDriverConfig
Returns a new instance of GpuDriverConfig.
594 595 596 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_gpu_driver_path ⇒ String
Optional. Specify a custom Cloud Storage path where the GPU driver is stored.
If not specified, we'll automatically choose from official GPU drivers.
Corresponds to the JSON property customGpuDriverPath
584 585 586 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 584 def custom_gpu_driver_path @custom_gpu_driver_path end |
#enable_gpu_driver ⇒ Boolean Also known as: enable_gpu_driver?
Optional. Whether the end user authorizes Google Cloud to install GPU driver
on this VM instance. If this field is empty or set to false, the GPU driver
won't be installed. Only applicable to instances with GPUs.
Corresponds to the JSON property enableGpuDriver
591 592 593 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 591 def enable_gpu_driver @enable_gpu_driver end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
599 600 601 602 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 599 def update!(**args) @custom_gpu_driver_path = args[:custom_gpu_driver_path] if args.key?(:custom_gpu_driver_path) @enable_gpu_driver = args[:enable_gpu_driver] if args.key?(:enable_gpu_driver) end |