Compute Engine v1 API - Class AcceleratorConfig (2.5.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
NameDescription
otherAcceleratorConfig

Properties

AcceleratorCount

public int AcceleratorCount { get; set; }

The number of the guest accelerator cards exposed to this instance.

Property Value
TypeDescription
Int32

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
TypeDescription
String

HasAcceleratorCount

public bool HasAcceleratorCount { get; }

Gets whether the "accelerator_count" field is set

Property Value
TypeDescription
Boolean

HasAcceleratorType

public bool HasAcceleratorType { get; }

Gets whether the "accelerator_type" field is set

Property Value
TypeDescription
Boolean