public sealed class ResourceCommitment : IMessage<ResourceCommitment>, IEquatable<ResourceCommitment>, IDeepCloneable<ResourceCommitment>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ResourceCommitment.
Commitment for a particular resource (a Commitment is composed of one or more of these).
The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
Check the Type enum for the list of possible values.
[[["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 webpage provides reference documentation for the \u003ccode\u003eResourceCommitment\u003c/code\u003e class within the Google Cloud Compute Engine v1 API, specifically focusing on version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003eIt details the \u003ccode\u003eResourceCommitment\u003c/code\u003e class, which represents a commitment for a particular resource and is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace in the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the class's inheritance, the interfaces it implements, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, as well as the constructors and properties it exposes, such as \u003ccode\u003eAcceleratorType\u003c/code\u003e, \u003ccode\u003eAmount\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also provides a history of the documentation, going back to version 1.0.0 all the way to the most recent version of 3.6.0, showing the updates over time.\u003c/p\u003e\n"],["\u003cp\u003eThe information also shows how the properties contain both the getter and setter methods, as well as providing the data type of each property, making it easy to reference.\u003c/p\u003e\n"]]],[],null,[]]