Reference documentation and code samples for the Compute Engine v1 API enum Commitment.Types.Type.
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eCommitment.Types.Type\u003c/code\u003e enum in the Google Cloud Compute Engine v1 API, detailing the different types of commitments available.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.6.0, with the earliest version available being 1.0.0, with a list of all available versions in between.\u003c/p\u003e\n"],["\u003cp\u003eThe enum \u003ccode\u003eCommitment.Types.Type\u003c/code\u003e includes fields like \u003ccode\u003eAcceleratorOptimized\u003c/code\u003e, \u003ccode\u003eMemoryOptimized\u003c/code\u003e, \u003ccode\u003eGeneralPurpose\u003c/code\u003e, and \u003ccode\u003eComputeOptimized\u003c/code\u003e, each associated with different types of resources.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides a wide array of fields for the Commitment type, including various optimized and general-purpose options such as \u003ccode\u003eComputeOptimizedC3\u003c/code\u003e, \u003ccode\u003eGeneralPurposeN2D\u003c/code\u003e, \u003ccode\u003eMemoryOptimizedM3\u003c/code\u003e, and many more.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUndefinedType\u003c/code\u003e field in the \u003ccode\u003eCommitment.Types.Type\u003c/code\u003e enum is designated to represent the state where an enum field has not been set.\u003c/p\u003e\n"]]],[],null,[]]