Class Reservations.ReservationsBase (1.0.0)

[BindServiceMethod(typeof(Reservations), "BindService")]
public abstract class ReservationsBase

Base class for server-side implementations of Reservations

Inheritance

Object > Reservations.ReservationsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListReservationsRequest, ServerCallContext)

public virtual Task<ReservationAggregatedList> AggregatedList(AggregatedListReservationsRequest request, ServerCallContext context)

Retrieves an aggregated list of reservations.

Parameters
NameDescription
requestAggregatedListReservationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ReservationAggregatedList>

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
NameDescription
requestDeleteReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestGetReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Reservation>

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
NameDescription
requestGetIamPolicyReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

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
NameDescription
requestInsertReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestListReservationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ReservationList>

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
NameDescription
requestResizeReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestSetIamPolicyReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

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
NameDescription
requestTestIamPermissionsReservationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TestPermissionsResponse>

The response to send back to the client (wrapped by a task).