# Notebooks V2 API - Class Google::Cloud::Notebooks::V2::AcceleratorConfig (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::AcceleratorConfig.

An accelerator configuration for a VM instance
Definition of a hardware accelerator. Note that there is no check on `type`
and `core_count` combinations. TPUs are not supported.
See [GPUs on Compute
Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a
valid combination.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #core_count

    def core_count() -> ::Integer

**Returns**

- (::Integer) --- Optional. Count of cores of this accelerator.

### #core_count=

    def core_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Count of cores of this accelerator.
**Returns**

- (::Integer) --- Optional. Count of cores of this accelerator.

### #type

    def type() -> ::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType

**Returns**

- ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator.

### #type=

    def type=(value) -> ::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType

**Parameter**

- **value** ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator.
**Returns**

- ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator.