Batch v1alpha API - Class ResourceAllowance (1.0.0-alpha26)

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

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

The Resource Allowance description for Cloud Batch. Only one Resource Allowance is supported now under a specific location and project.

Inheritance

object > ResourceAllowance

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

ResourceAllowance()

public ResourceAllowance()

ResourceAllowance(ResourceAllowance)

public ResourceAllowance(ResourceAllowance other)
Parameter
NameDescription
otherResourceAllowance

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time when the ResourceAllowance was created.

Property Value
TypeDescription
Timestamp

Labels

public MapField<string, string> Labels { get; }

Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

Both keys and values are additionally constrained to be <= 128 bytes.

Property Value
TypeDescription
MapFieldstringstring

Name

public string Name { get; set; }

Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".

Property Value
TypeDescription
string

Notifications

public RepeatedField<Notification> Notifications { get; }

Optional. Notification configurations.

Property Value
TypeDescription
RepeatedFieldNotification

ResourceAllowanceCase

public ResourceAllowance.ResourceAllowanceOneofCase ResourceAllowanceCase { get; }
Property Value
TypeDescription
ResourceAllowanceResourceAllowanceOneofCase

ResourceAllowanceName

public ResourceAllowanceName ResourceAllowanceName { get; set; }

ResourceAllowanceName-typed view over the Name resource name property.

Property Value
TypeDescription
ResourceAllowanceName

Uid

public string Uid { get; set; }

Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.

Property Value
TypeDescription
string

UsageResourceAllowance

public UsageResourceAllowance UsageResourceAllowance { get; set; }

The detail of usage resource allowance.

Property Value
TypeDescription
UsageResourceAllowance