# Class AllocationAggregateReservation (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

This reservation type is specified by total resource amounts
(e.g. total count of CPUs) and can account for multiple instance
SKUs. In other words, one can create instances of varying shapes
against this reservation.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `host_count` | `int` Count of reserved hosts of specified VM family. The host has fixed number of accelerators based on the accelerator/vm-family selected. This field is a member of `oneof`_ `_host_count`. |
| `in_use_host_count` | `int` Output only. Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. This field is a member of `oneof`_ `_in_use_host_count`. |
| `in_use_instance_count` | `int` Output only. Number of instances currently in use in this reservation. This field is a member of `oneof`_ `_in_use_instance_count`. |
| `in_use_resources` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.AllocationAggregateReservationReservedResourceInfo]` Output only. \[Output only\] List of resources currently in use. |
| `reserved_resources` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.AllocationAggregateReservationReservedResourceInfo]` List of reserved resources (CPUs, memory, accelerators). |
| `vm_family` | `str` The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values. This field is a member of `oneof`_ `_vm_family`. |
| `workload_type` | `str` The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values. This field is a member of `oneof`_ `_workload_type`. |

## Classes

### VmFamily

    VmFamily(value)

The VM family that all instances scheduled against this
reservation must belong to.

### WorkloadType

    WorkloadType(value)

The workload type of the instances that will target this
reservation.