Batch v1alpha API - Class UsageResourceAllowanceSpec (1.0.0-alpha26)

public sealed class UsageResourceAllowanceSpec : IMessage<UsageResourceAllowanceSpec>, IEquatable<UsageResourceAllowanceSpec>, IDeepCloneable<UsageResourceAllowanceSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1alpha API class UsageResourceAllowanceSpec.

Spec of a usage ResourceAllowance.

Inheritance

object > UsageResourceAllowanceSpec

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

UsageResourceAllowanceSpec()

public UsageResourceAllowanceSpec()

UsageResourceAllowanceSpec(UsageResourceAllowanceSpec)

public UsageResourceAllowanceSpec(UsageResourceAllowanceSpec other)
Parameter
NameDescription
otherUsageResourceAllowanceSpec

Properties

Limit

public UsageResourceAllowanceSpec.Types.Limit Limit { get; set; }

Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.

Property Value
TypeDescription
UsageResourceAllowanceSpecTypesLimit

Type

public string Type { get; set; }

Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.

Property Value
TypeDescription
string