# Compute V1 Client - Class Type (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class Type.

The type of commitment; specifies the
machine series for which you want to commit to purchasing resources.

The choice of machine series affects the discount rate and the eligible
resource types.
The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
example, type MEMORY_OPTIMIZED specifies a commitment that
applies only to eligible resources of memory optimized M1 and M2 machine
series. Type GENERAL_PURPOSE specifies a commitment that
applies only to eligible resources of general purpose N1 machine series.

Protobuf type `google.cloud.compute.v1.Commitment.Type`

## Namespace

Google \\ Cloud \\ Compute \\ V1 \\ Commitment

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### UNDEFINED_TYPE

    Value: 0

A value indicating that the enum field is not set.

Generated from protobuf enum `UNDEFINED_TYPE = 0;`

### ACCELERATOR_OPTIMIZED

    Value: 280848403

Generated from protobuf enum `ACCELERATOR_OPTIMIZED = 280848403;`

### ACCELERATOR_OPTIMIZED_A3

    Value: 158574526

Generated from protobuf enum `ACCELERATOR_OPTIMIZED_A3 = 158574526;`

### ACCELERATOR_OPTIMIZED_A3_MEGA

    Value: 156517459

Generated from protobuf enum `ACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;`

### ACCELERATOR_OPTIMIZED_A3_ULTRA

    Value: 27812811

Generated from protobuf enum `ACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;`

### ACCELERATOR_OPTIMIZED_A4

    Value: 158574527

Generated from protobuf enum `ACCELERATOR_OPTIMIZED_A4 = 158574527;`

### COMPUTE_OPTIMIZED

    Value: 158349023

Generated from protobuf enum `COMPUTE_OPTIMIZED = 158349023;`

### COMPUTE_OPTIMIZED_C2D

    Value: 383246453

Generated from protobuf enum `COMPUTE_OPTIMIZED_C2D = 383246453;`

### COMPUTE_OPTIMIZED_C3

    Value: 428004784

Generated from protobuf enum `COMPUTE_OPTIMIZED_C3 = 428004784;`

### COMPUTE_OPTIMIZED_C3D

    Value: 383246484

Generated from protobuf enum `COMPUTE_OPTIMIZED_C3D = 383246484;`

### COMPUTE_OPTIMIZED_H3

    Value: 428004939

Generated from protobuf enum `COMPUTE_OPTIMIZED_H3 = 428004939;`

### COMPUTE_OPTIMIZED_H4D

    Value: 383251320

Generated from protobuf enum `COMPUTE_OPTIMIZED_H4D = 383251320;`

### GENERAL_PURPOSE

    Value: 299793543

Generated from protobuf enum `GENERAL_PURPOSE = 299793543;`

### GENERAL_PURPOSE_C4

    Value: 301911817

Generated from protobuf enum `GENERAL_PURPOSE_C4 = 301911817;`

### GENERAL_PURPOSE_C4A

    Value: 232460888

Generated from protobuf enum `GENERAL_PURPOSE_C4A = 232460888;`

### GENERAL_PURPOSE_C4D

    Value: 232460891

Generated from protobuf enum `GENERAL_PURPOSE_C4D = 232460891;`

### GENERAL_PURPOSE_E2

    Value: 301911877

Generated from protobuf enum `GENERAL_PURPOSE_E2 = 301911877;`

### GENERAL_PURPOSE_N2

    Value: 301912156

Generated from protobuf enum `GENERAL_PURPOSE_N2 = 301912156;`

### GENERAL_PURPOSE_N2D

    Value: 232471400

Generated from protobuf enum `GENERAL_PURPOSE_N2D = 232471400;`

### GENERAL_PURPOSE_N4

    Value: 301912158

Generated from protobuf enum `GENERAL_PURPOSE_N4 = 301912158;`

### GENERAL_PURPOSE_N4A

    Value: 232471459

Generated from protobuf enum `GENERAL_PURPOSE_N4A = 232471459;`

### GENERAL_PURPOSE_N4D

    Value: 232471462

Generated from protobuf enum `GENERAL_PURPOSE_N4D = 232471462;`

### GENERAL_PURPOSE_T2D

    Value: 232477166

Generated from protobuf enum `GENERAL_PURPOSE_T2D = 232477166;`

### GRAPHICS_OPTIMIZED

    Value: 68500563

Generated from protobuf enum `GRAPHICS_OPTIMIZED = 68500563;`

### GRAPHICS_OPTIMIZED_G4

    Value: 54029369

Generated from protobuf enum `GRAPHICS_OPTIMIZED_G4 = 54029369;`

### GRAPHICS_OPTIMIZED_G4_VGPU

    Value: 298988732

Generated from protobuf enum `GRAPHICS_OPTIMIZED_G4_VGPU = 298988732;`

### MEMORY_OPTIMIZED

    Value: 281753417

Generated from protobuf enum `MEMORY_OPTIMIZED = 281753417;`

### MEMORY_OPTIMIZED_M3

    Value: 276301372

Generated from protobuf enum `MEMORY_OPTIMIZED_M3 = 276301372;`

### MEMORY_OPTIMIZED_M4

    Value: 276301373

Generated from protobuf enum `MEMORY_OPTIMIZED_M4 = 276301373;`

### MEMORY_OPTIMIZED_M4_6TB

    Value: 210543650

Generated from protobuf enum `MEMORY_OPTIMIZED_M4_6TB = 210543650;`

### MEMORY_OPTIMIZED_X4_1440_24T

    Value: 206669823

CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_1440_24T = 206669823;`

### MEMORY_OPTIMIZED_X4_16TB

    Value: 183089120

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_16TB = 183089120;`

### MEMORY_OPTIMIZED_X4_1920_32T

    Value: 291963529

CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_1920_32T = 291963529;`

### MEMORY_OPTIMIZED_X4_24TB

    Value: 183116989

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_24TB = 183116989;`

### MEMORY_OPTIMIZED_X4_32TB

    Value: 183144858

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_32TB = 183144858;`

### MEMORY_OPTIMIZED_X4_480_6T

    Value: 478547742

CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_480_6T = 478547742;`

### MEMORY_OPTIMIZED_X4_480_8T

    Value: 478547804

CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_480_8T = 478547804;`

### MEMORY_OPTIMIZED_X4_960_12T

    Value: 424752410

CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_960_12T = 424752410;`

### MEMORY_OPTIMIZED_X4_960_16T

    Value: 424752534

CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.

Generated from protobuf enum `MEMORY_OPTIMIZED_X4_960_16T = 424752534;`

### STORAGE_OPTIMIZED_Z3

    Value: 316796085

Generated from protobuf enum `STORAGE_OPTIMIZED_Z3 = 316796085;`

### TYPE_UNSPECIFIED

    Value: 437714322

Note for internal users: When adding a new enum Type for v1, make sure
to also add it in the comment for the `optional Type type` definition.

This ensures that the public documentation displays the new enum Type.

Generated from protobuf enum `TYPE_UNSPECIFIED = 437714322;`