public sealed class AcceleratorConfig : IMessage<AcceleratorConfig>, IEquatable<AcceleratorConfig>, IDeepCloneable<AcceleratorConfig>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class AcceleratorConfig.
A specification of the type and number of accelerator cards attached to the instance.
Implements
IMessageAcceleratorConfig, IEquatableAcceleratorConfig, IDeepCloneableAcceleratorConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
AcceleratorConfig()
public AcceleratorConfig()AcceleratorConfig(AcceleratorConfig)
public AcceleratorConfig(AcceleratorConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AcceleratorConfig |
Properties
AcceleratorCount
public int AcceleratorCount { get; set; }The number of the guest accelerator cards exposed to this instance.
| Property Value | |
|---|---|
| Type | Description |
int |
|
AcceleratorType
public string AcceleratorType { get; set; }Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasAcceleratorCount
public bool HasAcceleratorCount { get; }Gets whether the "accelerator_count" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasAcceleratorType
public bool HasAcceleratorType { get; }Gets whether the "accelerator_type" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|