Class: Google::Apis::NotebooksV1::SwitchRuntimeRequest
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::SwitchRuntimeRequest
- 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
-
#accelerator_config ⇒ Google::Apis::NotebooksV1::RuntimeAcceleratorConfig
Definition of the types of hardware accelerators that can be used.
-
#machine_type ⇒ String
machine type.
-
#request_id ⇒ String
Idempotent request UUID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SwitchRuntimeRequest
constructor
A new instance of SwitchRuntimeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SwitchRuntimeRequest
Returns a new instance of SwitchRuntimeRequest.
2889 2890 2891 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2889 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_config ⇒ Google::Apis::NotebooksV1::RuntimeAcceleratorConfig
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
2877 2878 2879 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2877 def accelerator_config @accelerator_config end |
#machine_type ⇒ String
machine type.
Corresponds to the JSON property machineType
2882 2883 2884 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2882 def machine_type @machine_type end |
#request_id ⇒ String
Idempotent request UUID.
Corresponds to the JSON property requestId
2887 2888 2889 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2887 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2894 2895 2896 2897 2898 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2894 def update!(**args) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @machine_type = args[:machine_type] if args.key?(:machine_type) @request_id = args[:request_id] if args.key?(:request_id) end |