NAME
Google::Cloud::Batch::V1alpha::ResourceAllowance - Compiled Protocol Buffers messages for google/cloud/batch/v1alpha/resource_allowance.proto
SYNOPSIS
use Google::Cloud::Batch::V1alpha::ResourceAllowance;
my $msg = Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance->new({
usage_resource_allowance => $usage_resource_allowance,
name => $name,
uid => $uid,
create_time => $create_time,
});
# Read or update a field
my $val = $msg->usage_resource_allowance();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/batch/v1alpha/resource_allowance.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance
The Resource Allowance description for Cloud Batch. Only one Resource Allowance is supported now under a specific location and project.
Inherits from Protobuf::Message.
Accessors
$msg->usage_resource_allowance()/$msg->usage_resource_allowance($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowance)The detail of usage resource allowance.
$msg->name()/$msg->name($value)Type:
StringIdentifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
$msg->uid()/$msg->uid($value)Type:
StringOutput only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the ResourceAllowance was created.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance::LabelsEntry)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.
$msg->notifications()/$msg->notifications($value)Type:
Message(Google::Cloud::Batch::V1alpha::Notification::Notification)Optional. Notification configurations.
Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowance
UsageResourceAllowance describes the detail of usage resource allowance.
Inherits from Protobuf::Message.
Accessors
$msg->spec()/$msg->spec($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec)Required. Spec of a usage ResourceAllowance.
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus)Output only. Status of a usage ResourceAllowance.
Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec
Spec of a usage ResourceAllowance.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
StringRequired. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.
$msg->limit()/$msg->limit($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec::Limit)Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.
Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus
Status of a usage ResourceAllowance.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Batch::V1alpha::ResourceAllowanceState)Output only. ResourceAllowance state.
$msg->limit_status()/$msg->limit_status($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::LimitStatus)Output only. ResourceAllowance consumption status for usage resources.
$msg->report()/$msg->report($value)Type:
Message(Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport)Output only. The report of ResourceAllowance consumptions in a time period.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Batch::V1alpha::ResourceAllowance::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.