Batch v1alpha API - Class UsageResourceAllowanceSpec.Types.Limit (1.0.0-alpha26)

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.

UsageResourceAllowance limitation.

Inheritance

object > UsageResourceAllowanceSpec.Types.Limit

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

Limit()

public Limit()

Limit(Limit)

public Limit(UsageResourceAllowanceSpec.Types.Limit other)
Parameter
NameDescription
otherUsageResourceAllowanceSpecTypesLimit

Properties

CalendarPeriod

public CalendarPeriod CalendarPeriod { get; set; }

Optional. A CalendarPeriod represents the abstract concept of a time period that has a canonical start.

Property Value
TypeDescription
CalendarPeriod

DurationCase

public UsageResourceAllowanceSpec.Types.Limit.DurationOneofCase DurationCase { get; }
Property Value
TypeDescription
UsageResourceAllowanceSpecTypesLimitDurationOneofCase

HasCalendarPeriod

public bool HasCalendarPeriod { get; }

Gets whether the "calendar_period" field is set

Property Value
TypeDescription
bool

HasLimit_

public bool HasLimit_ { get; }

Gets whether the "limit" field is set

Property Value
TypeDescription
bool

Limit_

public double Limit_ { get; set; }

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.

Property Value
TypeDescription
double