1.0.0-alpha36 (latest) 1.0.0-alpha35

    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](https://learn.microsoft.com/dotnet/api/system.object) \> ResourceAllowance

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceAllowance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.ResourceAllowance.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceAllowance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.ResourceAllowance.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourceAllowance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.ResourceAllowance.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### ResourceAllowance()

    public ResourceAllowance()

### ResourceAllowance(ResourceAllowance)

    public ResourceAllowance(ResourceAllowance other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ResourceAllowance` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time when the ResourceAllowance was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Notifications

    public RepeatedField<Notification> Notifications { get; }

Optional. Notification configurations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldNotification` |   |

### ResourceAllowanceCase

    public ResourceAllowance.ResourceAllowanceOneofCase ResourceAllowanceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceAllowanceResourceAllowanceOneofCase` |   |

### ResourceAllowanceName

    public ResourceAllowanceName ResourceAllowanceName { get; set; }

[ResourceAllowanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.ResourceAllowanceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.ResourceAllowance.md.txt#Google_Cloud_Batch_V1Alpha_ResourceAllowance_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceAllowanceName` |   |

### Uid

    public string Uid { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UsageResourceAllowance

    public UsageResourceAllowance UsageResourceAllowance { get; set; }

The detail of usage resource allowance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `UsageResourceAllowance` |   |