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

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
Name Description
other UsageResourceAllowanceSpecTypesLimit

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
Type Description
CalendarPeriod

DurationCase

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

HasCalendarPeriod

public bool HasCalendarPeriod { get; }

Gets whether the "calendar_period" field is set

Property Value
Type Description
bool

HasLimit_

public bool HasLimit_ { get; }

Gets whether the "limit" field is set

Property Value
Type Description
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
Type Description
double