Class: Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/notebooks_v1/classes.rb,
generated/google/apis/notebooks_v1/representations.rb,
generated/google/apis/notebooks_v1/representations.rb
Overview
Request for setting instance accelerator.
Instance Attribute Summary collapse
-
#core_count ⇒ Fixnum
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetInstanceAcceleratorRequest
constructor
A new instance of SetInstanceAcceleratorRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SetInstanceAcceleratorRequest
Returns a new instance of SetInstanceAcceleratorRequest.
1176 1177 1178 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#core_count ⇒ Fixnum
Required. Count of cores of this accelerator. Note that not all combinations
of type
and core_count
are valid. Check GPUs on Compute Engine to find a valid combination.
TPUs are not supported.
Corresponds to the JSON property coreCount
1169 1170 1171 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1169 def core_count @core_count end |
#type ⇒ String
Required. Type of this accelerator.
Corresponds to the JSON property type
1174 1175 1176 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1174 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1181 1182 1183 1184 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1181 def update!(**args) @core_count = args[:core_count] if args.key?(:core_count) @type = args[:type] if args.key?(:type) end |