Class ResourceAllowance (0.17.26)

ResourceAllowance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
usage_resource_allowance google.cloud.batch_v1alpha.types.UsageResourceAllowance
The detail of usage resource allowance. This field is a member of oneof_ resource_allowance.
name str
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
uid str
Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when the ResourceAllowance was created.
labels MutableMapping[str, str]
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.="">
notifications MutableSequence[google.cloud.batch_v1alpha.types.Notification]
Optional. Notification configurations.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.