# Compute V1 Client - Class FutureReservation (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.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.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class FutureReservation.

Generated from protobuf message `google.cloud.compute.v1.FutureReservation`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ aggregate_reservation` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.AllocationAggregateReservation` Aggregate reservation details for the future reservation. |
| `↳ auto_created_reservations_delete_time` | `string` Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. Format of this field must be a valid href="[https://www.ietf.org/rfc/rfc3339.txt"\>RFC3339](https://www.ietf.org/rfc/rfc3339.txt">RFC3339) value. |
| `↳ auto_created_reservations_duration` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` Specifies the duration of auto-created reservations. It represents relative time to future reservation start_time when auto-created reservations will be automatically deleted by Compute Engine. Duration time unit is represented as a count of seconds and fractions of seconds at nanosecond resolution. |
| `↳ auto_delete_auto_created_reservations` | `bool` Setting for enabling or disabling automatic deletion for auto-created reservation. If set to true, auto-created reservations will be deleted at Future Reservation's end time (default) or at user's defined timestamp if any of the \[auto_created_reservations_delete_time, auto_created_reservations_duration\] values is specified. For keeping auto-created reservation indefinitely, this value should be set to false. |
| `↳ commitment_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationCommitmentInfo` If not present, then FR will not deliver a new commitment or update an existing commitment. |
| `↳ confidential_compute_type` | `string` Check the ConfidentialComputeType enum for the list of possible values. |
| `↳ creation_timestamp` | `string` Output only. \[Output Only\] The creation timestamp for this future reservation inRFC3339 text format. |
| `↳ deployment_type` | `string` Type of the deployment requested as part of future reservation. Check the DeploymentType enum for the list of possible values. |
| `↳ description` | `string` An optional description of this resource. Provide this property when you create the future reservation. |
| `↳ enable_emergent_maintenance` | `bool` Indicates if this group of VMs have emergent maintenance enabled. |
| `↳ id` | `int|string` Output only. \[Output Only\] A unique identifier for this future reservation. The server defines this identifier. |
| `↳ kind` | `string` Output only. \[Output Only\] Type of the resource. Alwayscompute#futureReservation for future reservations. |
| `↳ name` | `string` 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. |
| `↳ name_prefix` | `string` Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. |
| `↳ params` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationParams` Input only. Additional params passed with the request, but not persisted as part of resource payload. |
| `↳ planning_status` | `string` Planning state before being submitted for evaluation Check the PlanningStatus enum for the list of possible values. |
| `↳ reservation_mode` | `string` The reservation mode which determines reservation-termination behavior and expected pricing. Check the ReservationMode enum for the list of possible values. |
| `↳ reservation_name` | `string` Name of reservations where the capacity is provisioned at the time of delivery of future reservations. If the reservation with the given name does not exist already, it is created automatically at the time of Approval with INACTIVE state till specified start-time. Either provide the reservation_name or a name_prefix. |
| `↳ scheduling_type` | `string` Maintenance information for this reservation Check the SchedulingType enum for the list of possible values. |
| `↳ self_link` | `string` Output only. \[Output Only\] Server-defined fully-qualified URL for this resource. |
| `↳ self_link_with_id` | `string` Output only. \[Output Only\] Server-defined URL for this resource with the resource id. |
| `↳ share_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ShareSettings` List of Projects/Folders to share with. |
| `↳ specific_reservation_required` | `bool` Indicates whether the auto-created 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 the delivered reservation. |
| `↳ specific_sku_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationSpecificSKUProperties` Future Reservation configuration to indicate instance properties and total count. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationStatus` Output only. \[Output only\] Status of the Future Reservation |
| `↳ time_window` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationTimeWindow` Time window for this Future Reservation. |
| `↳ zone` | `string` Output only. \[Output Only\] URL of the Zone where this future reservation resides. |

### getAggregateReservation

Aggregate reservation details for the future reservation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.AllocationAggregateReservation|null` |   |

### hasAggregateReservation

### clearAggregateReservation

### setAggregateReservation

Aggregate reservation details for the future reservation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.AllocationAggregateReservation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoCreatedReservationsDeleteTime

Future timestamp when the FR auto-created reservations will be deleted by
Compute Engine. Format of this field must be a valid
href="[https://www.ietf.org/rfc/rfc3339.txt"\>RFC3339](https://www.ietf.org/rfc/rfc3339.txt">RFC3339) value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAutoCreatedReservationsDeleteTime

### clearAutoCreatedReservationsDeleteTime

### setAutoCreatedReservationsDeleteTime

Future timestamp when the FR auto-created reservations will be deleted by
Compute Engine. Format of this field must be a valid
href="[https://www.ietf.org/rfc/rfc3339.txt"\>RFC3339](https://www.ietf.org/rfc/rfc3339.txt">RFC3339) value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoCreatedReservationsDuration

Specifies the duration of auto-created reservations.

It represents relative time to future reservation start_time when
auto-created reservations will be automatically deleted by Compute
Engine. Duration time unit is represented as a count of seconds
and fractions of seconds at nanosecond resolution.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration|null` |   |

### hasAutoCreatedReservationsDuration

### clearAutoCreatedReservationsDuration

### setAutoCreatedReservationsDuration

Specifies the duration of auto-created reservations.

It represents relative time to future reservation start_time when
auto-created reservations will be automatically deleted by Compute
Engine. Duration time unit is represented as a count of seconds
and fractions of seconds at nanosecond resolution.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoDeleteAutoCreatedReservations

Setting for enabling or disabling automatic deletion for auto-created
reservation. If set to true, auto-created reservations will be
deleted at Future Reservation's end time (default) or at user's defined
timestamp if any of the
\[auto_created_reservations_delete_time, auto_created_reservations_duration\]
values is specified.

For keeping auto-created reservation indefinitely, this value should be set
to false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasAutoDeleteAutoCreatedReservations

### clearAutoDeleteAutoCreatedReservations

### setAutoDeleteAutoCreatedReservations

Setting for enabling or disabling automatic deletion for auto-created
reservation. If set to true, auto-created reservations will be
deleted at Future Reservation's end time (default) or at user's defined
timestamp if any of the
\[auto_created_reservations_delete_time, auto_created_reservations_duration\]
values is specified.

For keeping auto-created reservation indefinitely, this value should be set
to false.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCommitmentInfo

If not present, then FR will not deliver a new commitment or update an
existing commitment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationCommitmentInfo|null` |   |

### hasCommitmentInfo

### clearCommitmentInfo

### setCommitmentInfo

If not present, then FR will not deliver a new commitment or update an
existing commitment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationCommitmentInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfidentialComputeType

Check the ConfidentialComputeType enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasConfidentialComputeType

### clearConfidentialComputeType

### setConfidentialComputeType

Check the ConfidentialComputeType enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreationTimestamp

Output only. \[Output Only\] The creation timestamp for this future reservation inRFC3339
text format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasCreationTimestamp

### clearCreationTimestamp

### setCreationTimestamp

Output only. \[Output Only\] The creation timestamp for this future reservation inRFC3339
text format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeploymentType

Type of the deployment requested as part of future reservation.

Check the DeploymentType enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDeploymentType

### clearDeploymentType

### setDeploymentType

Type of the deployment requested as part of future reservation.

Check the DeploymentType enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

An optional description of this resource. Provide this property when you
create the future reservation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDescription

### clearDescription

### setDescription

An optional description of this resource. Provide this property when you
create the future reservation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnableEmergentMaintenance

Indicates if this group of VMs have emergent maintenance enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnableEmergentMaintenance

### clearEnableEmergentMaintenance

### setEnableEmergentMaintenance

Indicates if this group of VMs have emergent maintenance enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getId

Output only. \[Output Only\] A unique identifier for this future reservation. The server
defines this identifier.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasId

### clearId

### setId

Output only. \[Output Only\] A unique identifier for this future reservation. The server
defines this identifier.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#futureReservation for future reservations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKind

### clearKind

### setKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#futureReservation for future reservations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNamePrefix

Name prefix for the reservations to be created at the time of
delivery. The name prefix must comply with RFC1035.

Maximum allowed length for name prefix is 20. Automatically created
reservations name format will be -date-####.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasNamePrefix

### clearNamePrefix

### setNamePrefix

Name prefix for the reservations to be created at the time of
delivery. The name prefix must comply with RFC1035.

Maximum allowed length for name prefix is 20. Automatically created
reservations name format will be -date-####.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParams

Input only. Additional params passed with the request, but not persisted
as part of resource payload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationParams|null` |   |

### hasParams

### clearParams

### setParams

Input only. Additional params passed with the request, but not persisted
as part of resource payload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPlanningStatus

Planning state before being submitted for evaluation
Check the PlanningStatus enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasPlanningStatus

### clearPlanningStatus

### setPlanningStatus

Planning state before being submitted for evaluation
Check the PlanningStatus enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReservationMode

The reservation mode which determines reservation-termination behavior and
expected pricing.

Check the ReservationMode enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasReservationMode

### clearReservationMode

### setReservationMode

The reservation mode which determines reservation-termination behavior and
expected pricing.

Check the ReservationMode enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReservationName

Name of reservations where the capacity is provisioned at the time of
delivery of future reservations. If the reservation with the given name
does not exist already, it is created automatically at the time of Approval
with INACTIVE state till specified start-time. Either provide the
reservation_name or a name_prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasReservationName

### clearReservationName

### setReservationName

Name of reservations where the capacity is provisioned at the time of
delivery of future reservations. If the reservation with the given name
does not exist already, it is created automatically at the time of Approval
with INACTIVE state till specified start-time. Either provide the
reservation_name or a name_prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSchedulingType

Maintenance information for this reservation
Check the SchedulingType enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSchedulingType

### clearSchedulingType

### setSchedulingType

Maintenance information for this reservation
Check the SchedulingType enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLink

Output only. \[Output Only\] Server-defined fully-qualified URL for this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLink

### clearSelfLink

### setSelfLink

Output only. \[Output Only\] Server-defined fully-qualified URL for this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLinkWithId

Output only. \[Output Only\] Server-defined URL for this resource with the resource id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLinkWithId

### clearSelfLinkWithId

### setSelfLinkWithId

Output only. \[Output Only\] Server-defined URL for this resource with the resource id.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShareSettings

List of Projects/Folders to share with.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ShareSettings|null` |   |

### hasShareSettings

### clearShareSettings

### setShareSettings

List of Projects/Folders to share with.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ShareSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSpecificReservationRequired

Indicates whether the auto-created 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 the delivered reservation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSpecificReservationRequired

### clearSpecificReservationRequired

### setSpecificReservationRequired

Indicates whether the auto-created 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 the delivered reservation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSpecificSkuProperties

Future Reservation configuration to indicate instance properties and
total count.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationSpecificSKUProperties|null` |   |

### hasSpecificSkuProperties

### clearSpecificSkuProperties

### setSpecificSkuProperties

Future Reservation configuration to indicate instance properties and
total count.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationSpecificSKUProperties` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStatus

Output only. \[Output only\] Status of the Future Reservation

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationStatus|null` |   |

### hasStatus

### clearStatus

### setStatus

Output only. \[Output only\] Status of the Future Reservation

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimeWindow

Time window for this Future Reservation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationTimeWindow|null` |   |

### hasTimeWindow

### clearTimeWindow

### setTimeWindow

Time window for this Future Reservation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.FutureReservationTimeWindow` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZone

Output only. \[Output Only\] URL of the Zone where this future reservation resides.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasZone

### clearZone

### setZone

Output only. \[Output Only\] URL of the Zone where this future reservation resides.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |