Reservations
class Reservations extends Resource (View source)
The "reservations" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$reservations = $computeService->reservations;
Methods
Retrieves an aggregated list of reservations. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified reservation. (reservations.delete)
Retrieves information about the specified reservation. (reservations.get)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (reservations.getIamPolicy)
Creates a new reservation. For more information, read Reserving zonal resources. (reservations.insert)
A list of all the reservations that have been configured for the specified project in specified zone. (reservations.listReservations)
Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. (reservations.resize)
Sets the access control policy on the specified resource. Replaces any existing policy. (reservations.setIamPolicy)
Returns permissions that a caller has on the specified resource.
Update share settings of the reservation. (reservations.update)
Details
ReservationAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of reservations. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(reservations.aggregatedList)
Operation
delete(string $project, string $zone, string $reservation, array $optParams = [])
Deletes the specified reservation. (reservations.delete)
Reservation
get(string $project, string $zone, string $reservation, array $optParams = [])
Retrieves information about the specified reservation. (reservations.get)
Policy
getIamPolicy(string $project, string $zone, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (reservations.getIamPolicy)
Operation
insert(string $project, string $zone, Reservation $postBody, array $optParams = [])
Creates a new reservation. For more information, read Reserving zonal resources. (reservations.insert)
ReservationList
listReservations(string $project, string $zone, array $optParams = [])
A list of all the reservations that have been configured for the specified project in specified zone. (reservations.listReservations)
Operation
resize(string $project, string $zone, string $reservation, ReservationsResizeRequest $postBody, array $optParams = [])
Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. (reservations.resize)
Policy
setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (reservations.setIamPolicy)
TestPermissionsResponse
testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(reservations.testIamPermissions)
Operation
update(string $project, string $zone, string $reservation, Reservation $postBody, array $optParams = [])
Update share settings of the reservation. (reservations.update)