[BindServiceMethod(typeof(Reservations), "BindService")]
public abstract class Reservations.ReservationsBaseReference documentation and code samples for the Compute Engine v1 API class Reservations.ReservationsBase.
Base class for server-side implementations of Reservations
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AggregatedList(AggregatedListReservationsRequest, ServerCallContext)
public virtual Task<ReservationAggregatedList> AggregatedList(AggregatedListReservationsRequest request, ServerCallContext context)Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListReservationsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskReservationAggregatedList |
The response to send back to the client (wrapped by a task). |
Delete(DeleteReservationRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteReservationRequest request, ServerCallContext context)Deletes the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Get(GetReservationRequest, ServerCallContext)
public virtual Task<Reservation> Get(GetReservationRequest request, ServerCallContext context)Retrieves information about the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskReservation |
The response to send back to the client (wrapped by a task). |
GetIamPolicy(GetIamPolicyReservationRequest, ServerCallContext)
public virtual Task<Policy> GetIamPolicy(GetIamPolicyReservationRequest request, ServerCallContext context)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
Insert(InsertReservationRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertReservationRequest request, ServerCallContext context)Creates a new reservation. For more information, read Reserving zonal resources.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
List(ListReservationsRequest, ServerCallContext)
public virtual Task<ReservationList> List(ListReservationsRequest request, ServerCallContext context)A list of all the reservations that have been configured for the specified project in specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListReservationsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskReservationList |
The response to send back to the client (wrapped by a task). |
PerformMaintenance(PerformMaintenanceReservationRequest, ServerCallContext)
public virtual Task<Operation> PerformMaintenance(PerformMaintenanceReservationRequest request, ServerCallContext context)Perform maintenance on an extended reservation
| Parameters | |
|---|---|
| Name | Description |
request |
PerformMaintenanceReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Resize(ResizeReservationRequest, ServerCallContext)
public virtual Task<Operation> Resize(ResizeReservationRequest request, ServerCallContext context)Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.
| Parameters | |
|---|---|
| Name | Description |
request |
ResizeReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
SetIamPolicy(SetIamPolicyReservationRequest, ServerCallContext)
public virtual Task<Policy> SetIamPolicy(SetIamPolicyReservationRequest request, ServerCallContext context)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
TestIamPermissions(TestIamPermissionsReservationRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsReservationRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
The response to send back to the client (wrapped by a task). |
Update(UpdateReservationRequest, ServerCallContext)
public virtual Task<Operation> Update(UpdateReservationRequest request, ServerCallContext context)Update share settings of the reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateReservationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |