1.57.0 (latest) 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.1 1.19.2 1.18.0 1.17.0 1.16.1 1.15.0 1.14.1 1.13.0 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

```python
Reservation(mapping=None, *, ignore_unknown_fields=False, **kwargs)
```
Represents a reservation resource. A reservation ensures
that capacity is held in a specific zone even if the reserved
VMs are not running. For more information, read Reserving zonal
resources.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `advanced_deployment_control` | `google.cloud.compute_v1.types.ReservationAdvancedDeploymentControl` Advanced control for cluster management, applicable only to DENSE deployment type reservations. This field is a member of `oneof`_ `_advanced_deployment_control`. |
| `aggregate_reservation` | `google.cloud.compute_v1.types.AllocationAggregateReservation` Reservation for aggregated resources, providing shape flexibility. This field is a member of `oneof`_ `_aggregate_reservation`. |
| `commitment` | `str` Output only. \[Output Only\] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. This field is a member of `oneof`_ `_commitment`. |
| `confidential_compute_type` | `str` Check the ConfidentialComputeType enum for the list of possible values. This field is a member of `oneof`_ `_confidential_compute_type`. |
| `creation_timestamp` | `str` Output only. \[Output Only\] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ `_creation_timestamp`. |
| `delete_after_duration` | `google.cloud.compute_v1.types.Duration` Duration time relative to reservation creation when Compute Engine will automatically delete this resource. This field is a member of `oneof`_ `_delete_after_duration`. |
| `delete_at_time` | `str` Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format. This field is a member of `oneof`_ `_delete_at_time`. |
| `deployment_type` | `str` Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values. This field is a member of `oneof`_ `_deployment_type`. |
| `description` | `str` An optional description of this resource. Provide this property when you create the resource. This field is a member of `oneof`_ `_description`. |
| `early_access_maintenance` | `str` Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values. This field is a member of `oneof`_ `_early_access_maintenance`. |
| `enable_emergent_maintenance` | `bool` Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors. This field is a member of `oneof`_ `_enable_emergent_maintenance`. |
| `id` | `int` Output only. \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. This field is a member of `oneof`_ `_id`. |
| `kind` | `str` Output only. \[Output Only\] Type of the resource. Alwayscompute#reservations for reservations. This field is a member of `oneof`_ `_kind`. |
| `linked_commitments` | `MutableSequence[str]` Output only. \[Output Only\] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments. |
| `name` | `str` The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is a member of `oneof`_ `_name`. |
| `params` | `google.cloud.compute_v1.types.ReservationParams` Input only. Additional params passed with the request, but not persisted as part of resource payload. This field is a member of `oneof`_ `_params`. |
| `protection_tier` | `str` Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values. This field is a member of `oneof`_ `_protection_tier`. |
| `reservation_sharing_policy` | `google.cloud.compute_v1.types.AllocationReservationSharingPolicy` Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services. This field is a member of `oneof`_ `_reservation_sharing_policy`. |
| `resource_metadata` | `google.cloud.compute_v1.types.ResourceMetadata` Output only. \[Output Only\] Contains standard resource metadata for an Allocation resource. It is populated for each instance of the Allocation resource, and includes the api_version the instance was retrieved through, and its canonical resource_type name. This field is a member of `oneof`_ `_resource_metadata`. |
| `resource_policies` | `MutableMapping[str, str]` Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. |
| `resource_status` | `google.cloud.compute_v1.types.AllocationResourceStatus` Output only. \[Output Only\] Status information for Reservation resource. This field is a member of `oneof`_ `_resource_status`. |
| `satisfies_pzs` | `bool` Output only. \[Output Only\] Reserved for future use. This field is a member of `oneof`_ `_satisfies_pzs`. |
| `scheduling_type` | `str` The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values. This field is a member of `oneof`_ `_scheduling_type`. |
| `self_link` | `str` Output only. \[Output Only\] Server-defined fully-qualified URL for this resource. This field is a member of `oneof`_ `_self_link`. |
| `share_settings` | `google.cloud.compute_v1.types.ShareSettings` Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation. This field is a member of `oneof`_ `_share_settings`. |
| `specific_reservation` | `google.cloud.compute_v1.types.AllocationSpecificSKUReservation` Reservation for instances with specific machine shapes. This field is a member of `oneof`_ `_specific_reservation`. |
| `specific_reservation_required` | `bool` Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. This field is a member of `oneof`_ `_specific_reservation_required`. |
| `status` | `str` Output only. \[Output Only\] The status of the reservation. :: - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. Check the Status enum for the list of possible values. This field is a member of `oneof`_ `_status`. |
| `zone` | `str` Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. This field is a member of `oneof`_ `_zone`. |

## Classes

### ConfidentialComputeType

```python
ConfidentialComputeType(value)
```

### DeploymentType

```python
DeploymentType(value)
```
Specifies the deployment strategy for this reservation.

### EarlyAccessMaintenance

```python
EarlyAccessMaintenance(value)
```
Indicates the early access maintenance for the reservation. If this
field is absent or set to NO_EARLY_ACCESS, the reservation is not
enrolled in early access maintenance and the standard notice
applies.

### ProtectionTier

```python
ProtectionTier(value)
```
Protection tier for the workload which specifies the workload
expectations in the event of infrastructure failures at data
center (e.g. power and/or cooling failures).

### ResourcePoliciesEntry

```python
ResourcePoliciesEntry(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. |

### SchedulingType

```python
SchedulingType(value)
```
The type of maintenance for the reservation.

### Status

```python
Status(value)
```
Output only. \[Output Only\] The status of the reservation.

::

     - CREATING: Reservation resources are being
       allocated.
     - READY: Reservation resources have been allocated,
       and the reservation is ready for use.
     - DELETING: Reservation deletion is in progress.
     - UPDATING: Reservation update is in progress.