public sealed class UsageResourceAllowanceSpec.Types.Limit : IMessage<UsageResourceAllowanceSpec.Types.Limit>, IEquatable<UsageResourceAllowanceSpec.Types.Limit>, IDeepCloneable<UsageResourceAllowanceSpec.Types.Limit>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha API class UsageResourceAllowanceSpec.Types.Limit.
Required. Limit value of a UsageResourceAllowance within its one
duration.
Limit cannot be a negative value. Default is 0.
For example, you can set limit as 10000.0 with duration of the current
month by setting calendar_period field as monthly. That means in your
current month, 10000.0 is the core hour limitation that your resources
are allowed to consume.
[[["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-07 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eUsageResourceAllowanceSpec.Types.Limit\u003c/code\u003e class within the Batch v1alpha API, which is designed to define limitations on resource usage allowance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUsageResourceAllowanceSpec.Types.Limit\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for various object manipulations and comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a \u003ccode\u003eLimit_\u003c/code\u003e property that represents the maximum allowable value for resource usage within a specified duration and it cannot be negative with the default value of 0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCalendarPeriod\u003c/code\u003e property allows for specifying the time period (e.g., monthly) for the limit to apply, providing control over the duration of the usage allowance.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructor overloads, one default and one that takes an existing \u003ccode\u003eUsageResourceAllowanceSpec.Types.Limit\u003c/code\u003e instance, enabling both initial creation and copying of \u003ccode\u003eLimit\u003c/code\u003e objects.\u003c/p\u003e\n"]]],[],null,[]]