Reference documentation and code samples for the Compute Engine v1 API enum Commitment.Types.Plan.
The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
[[["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\u003eThe latest version of the \u003ccode\u003eCommitment.Types.Plan\u003c/code\u003e in the Compute Engine v1 API is version 3.6.0, with a history of versions available from 1.0.0 onward.\u003c/p\u003e\n"],["\u003cp\u003eThis enum defines the commitment plan for purchasing resources, allowing selection of either a \u003ccode\u003eTWELVE_MONTH\u003c/code\u003e (1 year) or \u003ccode\u003eTHIRTY_SIX_MONTH\u003c/code\u003e (3 years) term.\u003c/p\u003e\n"],["\u003cp\u003eLonger commitment terms generally result in a higher discount rate, influencing the pricing of the committed resources.\u003c/p\u003e\n"],["\u003cp\u003eThere are 4 fields listed under the \u003ccode\u003eCommitment.Types.Plan\u003c/code\u003e enum; \u003ccode\u003eInvalid\u003c/code\u003e, \u003ccode\u003eThirtySixMonth\u003c/code\u003e, \u003ccode\u003eTwelveMonth\u003c/code\u003e, and \u003ccode\u003eUndefinedPlan\u003c/code\u003e, all contained within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],[],null,[]]