Class: Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest

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 setting instance accelerator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SetInstanceAcceleratorRequest

Returns a new instance of SetInstanceAcceleratorRequest.



2770
2771
2772
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2770

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

Instance Attribute Details

#core_countFixnum

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. See GPUs on Compute Engine to find a valid combination. TPUs are not supported. Corresponds to the JSON property coreCount

Returns:

  • (Fixnum)


2763
2764
2765
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2763

def core_count
  @core_count
end

#typeString

Required. Type of this accelerator. Corresponds to the JSON property type

Returns:

  • (String)


2768
2769
2770
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2768

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2775
2776
2777
2778
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2775

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