Compute Engine v1 API - Class AcceleratorConfig (2.16.0)

public sealed class AcceleratorConfig : IMessage<AcceleratorConfig>, IEquatable<AcceleratorConfig>, IDeepCloneable<AcceleratorConfig>, IBufferMessage, IMessage

Reference 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.

Inheritance

object > AcceleratorConfig

Namespace

Google.Cloud.Compute.V1

Assembly

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