Class: Google::Apis::NotebooksV1::SwitchRuntimeRequest

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

Overview

Request for switching a Managed Notebook Runtime.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SwitchRuntimeRequest

Returns a new instance of SwitchRuntimeRequest.



2353
2354
2355
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2353

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

Instance Attribute Details

#accelerator_configGoogle::Apis::NotebooksV1::RuntimeAcceleratorConfig

Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See Compute Engine AcceleratorTypes. Examples: * nvidia-tesla-k80 * nvidia-tesla-p100 * nvidia-tesla-v100 * nvidia-tesla-p4 * nvidia-tesla-t4 * nvidia-tesla- a100 Corresponds to the JSON property acceleratorConfig



2346
2347
2348
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2346

def accelerator_config
  @accelerator_config
end

#machine_typeString

machine type. Corresponds to the JSON property machineType

Returns:

  • (String)


2351
2352
2353
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2351

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2358
2359
2360
2361
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2358

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