[BindServiceMethod(typeof(Reservations), "BindService")]
public abstract class Reservations.ReservationsBase
Reference 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 |
AggregatedListReservationsRequest The request received from the client. |
context |
ServerCallContext The 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 |
DeleteReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetIamPolicyReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
InsertReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
ListReservationsRequest The request received from the client. |
context |
ServerCallContext The 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). |
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 |
ResizeReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
SetIamPolicyReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
TestIamPermissionsReservationRequest The request received from the client. |
context |
ServerCallContext The 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 |
UpdateReservationRequest The request received from the client. |
context |
ServerCallContext The 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). |