0.22.5 (latest) 0.22.4 0.21.0 0.20.0 0.19.0 0.18.0 0.17.37 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.2 0.2.0 0.1.2

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

Spec of a usage ResourceAllowance.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `type_` | `str` Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking. |
| `limit` | `https://docs.cloud.google.com/python/docs/reference/batch/latest/google.cloud.batch_v1alpha.types.UsageResourceAllowanceSpec.Limit` Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type. |

## Classes

### Limit

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

UsageResourceAllowance limitation.

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