- 1.39.0 (latest)
- 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
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.ReservationAdvancedDeploymentControlAdvanced 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.AllocationAggregateReservationReservation for aggregated resources, providing shape flexibility. This field is a member of oneof__aggregate_reservation. | 
| commitment | str[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. | 
| creation_timestamp | str[Output Only] Creation timestamp in RFC3339 text format. This field is a member of oneof__creation_timestamp. | 
| delete_after_duration | google.cloud.compute_v1.types.DurationDuration 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 | strAbsolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. This field is a member of oneof__delete_at_time. | 
| deployment_type | strSpecifies 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 | strAn optional description of this resource. Provide this property when you create the resource. This field is a member of oneof__description. | 
| enable_emergent_maintenance | boolIndicates 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] 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] Type of the resource. Always compute#reservations for reservations. This field is a member of oneof__kind. | 
| linked_commitments | MutableSequence[str][Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments. | 
| name | strThe name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. 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 ofoneof__name. | 
| reservation_sharing_policy | google.cloud.compute_v1.types.AllocationReservationSharingPolicySpecify 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_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] Status information for Reservation resource. This field is a member of oneof__resource_status. | 
| satisfies_pzs | bool[Output Only] Reserved for future use. This field is a member of oneof__satisfies_pzs. | 
| scheduling_type | strThe 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] Server-defined fully-qualified URL for this resource. This field is a member of oneof__self_link. | 
| share_settings | google.cloud.compute_v1.types.ShareSettingsSpecify 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.AllocationSpecificSKUReservationReservation for instances with specific machine shapes. This field is a member of oneof__specific_reservation. | 
| specific_reservation_required | boolIndicates 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] 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 | strZone 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
DeploymentType
DeploymentType(value)Specifies the deployment strategy for this reservation.
ResourcePoliciesEntry
ResourcePoliciesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description | 
| kwargs | dictKeys and values corresponding to the fields of the message. | 
| mapping | Union[dict, 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  | 
SchedulingType
SchedulingType(value)The type of maintenance for the reservation.
Status
Status(value)[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.