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 \u003ccode\u003eResourceCommitment\u003c/code\u003e class in the Google.Cloud.Compute.V1 API represents a commitment for a specific resource, which may comprise one or more resources.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers versions ranging from 1.0.0 to 3.6.0, with 3.6.0 being the latest release for the \u003ccode\u003eResourceCommitment\u003c/code\u003e class within the Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceCommitment\u003c/code\u003e class can be used to define the type and amount of a resource being committed, with supported types including VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements various interfaces such as IMessage, IEquatable, and IDeepCloneable to support functionality such as message handling, equality checks, and deep cloning of objects, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe properties of the \u003ccode\u003eResourceCommitment\u003c/code\u003e class include \u003ccode\u003eAcceleratorType\u003c/code\u003e (string), \u003ccode\u003eAmount\u003c/code\u003e (long), and \u003ccode\u003eType\u003c/code\u003e (string), allowing users to specify details about the resource commitment.\u003c/p\u003e\n"]]],[],null,[]]