Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class AcceleratorConfig.
A specification of the type and number of accelerator cards attached to the instance.
Generated from protobuf message google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig
Namespace
Google \ Cloud \ CapacityPlanner \ V1beta \ Allocation \ SpecificSKUAllocation \ AllocatedInstancePropertiesMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
string
Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types. |
↳ count |
int
The number of the guest accelerator cards exposed to this instance. |
getType
Accelerator name.
See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
| Returns | |
|---|---|
| Type | Description |
string |
|
setType
Accelerator name.
See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCount
The number of the guest accelerator cards exposed to this instance.
| Returns | |
|---|---|
| Type | Description |
int |
|
setCount
The number of the guest accelerator cards exposed to this instance.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|