class FutureReservations extends Resource (View source)

The "futureReservations" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $futureReservations = $computeService->futureReservations;

Methods

aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true. (futureReservations.aggregatedList)

cancel(string $project, string $zone, string $futureReservation, array $optParams = [])

Cancel the specified future reservation. (futureReservations.cancel)

delete(string $project, string $zone, string $futureReservation, array $optParams = [])

Deletes the specified future reservation. (futureReservations.delete)

get(string $project, string $zone, string $futureReservation, array $optParams = [])

Retrieves information about the specified future reservation.

insert(string $project, string $zone, FutureReservation $postBody, array $optParams = [])

Creates a new Future Reservation. (futureReservations.insert)

listFutureReservations(string $project, string $zone, array $optParams = [])

A list of all the future reservations that have been configured for the specified project in specified zone.

update(string $project, string $zone, string $futureReservation, FutureReservation $postBody, array $optParams = [])

Updates the specified future reservation. (futureReservations.update)

Details

FutureReservationsAggregatedListResponse aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true. (futureReservations.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

FutureReservationsAggregatedListResponse

Exceptions

Exception

Operation cancel(string $project, string $zone, string $futureReservation, array $optParams = [])

Cancel the specified future reservation. (futureReservations.cancel)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

string $futureReservation

Name of the future reservation to retrieve. Name should conform to RFC1035.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $project, string $zone, string $futureReservation, array $optParams = [])

Deletes the specified future reservation. (futureReservations.delete)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

string $futureReservation

Name of the future reservation to retrieve. Name should conform to RFC1035.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FutureReservation get(string $project, string $zone, string $futureReservation, array $optParams = [])

Retrieves information about the specified future reservation.

(futureReservations.get)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

string $futureReservation

Name of the future reservation to retrieve. Name should conform to RFC1035.

array $optParams

Optional parameters.

Return Value

FutureReservation

Exceptions

Exception

Operation insert(string $project, string $zone, FutureReservation $postBody, array $optParams = [])

Creates a new Future Reservation. (futureReservations.insert)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

FutureReservation $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FutureReservationsListResponse listFutureReservations(string $project, string $zone, array $optParams = [])

A list of all the future reservations that have been configured for the specified project in specified zone.

(futureReservations.listFutureReservations)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

array $optParams

Optional parameters.

Return Value

FutureReservationsListResponse

Exceptions

Exception

Operation update(string $project, string $zone, string $futureReservation, FutureReservation $postBody, array $optParams = [])

Updates the specified future reservation. (futureReservations.update)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request. Name should conform to RFC1035.

string $futureReservation

Name of the reservation to update. Name should conform to RFC1035.

FutureReservation $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception