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, 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 \ CommitmentMethods
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_T2D
Value: 232477166
Generated from protobuf enum GENERAL_PURPOSE_T2D = 232477166;
GRAPHICS_OPTIMIZED
Value: 68500563
Generated from protobuf enum GRAPHICS_OPTIMIZED = 68500563;
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_16TB
Value: 183089120
Generated from protobuf enum MEMORY_OPTIMIZED_X4_16TB = 183089120;
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;
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;