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.
Implements
IMessageResourceAllowance, IEquatableResourceAllowance, IDeepCloneableResourceAllowance, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1AlphaAssembly
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-typed view over the 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 |